Skip to content

Instantly share code, notes, and snippets.

@sod
Created February 15, 2016 15:03
Show Gist options
  • Save sod/6da6eeb28e95b55eac54 to your computer and use it in GitHub Desktop.
Save sod/6da6eeb28e95b55eac54 to your computer and use it in GitHub Desktop.
!function(e){function r(e,r,o){return 4===arguments.length?t.apply(this,arguments):void n(e,{declarative:!0,deps:r,declare:o})}function t(e,r,t,o){n(e,{declarative:!1,deps:r,executingRequire:t,execute:o})}function n(e,r){r.name=e,e in p||(p[e]=r),r.normalizedDeps=r.deps}function o(e,r){if(r[e.groupIndex]=r[e.groupIndex]||[],-1==v.call(r[e.groupIndex],e)){r[e.groupIndex].push(e);for(var t=0,n=e.normalizedDeps.length;n>t;t++){var a=e.normalizedDeps[t],u=p[a];if(u&&!u.evaluated){var d=e.groupIndex+(u.declarative!=e.declarative);if(void 0===u.groupIndex||u.groupIndex<d){if(void 0!==u.groupIndex&&(r[u.groupIndex].splice(v.call(r[u.groupIndex],u),1),0==r[u.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");u.groupIndex=d}o(u,r)}}}}function a(e){var r=p[e];r.groupIndex=0;var t=[];o(r,t);for(var n=!!r.declarative==t.length%2,a=t.length-1;a>=0;a--){for(var u=t[a],i=0;i<u.length;i++){var s=u[i];n?d(s):l(s)}n=!n}}function u(e){return x[e]||(x[e]={name:e,dependencies:[],exports:{},importers:[]})}function d(r){if(!r.module){var t=r.module=u(r.name),n=r.module.exports,o=r.declare.call(e,function(e,r){if(t.locked=!0,"object"==typeof e)for(var o in e)n[o]=e[o];else n[e]=r;for(var a=0,u=t.importers.length;u>a;a++){var d=t.importers[a];if(!d.locked)for(var i=0;i<d.dependencies.length;++i)d.dependencies[i]===t&&d.setters[i](n)}return t.locked=!1,r},r.name);t.setters=o.setters,t.execute=o.execute;for(var a=0,i=r.normalizedDeps.length;i>a;a++){var l,s=r.normalizedDeps[a],c=p[s],v=x[s];v?l=v.exports:c&&!c.declarative?l=c.esModule:c?(d(c),v=c.module,l=v.exports):l=f(s),v&&v.importers?(v.importers.push(t),t.dependencies.push(v)):t.dependencies.push(null),t.setters[a]&&t.setters[a](l)}}}function i(e){var r,t=p[e];if(t)t.declarative?c(e,[]):t.evaluated||l(t),r=t.module.exports;else if(r=f(e),!r)throw new Error("Unable to load dependency "+e+".");return(!t||t.declarative)&&r&&r.__useDefault?r["default"]:r}function l(r){if(!r.module){var t={},n=r.module={exports:t,id:r.name};if(!r.executingRequire)for(var o=0,a=r.normalizedDeps.length;a>o;o++){var u=r.normalizedDeps[o],d=p[u];d&&l(d)}r.evaluated=!0;var c=r.execute.call(e,function(e){for(var t=0,n=r.deps.length;n>t;t++)if(r.deps[t]==e)return i(r.normalizedDeps[t]);throw new TypeError("Module "+e+" not declared as a dependency.")},t,n);c&&(n.exports=c),t=n.exports,t&&t.__esModule?r.esModule=t:r.esModule=s(t)}}function s(r){if(r===e)return r;var t={};if("object"==typeof r||"function"==typeof r)if(g){var n;for(var o in r)(n=Object.getOwnPropertyDescriptor(r,o))&&h(t,o,n)}else{var a=r&&r.hasOwnProperty;for(var o in r)(!a||r.hasOwnProperty(o))&&(t[o]=r[o])}return t["default"]=r,h(t,"__useDefault",{value:!0}),t}function c(r,t){var n=p[r];if(n&&!n.evaluated&&n.declarative){t.push(r);for(var o=0,a=n.normalizedDeps.length;a>o;o++){var u=n.normalizedDeps[o];-1==v.call(t,u)&&(p[u]?c(u,t):f(u))}n.evaluated||(n.evaluated=!0,n.module.execute.call(e))}}function f(e){if(D[e])return D[e];if("@node/"==e.substr(0,6))return y(e.substr(6));var r=p[e];if(!r)throw"Module "+e+" not present.";return a(e),c(e,[]),p[e]=void 0,r.declarative&&h(r.module.exports,"__esModule",{value:!0}),D[e]=r.declarative?r.module.exports:r.esModule}var p={},v=Array.prototype.indexOf||function(e){for(var r=0,t=this.length;t>r;r++)if(this[r]===e)return r;return-1},g=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(m){g=!1}var h;!function(){try{Object.defineProperty({},"a",{})&&(h=Object.defineProperty)}catch(e){h=function(e,r,t){try{e[r]=t.value||t.get.call(e)}catch(n){}}}}();var x={},y="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,D={"@empty":{}};return function(e,n,o){return function(a){a(function(a){for(var u={_nodeRequire:y,register:r,registerDynamic:t,get:f,set:function(e,r){D[e]=r},newModule:function(e){return e}},d=0;d<n.length;d++)(function(e,r){r&&r.__esModule?D[e]=r:D[e]=s(r)})(n[d],arguments[d]);o(u);var i=f(e[0]);if(e.length>1)for(var d=1;d<e.length;d++)f(e[d]);return i.__useDefault?i["default"]:i})}}}("undefined"!=typeof self?self:global)(["1"],[],function($__System){!function(){var t=$__System;if("undefined"!=typeof window&&"undefined"!=typeof document&&window.location)var s=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"");t.set("@@cjs-helpers",t.newModule({getPathVars:function(t){var n,o=t.lastIndexOf("!");n=-1!=o?t.substr(0,o):t;var e=n.split("/");return e.pop(),e=e.join("/"),"file:///"==n.substr(0,8)?(n=n.substr(7),e=e.substr(7),isWindows&&(n=n.substr(1),e=e.substr(1))):s&&n.substr(0,s.length)===s&&(n=n.substr(s.length),e=e.substr(s.length)),{filename:n,dirname:e}}}))}(),$__System.registerDynamic("2",[],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){var n=t(1),r=t(5);e.Zone?console.warn("Zone already exported on window the object!"):(e.Zone=n.Zone,e.zone=new e.Zone,r.apply()),exports.Zone=e.Zone}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(e,t){i.hasOwnProperty(e)||(i[e]=!0,console.warn("DEPRECATION WARNING: '"+e+"' is no longer supported and will be removed in next major release. "+t))}var r=t(2),o=t(3),i={},a=function(){function t(e,n){this.parent=null,this.onError=null;var r=arguments.length?Object.create(e):this;return r.parent=e||null,Object.keys(n||{}).forEach(function(t){var o=t.substr(1);"$"===t[0]?r[o]=n[t](e[o]||function(){}):"+"===t[0]?e[o]?r[o]=function(){var r=e[o].apply(this,arguments);return n[t].apply(this,arguments),r}:r[o]=n[t]:"-"===t[0]?e[o]?r[o]=function(){return n[t].apply(this,arguments),e[o].apply(this,arguments)}:r[o]=n[t]:r[t]="object"==typeof n[t]?JSON.parse(JSON.stringify(n[t])):n[t]}),r.$id=t.nextId++,r}return t.prototype.fork=function(e){return this.onZoneCreated(),new t(this,e)},t.prototype.bind=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);t||this.enqueueTask(e);var n=this.isRootZone()?this:this.fork();return function(){return n.run(e,this,arguments)}},t.prototype.bindOnce=function(e){n("bindOnce","There is no replacement.");var t=this;return this.bind(function(){var n=e.apply(this,arguments);return t.dequeueTask(e),n})},t.prototype.isRootZone=function(){return null===this.parent},t.prototype.run=function(t,n,r){r=r||[];var o=e.zone;e.zone=this;try{return this.beforeTask(),t.apply(n,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),e.zone=o}},t.prototype.beforeTask=function(){},t.prototype.onZoneCreated=function(){},t.prototype.afterTask=function(){},t.prototype.enqueueTask=function(e){n("enqueueTask","Use addTask/addRepeatingTask/addMicroTask")},t.prototype.dequeueTask=function(e){n("dequeueTask","Use removeTask/removeRepeatingTask/removeMicroTask")},t.prototype.addTask=function(e){this.enqueueTask(e)},t.prototype.removeTask=function(e){this.dequeueTask(e)},t.prototype.addRepeatingTask=function(e){this.enqueueTask(e)},t.prototype.removeRepeatingTask=function(e){this.dequeueTask(e)},t.prototype.addMicrotask=function(e){this.enqueueTask(e)},t.prototype.removeMicrotask=function(e){this.dequeueTask(e)},t.prototype.addEventListener=function(){return this[r.common.addEventListener].apply(this,arguments)},t.prototype.removeEventListener=function(){return this[r.common.removeEventListener].apply(this,arguments)},t.nextId=1,t.bindPromiseFn=o.bindPromiseFn,t}();exports.Zone=a}).call(exports,function(){return this}())},function(e,exports){function t(e){return"_zone$"+e}exports.create=t,exports.common={addEventListener:t("addEventListener"),removeEventListener:t("removeEventListener")}},function(e,exports,t){(function(n){function r(e,t){var r=n,o=e.every(function(e){return r=r[e]});o&&t.forEach(function(e){var t=r[e];t&&(r[e]=exports.bindPromiseFn(t))})}function o(e){var t=e.then;e.then=function(){var n=a.bindArguments(arguments),r=t.apply(e,n);return o(r)};var n=e["catch"];return e["catch"]=function(){var t=a.bindArguments(arguments),r=n.apply(e,t);return o(r)},e}function i(){if(n.Promise){a.patchPrototype(Promise.prototype,["then","catch"]);var e=[[[],["fetch"]],[["Response","prototype"],["arrayBuffer","blob","json","text"]]];e.forEach(function(e){r(e[0],e[1])})}}var a=t(4);n.Promise?exports.bindPromiseFn=function(e){return function(){var t=e.apply(this,arguments);return t instanceof Promise?t:new Promise(function(e,n){t.then(e,n)})}}:exports.bindPromiseFn=function(e){return function(){return o(e.apply(this,arguments))}},exports.apply=i,e.exports={apply:i,bindPromiseFn:exports.bindPromiseFn}}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t){for(var n=t.length-1;n>=0;n--)"function"==typeof t[n]&&(t[n]=e.zone.bind(t[n]));return t}function r(e,t){t.forEach(function(t){var r=e[t];r&&(e[t]=function(){return r.apply(this,n(arguments))})})}function o(){return"undefined"==typeof document}function i(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o="_"+t;n.set=function(e){this[o]&&this.removeEventListener(r,this[o]),"function"==typeof e?(this[o]=e,this.addEventListener(r,e,!1)):this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function a(e,t){(t||function(){var t=[];for(var n in e)t.push(n);return t}().filter(function(e){return"on"===e.substr(0,2)})).forEach(function(t){i(e,t)})}function u(t){t[s.common.addEventListener]=t.addEventListener,t.addEventListener=function(t,n,r){if(n&&"[object FunctionWrapper]"!==n.toString()){var o,i=t+(r?"$capturing":"$bubbling");o=n.handleEvent?function(e){return function(){e.handleEvent.apply(e,arguments)}}(n):n,n[p]=o,n[f]=n[f]||{},n[f][i]=n[f][i]||e.zone.bind(o),arguments[1]=n[f][i]}var a=this||e;return e.zone.addEventListener.apply(a,arguments)},t[s.common.removeEventListener]=t.removeEventListener,t.removeEventListener=function(t,n,r){var o=t+(r?"$capturing":"$bubbling");if(n&&n[f]&&n[f][o]){var i=n[f];arguments[1]=i[o],delete i[o],e.zone.dequeueTask(n[p])}var a=this||e,u=e.zone.removeEventListener.apply(a,arguments);return u}}function c(t){var r=e[t];if(r){e[t]=function(){var e=n(arguments);switch(e.length){case 0:this[l]=new r;break;case 1:this[l]=new r(e[0]);break;case 2:this[l]=new r(e[0],e[1]);break;case 3:this[l]=new r(e[0],e[1],e[2]);break;case 4:this[l]=new r(e[0],e[1],e[2],e[3]);break;default:throw new Error("what are you even doing?")}};var o,i=new r;for(o in i)!function(n){"function"==typeof i[n]?e[t].prototype[n]=function(){return this[l][n].apply(this[l],arguments)}:Object.defineProperty(e[t].prototype,n,{set:function(t){"function"==typeof t?this[l][n]=e.zone.bind(t):this[l][n]=t},get:function(){return this[l][n]}})}(o);for(o in r)"prototype"!==o&&r.hasOwnProperty(o)&&(e[t][o]=r[o])}}var s=t(2);exports.bindArguments=n,exports.patchPrototype=r,exports.isWebWorker=o,exports.patchProperty=i,exports.patchProperties=a;var p=s.create("originalFn"),f=s.create("boundFns");exports.patchEventTargetMethods=u;var l=s.create("originalInstance");exports.patchClass=c}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){r.patchSetClearFunction(e,e.Zone,[["setTimeout","clearTimeout",!1,!1],["setInterval","clearInterval",!0,!1],["setImmediate","clearImmediate",!1,!1],["requestAnimationFrame","cancelAnimationFrame",!1,!0],["mozRequestAnimationFrame","mozCancelAnimationFrame",!1,!0],["webkitRequestAnimationFrame","webkitCancelAnimationFrame",!1,!0]]),r.patchFunction(e,["alert","prompt"]),c.apply(),s.apply(),o.apply(),i.patchClass("MutationObserver"),i.patchClass("WebKitMutationObserver"),a.apply(),u.apply(),p.apply(),f.apply()}var r=t(6),o=t(3),i=t(8),a=t(9),u=t(10),c=t(11),s=t(12),p=t(14),f=t(15);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t,n,r){function i(r,i,a,u){var c=t[r],s=t[i],p={};if(c){var f=o.createEvent("Zone#"+r+"(uint32 zone, uint32 id, uint32 delay)"),l=o.createEvent("Zone#"+i+"(uint32 zone, uint32 id)"),d=o.createScope("Zone#cb:"+r+"(uint32 zone, uint32 id, uint32 delay)");t[r]=function(){return e.zone[r].apply(e.zone,arguments)},t[i]=function(){return e.zone[i].apply(e.zone,arguments)},n.prototype[r]=function(e,n){var r=e;"function"!=typeof r&&c.apply(t,arguments);var i=this,s=null;return arguments[0]=function(){var e=i.isRootZone()||u?i:i.fork(),t=this,c=arguments;return o.leaveScope(d(e.$id,s,n),e.run(function(){return a||(delete p[s],e.removeTask(r)),r.apply(t,c)}))},a?i.addRepeatingTask(r):i.addTask(r),s=c.apply(t,arguments),p[s]=r,f(i.$id,s,n),s},n.prototype[r+"Unpatched"]=function(){return c.apply(t,arguments)},n.prototype[i]=function(e){if(l(this.$id,e),p.hasOwnProperty(e)){var n=p[e];delete p[e],a?this.removeRepeatingTask(n):this.removeTask(n)}return s.apply(t,arguments)},n.prototype[i+"Unpatched"]=function(){return s.apply(t,arguments)}}}r.forEach(function(e){i.apply(null,e)})}function r(t,n){n.forEach(function(n){var r=t[n];e.zone[n]=function(){return r.apply(t,arguments)},t[n]=function(){return e.zone[n].apply(this,arguments)}})}var o=t(7);exports.patchSetClearFunction=n,exports.patchFunction=r}).call(exports,function(){return this}())},function(e,exports){(function(e){function t(){}var n=null,r=null,o=function(){var t=e.wtf;return t&&(n=t.trace)?(r=n.events,!0):!1}();exports.enabled=o,exports.createScope=o?function(e,t){return r.createScope(e,t)}:function(e,n){return t},exports.createEvent=o?function(e,t){return r.createInstance(e,t)}:function(e,n){return t},exports.leaveScope=o?function(e,t){return n.leaveScope(e,t),t}:function(e,t){return t},exports.beginTimeRange=o?function(e,t){return n.beginTimeRange(e,t)}:function(e,t){return null},exports.endTimeRange=o?function(e){n.endTimeRange(e)}:function(e){}}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(t){var n=e[t];if(n){e[t]=function(t){this[o]=new n(e.zone.bind(t,!0)),this[i]=e.zone};var r=new n(function(){});e[t].prototype.disconnect=function(){var e=this[o].disconnect.apply(this[o],arguments);return this[a]&&(this[i].dequeueTask(),this[a]=!1),e},e[t].prototype.observe=function(){return this[a]||(this[i].enqueueTask(),this[a]=!0),this[o].observe.apply(this[o],arguments)};var u;for(u in r)!function(n){"undefined"==typeof e[t].prototype&&("function"==typeof r[n]?e[t].prototype[n]=function(){return this[o][n].apply(this[o],arguments)}:Object.defineProperty(e[t].prototype,n,{set:function(t){"function"==typeof t?this[o][n]=e.zone.bind(t):this[o][n]=t},get:function(){return this[o][n]}}))}(u)}}var r=t(2),o=r.create("originalInstance"),i=r.create("creationZone"),a=r.create("isActive");exports.patchClass=n}).call(exports,function(){return this}())},function(e,exports,t){function n(){Object.defineProperty=function(e,t,n){if(o(e,t))throw new TypeError("Cannot assign to read only property '"+t+"' of "+e);return"prototype"!==t&&(n=i(e,t,n)),u(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return"object"==typeof t&&Object.keys(t).forEach(function(n){t[n]=i(e,n,t[n])}),s(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return o(e,t)&&(n.configurable=!1),n}}function r(e,t,n){return n=i(e,t,n),u(e,t,n)}function o(e,t){return e&&e[p]&&e[p][t]}function i(e,t,n){return n.configurable=!0,n.configurable||(e[p]||u(e,p,{writable:!0,value:{}}),e[p][t]=!0),n}var a=t(2),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.create,p=a.create("unconfigurables");exports.apply=n,exports._redefineProperty=r},function(e,exports,t){(function(e){function n(){if(!o.isWebWorker()&&"registerElement"in e.document){var t=document.registerElement,n=["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"];document.registerElement=function(o,i){return i&&i.prototype&&n.forEach(function(t){if(i.prototype.hasOwnProperty(t)){var n=Object.getOwnPropertyDescriptor(i.prototype,t);n&&n.value?(n.value=e.zone.bind(n.value),r._redefineProperty(i.prototype,t,n)):i.prototype[t]=e.zone.bind(i.prototype[t])}else i.prototype[t]&&(i.prototype[t]=e.zone.bind(i.prototype[t]))}),t.apply(document,[o,i])}}}var r=t(9),o=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){"use strict";function n(){if(e.EventTarget)r.patchEventTargetMethods(e.EventTarget.prototype);else{var t=["ApplicationCache","EventSource","FileReader","InputMethodContext","MediaController","MessagePort","Node","Performance","SVGElementInstance","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebKitNamedFlow","Worker","WorkerGlobalScope","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];t.forEach(function(t){var n=e[t]&&e[t].prototype;n&&n.addEventListener&&r.patchEventTargetMethods(n)}),"undefined"!=typeof window&&r.patchEventTargetMethods(window)}}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){if(!a.isWebWorker()){var e="undefined"!=typeof WebSocket;if(r()){var t=c.map(function(e){return"on"+e});a.patchProperties(HTMLElement.prototype,t),a.patchProperties(XMLHttpRequest.prototype),e&&a.patchProperties(WebSocket.prototype)}else o(),a.patchClass("XMLHttpRequest"),e&&i.apply()}}function r(){if(!Object.getOwnPropertyDescriptor(HTMLElement.prototype,"onclick")&&"undefined"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,"onclick");if(e&&!e.configurable)return!1}Object.defineProperty(HTMLElement.prototype,"onclick",{get:function(){return!0}});var t=document.createElement("div"),n=!!t.onclick;return Object.defineProperty(HTMLElement.prototype,"onclick",{}),n}function o(){c.forEach(function(t){var n="on"+t;document.addEventListener(t,function(t){for(var r,o=t.target;o;)o[n]&&!o[n][s]&&(r=e.zone.bind(o[n]),r[s]=o[n],o[n]=r),o=o.parentElement},!0)})}var i=t(13),a=t(4),u=t(2),c="copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror".split(" ");exports.apply=n;var s=u.create("unbound")}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){var t=e.WebSocket;e.EventTarget||r.patchEventTargetMethods(t.prototype),e.WebSocket=function(e,n){var o,i=arguments.length>1?new t(e,n):new t(e),a=Object.getOwnPropertyDescriptor(i,"onmessage");return a&&a.configurable===!1?(o=Object.create(i),["addEventListener","removeEventListener","send","close"].forEach(function(e){o[e]=function(){return i[e].apply(i,arguments)}})):o=i,r.patchProperties(o,["onclose","onerror","onmessage","onopen"]),o}}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){(function(e){function n(){e.navigator&&e.navigator.geolocation&&r.patchPrototype(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}var r=t(4);exports.apply=n}).call(exports,function(){return this}())},function(e,exports,t){function n(){r.patchClass("FileReader")}var r=t(4);exports.apply=n}]),global.define=__define,module.exports}),$__System.registerDynamic("3",["@empty","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){var Reflect;!function(Reflect){"use strict";function decorate(decorators,target,targetKey,targetDescriptor){if(IsUndefined(targetDescriptor)){if(IsUndefined(targetKey)){if(!IsArray(decorators))throw new TypeError;if(!IsConstructor(target))throw new TypeError;return DecorateConstructor(decorators,target)}if(!IsArray(decorators))throw new TypeError;if(!IsObject(target))throw new TypeError;return targetKey=ToPropertyKey(targetKey),DecoratePropertyWithoutDescriptor(decorators,target,targetKey)}if(!IsArray(decorators))throw new TypeError;if(!IsObject(target))throw new TypeError;if(IsUndefined(targetKey))throw new TypeError;if(!IsObject(targetDescriptor))throw new TypeError;return targetKey=ToPropertyKey(targetKey),DecoratePropertyWithDescriptor(decorators,target,targetKey,targetDescriptor)}function metadata(metadataKey,metadataValue){function decorator(target,targetKey){if(IsUndefined(targetKey)){if(!IsConstructor(target))throw new TypeError;OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,void 0)}else{if(!IsObject(target))throw new TypeError;targetKey=ToPropertyKey(targetKey),OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,targetKey)}}return decorator}function defineMetadata(metadataKey,metadataValue,target,targetKey){if(!IsObject(target))throw new TypeError;return IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey)),OrdinaryDefineOwnMetadata(metadataKey,metadataValue,target,targetKey)}function hasMetadata(metadataKey,target,targetKey){if(!IsObject(target))throw new TypeError;return IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey)),OrdinaryHasMetadata(metadataKey,target,targetKey)}function hasOwnMetadata(metadataKey,target,targetKey){if(!IsObject(target))throw new TypeError;return IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey)),OrdinaryHasOwnMetadata(metadataKey,target,targetKey)}function getMetadata(metadataKey,target,targetKey){if(!IsObject(target))throw new TypeError;return IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey)),OrdinaryGetMetadata(metadataKey,target,targetKey)}function getOwnMetadata(metadataKey,target,targetKey){if(!IsObject(target))throw new TypeError;return IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey)),OrdinaryGetOwnMetadata(metadataKey,target,targetKey)}function getMetadataKeys(target,targetKey){if(!IsObject(target))throw new TypeError;return IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey)),OrdinaryMetadataKeys(target,targetKey)}function getOwnMetadataKeys(target,targetKey){if(!IsObject(target))throw new TypeError;return IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey)),OrdinaryOwnMetadataKeys(target,targetKey)}function deleteMetadata(metadataKey,target,targetKey){if(!IsObject(target))throw new TypeError;IsUndefined(targetKey)||(targetKey=ToPropertyKey(targetKey));var metadataMap=GetOrCreateMetadataMap(target,targetKey,!1);if(IsUndefined(metadataMap))return!1;if(!metadataMap["delete"](metadataKey))return!1;if(metadataMap.size>0)return!0;var targetMetadata=__Metadata__.get(target);return targetMetadata["delete"](targetKey),targetMetadata.size>0?!0:(__Metadata__["delete"](target),!0)}function DecorateConstructor(decorators,target){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target);if(!IsUndefined(decorated)){if(!IsConstructor(decorated))throw new TypeError;target=decorated}}return target}function DecoratePropertyWithDescriptor(decorators,target,propertyKey,descriptor){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i],decorated=decorator(target,propertyKey,descriptor);if(!IsUndefined(decorated)){if(!IsObject(decorated))throw new TypeError;descriptor=decorated}}return descriptor}function DecoratePropertyWithoutDescriptor(decorators,target,propertyKey){for(var i=decorators.length-1;i>=0;--i){var decorator=decorators[i];decorator(target,propertyKey)}}function GetOrCreateMetadataMap(target,targetKey,create){var targetMetadata=__Metadata__.get(target);if(!targetMetadata){if(!create)return;targetMetadata=new _Map,__Metadata__.set(target,targetMetadata)}var keyMetadata=targetMetadata.get(targetKey);if(!keyMetadata){if(!create)return;keyMetadata=new _Map,targetMetadata.set(targetKey,keyMetadata)}return keyMetadata}function OrdinaryHasMetadata(MetadataKey,O,P){var hasOwn=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn)return!0;var parent=GetPrototypeOf(O);return null!==parent?OrdinaryHasMetadata(MetadataKey,parent,P):!1}function OrdinaryHasOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);return void 0===metadataMap?!1:Boolean(metadataMap.has(MetadataKey))}function OrdinaryGetMetadata(MetadataKey,O,P){var hasOwn=OrdinaryHasOwnMetadata(MetadataKey,O,P);if(hasOwn)return OrdinaryGetOwnMetadata(MetadataKey,O,P);var parent=GetPrototypeOf(O);return null!==parent?OrdinaryGetMetadata(MetadataKey,parent,P):void 0}function OrdinaryGetOwnMetadata(MetadataKey,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!1);if(void 0!==metadataMap)return metadataMap.get(MetadataKey)}function OrdinaryDefineOwnMetadata(MetadataKey,MetadataValue,O,P){var metadataMap=GetOrCreateMetadataMap(O,P,!0);metadataMap.set(MetadataKey,MetadataValue)}function OrdinaryMetadataKeys(O,P){var ownKeys=OrdinaryOwnMetadataKeys(O,P),parent=GetPrototypeOf(O);if(null===parent)return ownKeys;var parentKeys=OrdinaryMetadataKeys(parent,P);if(parentKeys.length<=0)return ownKeys;if(ownKeys.length<=0)return parentKeys;for(var set=new _Set,keys=[],_i=0;_i<ownKeys.length;_i++){var key=ownKeys[_i],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}for(var _a=0;_a<parentKeys.length;_a++){var key=parentKeys[_a],hasKey=set.has(key);hasKey||(set.add(key),keys.push(key))}return keys}function OrdinaryOwnMetadataKeys(target,targetKey){var metadataMap=GetOrCreateMetadataMap(target,targetKey,!1),keys=[];return metadataMap&&metadataMap.forEach(function(_,key){return keys.push(key)}),keys}function IsUndefined(x){return void 0===x}function IsArray(x){return Array.isArray(x)}function IsObject(x){return"object"==typeof x?null!==x:"function"==typeof x}function IsConstructor(x){return"function"==typeof x}function IsSymbol(x){return"symbol"==typeof x}function ToPropertyKey(value){return IsSymbol(value)?value:String(value)}function GetPrototypeOf(O){var proto=Object.getPrototypeOf(O);if("function"!=typeof O||O===functionPrototype)return proto;if(proto!==functionPrototype)return proto;var prototype=O.prototype,prototypeProto=Object.getPrototypeOf(prototype);if(null==prototypeProto||prototypeProto===Object.prototype)return proto;var constructor=prototypeProto.constructor;return"function"!=typeof constructor?proto:constructor===O?proto:constructor}function CreateMapPolyfill(){function Map(){this._keys=[],this._values=[],this._cache=cacheSentinel}var cacheSentinel={};return Map.prototype={get size(){return this._keys.length},has:function(key){return key===this._cache?!0:this._find(key)>=0?(this._cache=key,!0):!1},get:function(key){var index=this._find(key);return index>=0?(this._cache=key,this._values[index]):void 0},set:function(key,value){return this["delete"](key),this._keys.push(key),this._values.push(value),this._cache=key,this},"delete":function(key){var index=this._find(key);return index>=0?(this._keys.splice(index,1),this._values.splice(index,1),this._cache=cacheSentinel,!0):!1},clear:function(){this._keys.length=0,this._values.length=0,this._cache=cacheSentinel},forEach:function(callback,thisArg){for(var size=this.size,i=0;size>i;++i){var key=this._keys[i],value=this._values[i];this._cache=key,callback.call(this,value,key,this)}},_find:function(key){for(var keys=this._keys,size=keys.length,i=0;size>i;++i)if(keys[i]===key)return i;return-1}},Map}function CreateSetPolyfill(){function Set(){this._map=new _Map}return Set.prototype={get size(){return this._map.length},has:function(value){return this._map.has(value)},add:function(value){return this._map.set(value,value),this},"delete":function(value){return this._map["delete"](value)},clear:function(){this._map.clear()},forEach:function(callback,thisArg){this._map.forEach(callback,thisArg)}},Set}function CreateWeakMapPolyfill(){function WeakMap(){this._key=CreateUniqueKey()}function FillRandomBytes(buffer,size){for(var i=0;size>i;++i)buffer[i]=255*Math.random()|0}function GenRandomBytes(size){if(nodeCrypto){var data=nodeCrypto.randomBytes(size);return data}if("function"==typeof Uint8Array){var data=new Uint8Array(size);return"undefined"!=typeof crypto?crypto.getRandomValues(data):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(data):FillRandomBytes(data,size),data}var data=new Array(size);return FillRandomBytes(data,size),data}function CreateUUID(){var data=GenRandomBytes(UUID_SIZE);data[6]=79&data[6]|64,data[8]=191&data[8]|128;for(var result="",offset=0;UUID_SIZE>offset;++offset){var byte=data[offset];(4===offset||6===offset||8===offset)&&(result+="-"),16>byte&&(result+="0"),result+=byte.toString(16).toLowerCase()}return result}function CreateUniqueKey(){var key;do key="@@WeakMap@@"+CreateUUID();while(hasOwn.call(keys,key));return keys[key]=!0,key}function GetOrCreateWeakMapTable(target,create){if(!hasOwn.call(target,rootKey)){if(!create)return;Object.defineProperty(target,rootKey,{value:Object.create(null)})}return target[rootKey]}var UUID_SIZE=16,isNode="undefined"!=typeof global&&"[object process]"===Object.prototype.toString.call(global.process),nodeCrypto=isNode&&$__require("@empty"),hasOwn=Object.prototype.hasOwnProperty,keys={},rootKey=CreateUniqueKey();return WeakMap.prototype={has:function(target){var table=GetOrCreateWeakMapTable(target,!1);return table?this._key in table:!1},get:function(target){var table=GetOrCreateWeakMapTable(target,!1);return table?table[this._key]:void 0},set:function(target,value){var table=GetOrCreateWeakMapTable(target,!0);return table[this._key]=value,this},"delete":function(target){var table=GetOrCreateWeakMapTable(target,!1);return table&&this._key in table?delete table[this._key]:!1},clear:function(){this._key=CreateUniqueKey()}},WeakMap}var functionPrototype=Object.getPrototypeOf(Function),_Map="function"==typeof Map?Map:CreateMapPolyfill(),_Set="function"==typeof Set?Set:CreateSetPolyfill(),_WeakMap="function"==typeof WeakMap?WeakMap:CreateWeakMapPolyfill(),__Metadata__=new _WeakMap;Reflect.decorate=decorate,Reflect.metadata=metadata,Reflect.defineMetadata=defineMetadata,Reflect.hasMetadata=hasMetadata,Reflect.hasOwnMetadata=hasOwnMetadata,Reflect.getMetadata=getMetadata,Reflect.getOwnMetadata=getOwnMetadata,Reflect.getMetadataKeys=getMetadataKeys,Reflect.getOwnMetadataKeys=getOwnMetadataKeys,Reflect.deleteMetadata=deleteMetadata,function(__global){if("undefined"!=typeof __global.Reflect){if(__global.Reflect!==Reflect)for(var p in Reflect)__global.Reflect[p]=Reflect[p]}else __global.Reflect=Reflect}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:"undefined"!=typeof global?global:Function("return this;")())}(Reflect||(Reflect={}))}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("5",["3"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("3"),global.define=__define,module.exports}),$__System.registerDynamic("6",["7","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0;
},lang_1=$__require("7"),AngularEntrypoint=function(){function AngularEntrypoint(name){this.name=name}return AngularEntrypoint=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String])],AngularEntrypoint)}();exports.AngularEntrypoint=AngularEntrypoint}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("8",["7","9","a","b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),async_1=$__require("9"),core_1=$__require("a"),invalid_pipe_argument_exception_1=$__require("b"),ObservableStrategy=function(){function ObservableStrategy(){}return ObservableStrategy.prototype.createSubscription=function(async,updateLatestValue){return async_1.ObservableWrapper.subscribe(async,updateLatestValue,function(e){throw e})},ObservableStrategy.prototype.dispose=function(subscription){async_1.ObservableWrapper.dispose(subscription)},ObservableStrategy.prototype.onDestroy=function(subscription){async_1.ObservableWrapper.dispose(subscription)},ObservableStrategy}(),PromiseStrategy=function(){function PromiseStrategy(){}return PromiseStrategy.prototype.createSubscription=function(async,updateLatestValue){return async.then(updateLatestValue)},PromiseStrategy.prototype.dispose=function(subscription){},PromiseStrategy.prototype.onDestroy=function(subscription){},PromiseStrategy}(),_promiseStrategy=new PromiseStrategy,_observableStrategy=new ObservableStrategy,AsyncPipe=function(){function AsyncPipe(_ref){this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=_ref}return AsyncPipe.prototype.ngOnDestroy=function(){lang_1.isPresent(this._subscription)&&this._dispose()},AsyncPipe.prototype.transform=function(obj,args){return lang_1.isBlank(this._obj)?(lang_1.isPresent(obj)&&this._subscribe(obj),this._latestReturnedValue=this._latestValue,this._latestValue):obj!==this._obj?(this._dispose(),this.transform(obj)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,core_1.WrappedValue.wrap(this._latestValue))},AsyncPipe.prototype._subscribe=function(obj){var _this=this;this._obj=obj,this._strategy=this._selectStrategy(obj),this._subscription=this._strategy.createSubscription(obj,function(value){return _this._updateLatestValue(obj,value)})},AsyncPipe.prototype._selectStrategy=function(obj){if(lang_1.isPromise(obj))return _promiseStrategy;if(async_1.ObservableWrapper.isObservable(obj))return _observableStrategy;throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(AsyncPipe,obj)},AsyncPipe.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},AsyncPipe.prototype._updateLatestValue=function(async,value){async===this._obj&&(this._latestValue=value,this._ref.markForCheck())},AsyncPipe=__decorate([core_1.Pipe({name:"async",pure:!1}),core_1.Injectable(),__metadata("design:paramtypes",[core_1.ChangeDetectorRef])],AsyncPipe)}();return exports.AsyncPipe=AsyncPipe,global.define=__define,module.exports}),$__System.registerDynamic("c",["7","a","b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),core_1=$__require("a"),invalid_pipe_argument_exception_1=$__require("b"),UpperCasePipe=function(){function UpperCasePipe(){}return UpperCasePipe.prototype.transform=function(value,args){if(void 0===args&&(args=null),lang_1.isBlank(value))return value;if(!lang_1.isString(value))throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(UpperCasePipe,value);return value.toUpperCase()},UpperCasePipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"uppercase"}),core_1.Injectable(),__metadata("design:paramtypes",[])],UpperCasePipe)}();return exports.UpperCasePipe=UpperCasePipe,global.define=__define,module.exports}),$__System.registerDynamic("d",["7","a","b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),core_1=$__require("a"),invalid_pipe_argument_exception_1=$__require("b"),LowerCasePipe=function(){function LowerCasePipe(){}return LowerCasePipe.prototype.transform=function(value,args){if(void 0===args&&(args=null),lang_1.isBlank(value))return value;if(!lang_1.isString(value))throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(LowerCasePipe,value);return value.toLowerCase()},LowerCasePipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"lowercase"}),core_1.Injectable(),__metadata("design:paramtypes",[])],LowerCasePipe)}();return exports.LowerCasePipe=LowerCasePipe,global.define=__define,module.exports}),$__System.registerDynamic("e",["7","a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),core_1=$__require("a"),JsonPipe=function(){function JsonPipe(){}return JsonPipe.prototype.transform=function(value,args){return void 0===args&&(args=null),lang_1.Json.stringify(value)},JsonPipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"json",pure:!1}),core_1.Injectable(),__metadata("design:paramtypes",[])],JsonPipe)}();return exports.JsonPipe=JsonPipe,global.define=__define,module.exports}),$__System.registerDynamic("f",["7","10","11","a","b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),core_1=$__require("a"),invalid_pipe_argument_exception_1=$__require("b"),SlicePipe=function(){function SlicePipe(){}return SlicePipe.prototype.transform=function(value,args){if(void 0===args&&(args=null),lang_1.isBlank(args)||0==args.length)throw new exceptions_1.BaseException("Slice pipe requires one argument");if(!this.supports(value))throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(SlicePipe,value);if(lang_1.isBlank(value))return value;var start=args[0],end=args.length>1?args[1]:null;return lang_1.isString(value)?lang_1.StringWrapper.slice(value,start,end):collection_1.ListWrapper.slice(value,start,end)},SlicePipe.prototype.supports=function(obj){return lang_1.isString(obj)||lang_1.isArray(obj)},SlicePipe=__decorate([core_1.Pipe({name:"slice",pure:!1}),core_1.Injectable(),__metadata("design:paramtypes",[])],SlicePipe)}();return exports.SlicePipe=SlicePipe,global.define=__define,module.exports}),$__System.registerDynamic("12",["7","13","a","11","b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),intl_1=$__require("13"),core_1=$__require("a"),collection_1=$__require("11"),invalid_pipe_argument_exception_1=$__require("b"),defaultLocale="en-US",DatePipe=function(){function DatePipe(){}return DatePipe.prototype.transform=function(value,args){if(lang_1.isBlank(value))return null;if(!this.supports(value))throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(DatePipe,value);var pattern=lang_1.isPresent(args)&&args.length>0?args[0]:"mediumDate";return lang_1.isNumber(value)&&(value=lang_1.DateWrapper.fromMillis(value)),collection_1.StringMapWrapper.contains(DatePipe._ALIASES,pattern)&&(pattern=collection_1.StringMapWrapper.get(DatePipe._ALIASES,pattern)),intl_1.DateFormatter.format(value,defaultLocale,pattern)},DatePipe.prototype.supports=function(obj){return lang_1.isDate(obj)||lang_1.isNumber(obj)},DatePipe._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},DatePipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"date",pure:!0}),core_1.Injectable(),__metadata("design:paramtypes",[])],DatePipe)}();return exports.DatePipe=DatePipe,global.define=__define,module.exports}),$__System.registerDynamic("13",[],!0,function($__require,exports,module){"use strict";function digitCondition(len){return 2==len?"2-digit":"numeric"}function nameCondition(len){return 4>len?"short":"long"}function extractComponents(pattern){for(var j,ret={},i=0;i<pattern.length;){for(j=i;j<pattern.length&&pattern[j]==pattern[i];)j++;var len=j-i;switch(pattern[i]){case"G":ret.era=nameCondition(len);break;case"y":ret.year=digitCondition(len);break;case"M":len>=3?ret.month=nameCondition(len):ret.month=digitCondition(len);break;case"d":ret.day=digitCondition(len);break;case"E":ret.weekday=nameCondition(len);break;case"j":ret.hour=digitCondition(len);break;case"h":ret.hour=digitCondition(len),ret.hour12=!0;break;case"H":ret.hour=digitCondition(len),ret.hour12=!1;break;case"m":ret.minute=digitCondition(len);break;case"s":ret.second=digitCondition(len);break;case"z":ret.timeZoneName="long";break;case"Z":ret.timeZoneName="short"}i=j}return ret}var global=this,__define=global.define;global.define=void 0,function(NumberFormatStyle){NumberFormatStyle[NumberFormatStyle.Decimal=0]="Decimal",NumberFormatStyle[NumberFormatStyle.Percent=1]="Percent",NumberFormatStyle[NumberFormatStyle.Currency=2]="Currency"}(exports.NumberFormatStyle||(exports.NumberFormatStyle={}));var NumberFormatStyle=exports.NumberFormatStyle,NumberFormatter=function(){function NumberFormatter(){}return NumberFormatter.format=function(num,locale,style,_a){var _b=void 0===_a?{}:_a,_c=_b.minimumIntegerDigits,minimumIntegerDigits=void 0===_c?1:_c,_d=_b.minimumFractionDigits,minimumFractionDigits=void 0===_d?0:_d,_e=_b.maximumFractionDigits,maximumFractionDigits=void 0===_e?3:_e,currency=_b.currency,_f=_b.currencyAsSymbol,currencyAsSymbol=void 0===_f?!1:_f,intlOptions={minimumIntegerDigits:minimumIntegerDigits,minimumFractionDigits:minimumFractionDigits,maximumFractionDigits:maximumFractionDigits};return intlOptions.style=NumberFormatStyle[style].toLowerCase(),style==NumberFormatStyle.Currency&&(intlOptions.currency=currency,intlOptions.currencyDisplay=currencyAsSymbol?"symbol":"code"),new Intl.NumberFormat(locale,intlOptions).format(num)},NumberFormatter}();exports.NumberFormatter=NumberFormatter;var dateFormatterCache=new Map,DateFormatter=function(){function DateFormatter(){}return DateFormatter.format=function(date,locale,pattern){var key=locale+pattern;if(dateFormatterCache.has(key))return dateFormatterCache.get(key).format(date);var formatter=new Intl.DateTimeFormat(locale,extractComponents(pattern));return dateFormatterCache.set(key,formatter),formatter.format(date)},DateFormatter}();return exports.DateFormatter=DateFormatter,global.define=__define,module.exports}),$__System.registerDynamic("b",["7","10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("7"),exceptions_1=$__require("10"),InvalidPipeArgumentException=function(_super){function InvalidPipeArgumentException(type,value){_super.call(this,"Invalid argument '"+value+"' for pipe '"+lang_1.stringify(type)+"'")}return __extends(InvalidPipeArgumentException,_super),InvalidPipeArgumentException}(exceptions_1.BaseException);return exports.InvalidPipeArgumentException=InvalidPipeArgumentException,global.define=__define,module.exports}),$__System.registerDynamic("14",["7","10","13","a","11","b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),exceptions_1=$__require("10"),intl_1=$__require("13"),core_1=$__require("a"),collection_1=$__require("11"),invalid_pipe_argument_exception_1=$__require("b"),defaultLocale="en-US",_re=lang_1.RegExpWrapper.create("^(\\d+)?\\.((\\d+)(\\-(\\d+))?)?$"),NumberPipe=function(){function NumberPipe(){}return NumberPipe._format=function(value,style,digits,currency,currencyAsSymbol){if(void 0===currency&&(currency=null),void 0===currencyAsSymbol&&(currencyAsSymbol=!1),lang_1.isBlank(value))return null;if(!lang_1.isNumber(value))throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(NumberPipe,value);var minInt=1,minFraction=0,maxFraction=3;if(lang_1.isPresent(digits)){var parts=lang_1.RegExpWrapper.firstMatch(_re,digits);if(lang_1.isBlank(parts))throw new exceptions_1.BaseException(digits+" is not a valid digit info for number pipes");lang_1.isPresent(parts[1])&&(minInt=lang_1.NumberWrapper.parseIntAutoRadix(parts[1])),lang_1.isPresent(parts[3])&&(minFraction=lang_1.NumberWrapper.parseIntAutoRadix(parts[3])),lang_1.isPresent(parts[5])&&(maxFraction=lang_1.NumberWrapper.parseIntAutoRadix(parts[5]))}return intl_1.NumberFormatter.format(value,defaultLocale,style,{minimumIntegerDigits:minInt,minimumFractionDigits:minFraction,maximumFractionDigits:maxFraction,currency:currency,currencyAsSymbol:currencyAsSymbol})},NumberPipe=__decorate([lang_1.CONST(),core_1.Injectable(),__metadata("design:paramtypes",[])],NumberPipe)}();exports.NumberPipe=NumberPipe;var DecimalPipe=function(_super){function DecimalPipe(){_super.apply(this,arguments)}return __extends(DecimalPipe,_super),DecimalPipe.prototype.transform=function(value,args){var digits=collection_1.ListWrapper.first(args);return NumberPipe._format(value,intl_1.NumberFormatStyle.Decimal,digits)},DecimalPipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"number"}),core_1.Injectable(),__metadata("design:paramtypes",[])],DecimalPipe)}(NumberPipe);exports.DecimalPipe=DecimalPipe;var PercentPipe=function(_super){function PercentPipe(){_super.apply(this,arguments)}return __extends(PercentPipe,_super),PercentPipe.prototype.transform=function(value,args){var digits=collection_1.ListWrapper.first(args);return NumberPipe._format(value,intl_1.NumberFormatStyle.Percent,digits)},PercentPipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"percent"}),core_1.Injectable(),__metadata("design:paramtypes",[])],PercentPipe)}(NumberPipe);exports.PercentPipe=PercentPipe;var CurrencyPipe=function(_super){function CurrencyPipe(){_super.apply(this,arguments)}return __extends(CurrencyPipe,_super),CurrencyPipe.prototype.transform=function(value,args){var currencyCode=lang_1.isPresent(args)&&args.length>0?args[0]:"USD",symbolDisplay=lang_1.isPresent(args)&&args.length>1?args[1]:!1,digits=lang_1.isPresent(args)&&args.length>2?args[2]:null;return NumberPipe._format(value,intl_1.NumberFormatStyle.Currency,digits,currencyCode,symbolDisplay)},CurrencyPipe=__decorate([lang_1.CONST(),core_1.Pipe({name:"currency"}),core_1.Injectable(),__metadata("design:paramtypes",[])],CurrencyPipe)}(NumberPipe);return exports.CurrencyPipe=CurrencyPipe,global.define=__define,module.exports}),$__System.registerDynamic("15",["8","c","d","e","f","12","14","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var async_pipe_1=$__require("8"),uppercase_pipe_1=$__require("c"),lowercase_pipe_1=$__require("d"),json_pipe_1=$__require("e"),slice_pipe_1=$__require("f"),date_pipe_1=$__require("12"),number_pipe_1=$__require("14"),lang_1=$__require("7"),async_pipe_2=$__require("8");exports.AsyncPipe=async_pipe_2.AsyncPipe;var date_pipe_2=$__require("12");exports.DatePipe=date_pipe_2.DatePipe;var json_pipe_2=$__require("e");exports.JsonPipe=json_pipe_2.JsonPipe;var slice_pipe_2=$__require("f");exports.SlicePipe=slice_pipe_2.SlicePipe;var lowercase_pipe_2=$__require("d");exports.LowerCasePipe=lowercase_pipe_2.LowerCasePipe;var number_pipe_2=$__require("14");exports.NumberPipe=number_pipe_2.NumberPipe,exports.DecimalPipe=number_pipe_2.DecimalPipe,exports.PercentPipe=number_pipe_2.PercentPipe,exports.CurrencyPipe=number_pipe_2.CurrencyPipe;var uppercase_pipe_2=$__require("c");return exports.UpperCasePipe=uppercase_pipe_2.UpperCasePipe,exports.COMMON_PIPES=lang_1.CONST_EXPR([async_pipe_1.AsyncPipe,uppercase_pipe_1.UpperCasePipe,lowercase_pipe_1.LowerCasePipe,json_pipe_1.JsonPipe,slice_pipe_1.SlicePipe,number_pipe_1.DecimalPipe,number_pipe_1.PercentPipe,number_pipe_1.CurrencyPipe,date_pipe_1.DatePipe]),global.define=__define,module.exports}),$__System.registerDynamic("16",["7","9","a","17","18","19","1a","1b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("7"),async_1=$__require("9"),core_1=$__require("a"),control_container_1=$__require("17"),ng_control_1=$__require("18"),control_value_accessor_1=$__require("19"),shared_1=$__require("1a"),validators_1=$__require("1b"),controlNameBinding=lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl,{useExisting:core_1.forwardRef(function(){return NgControlName})})),NgControlName=function(_super){function NgControlName(_parent,_validators,_asyncValidators,valueAccessors){_super.call(this),this._parent=_parent,this._validators=_validators,this._asyncValidators=_asyncValidators,this.update=new async_1.EventEmitter,this._added=!1,this.valueAccessor=shared_1.selectValueAccessor(this,valueAccessors)}return __extends(NgControlName,_super),NgControlName.prototype.ngOnChanges=function(changes){this._added||(this.formDirective.addControl(this),this._added=!0),shared_1.isPropertyUpdated(changes,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},NgControlName.prototype.ngOnDestroy=function(){this.formDirective.removeControl(this)},NgControlName.prototype.viewToModelUpdate=function(newValue){this.viewModel=newValue,async_1.ObservableWrapper.callEmit(this.update,newValue)},Object.defineProperty(NgControlName.prototype,"path",{get:function(){return shared_1.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlName.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlName.prototype,"validator",{get:function(){return shared_1.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlName.prototype,"asyncValidator",{get:function(){return shared_1.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlName.prototype,"control",{get:function(){return this.formDirective.getControl(this)},enumerable:!0,configurable:!0}),NgControlName=__decorate([core_1.Directive({selector:"[ngControl]",bindings:[controlNameBinding],inputs:["name: ngControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),__param(0,core_1.Host()),__param(0,core_1.SkipSelf()),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_VALIDATORS)),__param(2,core_1.Optional()),__param(2,core_1.Self()),__param(2,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__param(3,core_1.Optional()),__param(3,core_1.Self()),__param(3,core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)),__metadata("design:paramtypes",[control_container_1.ControlContainer,Array,Array,Array])],NgControlName)}(ng_control_1.NgControl);return exports.NgControlName=NgControlName,global.define=__define,module.exports}),$__System.registerDynamic("1c",["7","11","9","a","18","1b","19","1a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("7"),collection_1=$__require("11"),async_1=$__require("9"),core_1=$__require("a"),ng_control_1=$__require("18"),validators_1=$__require("1b"),control_value_accessor_1=$__require("19"),shared_1=$__require("1a"),formControlBinding=lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl,{useExisting:core_1.forwardRef(function(){return NgFormControl})})),NgFormControl=function(_super){function NgFormControl(_validators,_asyncValidators,valueAccessors){_super.call(this),this._validators=_validators,this._asyncValidators=_asyncValidators,this.update=new async_1.EventEmitter,this.valueAccessor=shared_1.selectValueAccessor(this,valueAccessors)}return __extends(NgFormControl,_super),NgFormControl.prototype.ngOnChanges=function(changes){this._isControlChanged(changes)&&(shared_1.setUpControl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})),shared_1.isPropertyUpdated(changes,this.viewModel)&&(this.form.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(NgFormControl.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(NgFormControl.prototype,"validator",{get:function(){return shared_1.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgFormControl.prototype,"asyncValidator",{get:function(){return shared_1.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgFormControl.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),NgFormControl.prototype.viewToModelUpdate=function(newValue){this.viewModel=newValue,async_1.ObservableWrapper.callEmit(this.update,newValue)},NgFormControl.prototype._isControlChanged=function(changes){return collection_1.StringMapWrapper.contains(changes,"form")},NgFormControl=__decorate([core_1.Directive({selector:"[ngFormControl]",bindings:[formControlBinding],inputs:["form: ngFormControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),__param(0,core_1.Optional()),__param(0,core_1.Self()),__param(0,core_1.Inject(validators_1.NG_VALIDATORS)),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__param(2,core_1.Optional()),__param(2,core_1.Self()),__param(2,core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)),__metadata("design:paramtypes",[Array,Array,Array])],NgFormControl)}(ng_control_1.NgControl);return exports.NgFormControl=NgFormControl,global.define=__define,module.exports}),$__System.registerDynamic("1d",["7","9","a","19","18","1e","1b","1a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("7"),async_1=$__require("9"),core_1=$__require("a"),control_value_accessor_1=$__require("19"),ng_control_1=$__require("18"),model_1=$__require("1e"),validators_1=$__require("1b"),shared_1=$__require("1a"),formControlBinding=lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl,{useExisting:core_1.forwardRef(function(){return NgModel})})),NgModel=function(_super){function NgModel(_validators,_asyncValidators,valueAccessors){_super.call(this),this._validators=_validators,this._asyncValidators=_asyncValidators,this._control=new model_1.Control,this._added=!1,this.update=new async_1.EventEmitter,this.valueAccessor=shared_1.selectValueAccessor(this,valueAccessors)}return __extends(NgModel,_super),NgModel.prototype.ngOnChanges=function(changes){this._added||(shared_1.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1}),this._added=!0),shared_1.isPropertyUpdated(changes,this.viewModel)&&(this._control.updateValue(this.model),this.viewModel=this.model)},Object.defineProperty(NgModel.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"validator",{get:function(){return shared_1.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"asyncValidator",{get:function(){return shared_1.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),NgModel.prototype.viewToModelUpdate=function(newValue){this.viewModel=newValue,async_1.ObservableWrapper.callEmit(this.update,newValue)},NgModel=__decorate([core_1.Directive({selector:"[ngModel]:not([ngControl]):not([ngFormControl])",bindings:[formControlBinding],inputs:["model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}),__param(0,core_1.Optional()),__param(0,core_1.Self()),__param(0,core_1.Inject(validators_1.NG_VALIDATORS)),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__param(2,core_1.Optional()),__param(2,core_1.Self()),__param(2,core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)),__metadata("design:paramtypes",[Array,Array,Array])],NgModel)}(ng_control_1.NgControl);return exports.NgModel=NgModel,global.define=__define,module.exports}),$__System.registerDynamic("1f",["a","7","17","1a","1b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d;
}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},core_1=$__require("a"),lang_1=$__require("7"),control_container_1=$__require("17"),shared_1=$__require("1a"),validators_1=$__require("1b"),controlGroupProvider=lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer,{useExisting:core_1.forwardRef(function(){return NgControlGroup})})),NgControlGroup=function(_super){function NgControlGroup(parent,_validators,_asyncValidators){_super.call(this),this._validators=_validators,this._asyncValidators=_asyncValidators,this._parent=parent}return __extends(NgControlGroup,_super),NgControlGroup.prototype.ngOnInit=function(){this.formDirective.addControlGroup(this)},NgControlGroup.prototype.ngOnDestroy=function(){this.formDirective.removeControlGroup(this)},Object.defineProperty(NgControlGroup.prototype,"control",{get:function(){return this.formDirective.getControlGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlGroup.prototype,"path",{get:function(){return shared_1.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlGroup.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlGroup.prototype,"validator",{get:function(){return shared_1.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlGroup.prototype,"asyncValidator",{get:function(){return shared_1.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),NgControlGroup=__decorate([core_1.Directive({selector:"[ngControlGroup]",providers:[controlGroupProvider],inputs:["name: ngControlGroup"],exportAs:"ngForm"}),__param(0,core_1.Host()),__param(0,core_1.SkipSelf()),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_VALIDATORS)),__param(2,core_1.Optional()),__param(2,core_1.Self()),__param(2,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__metadata("design:paramtypes",[control_container_1.ControlContainer,Array,Array])],NgControlGroup)}(control_container_1.ControlContainer);return exports.NgControlGroup=NgControlGroup,global.define=__define,module.exports}),$__System.registerDynamic("20",["7","11","9","a","17","1a","1b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("7"),collection_1=$__require("11"),async_1=$__require("9"),core_1=$__require("a"),control_container_1=$__require("17"),shared_1=$__require("1a"),validators_1=$__require("1b"),formDirectiveProvider=lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer,{useExisting:core_1.forwardRef(function(){return NgFormModel})})),NgFormModel=function(_super){function NgFormModel(_validators,_asyncValidators){_super.call(this),this._validators=_validators,this._asyncValidators=_asyncValidators,this.form=null,this.directives=[],this.ngSubmit=new async_1.EventEmitter}return __extends(NgFormModel,_super),NgFormModel.prototype.ngOnChanges=function(changes){if(collection_1.StringMapWrapper.contains(changes,"form")){var sync=shared_1.composeValidators(this._validators);this.form.validator=validators_1.Validators.compose([this.form.validator,sync]);var async=shared_1.composeAsyncValidators(this._asyncValidators);this.form.asyncValidator=validators_1.Validators.composeAsync([this.form.asyncValidator,async]),this.form.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}this._updateDomValue()},Object.defineProperty(NgFormModel.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(NgFormModel.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(NgFormModel.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),NgFormModel.prototype.addControl=function(dir){var ctrl=this.form.find(dir.path);shared_1.setUpControl(ctrl,dir),ctrl.updateValueAndValidity({emitEvent:!1}),this.directives.push(dir)},NgFormModel.prototype.getControl=function(dir){return this.form.find(dir.path)},NgFormModel.prototype.removeControl=function(dir){collection_1.ListWrapper.remove(this.directives,dir)},NgFormModel.prototype.addControlGroup=function(dir){var ctrl=this.form.find(dir.path);shared_1.setUpControlGroup(ctrl,dir),ctrl.updateValueAndValidity({emitEvent:!1})},NgFormModel.prototype.removeControlGroup=function(dir){},NgFormModel.prototype.getControlGroup=function(dir){return this.form.find(dir.path)},NgFormModel.prototype.updateModel=function(dir,value){var ctrl=this.form.find(dir.path);ctrl.updateValue(value)},NgFormModel.prototype.onSubmit=function(){return async_1.ObservableWrapper.callEmit(this.ngSubmit,null),!1},NgFormModel.prototype._updateDomValue=function(){var _this=this;this.directives.forEach(function(dir){var ctrl=_this.form.find(dir.path);dir.valueAccessor.writeValue(ctrl.value)})},NgFormModel=__decorate([core_1.Directive({selector:"[ngFormModel]",bindings:[formDirectiveProvider],inputs:["form: ngFormModel"],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}),__param(0,core_1.Optional()),__param(0,core_1.Self()),__param(0,core_1.Inject(validators_1.NG_VALIDATORS)),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__metadata("design:paramtypes",[Array,Array])],NgFormModel)}(control_container_1.ControlContainer);return exports.NgFormModel=NgFormModel,global.define=__define,module.exports}),$__System.registerDynamic("17",["21"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},abstract_control_directive_1=$__require("21"),ControlContainer=function(_super){function ControlContainer(){_super.apply(this,arguments)}return __extends(ControlContainer,_super),Object.defineProperty(ControlContainer.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(ControlContainer.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),ControlContainer}(abstract_control_directive_1.AbstractControlDirective);return exports.ControlContainer=ControlContainer,global.define=__define,module.exports}),$__System.registerDynamic("22",[],!0,function($__require,exports,module){"use strict";function normalizeValidator(validator){return void 0!==validator.validate?function(c){return validator.validate(c)}:validator}var global=this,__define=global.define;return global.define=void 0,exports.normalizeValidator=normalizeValidator,global.define=__define,module.exports}),$__System.registerDynamic("1a",["11","7","10","1b","23","24","25","26","27","22"],!0,function($__require,exports,module){"use strict";function controlPath(name,parent){var p=collection_1.ListWrapper.clone(parent.path);return p.push(name),p}function setUpControl(control,dir){lang_1.isBlank(control)&&_throwError(dir,"Cannot find control"),lang_1.isBlank(dir.valueAccessor)&&_throwError(dir,"No value accessor for"),control.validator=validators_1.Validators.compose([control.validator,dir.validator]),control.asyncValidator=validators_1.Validators.composeAsync([control.asyncValidator,dir.asyncValidator]),dir.valueAccessor.writeValue(control.value),dir.valueAccessor.registerOnChange(function(newValue){dir.viewToModelUpdate(newValue),control.updateValue(newValue,{emitModelToViewChange:!1}),control.markAsDirty()}),control.registerOnChange(function(newValue){return dir.valueAccessor.writeValue(newValue)}),dir.valueAccessor.registerOnTouched(function(){return control.markAsTouched()})}function setUpControlGroup(control,dir){lang_1.isBlank(control)&&_throwError(dir,"Cannot find control"),control.validator=validators_1.Validators.compose([control.validator,dir.validator]),control.asyncValidator=validators_1.Validators.composeAsync([control.asyncValidator,dir.asyncValidator])}function _throwError(dir,message){var path=dir.path.join(" -> ");throw new exceptions_1.BaseException(message+" '"+path+"'")}function composeValidators(validators){return lang_1.isPresent(validators)?validators_1.Validators.compose(validators.map(normalize_validator_1.normalizeValidator)):null}function composeAsyncValidators(validators){return lang_1.isPresent(validators)?validators_1.Validators.composeAsync(validators.map(normalize_validator_1.normalizeValidator)):null}function isPropertyUpdated(changes,viewModel){if(!collection_1.StringMapWrapper.contains(changes,"model"))return!1;var change=changes.model;return change.isFirstChange()?!0:!lang_1.looseIdentical(viewModel,change.currentValue)}function selectValueAccessor(dir,valueAccessors){if(lang_1.isBlank(valueAccessors))return null;var defaultAccessor,builtinAccessor,customAccessor;return valueAccessors.forEach(function(v){lang_1.hasConstructor(v,default_value_accessor_1.DefaultValueAccessor)?defaultAccessor=v:lang_1.hasConstructor(v,checkbox_value_accessor_1.CheckboxControlValueAccessor)||lang_1.hasConstructor(v,number_value_accessor_1.NumberValueAccessor)||lang_1.hasConstructor(v,select_control_value_accessor_1.SelectControlValueAccessor)||lang_1.hasConstructor(v,radio_control_value_accessor_1.RadioControlValueAccessor)?(lang_1.isPresent(builtinAccessor)&&_throwError(dir,"More than one built-in value accessor matches"),builtinAccessor=v):(lang_1.isPresent(customAccessor)&&_throwError(dir,"More than one custom value accessor matches"),customAccessor=v)}),lang_1.isPresent(customAccessor)?customAccessor:lang_1.isPresent(builtinAccessor)?builtinAccessor:lang_1.isPresent(defaultAccessor)?defaultAccessor:(_throwError(dir,"No valid value accessor for"),null)}var global=this,__define=global.define;global.define=void 0;var collection_1=$__require("11"),lang_1=$__require("7"),exceptions_1=$__require("10"),validators_1=$__require("1b"),default_value_accessor_1=$__require("23"),number_value_accessor_1=$__require("24"),checkbox_value_accessor_1=$__require("25"),select_control_value_accessor_1=$__require("26"),radio_control_value_accessor_1=$__require("27"),normalize_validator_1=$__require("22");return exports.controlPath=controlPath,exports.setUpControl=setUpControl,exports.setUpControlGroup=setUpControlGroup,exports.composeValidators=composeValidators,exports.composeAsyncValidators=composeAsyncValidators,exports.isPropertyUpdated=isPropertyUpdated,exports.selectValueAccessor=selectValueAccessor,global.define=__define,module.exports}),$__System.registerDynamic("28",["9","11","7","a","17","1e","1a","1b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},async_1=$__require("9"),collection_1=$__require("11"),lang_1=$__require("7"),core_1=$__require("a"),control_container_1=$__require("17"),model_1=$__require("1e"),shared_1=$__require("1a"),validators_1=$__require("1b"),formDirectiveProvider=lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer,{useExisting:core_1.forwardRef(function(){return NgForm})})),NgForm=function(_super){function NgForm(validators,asyncValidators){_super.call(this),this.ngSubmit=new async_1.EventEmitter,this.form=new model_1.ControlGroup({},null,shared_1.composeValidators(validators),shared_1.composeAsyncValidators(asyncValidators))}return __extends(NgForm,_super),Object.defineProperty(NgForm.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(NgForm.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(NgForm.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(NgForm.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),NgForm.prototype.addControl=function(dir){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var container=_this._findContainer(dir.path),ctrl=new model_1.Control;shared_1.setUpControl(ctrl,dir),container.addControl(dir.name,ctrl),ctrl.updateValueAndValidity({emitEvent:!1})})},NgForm.prototype.getControl=function(dir){return this.form.find(dir.path)},NgForm.prototype.removeControl=function(dir){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var container=_this._findContainer(dir.path);lang_1.isPresent(container)&&(container.removeControl(dir.name),container.updateValueAndValidity({emitEvent:!1}))})},NgForm.prototype.addControlGroup=function(dir){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var container=_this._findContainer(dir.path),group=new model_1.ControlGroup({});shared_1.setUpControlGroup(group,dir),container.addControl(dir.name,group),group.updateValueAndValidity({emitEvent:!1})})},NgForm.prototype.removeControlGroup=function(dir){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var container=_this._findContainer(dir.path);lang_1.isPresent(container)&&(container.removeControl(dir.name),container.updateValueAndValidity({emitEvent:!1}))})},NgForm.prototype.getControlGroup=function(dir){return this.form.find(dir.path)},NgForm.prototype.updateModel=function(dir,value){var _this=this;async_1.PromiseWrapper.scheduleMicrotask(function(){var ctrl=_this.form.find(dir.path);ctrl.updateValue(value)})},NgForm.prototype.onSubmit=function(){return async_1.ObservableWrapper.callEmit(this.ngSubmit,null),!1},NgForm.prototype._findContainer=function(path){return path.pop(),collection_1.ListWrapper.isEmpty(path)?this.form:this.form.find(path)},NgForm=__decorate([core_1.Directive({selector:"form:not([ngNoForm]):not([ngFormModel]),ngForm,[ngForm]",bindings:[formDirectiveProvider],host:{"(submit)":"onSubmit()"},outputs:["ngSubmit"],exportAs:"ngForm"}),__param(0,core_1.Optional()),__param(0,core_1.Self()),__param(0,core_1.Inject(validators_1.NG_VALIDATORS)),__param(1,core_1.Optional()),__param(1,core_1.Self()),__param(1,core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),__metadata("design:paramtypes",[Array,Array])],NgForm)}(control_container_1.ControlContainer);return exports.NgForm=NgForm,global.define=__define,module.exports}),$__System.registerDynamic("23",["a","19","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),control_value_accessor_1=$__require("19"),lang_1=$__require("7"),DEFAULT_VALUE_ACCESSOR=lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR,{useExisting:core_1.forwardRef(function(){return DefaultValueAccessor}),multi:!0})),DefaultValueAccessor=function(){function DefaultValueAccessor(_renderer,_elementRef){this._renderer=_renderer,this._elementRef=_elementRef,this.onChange=function(_){},this.onTouched=function(){}}return DefaultValueAccessor.prototype.writeValue=function(value){var normalizedValue=lang_1.isBlank(value)?"":value;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",normalizedValue)},DefaultValueAccessor.prototype.registerOnChange=function(fn){this.onChange=fn},DefaultValueAccessor.prototype.registerOnTouched=function(fn){this.onTouched=fn},DefaultValueAccessor=__decorate([core_1.Directive({selector:"input:not([type=checkbox])[ngControl],textarea[ngControl],input:not([type=checkbox])[ngFormControl],textarea[ngFormControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[DEFAULT_VALUE_ACCESSOR]}),__metadata("design:paramtypes",[core_1.Renderer,core_1.ElementRef])],DefaultValueAccessor)}();return exports.DefaultValueAccessor=DefaultValueAccessor,global.define=__define,module.exports}),$__System.registerDynamic("25",["a","19","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),control_value_accessor_1=$__require("19"),lang_1=$__require("7"),CHECKBOX_VALUE_ACCESSOR=lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR,{useExisting:core_1.forwardRef(function(){return CheckboxControlValueAccessor}),multi:!0})),CheckboxControlValueAccessor=function(){function CheckboxControlValueAccessor(_renderer,_elementRef){this._renderer=_renderer,this._elementRef=_elementRef,this.onChange=function(_){},this.onTouched=function(){}}return CheckboxControlValueAccessor.prototype.writeValue=function(value){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",value)},CheckboxControlValueAccessor.prototype.registerOnChange=function(fn){this.onChange=fn},CheckboxControlValueAccessor.prototype.registerOnTouched=function(fn){this.onTouched=fn},CheckboxControlValueAccessor=__decorate([core_1.Directive({selector:"input[type=checkbox][ngControl],input[type=checkbox][ngFormControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[CHECKBOX_VALUE_ACCESSOR]}),__metadata("design:paramtypes",[core_1.Renderer,core_1.ElementRef])],CheckboxControlValueAccessor)}();return exports.CheckboxControlValueAccessor=CheckboxControlValueAccessor,global.define=__define,module.exports}),$__System.registerDynamic("24",["a","19","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),control_value_accessor_1=$__require("19"),lang_1=$__require("7"),NUMBER_VALUE_ACCESSOR=lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR,{useExisting:core_1.forwardRef(function(){return NumberValueAccessor}),multi:!0})),NumberValueAccessor=function(){function NumberValueAccessor(_renderer,_elementRef){this._renderer=_renderer,this._elementRef=_elementRef,this.onChange=function(_){},this.onTouched=function(){}}return NumberValueAccessor.prototype.writeValue=function(value){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",value)},NumberValueAccessor.prototype.registerOnChange=function(fn){this.onChange=function(value){fn(lang_1.NumberWrapper.parseFloat(value))}},NumberValueAccessor.prototype.registerOnTouched=function(fn){this.onTouched=fn},NumberValueAccessor=__decorate([core_1.Directive({selector:"input[type=number][ngControl],input[type=number][ngFormControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[NUMBER_VALUE_ACCESSOR]}),__metadata("design:paramtypes",[core_1.Renderer,core_1.ElementRef])],NumberValueAccessor)}();return exports.NumberValueAccessor=NumberValueAccessor,global.define=__define,module.exports}),$__System.registerDynamic("29",["a","18","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},core_1=$__require("a"),ng_control_1=$__require("18"),lang_1=$__require("7"),NgControlStatus=function(){function NgControlStatus(cd){this._cd=cd}return Object.defineProperty(NgControlStatus.prototype,"ngClassUntouched",{get:function(){return lang_1.isPresent(this._cd.control)?this._cd.control.untouched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassTouched",{get:function(){return lang_1.isPresent(this._cd.control)?this._cd.control.touched:!1},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassPristine",{get:function(){return lang_1.isPresent(this._cd.control)?this._cd.control.pristine:!1},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassDirty",{get:function(){return lang_1.isPresent(this._cd.control)?this._cd.control.dirty:!1},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassValid",{get:function(){return lang_1.isPresent(this._cd.control)?this._cd.control.valid:!1},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassInvalid",{get:function(){return lang_1.isPresent(this._cd.control)?!this._cd.control.valid:!1},enumerable:!0,configurable:!0}),NgControlStatus=__decorate([core_1.Directive({selector:"[ngControl],[ngModel],[ngFormControl]",host:{"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid"}}),__param(0,core_1.Self()),__metadata("design:paramtypes",[ng_control_1.NgControl])],NgControlStatus)}();return exports.NgControlStatus=NgControlStatus,global.define=__define,module.exports}),$__System.registerDynamic("26",["a","9","19","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},core_1=$__require("a"),async_1=$__require("9"),control_value_accessor_1=$__require("19"),lang_1=$__require("7"),SELECT_VALUE_ACCESSOR=lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR,{useExisting:core_1.forwardRef(function(){return SelectControlValueAccessor}),multi:!0})),NgSelectOption=function(){function NgSelectOption(){}return NgSelectOption=__decorate([core_1.Directive({selector:"option"}),__metadata("design:paramtypes",[])],NgSelectOption)}();exports.NgSelectOption=NgSelectOption;var SelectControlValueAccessor=function(){function SelectControlValueAccessor(_renderer,_elementRef,query){this._renderer=_renderer,this._elementRef=_elementRef,this.onChange=function(_){},this.onTouched=function(){},this._updateValueWhenListOfOptionsChanges(query)}return SelectControlValueAccessor.prototype.writeValue=function(value){this.value=value,this._renderer.setElementProperty(this._elementRef.nativeElement,"value",value)},SelectControlValueAccessor.prototype.registerOnChange=function(fn){this.onChange=fn},SelectControlValueAccessor.prototype.registerOnTouched=function(fn){this.onTouched=fn},SelectControlValueAccessor.prototype._updateValueWhenListOfOptionsChanges=function(query){var _this=this;async_1.ObservableWrapper.subscribe(query.changes,function(_){return _this.writeValue(_this.value)})},SelectControlValueAccessor=__decorate([core_1.Directive({selector:"select[ngControl],select[ngFormControl],select[ngModel]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},bindings:[SELECT_VALUE_ACCESSOR]}),__param(2,core_1.Query(NgSelectOption,{descendants:!0})),__metadata("design:paramtypes",[core_1.Renderer,core_1.ElementRef,core_1.QueryList])],SelectControlValueAccessor)}();return exports.SelectControlValueAccessor=SelectControlValueAccessor,global.define=__define,module.exports}),$__System.registerDynamic("2a",["7","16","1c","1d","1f","20","28","23","25","24","27","29","26","2b","18"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),ng_control_name_1=$__require("16"),ng_form_control_1=$__require("1c"),ng_model_1=$__require("1d"),ng_control_group_1=$__require("1f"),ng_form_model_1=$__require("20"),ng_form_1=$__require("28"),default_value_accessor_1=$__require("23"),checkbox_value_accessor_1=$__require("25"),number_value_accessor_1=$__require("24"),radio_control_value_accessor_1=$__require("27"),ng_control_status_1=$__require("29"),select_control_value_accessor_1=$__require("26"),validators_1=$__require("2b"),ng_control_name_2=$__require("16");exports.NgControlName=ng_control_name_2.NgControlName;var ng_form_control_2=$__require("1c");exports.NgFormControl=ng_form_control_2.NgFormControl;var ng_model_2=$__require("1d");exports.NgModel=ng_model_2.NgModel;var ng_control_group_2=$__require("1f");exports.NgControlGroup=ng_control_group_2.NgControlGroup;var ng_form_model_2=$__require("20");exports.NgFormModel=ng_form_model_2.NgFormModel;var ng_form_2=$__require("28");exports.NgForm=ng_form_2.NgForm;var default_value_accessor_2=$__require("23");exports.DefaultValueAccessor=default_value_accessor_2.DefaultValueAccessor;var checkbox_value_accessor_2=$__require("25");exports.CheckboxControlValueAccessor=checkbox_value_accessor_2.CheckboxControlValueAccessor;var radio_control_value_accessor_2=$__require("27");exports.RadioControlValueAccessor=radio_control_value_accessor_2.RadioControlValueAccessor,exports.RadioButtonState=radio_control_value_accessor_2.RadioButtonState;var number_value_accessor_2=$__require("24");exports.NumberValueAccessor=number_value_accessor_2.NumberValueAccessor;var ng_control_status_2=$__require("29");exports.NgControlStatus=ng_control_status_2.NgControlStatus;var select_control_value_accessor_2=$__require("26");exports.SelectControlValueAccessor=select_control_value_accessor_2.SelectControlValueAccessor,exports.NgSelectOption=select_control_value_accessor_2.NgSelectOption;var validators_2=$__require("2b");exports.RequiredValidator=validators_2.RequiredValidator,exports.MinLengthValidator=validators_2.MinLengthValidator,exports.MaxLengthValidator=validators_2.MaxLengthValidator;var ng_control_1=$__require("18");return exports.NgControl=ng_control_1.NgControl,exports.FORM_DIRECTIVES=lang_1.CONST_EXPR([ng_control_name_1.NgControlName,ng_control_group_1.NgControlGroup,ng_form_control_1.NgFormControl,ng_model_1.NgModel,ng_form_model_1.NgFormModel,ng_form_1.NgForm,select_control_value_accessor_1.NgSelectOption,default_value_accessor_1.DefaultValueAccessor,number_value_accessor_1.NumberValueAccessor,checkbox_value_accessor_1.CheckboxControlValueAccessor,select_control_value_accessor_1.SelectControlValueAccessor,radio_control_value_accessor_1.RadioControlValueAccessor,ng_control_status_1.NgControlStatus,validators_1.RequiredValidator,validators_1.MinLengthValidator,validators_1.MaxLengthValidator]),global.define=__define,module.exports}),$__System.registerDynamic("1b",["7","2c","9","11","a","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";function _convertToPromise(obj){
return promise_1.PromiseWrapper.isPromise(obj)?obj:async_1.ObservableWrapper.toPromise(obj)}function _executeValidators(control,validators){return validators.map(function(v){return v(control)})}function _mergeErrors(arrayOfErrors){var res=arrayOfErrors.reduce(function(res,errors){return lang_1.isPresent(errors)?collection_1.StringMapWrapper.merge(res,errors):res},{});return collection_1.StringMapWrapper.isEmpty(res)?null:res}var lang_1=$__require("7"),promise_1=$__require("2c"),async_1=$__require("9"),collection_1=$__require("11"),core_1=$__require("a");exports.NG_VALIDATORS=lang_1.CONST_EXPR(new core_1.OpaqueToken("NgValidators")),exports.NG_ASYNC_VALIDATORS=lang_1.CONST_EXPR(new core_1.OpaqueToken("NgAsyncValidators"));var Validators=function(){function Validators(){}return Validators.required=function(control){return lang_1.isBlank(control.value)||lang_1.isString(control.value)&&""==control.value?{required:!0}:null},Validators.minLength=function(minLength){return function(control){if(lang_1.isPresent(Validators.required(control)))return null;var v=control.value;return v.length<minLength?{minlength:{requiredLength:minLength,actualLength:v.length}}:null}},Validators.maxLength=function(maxLength){return function(control){if(lang_1.isPresent(Validators.required(control)))return null;var v=control.value;return v.length>maxLength?{maxlength:{requiredLength:maxLength,actualLength:v.length}}:null}},Validators.nullValidator=function(c){return null},Validators.compose=function(validators){if(lang_1.isBlank(validators))return null;var presentValidators=validators.filter(lang_1.isPresent);return 0==presentValidators.length?null:function(control){return _mergeErrors(_executeValidators(control,presentValidators))}},Validators.composeAsync=function(validators){if(lang_1.isBlank(validators))return null;var presentValidators=validators.filter(lang_1.isPresent);return 0==presentValidators.length?null:function(control){var promises=_executeValidators(control,presentValidators).map(_convertToPromise);return promise_1.PromiseWrapper.all(promises).then(_mergeErrors)}},Validators}();exports.Validators=Validators}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("2b",["a","7","1b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},core_1=$__require("a"),lang_1=$__require("7"),validators_1=$__require("1b"),lang_2=$__require("7"),REQUIRED_VALIDATOR=lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS,{useValue:validators_1.Validators.required,multi:!0})),RequiredValidator=function(){function RequiredValidator(){}return RequiredValidator=__decorate([core_1.Directive({selector:"[required][ngControl],[required][ngFormControl],[required][ngModel]",providers:[REQUIRED_VALIDATOR]}),__metadata("design:paramtypes",[])],RequiredValidator)}();exports.RequiredValidator=RequiredValidator;var MIN_LENGTH_VALIDATOR=lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS,{useExisting:core_1.forwardRef(function(){return MinLengthValidator}),multi:!0})),MinLengthValidator=function(){function MinLengthValidator(minLength){this._validator=validators_1.Validators.minLength(lang_2.NumberWrapper.parseInt(minLength,10))}return MinLengthValidator.prototype.validate=function(c){return this._validator(c)},MinLengthValidator=__decorate([core_1.Directive({selector:"[minlength][ngControl],[minlength][ngFormControl],[minlength][ngModel]",providers:[MIN_LENGTH_VALIDATOR]}),__param(0,core_1.Attribute("minlength")),__metadata("design:paramtypes",[String])],MinLengthValidator)}();exports.MinLengthValidator=MinLengthValidator;var MAX_LENGTH_VALIDATOR=lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS,{useExisting:core_1.forwardRef(function(){return MaxLengthValidator}),multi:!0})),MaxLengthValidator=function(){function MaxLengthValidator(maxLength){this._validator=validators_1.Validators.maxLength(lang_2.NumberWrapper.parseInt(maxLength,10))}return MaxLengthValidator.prototype.validate=function(c){return this._validator(c)},MaxLengthValidator=__decorate([core_1.Directive({selector:"[maxlength][ngControl],[maxlength][ngFormControl],[maxlength][ngModel]",providers:[MAX_LENGTH_VALIDATOR]}),__param(0,core_1.Attribute("maxlength")),__metadata("design:paramtypes",[String])],MaxLengthValidator)}();return exports.MaxLengthValidator=MaxLengthValidator,global.define=__define,module.exports}),$__System.registerDynamic("1e",["7","9","2c","11"],!0,function($__require,exports,module){"use strict";function isControl(control){return control instanceof AbstractControl}function _find(control,path){return lang_1.isBlank(path)?null:(path instanceof Array||(path=path.split("/")),path instanceof Array&&collection_1.ListWrapper.isEmpty(path)?null:path.reduce(function(v,name){if(v instanceof ControlGroup)return lang_1.isPresent(v.controls[name])?v.controls[name]:null;if(v instanceof ControlArray){var index=name;return lang_1.isPresent(v.at(index))?v.at(index):null}return null},control))}function toObservable(r){return promise_1.PromiseWrapper.isPromise(r)?async_1.ObservableWrapper.fromPromise(r):r}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("7"),async_1=$__require("9"),promise_1=$__require("2c"),collection_1=$__require("11");exports.VALID="VALID",exports.INVALID="INVALID",exports.PENDING="PENDING",exports.isControl=isControl;var AbstractControl=function(){function AbstractControl(validator,asyncValidator){this.validator=validator,this.asyncValidator=asyncValidator,this._pristine=!0,this._touched=!1}return Object.defineProperty(AbstractControl.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"valid",{get:function(){return this._status===exports.VALID},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControl.prototype,"pending",{get:function(){return this._status==exports.PENDING},enumerable:!0,configurable:!0}),AbstractControl.prototype.markAsTouched=function(){this._touched=!0},AbstractControl.prototype.markAsDirty=function(_a){var onlySelf=(void 0===_a?{}:_a).onlySelf;onlySelf=lang_1.normalizeBool(onlySelf),this._pristine=!1,lang_1.isPresent(this._parent)&&!onlySelf&&this._parent.markAsDirty({onlySelf:onlySelf})},AbstractControl.prototype.markAsPending=function(_a){var onlySelf=(void 0===_a?{}:_a).onlySelf;onlySelf=lang_1.normalizeBool(onlySelf),this._status=exports.PENDING,lang_1.isPresent(this._parent)&&!onlySelf&&this._parent.markAsPending({onlySelf:onlySelf})},AbstractControl.prototype.setParent=function(parent){this._parent=parent},AbstractControl.prototype.updateValueAndValidity=function(_a){var _b=void 0===_a?{}:_a,onlySelf=_b.onlySelf,emitEvent=_b.emitEvent;onlySelf=lang_1.normalizeBool(onlySelf),emitEvent=lang_1.isPresent(emitEvent)?emitEvent:!0,this._updateValue(),this._errors=this._runValidator(),this._status=this._calculateStatus(),(this._status==exports.VALID||this._status==exports.PENDING)&&this._runAsyncValidator(emitEvent),emitEvent&&(async_1.ObservableWrapper.callEmit(this._valueChanges,this._value),async_1.ObservableWrapper.callEmit(this._statusChanges,this._status)),lang_1.isPresent(this._parent)&&!onlySelf&&this._parent.updateValueAndValidity({onlySelf:onlySelf,emitEvent:emitEvent})},AbstractControl.prototype._runValidator=function(){return lang_1.isPresent(this.validator)?this.validator(this):null},AbstractControl.prototype._runAsyncValidator=function(emitEvent){var _this=this;if(lang_1.isPresent(this.asyncValidator)){this._status=exports.PENDING,this._cancelExistingSubscription();var obs=toObservable(this.asyncValidator(this));this._asyncValidationSubscription=async_1.ObservableWrapper.subscribe(obs,function(res){return _this.setErrors(res,{emitEvent:emitEvent})})}},AbstractControl.prototype._cancelExistingSubscription=function(){lang_1.isPresent(this._asyncValidationSubscription)&&async_1.ObservableWrapper.dispose(this._asyncValidationSubscription)},AbstractControl.prototype.setErrors=function(errors,_a){var emitEvent=(void 0===_a?{}:_a).emitEvent;emitEvent=lang_1.isPresent(emitEvent)?emitEvent:!0,this._errors=errors,this._status=this._calculateStatus(),emitEvent&&async_1.ObservableWrapper.callEmit(this._statusChanges,this._status),lang_1.isPresent(this._parent)&&this._parent._updateControlsErrors()},AbstractControl.prototype.find=function(path){return _find(this,path)},AbstractControl.prototype.getError=function(errorCode,path){void 0===path&&(path=null);var control=lang_1.isPresent(path)&&!collection_1.ListWrapper.isEmpty(path)?this.find(path):this;return lang_1.isPresent(control)&&lang_1.isPresent(control._errors)?collection_1.StringMapWrapper.get(control._errors,errorCode):null},AbstractControl.prototype.hasError=function(errorCode,path){return void 0===path&&(path=null),lang_1.isPresent(this.getError(errorCode,path))},Object.defineProperty(AbstractControl.prototype,"root",{get:function(){for(var x=this;lang_1.isPresent(x._parent);)x=x._parent;return x},enumerable:!0,configurable:!0}),AbstractControl.prototype._updateControlsErrors=function(){this._status=this._calculateStatus(),lang_1.isPresent(this._parent)&&this._parent._updateControlsErrors()},AbstractControl.prototype._initObservables=function(){this._valueChanges=new async_1.EventEmitter,this._statusChanges=new async_1.EventEmitter},AbstractControl.prototype._calculateStatus=function(){return lang_1.isPresent(this._errors)?exports.INVALID:this._anyControlsHaveStatus(exports.PENDING)?exports.PENDING:this._anyControlsHaveStatus(exports.INVALID)?exports.INVALID:exports.VALID},AbstractControl}();exports.AbstractControl=AbstractControl;var Control=function(_super){function Control(value,validator,asyncValidator){void 0===value&&(value=null),void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null),_super.call(this,validator,asyncValidator),this._value=value,this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}return __extends(Control,_super),Control.prototype.updateValue=function(value,_a){var _b=void 0===_a?{}:_a,onlySelf=_b.onlySelf,emitEvent=_b.emitEvent,emitModelToViewChange=_b.emitModelToViewChange;emitModelToViewChange=lang_1.isPresent(emitModelToViewChange)?emitModelToViewChange:!0,this._value=value,lang_1.isPresent(this._onChange)&&emitModelToViewChange&&this._onChange(this._value),this.updateValueAndValidity({onlySelf:onlySelf,emitEvent:emitEvent})},Control.prototype._updateValue=function(){},Control.prototype._anyControlsHaveStatus=function(status){return!1},Control.prototype.registerOnChange=function(fn){this._onChange=fn},Control}(AbstractControl);exports.Control=Control;var ControlGroup=function(_super){function ControlGroup(controls,optionals,validator,asyncValidator){void 0===optionals&&(optionals=null),void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null),_super.call(this,validator,asyncValidator),this.controls=controls,this._optionals=lang_1.isPresent(optionals)?optionals:{},this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return __extends(ControlGroup,_super),ControlGroup.prototype.addControl=function(name,control){this.controls[name]=control,control.setParent(this)},ControlGroup.prototype.removeControl=function(name){collection_1.StringMapWrapper["delete"](this.controls,name)},ControlGroup.prototype.include=function(controlName){collection_1.StringMapWrapper.set(this._optionals,controlName,!0),this.updateValueAndValidity()},ControlGroup.prototype.exclude=function(controlName){collection_1.StringMapWrapper.set(this._optionals,controlName,!1),this.updateValueAndValidity()},ControlGroup.prototype.contains=function(controlName){var c=collection_1.StringMapWrapper.contains(this.controls,controlName);return c&&this._included(controlName)},ControlGroup.prototype._setParentForControls=function(){var _this=this;collection_1.StringMapWrapper.forEach(this.controls,function(control,name){control.setParent(_this)})},ControlGroup.prototype._updateValue=function(){this._value=this._reduceValue()},ControlGroup.prototype._anyControlsHaveStatus=function(status){var _this=this,res=!1;return collection_1.StringMapWrapper.forEach(this.controls,function(control,name){res=res||_this.contains(name)&&control.status==status}),res},ControlGroup.prototype._reduceValue=function(){return this._reduceChildren({},function(acc,control,name){return acc[name]=control.value,acc})},ControlGroup.prototype._reduceChildren=function(initValue,fn){var _this=this,res=initValue;return collection_1.StringMapWrapper.forEach(this.controls,function(control,name){_this._included(name)&&(res=fn(res,control,name))}),res},ControlGroup.prototype._included=function(controlName){var isOptional=collection_1.StringMapWrapper.contains(this._optionals,controlName);return!isOptional||collection_1.StringMapWrapper.get(this._optionals,controlName)},ControlGroup}(AbstractControl);exports.ControlGroup=ControlGroup;var ControlArray=function(_super){function ControlArray(controls,validator,asyncValidator){void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null),_super.call(this,validator,asyncValidator),this.controls=controls,this._initObservables(),this._setParentForControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}return __extends(ControlArray,_super),ControlArray.prototype.at=function(index){return this.controls[index]},ControlArray.prototype.push=function(control){this.controls.push(control),control.setParent(this),this.updateValueAndValidity()},ControlArray.prototype.insert=function(index,control){collection_1.ListWrapper.insert(this.controls,index,control),control.setParent(this),this.updateValueAndValidity()},ControlArray.prototype.removeAt=function(index){collection_1.ListWrapper.removeAt(this.controls,index),this.updateValueAndValidity()},Object.defineProperty(ControlArray.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),ControlArray.prototype._updateValue=function(){this._value=this.controls.map(function(control){return control.value})},ControlArray.prototype._anyControlsHaveStatus=function(status){return this.controls.some(function(c){return c.status==status})},ControlArray.prototype._setParentForControls=function(){var _this=this;this.controls.forEach(function(control){control.setParent(_this)})},ControlArray}(AbstractControl);return exports.ControlArray=ControlArray,global.define=__define,module.exports}),$__System.registerDynamic("2d",["a","11","7","1e"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),collection_1=$__require("11"),lang_1=$__require("7"),modelModule=$__require("1e"),FormBuilder=function(){function FormBuilder(){}return FormBuilder.prototype.group=function(controlsConfig,extra){void 0===extra&&(extra=null);var controls=this._reduceControls(controlsConfig),optionals=lang_1.isPresent(extra)?collection_1.StringMapWrapper.get(extra,"optionals"):null,validator=lang_1.isPresent(extra)?collection_1.StringMapWrapper.get(extra,"validator"):null,asyncValidator=lang_1.isPresent(extra)?collection_1.StringMapWrapper.get(extra,"asyncValidator"):null;return new modelModule.ControlGroup(controls,optionals,validator,asyncValidator)},FormBuilder.prototype.control=function(value,validator,asyncValidator){return void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null),new modelModule.Control(value,validator,asyncValidator)},FormBuilder.prototype.array=function(controlsConfig,validator,asyncValidator){var _this=this;void 0===validator&&(validator=null),void 0===asyncValidator&&(asyncValidator=null);var controls=controlsConfig.map(function(c){return _this._createControl(c)});return new modelModule.ControlArray(controls,validator,asyncValidator)},FormBuilder.prototype._reduceControls=function(controlsConfig){var _this=this,controls={};return collection_1.StringMapWrapper.forEach(controlsConfig,function(controlConfig,controlName){controls[controlName]=_this._createControl(controlConfig)}),controls},FormBuilder.prototype._createControl=function(controlConfig){if(controlConfig instanceof modelModule.Control||controlConfig instanceof modelModule.ControlGroup||controlConfig instanceof modelModule.ControlArray)return controlConfig;if(lang_1.isArray(controlConfig)){var value=controlConfig[0],validator=controlConfig.length>1?controlConfig[1]:null,asyncValidator=controlConfig.length>2?controlConfig[2]:null;return this.control(value,validator,asyncValidator)}return this.control(controlConfig)},FormBuilder=__decorate([core_1.Injectable(),__metadata("design:paramtypes",[])],FormBuilder)}();return exports.FormBuilder=FormBuilder,global.define=__define,module.exports}),$__System.registerDynamic("19",["a","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var core_1=$__require("a"),lang_1=$__require("7");return exports.NG_VALUE_ACCESSOR=lang_1.CONST_EXPR(new core_1.OpaqueToken("NgValueAccessor")),global.define=__define,module.exports}),$__System.registerDynamic("21",["7","10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),AbstractControlDirective=function(){function AbstractControlDirective(){}return Object.defineProperty(AbstractControlDirective.prototype,"control",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"value",{get:function(){return lang_1.isPresent(this.control)?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"valid",{get:function(){return lang_1.isPresent(this.control)?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"errors",{get:function(){return lang_1.isPresent(this.control)?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"pristine",{get:function(){return lang_1.isPresent(this.control)?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"dirty",{get:function(){return lang_1.isPresent(this.control)?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"touched",{get:function(){return lang_1.isPresent(this.control)?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"untouched",{get:function(){return lang_1.isPresent(this.control)?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),AbstractControlDirective}();return exports.AbstractControlDirective=AbstractControlDirective,global.define=__define,module.exports}),$__System.registerDynamic("18",["21","10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},abstract_control_directive_1=$__require("21"),exceptions_1=$__require("10"),NgControl=function(_super){function NgControl(){_super.apply(this,arguments),this.name=null,this.valueAccessor=null}return __extends(NgControl,_super),Object.defineProperty(NgControl.prototype,"validator",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(NgControl.prototype,"asyncValidator",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),NgControl}(abstract_control_directive_1.AbstractControlDirective);return exports.NgControl=NgControl,global.define=__define,module.exports}),$__System.registerDynamic("27",["a","19","18","7","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),control_value_accessor_1=$__require("19"),ng_control_1=$__require("18"),lang_1=$__require("7"),collection_1=$__require("11"),RADIO_VALUE_ACCESSOR=lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR,{useExisting:core_1.forwardRef(function(){return RadioControlValueAccessor}),multi:!0})),RadioControlRegistry=function(){function RadioControlRegistry(){this._accessors=[]}return RadioControlRegistry.prototype.add=function(control,accessor){this._accessors.push([control,accessor])},RadioControlRegistry.prototype.remove=function(accessor){for(var indexToRemove=-1,i=0;i<this._accessors.length;++i)this._accessors[i][1]===accessor&&(indexToRemove=i);collection_1.ListWrapper.removeAt(this._accessors,indexToRemove)},RadioControlRegistry.prototype.select=function(accessor){this._accessors.forEach(function(c){c[0].control.root===accessor._control.control.root&&c[1]!==accessor&&c[1].fireUncheck()})},RadioControlRegistry=__decorate([core_1.Injectable(),__metadata("design:paramtypes",[])],RadioControlRegistry)}();exports.RadioControlRegistry=RadioControlRegistry;var RadioButtonState=function(){function RadioButtonState(checked,value){this.checked=checked,this.value=value}return RadioButtonState}();exports.RadioButtonState=RadioButtonState;var RadioControlValueAccessor=function(){function RadioControlValueAccessor(_renderer,_elementRef,_registry,_injector){this._renderer=_renderer,this._elementRef=_elementRef,this._registry=_registry,this._injector=_injector,this.onChange=function(){},this.onTouched=function(){}}return RadioControlValueAccessor.prototype.ngOnInit=function(){this._control=this._injector.get(ng_control_1.NgControl),this._registry.add(this._control,this)},RadioControlValueAccessor.prototype.ngOnDestroy=function(){this._registry.remove(this)},RadioControlValueAccessor.prototype.writeValue=function(value){this._state=value,lang_1.isPresent(value)&&value.checked&&this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",!0)},RadioControlValueAccessor.prototype.registerOnChange=function(fn){var _this=this;this._fn=fn,this.onChange=function(){fn(new RadioButtonState(!0,_this._state.value)),_this._registry.select(_this)}},RadioControlValueAccessor.prototype.fireUncheck=function(){this._fn(new RadioButtonState(!1,this._state.value))},RadioControlValueAccessor.prototype.registerOnTouched=function(fn){this.onTouched=fn},__decorate([core_1.Input(),__metadata("design:type",String)],RadioControlValueAccessor.prototype,"name",void 0),RadioControlValueAccessor=__decorate([core_1.Directive({selector:"input[type=radio][ngControl],input[type=radio][ngFormControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[RADIO_VALUE_ACCESSOR]}),__metadata("design:paramtypes",[core_1.Renderer,core_1.ElementRef,RadioControlRegistry,core_1.Injector])],RadioControlValueAccessor)}();return exports.RadioControlValueAccessor=RadioControlValueAccessor,global.define=__define,module.exports}),$__System.registerDynamic("2e",["1e","21","17","16","1c","1d","18","1f","20","28","19","23","29","25","26","2a","1b","2b","2d","27","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var model_1=$__require("1e");exports.AbstractControl=model_1.AbstractControl,exports.Control=model_1.Control,exports.ControlGroup=model_1.ControlGroup,exports.ControlArray=model_1.ControlArray;var abstract_control_directive_1=$__require("21");exports.AbstractControlDirective=abstract_control_directive_1.AbstractControlDirective;var control_container_1=$__require("17");exports.ControlContainer=control_container_1.ControlContainer;var ng_control_name_1=$__require("16");exports.NgControlName=ng_control_name_1.NgControlName;var ng_form_control_1=$__require("1c");exports.NgFormControl=ng_form_control_1.NgFormControl;var ng_model_1=$__require("1d");exports.NgModel=ng_model_1.NgModel;var ng_control_1=$__require("18");exports.NgControl=ng_control_1.NgControl;var ng_control_group_1=$__require("1f");exports.NgControlGroup=ng_control_group_1.NgControlGroup;var ng_form_model_1=$__require("20");exports.NgFormModel=ng_form_model_1.NgFormModel;var ng_form_1=$__require("28");exports.NgForm=ng_form_1.NgForm;var control_value_accessor_1=$__require("19");exports.NG_VALUE_ACCESSOR=control_value_accessor_1.NG_VALUE_ACCESSOR;var default_value_accessor_1=$__require("23");exports.DefaultValueAccessor=default_value_accessor_1.DefaultValueAccessor;var ng_control_status_1=$__require("29");exports.NgControlStatus=ng_control_status_1.NgControlStatus;var checkbox_value_accessor_1=$__require("25");exports.CheckboxControlValueAccessor=checkbox_value_accessor_1.CheckboxControlValueAccessor;var select_control_value_accessor_1=$__require("26");exports.NgSelectOption=select_control_value_accessor_1.NgSelectOption,exports.SelectControlValueAccessor=select_control_value_accessor_1.SelectControlValueAccessor;var directives_1=$__require("2a");exports.FORM_DIRECTIVES=directives_1.FORM_DIRECTIVES,exports.RadioButtonState=directives_1.RadioButtonState;var validators_1=$__require("1b");exports.NG_VALIDATORS=validators_1.NG_VALIDATORS,exports.NG_ASYNC_VALIDATORS=validators_1.NG_ASYNC_VALIDATORS,exports.Validators=validators_1.Validators;var validators_2=$__require("2b");exports.RequiredValidator=validators_2.RequiredValidator,exports.MinLengthValidator=validators_2.MinLengthValidator,exports.MaxLengthValidator=validators_2.MaxLengthValidator;var form_builder_1=$__require("2d");exports.FormBuilder=form_builder_1.FormBuilder;var form_builder_2=$__require("2d"),radio_control_value_accessor_1=$__require("27"),lang_1=$__require("7");return exports.FORM_PROVIDERS=lang_1.CONST_EXPR([form_builder_2.FormBuilder,radio_control_value_accessor_1.RadioControlRegistry]),exports.FORM_BINDINGS=exports.FORM_PROVIDERS,global.define=__define,module.exports}),$__System.registerDynamic("2f",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;return global.define=void 0,global.define=__define,module.exports}),$__System.registerDynamic("30",["7","a","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),core_1=$__require("a"),collection_1=$__require("11"),NgClass=function(){function NgClass(_iterableDiffers,_keyValueDiffers,_ngEl,_renderer){this._iterableDiffers=_iterableDiffers,this._keyValueDiffers=_keyValueDiffers,this._ngEl=_ngEl,this._renderer=_renderer,this._initialClasses=[]}return Object.defineProperty(NgClass.prototype,"initialClasses",{set:function(v){this._applyInitialClasses(!0),this._initialClasses=lang_1.isPresent(v)&&lang_1.isString(v)?v.split(" "):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(NgClass.prototype,"rawClass",{set:function(v){this._cleanupClasses(this._rawClass),lang_1.isString(v)&&(v=v.split(" ")),this._rawClass=v,lang_1.isPresent(v)?collection_1.isListLikeIterable(v)?(this._differ=this._iterableDiffers.find(v).create(null),this._mode="iterable"):(this._differ=this._keyValueDiffers.find(v).create(null),this._mode="keyValue"):this._differ=null},enumerable:!0,configurable:!0}),NgClass.prototype.ngDoCheck=function(){if(lang_1.isPresent(this._differ)){var changes=this._differ.diff(this._rawClass);lang_1.isPresent(changes)&&("iterable"==this._mode?this._applyIterableChanges(changes):this._applyKeyValueChanges(changes))}},NgClass.prototype.ngOnDestroy=function(){this._cleanupClasses(this._rawClass)},NgClass.prototype._cleanupClasses=function(rawClassVal){this._applyClasses(rawClassVal,!0),this._applyInitialClasses(!1)},NgClass.prototype._applyKeyValueChanges=function(changes){var _this=this;changes.forEachAddedItem(function(record){_this._toggleClass(record.key,record.currentValue)}),changes.forEachChangedItem(function(record){
_this._toggleClass(record.key,record.currentValue)}),changes.forEachRemovedItem(function(record){record.previousValue&&_this._toggleClass(record.key,!1)})},NgClass.prototype._applyIterableChanges=function(changes){var _this=this;changes.forEachAddedItem(function(record){_this._toggleClass(record.item,!0)}),changes.forEachRemovedItem(function(record){_this._toggleClass(record.item,!1)})},NgClass.prototype._applyInitialClasses=function(isCleanup){var _this=this;this._initialClasses.forEach(function(className){return _this._toggleClass(className,!isCleanup)})},NgClass.prototype._applyClasses=function(rawClassVal,isCleanup){var _this=this;lang_1.isPresent(rawClassVal)&&(lang_1.isArray(rawClassVal)?rawClassVal.forEach(function(className){return _this._toggleClass(className,!isCleanup)}):rawClassVal instanceof Set?rawClassVal.forEach(function(className){return _this._toggleClass(className,!isCleanup)}):collection_1.StringMapWrapper.forEach(rawClassVal,function(expVal,className){expVal&&_this._toggleClass(className,!isCleanup)}))},NgClass.prototype._toggleClass=function(className,enabled){if(className=className.trim(),className.length>0)if(className.indexOf(" ")>-1)for(var classes=className.split(/\s+/g),i=0,len=classes.length;len>i;i++)this._renderer.setElementClass(this._ngEl.nativeElement,classes[i],enabled);else this._renderer.setElementClass(this._ngEl.nativeElement,className,enabled)},NgClass=__decorate([core_1.Directive({selector:"[ngClass]",inputs:["rawClass: ngClass","initialClasses: class"]}),__metadata("design:paramtypes",[core_1.IterableDiffers,core_1.KeyValueDiffers,core_1.ElementRef,core_1.Renderer])],NgClass)}();return exports.NgClass=NgClass,global.define=__define,module.exports}),$__System.registerDynamic("31",["a","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),lang_1=$__require("7"),NgFor=function(){function NgFor(_viewContainer,_templateRef,_iterableDiffers,_cdr){this._viewContainer=_viewContainer,this._templateRef=_templateRef,this._iterableDiffers=_iterableDiffers,this._cdr=_cdr}return Object.defineProperty(NgFor.prototype,"ngForOf",{set:function(value){this._ngForOf=value,lang_1.isBlank(this._differ)&&lang_1.isPresent(value)&&(this._differ=this._iterableDiffers.find(value).create(this._cdr,this._ngForTrackBy))},enumerable:!0,configurable:!0}),Object.defineProperty(NgFor.prototype,"ngForTemplate",{set:function(value){lang_1.isPresent(value)&&(this._templateRef=value)},enumerable:!0,configurable:!0}),Object.defineProperty(NgFor.prototype,"ngForTrackBy",{set:function(value){this._ngForTrackBy=value},enumerable:!0,configurable:!0}),NgFor.prototype.ngDoCheck=function(){if(lang_1.isPresent(this._differ)){var changes=this._differ.diff(this._ngForOf);lang_1.isPresent(changes)&&this._applyChanges(changes)}},NgFor.prototype._applyChanges=function(changes){var _this=this,recordViewTuples=[];changes.forEachRemovedItem(function(removedRecord){return recordViewTuples.push(new RecordViewTuple(removedRecord,null))}),changes.forEachMovedItem(function(movedRecord){return recordViewTuples.push(new RecordViewTuple(movedRecord,null))});var insertTuples=this._bulkRemove(recordViewTuples);changes.forEachAddedItem(function(addedRecord){return insertTuples.push(new RecordViewTuple(addedRecord,null))}),this._bulkInsert(insertTuples);for(var i=0;i<insertTuples.length;i++)this._perViewChange(insertTuples[i].view,insertTuples[i].record);for(var i=0,ilen=this._viewContainer.length;ilen>i;i++){var viewRef=this._viewContainer.get(i);viewRef.setLocal("last",i===ilen-1)}changes.forEachIdentityChange(function(record){var viewRef=_this._viewContainer.get(record.currentIndex);viewRef.setLocal("$implicit",record.item)})},NgFor.prototype._perViewChange=function(view,record){view.setLocal("$implicit",record.item),view.setLocal("index",record.currentIndex),view.setLocal("even",record.currentIndex%2==0),view.setLocal("odd",record.currentIndex%2==1)},NgFor.prototype._bulkRemove=function(tuples){tuples.sort(function(a,b){return a.record.previousIndex-b.record.previousIndex});for(var movedTuples=[],i=tuples.length-1;i>=0;i--){var tuple=tuples[i];lang_1.isPresent(tuple.record.currentIndex)?(tuple.view=this._viewContainer.detach(tuple.record.previousIndex),movedTuples.push(tuple)):this._viewContainer.remove(tuple.record.previousIndex)}return movedTuples},NgFor.prototype._bulkInsert=function(tuples){tuples.sort(function(a,b){return a.record.currentIndex-b.record.currentIndex});for(var i=0;i<tuples.length;i++){var tuple=tuples[i];lang_1.isPresent(tuple.view)?this._viewContainer.insert(tuple.view,tuple.record.currentIndex):tuple.view=this._viewContainer.createEmbeddedView(this._templateRef,tuple.record.currentIndex)}return tuples},NgFor=__decorate([core_1.Directive({selector:"[ngFor][ngForOf]",inputs:["ngForTrackBy","ngForOf","ngForTemplate"]}),__metadata("design:paramtypes",[core_1.ViewContainerRef,core_1.TemplateRef,core_1.IterableDiffers,core_1.ChangeDetectorRef])],NgFor)}();exports.NgFor=NgFor;var RecordViewTuple=function(){function RecordViewTuple(record,view){this.record=record,this.view=view}return RecordViewTuple}();return global.define=__define,module.exports}),$__System.registerDynamic("32",["a","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),lang_1=$__require("7"),NgIf=function(){function NgIf(_viewContainer,_templateRef){this._viewContainer=_viewContainer,this._templateRef=_templateRef,this._prevCondition=null}return Object.defineProperty(NgIf.prototype,"ngIf",{set:function(newCondition){!newCondition||!lang_1.isBlank(this._prevCondition)&&this._prevCondition?newCondition||!lang_1.isBlank(this._prevCondition)&&!this._prevCondition||(this._prevCondition=!1,this._viewContainer.clear()):(this._prevCondition=!0,this._viewContainer.createEmbeddedView(this._templateRef))},enumerable:!0,configurable:!0}),NgIf=__decorate([core_1.Directive({selector:"[ngIf]",inputs:["ngIf"]}),__metadata("design:paramtypes",[core_1.ViewContainerRef,core_1.TemplateRef])],NgIf)}();return exports.NgIf=NgIf,global.define=__define,module.exports}),$__System.registerDynamic("33",["a","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},core_1=$__require("a"),lang_1=$__require("7"),NgStyle=function(){function NgStyle(_differs,_ngEl,_renderer){this._differs=_differs,this._ngEl=_ngEl,this._renderer=_renderer}return Object.defineProperty(NgStyle.prototype,"rawStyle",{set:function(v){this._rawStyle=v,lang_1.isBlank(this._differ)&&lang_1.isPresent(v)&&(this._differ=this._differs.find(this._rawStyle).create(null))},enumerable:!0,configurable:!0}),NgStyle.prototype.ngDoCheck=function(){if(lang_1.isPresent(this._differ)){var changes=this._differ.diff(this._rawStyle);lang_1.isPresent(changes)&&this._applyChanges(changes)}},NgStyle.prototype._applyChanges=function(changes){var _this=this;changes.forEachAddedItem(function(record){_this._setStyle(record.key,record.currentValue)}),changes.forEachChangedItem(function(record){_this._setStyle(record.key,record.currentValue)}),changes.forEachRemovedItem(function(record){_this._setStyle(record.key,null)})},NgStyle.prototype._setStyle=function(name,val){this._renderer.setElementStyle(this._ngEl.nativeElement,name,val)},NgStyle=__decorate([core_1.Directive({selector:"[ngStyle]",inputs:["rawStyle: ngStyle"]}),__metadata("design:paramtypes",[core_1.KeyValueDiffers,core_1.ElementRef,core_1.Renderer])],NgStyle)}();return exports.NgStyle=NgStyle,global.define=__define,module.exports}),$__System.registerDynamic("34",["a","7","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},core_1=$__require("a"),lang_1=$__require("7"),collection_1=$__require("11"),_WHEN_DEFAULT=lang_1.CONST_EXPR(new Object),SwitchView=function(){function SwitchView(_viewContainerRef,_templateRef){this._viewContainerRef=_viewContainerRef,this._templateRef=_templateRef}return SwitchView.prototype.create=function(){this._viewContainerRef.createEmbeddedView(this._templateRef)},SwitchView.prototype.destroy=function(){this._viewContainerRef.clear()},SwitchView}();exports.SwitchView=SwitchView;var NgSwitch=function(){function NgSwitch(){this._useDefault=!1,this._valueViews=new collection_1.Map,this._activeViews=[]}return Object.defineProperty(NgSwitch.prototype,"ngSwitch",{set:function(value){this._emptyAllActiveViews(),this._useDefault=!1;var views=this._valueViews.get(value);lang_1.isBlank(views)&&(this._useDefault=!0,views=lang_1.normalizeBlank(this._valueViews.get(_WHEN_DEFAULT))),this._activateViews(views),this._switchValue=value},enumerable:!0,configurable:!0}),NgSwitch.prototype._onWhenValueChanged=function(oldWhen,newWhen,view){this._deregisterView(oldWhen,view),this._registerView(newWhen,view),oldWhen===this._switchValue?(view.destroy(),collection_1.ListWrapper.remove(this._activeViews,view)):newWhen===this._switchValue&&(this._useDefault&&(this._useDefault=!1,this._emptyAllActiveViews()),view.create(),this._activeViews.push(view)),0!==this._activeViews.length||this._useDefault||(this._useDefault=!0,this._activateViews(this._valueViews.get(_WHEN_DEFAULT)))},NgSwitch.prototype._emptyAllActiveViews=function(){for(var activeContainers=this._activeViews,i=0;i<activeContainers.length;i++)activeContainers[i].destroy();this._activeViews=[]},NgSwitch.prototype._activateViews=function(views){if(lang_1.isPresent(views)){for(var i=0;i<views.length;i++)views[i].create();this._activeViews=views}},NgSwitch.prototype._registerView=function(value,view){var views=this._valueViews.get(value);lang_1.isBlank(views)&&(views=[],this._valueViews.set(value,views)),views.push(view)},NgSwitch.prototype._deregisterView=function(value,view){if(value!==_WHEN_DEFAULT){var views=this._valueViews.get(value);1==views.length?this._valueViews["delete"](value):collection_1.ListWrapper.remove(views,view)}},NgSwitch=__decorate([core_1.Directive({selector:"[ngSwitch]",inputs:["ngSwitch"]}),__metadata("design:paramtypes",[])],NgSwitch)}();exports.NgSwitch=NgSwitch;var NgSwitchWhen=function(){function NgSwitchWhen(viewContainer,templateRef,ngSwitch){this._value=_WHEN_DEFAULT,this._switch=ngSwitch,this._view=new SwitchView(viewContainer,templateRef)}return Object.defineProperty(NgSwitchWhen.prototype,"ngSwitchWhen",{set:function(value){this._switch._onWhenValueChanged(this._value,value,this._view),this._value=value},enumerable:!0,configurable:!0}),NgSwitchWhen=__decorate([core_1.Directive({selector:"[ngSwitchWhen]",inputs:["ngSwitchWhen"]}),__param(2,core_1.Host()),__metadata("design:paramtypes",[core_1.ViewContainerRef,core_1.TemplateRef,NgSwitch])],NgSwitchWhen)}();exports.NgSwitchWhen=NgSwitchWhen;var NgSwitchDefault=function(){function NgSwitchDefault(viewContainer,templateRef,sswitch){sswitch._registerView(_WHEN_DEFAULT,new SwitchView(viewContainer,templateRef))}return NgSwitchDefault=__decorate([core_1.Directive({selector:"[ngSwitchDefault]"}),__param(2,core_1.Host()),__metadata("design:paramtypes",[core_1.ViewContainerRef,core_1.TemplateRef,NgSwitch])],NgSwitchDefault)}();return exports.NgSwitchDefault=NgSwitchDefault,global.define=__define,module.exports}),$__System.registerDynamic("35",["7","30","31","32","33","34"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),ng_class_1=$__require("30"),ng_for_1=$__require("31"),ng_if_1=$__require("32"),ng_style_1=$__require("33"),ng_switch_1=$__require("34");return exports.CORE_DIRECTIVES=lang_1.CONST_EXPR([ng_class_1.NgClass,ng_for_1.NgFor,ng_if_1.NgIf,ng_style_1.NgStyle,ng_switch_1.NgSwitch,ng_switch_1.NgSwitchWhen,ng_switch_1.NgSwitchDefault]),global.define=__define,module.exports}),$__System.registerDynamic("36",["30","31","32","33","34","2f","35"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;global.define=void 0;var ng_class_1=$__require("30");exports.NgClass=ng_class_1.NgClass;var ng_for_1=$__require("31");exports.NgFor=ng_for_1.NgFor;var ng_if_1=$__require("32");exports.NgIf=ng_if_1.NgIf;var ng_style_1=$__require("33");exports.NgStyle=ng_style_1.NgStyle;var ng_switch_1=$__require("34");exports.NgSwitch=ng_switch_1.NgSwitch,exports.NgSwitchWhen=ng_switch_1.NgSwitchWhen,exports.NgSwitchDefault=ng_switch_1.NgSwitchDefault,__export($__require("2f"));var core_directives_1=$__require("35");return exports.CORE_DIRECTIVES=core_directives_1.CORE_DIRECTIVES,global.define=__define,module.exports}),$__System.registerDynamic("37",["7","2e","36"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),forms_1=$__require("2e"),directives_1=$__require("36");return exports.COMMON_DIRECTIVES=lang_1.CONST_EXPR([directives_1.CORE_DIRECTIVES,forms_1.FORM_DIRECTIVES]),global.define=__define,module.exports}),$__System.registerDynamic("38",["15","36","2e","37"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;return global.define=void 0,__export($__require("15")),__export($__require("36")),__export($__require("2e")),__export($__require("37")),global.define=__define,module.exports}),$__System.registerDynamic("39",["3a","7","11","3b","3c","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},dom_adapter_1=$__require("3a"),lang_1=$__require("7"),collection_1=$__require("11"),event_manager_1=$__require("3b"),di_1=$__require("3c"),modifierKeys=["alt","control","meta","shift"],modifierKeyGetters={alt:function(event){return event.altKey},control:function(event){return event.ctrlKey},meta:function(event){return event.metaKey},shift:function(event){return event.shiftKey}},KeyEventsPlugin=function(_super){function KeyEventsPlugin(){_super.call(this)}return __extends(KeyEventsPlugin,_super),KeyEventsPlugin.prototype.supports=function(eventName){return lang_1.isPresent(KeyEventsPlugin.parseEventName(eventName))},KeyEventsPlugin.prototype.addEventListener=function(element,eventName,handler){var parsedEvent=KeyEventsPlugin.parseEventName(eventName),outsideHandler=KeyEventsPlugin.eventCallback(element,collection_1.StringMapWrapper.get(parsedEvent,"fullKey"),handler,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return dom_adapter_1.DOM.onAndCancel(element,collection_1.StringMapWrapper.get(parsedEvent,"domEventName"),outsideHandler)})},KeyEventsPlugin.parseEventName=function(eventName){var parts=eventName.toLowerCase().split("."),domEventName=parts.shift();if(0===parts.length||!lang_1.StringWrapper.equals(domEventName,"keydown")&&!lang_1.StringWrapper.equals(domEventName,"keyup"))return null;var key=KeyEventsPlugin._normalizeKey(parts.pop()),fullKey="";if(modifierKeys.forEach(function(modifierName){collection_1.ListWrapper.contains(parts,modifierName)&&(collection_1.ListWrapper.remove(parts,modifierName),fullKey+=modifierName+".")}),fullKey+=key,0!=parts.length||0===key.length)return null;var result=collection_1.StringMapWrapper.create();return collection_1.StringMapWrapper.set(result,"domEventName",domEventName),collection_1.StringMapWrapper.set(result,"fullKey",fullKey),result},KeyEventsPlugin.getEventFullKey=function(event){var fullKey="",key=dom_adapter_1.DOM.getEventKey(event);return key=key.toLowerCase(),lang_1.StringWrapper.equals(key," ")?key="space":lang_1.StringWrapper.equals(key,".")&&(key="dot"),modifierKeys.forEach(function(modifierName){if(modifierName!=key){var modifierGetter=collection_1.StringMapWrapper.get(modifierKeyGetters,modifierName);modifierGetter(event)&&(fullKey+=modifierName+".")}}),fullKey+=key},KeyEventsPlugin.eventCallback=function(element,fullKey,handler,zone){return function(event){lang_1.StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event),fullKey)&&zone.run(function(){return handler(event)})}},KeyEventsPlugin._normalizeKey=function(keyName){switch(keyName){case"esc":return"escape";default:return keyName}},KeyEventsPlugin=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],KeyEventsPlugin)}(event_manager_1.EventManagerPlugin);exports.KeyEventsPlugin=KeyEventsPlugin}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("3d",["3b","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},event_manager_1=$__require("3b"),collection_1=$__require("11"),_eventNames={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},HammerGesturesPluginCommon=function(_super){function HammerGesturesPluginCommon(){_super.call(this)}return __extends(HammerGesturesPluginCommon,_super),HammerGesturesPluginCommon.prototype.supports=function(eventName){return eventName=eventName.toLowerCase(),collection_1.StringMapWrapper.contains(_eventNames,eventName)},HammerGesturesPluginCommon}(event_manager_1.EventManagerPlugin);return exports.HammerGesturesPluginCommon=HammerGesturesPluginCommon,global.define=__define,module.exports}),$__System.registerDynamic("3e",["3d","7","10","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},hammer_common_1=$__require("3d"),lang_1=$__require("7"),exceptions_1=$__require("10"),di_1=$__require("3c"),HammerGesturesPlugin=function(_super){function HammerGesturesPlugin(){_super.apply(this,arguments)}return __extends(HammerGesturesPlugin,_super),HammerGesturesPlugin.prototype.supports=function(eventName){if(!_super.prototype.supports.call(this,eventName))return!1;if(!lang_1.isPresent(window.Hammer))throw new exceptions_1.BaseException("Hammer.js is not loaded, can not bind "+eventName+" event");return!0},HammerGesturesPlugin.prototype.addEventListener=function(element,eventName,handler){var zone=this.manager.getZone();return eventName=eventName.toLowerCase(),zone.runOutsideAngular(function(){var mc=new Hammer(element);mc.get("pinch").set({enable:!0}),mc.get("rotate").set({enable:!0});var handler=function(eventObj){zone.run(function(){handler(eventObj)})};return mc.on(eventName,handler),function(){mc.off(eventName,handler)}})},HammerGesturesPlugin=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],HammerGesturesPlugin)}(hammer_common_1.HammerGesturesPluginCommon);return exports.HammerGesturesPlugin=HammerGesturesPlugin,global.define=__define,module.exports}),$__System.registerDynamic("3f",["11","7","3a","40"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("11"),lang_1=$__require("7"),dom_adapter_1=$__require("3a"),xhr_impl_1=$__require("40"),GenericBrowserDomAdapter=function(_super){function GenericBrowserDomAdapter(){var _this=this;_super.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var element=this.createElement("div",this.defaultDoc());if(lang_1.isPresent(this.getStyle(element,"animationName")))this._animationPrefix="";else for(var domPrefixes=["Webkit","Moz","O","ms"],i=0;i<domPrefixes.length;i++)if(lang_1.isPresent(this.getStyle(element,domPrefixes[i]+"AnimationName"))){this._animationPrefix="-"+domPrefixes[i].toLowerCase()+"-";break}var transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};collection_1.StringMapWrapper.forEach(transEndEventNames,function(value,key){lang_1.isPresent(_this.getStyle(element,key))&&(_this._transitionEnd=value)})}catch(e){this._animationPrefix=null,this._transitionEnd=null}}return __extends(GenericBrowserDomAdapter,_super),GenericBrowserDomAdapter.prototype.getXHR=function(){return xhr_impl_1.XHRImpl},GenericBrowserDomAdapter.prototype.getDistributedNodes=function(el){return el.getDistributedNodes()},GenericBrowserDomAdapter.prototype.resolveAndSetHref=function(el,baseUrl,href){el.href=null==href?baseUrl:baseUrl+"/../"+href},GenericBrowserDomAdapter.prototype.supportsDOMEvents=function(){return!0},GenericBrowserDomAdapter.prototype.supportsNativeShadowDOM=function(){return lang_1.isFunction(this.defaultDoc().body.createShadowRoot)},GenericBrowserDomAdapter.prototype.getAnimationPrefix=function(){return lang_1.isPresent(this._animationPrefix)?this._animationPrefix:""},GenericBrowserDomAdapter.prototype.getTransitionEnd=function(){return lang_1.isPresent(this._transitionEnd)?this._transitionEnd:""},GenericBrowserDomAdapter.prototype.supportsAnimation=function(){return lang_1.isPresent(this._animationPrefix)&&lang_1.isPresent(this._transitionEnd)},GenericBrowserDomAdapter}(dom_adapter_1.DomAdapter);return exports.GenericBrowserDomAdapter=GenericBrowserDomAdapter,global.define=__define,module.exports}),$__System.registerDynamic("41",["11","7","3a","3f"],!0,function($__require,exports,module){"use strict";function getBaseElementHref(){return lang_1.isBlank(baseElement)&&(baseElement=document.querySelector("base"),lang_1.isBlank(baseElement))?null:baseElement.getAttribute("href")}function relativePath(url){return lang_1.isBlank(urlParsingNode)&&(urlParsingNode=document.createElement("a")),urlParsingNode.setAttribute("href",url),"/"===urlParsingNode.pathname.charAt(0)?urlParsingNode.pathname:"/"+urlParsingNode.pathname}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("11"),lang_1=$__require("7"),dom_adapter_1=$__require("3a"),generic_browser_adapter_1=$__require("3f"),_attrToPropMap={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},DOM_KEY_LOCATION_NUMPAD=3,_keyMap={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_chromeNumKeyPadMap={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},BrowserDomAdapter=function(_super){function BrowserDomAdapter(){_super.apply(this,arguments)}return __extends(BrowserDomAdapter,_super),BrowserDomAdapter.prototype.parse=function(templateHtml){throw new Error("parse not implemented")},BrowserDomAdapter.makeCurrent=function(){dom_adapter_1.setRootDomAdapter(new BrowserDomAdapter)},BrowserDomAdapter.prototype.hasProperty=function(element,name){return name in element},BrowserDomAdapter.prototype.setProperty=function(el,name,value){el[name]=value},BrowserDomAdapter.prototype.getProperty=function(el,name){return el[name]},BrowserDomAdapter.prototype.invoke=function(el,methodName,args){el[methodName].apply(el,args)},BrowserDomAdapter.prototype.logError=function(error){window.console.error?window.console.error(error):window.console.log(error)},BrowserDomAdapter.prototype.log=function(error){window.console.log(error)},BrowserDomAdapter.prototype.logGroup=function(error){window.console.group?(window.console.group(error),this.logError(error)):window.console.log(error)},BrowserDomAdapter.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(BrowserDomAdapter.prototype,"attrToPropMap",{get:function(){return _attrToPropMap},enumerable:!0,configurable:!0}),BrowserDomAdapter.prototype.query=function(selector){return document.querySelector(selector)},BrowserDomAdapter.prototype.querySelector=function(el,selector){return el.querySelector(selector)},BrowserDomAdapter.prototype.querySelectorAll=function(el,selector){return el.querySelectorAll(selector)},BrowserDomAdapter.prototype.on=function(el,evt,listener){el.addEventListener(evt,listener,!1)},BrowserDomAdapter.prototype.onAndCancel=function(el,evt,listener){return el.addEventListener(evt,listener,!1),function(){el.removeEventListener(evt,listener,!1)}},BrowserDomAdapter.prototype.dispatchEvent=function(el,evt){el.dispatchEvent(evt)},BrowserDomAdapter.prototype.createMouseEvent=function(eventType){var evt=document.createEvent("MouseEvent");return evt.initEvent(eventType,!0,!0),evt},BrowserDomAdapter.prototype.createEvent=function(eventType){var evt=document.createEvent("Event");return evt.initEvent(eventType,!0,!0),evt},BrowserDomAdapter.prototype.preventDefault=function(evt){evt.preventDefault(),evt.returnValue=!1},BrowserDomAdapter.prototype.isPrevented=function(evt){return evt.defaultPrevented||lang_1.isPresent(evt.returnValue)&&!evt.returnValue},BrowserDomAdapter.prototype.getInnerHTML=function(el){return el.innerHTML},BrowserDomAdapter.prototype.getOuterHTML=function(el){return el.outerHTML},BrowserDomAdapter.prototype.nodeName=function(node){return node.nodeName},BrowserDomAdapter.prototype.nodeValue=function(node){return node.nodeValue},BrowserDomAdapter.prototype.type=function(node){return node.type},BrowserDomAdapter.prototype.content=function(node){return this.hasProperty(node,"content")?node.content:node},BrowserDomAdapter.prototype.firstChild=function(el){return el.firstChild},BrowserDomAdapter.prototype.nextSibling=function(el){return el.nextSibling},BrowserDomAdapter.prototype.parentElement=function(el){return el.parentNode},BrowserDomAdapter.prototype.childNodes=function(el){return el.childNodes},BrowserDomAdapter.prototype.childNodesAsList=function(el){for(var childNodes=el.childNodes,res=collection_1.ListWrapper.createFixedSize(childNodes.length),i=0;i<childNodes.length;i++)res[i]=childNodes[i];return res},BrowserDomAdapter.prototype.clearNodes=function(el){for(;el.firstChild;)el.removeChild(el.firstChild)},BrowserDomAdapter.prototype.appendChild=function(el,node){el.appendChild(node)},BrowserDomAdapter.prototype.removeChild=function(el,node){el.removeChild(node)},BrowserDomAdapter.prototype.replaceChild=function(el,newChild,oldChild){el.replaceChild(newChild,oldChild)},BrowserDomAdapter.prototype.remove=function(node){return node.parentNode&&node.parentNode.removeChild(node),node},BrowserDomAdapter.prototype.insertBefore=function(el,node){el.parentNode.insertBefore(node,el)},BrowserDomAdapter.prototype.insertAllBefore=function(el,nodes){nodes.forEach(function(n){return el.parentNode.insertBefore(n,el)})},BrowserDomAdapter.prototype.insertAfter=function(el,node){el.parentNode.insertBefore(node,el.nextSibling)},BrowserDomAdapter.prototype.setInnerHTML=function(el,value){el.innerHTML=value},BrowserDomAdapter.prototype.getText=function(el){return el.textContent},BrowserDomAdapter.prototype.setText=function(el,value){el.textContent=value},BrowserDomAdapter.prototype.getValue=function(el){return el.value},BrowserDomAdapter.prototype.setValue=function(el,value){el.value=value},BrowserDomAdapter.prototype.getChecked=function(el){return el.checked},BrowserDomAdapter.prototype.setChecked=function(el,value){el.checked=value;
},BrowserDomAdapter.prototype.createComment=function(text){return document.createComment(text)},BrowserDomAdapter.prototype.createTemplate=function(html){var t=document.createElement("template");return t.innerHTML=html,t},BrowserDomAdapter.prototype.createElement=function(tagName,doc){return void 0===doc&&(doc=document),doc.createElement(tagName)},BrowserDomAdapter.prototype.createElementNS=function(ns,tagName,doc){return void 0===doc&&(doc=document),doc.createElementNS(ns,tagName)},BrowserDomAdapter.prototype.createTextNode=function(text,doc){return void 0===doc&&(doc=document),doc.createTextNode(text)},BrowserDomAdapter.prototype.createScriptTag=function(attrName,attrValue,doc){void 0===doc&&(doc=document);var el=doc.createElement("SCRIPT");return el.setAttribute(attrName,attrValue),el},BrowserDomAdapter.prototype.createStyleElement=function(css,doc){void 0===doc&&(doc=document);var style=doc.createElement("style");return this.appendChild(style,this.createTextNode(css)),style},BrowserDomAdapter.prototype.createShadowRoot=function(el){return el.createShadowRoot()},BrowserDomAdapter.prototype.getShadowRoot=function(el){return el.shadowRoot},BrowserDomAdapter.prototype.getHost=function(el){return el.host},BrowserDomAdapter.prototype.clone=function(node){return node.cloneNode(!0)},BrowserDomAdapter.prototype.getElementsByClassName=function(element,name){return element.getElementsByClassName(name)},BrowserDomAdapter.prototype.getElementsByTagName=function(element,name){return element.getElementsByTagName(name)},BrowserDomAdapter.prototype.classList=function(element){return Array.prototype.slice.call(element.classList,0)},BrowserDomAdapter.prototype.addClass=function(element,className){element.classList.add(className)},BrowserDomAdapter.prototype.removeClass=function(element,className){element.classList.remove(className)},BrowserDomAdapter.prototype.hasClass=function(element,className){return element.classList.contains(className)},BrowserDomAdapter.prototype.setStyle=function(element,styleName,styleValue){element.style[styleName]=styleValue},BrowserDomAdapter.prototype.removeStyle=function(element,stylename){element.style[stylename]=null},BrowserDomAdapter.prototype.getStyle=function(element,stylename){return element.style[stylename]},BrowserDomAdapter.prototype.hasStyle=function(element,styleName,styleValue){void 0===styleValue&&(styleValue=null);var value=this.getStyle(element,styleName)||"";return styleValue?value==styleValue:value.length>0},BrowserDomAdapter.prototype.tagName=function(element){return element.tagName},BrowserDomAdapter.prototype.attributeMap=function(element){for(var res=new Map,elAttrs=element.attributes,i=0;i<elAttrs.length;i++){var attrib=elAttrs[i];res.set(attrib.name,attrib.value)}return res},BrowserDomAdapter.prototype.hasAttribute=function(element,attribute){return element.hasAttribute(attribute)},BrowserDomAdapter.prototype.getAttribute=function(element,attribute){return element.getAttribute(attribute)},BrowserDomAdapter.prototype.setAttribute=function(element,name,value){element.setAttribute(name,value)},BrowserDomAdapter.prototype.setAttributeNS=function(element,ns,name,value){element.setAttributeNS(ns,name,value)},BrowserDomAdapter.prototype.removeAttribute=function(element,attribute){element.removeAttribute(attribute)},BrowserDomAdapter.prototype.templateAwareRoot=function(el){return this.isTemplateElement(el)?this.content(el):el},BrowserDomAdapter.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},BrowserDomAdapter.prototype.defaultDoc=function(){return document},BrowserDomAdapter.prototype.getBoundingClientRect=function(el){try{return el.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},BrowserDomAdapter.prototype.getTitle=function(){return document.title},BrowserDomAdapter.prototype.setTitle=function(newTitle){document.title=newTitle||""},BrowserDomAdapter.prototype.elementMatches=function(n,selector){var matches=!1;return n instanceof HTMLElement&&(n.matches?matches=n.matches(selector):n.msMatchesSelector?matches=n.msMatchesSelector(selector):n.webkitMatchesSelector&&(matches=n.webkitMatchesSelector(selector))),matches},BrowserDomAdapter.prototype.isTemplateElement=function(el){return el instanceof HTMLElement&&"TEMPLATE"==el.nodeName},BrowserDomAdapter.prototype.isTextNode=function(node){return node.nodeType===Node.TEXT_NODE},BrowserDomAdapter.prototype.isCommentNode=function(node){return node.nodeType===Node.COMMENT_NODE},BrowserDomAdapter.prototype.isElementNode=function(node){return node.nodeType===Node.ELEMENT_NODE},BrowserDomAdapter.prototype.hasShadowRoot=function(node){return node instanceof HTMLElement&&lang_1.isPresent(node.shadowRoot)},BrowserDomAdapter.prototype.isShadowRoot=function(node){return node instanceof DocumentFragment},BrowserDomAdapter.prototype.importIntoDoc=function(node){var toImport=node;return this.isTemplateElement(node)&&(toImport=this.content(node)),document.importNode(toImport,!0)},BrowserDomAdapter.prototype.adoptNode=function(node){return document.adoptNode(node)},BrowserDomAdapter.prototype.getHref=function(el){return el.href},BrowserDomAdapter.prototype.getEventKey=function(event){var key=event.key;if(lang_1.isBlank(key)){if(key=event.keyIdentifier,lang_1.isBlank(key))return"Unidentified";key.startsWith("U+")&&(key=String.fromCharCode(parseInt(key.substring(2),16)),event.location===DOM_KEY_LOCATION_NUMPAD&&_chromeNumKeyPadMap.hasOwnProperty(key)&&(key=_chromeNumKeyPadMap[key]))}return _keyMap.hasOwnProperty(key)&&(key=_keyMap[key]),key},BrowserDomAdapter.prototype.getGlobalEventTarget=function(target){return"window"==target?window:"document"==target?document:"body"==target?document.body:void 0},BrowserDomAdapter.prototype.getHistory=function(){return window.history},BrowserDomAdapter.prototype.getLocation=function(){return window.location},BrowserDomAdapter.prototype.getBaseHref=function(){var href=getBaseElementHref();return lang_1.isBlank(href)?null:relativePath(href)},BrowserDomAdapter.prototype.resetBaseElement=function(){baseElement=null},BrowserDomAdapter.prototype.getUserAgent=function(){return window.navigator.userAgent},BrowserDomAdapter.prototype.setData=function(element,name,value){this.setAttribute(element,"data-"+name,value)},BrowserDomAdapter.prototype.getData=function(element,name){return this.getAttribute(element,"data-"+name)},BrowserDomAdapter.prototype.getComputedStyle=function(element){return getComputedStyle(element)},BrowserDomAdapter.prototype.setGlobalVar=function(path,value){lang_1.setValueOnPath(lang_1.global,path,value)},BrowserDomAdapter.prototype.requestAnimationFrame=function(callback){return window.requestAnimationFrame(callback)},BrowserDomAdapter.prototype.cancelAnimationFrame=function(id){window.cancelAnimationFrame(id)},BrowserDomAdapter.prototype.performanceNow=function(){return lang_1.isPresent(window.performance)&&lang_1.isPresent(window.performance.now)?window.performance.now():lang_1.DateWrapper.toMillis(lang_1.DateWrapper.now())},BrowserDomAdapter}(generic_browser_adapter_1.GenericBrowserDomAdapter);exports.BrowserDomAdapter=BrowserDomAdapter;var baseElement=null,urlParsingNode=null;return global.define=__define,module.exports}),$__System.registerDynamic("42",["11","7","3a","a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var collection_1=$__require("11"),lang_1=$__require("7"),dom_adapter_1=$__require("3a"),core_1=$__require("a"),PublicTestability=function(){function PublicTestability(testability){this._testability=testability}return PublicTestability.prototype.isStable=function(){return this._testability.isStable()},PublicTestability.prototype.whenStable=function(callback){this._testability.whenStable(callback)},PublicTestability.prototype.findBindings=function(using,provider,exactMatch){return this.findProviders(using,provider,exactMatch)},PublicTestability.prototype.findProviders=function(using,provider,exactMatch){return this._testability.findBindings(using,provider,exactMatch)},PublicTestability}(),BrowserGetTestability=function(){function BrowserGetTestability(){}return BrowserGetTestability.init=function(){core_1.setTestabilityGetter(new BrowserGetTestability)},BrowserGetTestability.prototype.addToWindow=function(registry){lang_1.global.getAngularTestability=function(elem,findInAncestors){void 0===findInAncestors&&(findInAncestors=!0);var testability=registry.findTestabilityInTree(elem,findInAncestors);if(null==testability)throw new Error("Could not find testability for element.");return new PublicTestability(testability)},lang_1.global.getAllAngularTestabilities=function(){var testabilities=registry.getAllTestabilities();return testabilities.map(function(testability){return new PublicTestability(testability)})};var whenAllStable=function(callback){var testabilities=lang_1.global.getAllAngularTestabilities(),count=testabilities.length,didWork=!1,decrement=function(didWork_){didWork=didWork||didWork_,count--,0==count&&callback(didWork)};testabilities.forEach(function(testability){testability.whenStable(decrement)})};lang_1.global.frameworkStabilizers||(lang_1.global.frameworkStabilizers=collection_1.ListWrapper.createGrowableSize(0)),lang_1.global.frameworkStabilizers.push(whenAllStable)},BrowserGetTestability.prototype.findTestabilityInTree=function(registry,elem,findInAncestors){if(null==elem)return null;var t=registry.getTestability(elem);return lang_1.isPresent(t)?t:findInAncestors?dom_adapter_1.DOM.isShadowRoot(elem)?this.findTestabilityInTree(registry,dom_adapter_1.DOM.getHost(elem),!0):this.findTestabilityInTree(registry,dom_adapter_1.DOM.parentElement(elem),!0):null},BrowserGetTestability}();return exports.BrowserGetTestability=BrowserGetTestability,global.define=__define,module.exports}),$__System.registerDynamic("43",[],!0,function($__require,exports,module){"use strict";function wtfInit(){}var global=this,__define=global.define;return global.define=void 0,exports.wtfInit=wtfInit,global.define=__define,module.exports}),$__System.registerDynamic("44",["3a","a","3b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},dom_adapter_1=$__require("3a"),core_1=$__require("a"),event_manager_1=$__require("3b"),DomEventsPlugin=function(_super){function DomEventsPlugin(){_super.apply(this,arguments)}return __extends(DomEventsPlugin,_super),DomEventsPlugin.prototype.supports=function(eventName){return!0},DomEventsPlugin.prototype.addEventListener=function(element,eventName,handler){var zone=this.manager.getZone(),outsideHandler=function(event){return zone.run(function(){return handler(event)})};return this.manager.getZone().runOutsideAngular(function(){return dom_adapter_1.DOM.onAndCancel(element,eventName,outsideHandler)})},DomEventsPlugin.prototype.addGlobalEventListener=function(target,eventName,handler){var element=dom_adapter_1.DOM.getGlobalEventTarget(target),zone=this.manager.getZone(),outsideHandler=function(event){return zone.run(function(){return handler(event)})};return this.manager.getZone().runOutsideAngular(function(){return dom_adapter_1.DOM.onAndCancel(element,eventName,outsideHandler)})},DomEventsPlugin=__decorate([core_1.Injectable(),__metadata("design:paramtypes",[])],DomEventsPlugin)}(event_manager_1.EventManagerPlugin);return exports.DomEventsPlugin=DomEventsPlugin,global.define=__define,module.exports}),$__System.registerDynamic("45",["7","3a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),dom_adapter_1=$__require("3a"),By=function(){function By(){}return By.all=function(){return function(debugElement){return!0}},By.css=function(selector){return function(debugElement){return lang_1.isPresent(debugElement.nativeElement)?dom_adapter_1.DOM.elementMatches(debugElement.nativeElement,selector):!1}},By.directive=function(type){return function(debugElement){return-1!==debugElement.providerTokens.indexOf(type)}},By}();return exports.By=By,global.define=__define,module.exports}),$__System.registerDynamic("46",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var CssAnimationOptions=function(){function CssAnimationOptions(){this.classesToAdd=[],this.classesToRemove=[],this.animationClasses=[]}return CssAnimationOptions}();return exports.CssAnimationOptions=CssAnimationOptions,global.define=__define,module.exports}),$__System.registerDynamic("47",["7","48","49","11","3a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),math_1=$__require("48"),util_1=$__require("49"),collection_1=$__require("11"),dom_adapter_1=$__require("3a"),Animation=function(){function Animation(element,data,browserDetails){var _this=this;this.element=element,this.data=data,this.browserDetails=browserDetails,this.callbacks=[],this.eventClearFunctions=[],this.completed=!1,this._stringPrefix="",this.startTime=lang_1.DateWrapper.toMillis(lang_1.DateWrapper.now()),this._stringPrefix=dom_adapter_1.DOM.getAnimationPrefix(),this.setup(),this.wait(function(timestamp){return _this.start()})}return Object.defineProperty(Animation.prototype,"totalTime",{get:function(){var delay=null!=this.computedDelay?this.computedDelay:0,duration=null!=this.computedDuration?this.computedDuration:0;return delay+duration},enumerable:!0,configurable:!0}),Animation.prototype.wait=function(callback){this.browserDetails.raf(callback,2)},Animation.prototype.setup=function(){null!=this.data.fromStyles&&this.applyStyles(this.data.fromStyles),null!=this.data.duration&&this.applyStyles({transitionDuration:this.data.duration.toString()+"ms"}),null!=this.data.delay&&this.applyStyles({transitionDelay:this.data.delay.toString()+"ms"})},Animation.prototype.start=function(){this.addClasses(this.data.classesToAdd),this.addClasses(this.data.animationClasses),this.removeClasses(this.data.classesToRemove),null!=this.data.toStyles&&this.applyStyles(this.data.toStyles);var computedStyles=dom_adapter_1.DOM.getComputedStyle(this.element);this.computedDelay=math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix+"transition-delay")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-delay"))),this.computedDuration=math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix+"transition-duration")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-duration"))),this.addEvents()},Animation.prototype.applyStyles=function(styles){var _this=this;collection_1.StringMapWrapper.forEach(styles,function(value,key){var dashCaseKey=util_1.camelCaseToDashCase(key);lang_1.isPresent(dom_adapter_1.DOM.getStyle(_this.element,dashCaseKey))?dom_adapter_1.DOM.setStyle(_this.element,dashCaseKey,value.toString()):dom_adapter_1.DOM.setStyle(_this.element,_this._stringPrefix+dashCaseKey,value.toString())})},Animation.prototype.addClasses=function(classes){for(var i=0,len=classes.length;len>i;i++)dom_adapter_1.DOM.addClass(this.element,classes[i])},Animation.prototype.removeClasses=function(classes){for(var i=0,len=classes.length;len>i;i++)dom_adapter_1.DOM.removeClass(this.element,classes[i])},Animation.prototype.addEvents=function(){var _this=this;this.totalTime>0?this.eventClearFunctions.push(dom_adapter_1.DOM.onAndCancel(this.element,dom_adapter_1.DOM.getTransitionEnd(),function(event){return _this.handleAnimationEvent(event)})):this.handleAnimationCompleted()},Animation.prototype.handleAnimationEvent=function(event){var elapsedTime=math_1.Math.round(1e3*event.elapsedTime);this.browserDetails.elapsedTimeIncludesDelay||(elapsedTime+=this.computedDelay),event.stopPropagation(),elapsedTime>=this.totalTime&&this.handleAnimationCompleted()},Animation.prototype.handleAnimationCompleted=function(){this.removeClasses(this.data.animationClasses),this.callbacks.forEach(function(callback){return callback()}),this.callbacks=[],this.eventClearFunctions.forEach(function(fn){return fn()}),this.eventClearFunctions=[],this.completed=!0},Animation.prototype.onComplete=function(callback){return this.completed?callback():this.callbacks.push(callback),this},Animation.prototype.parseDurationString=function(duration){var maxValue=0;if(null==duration||duration.length<2)return maxValue;if("ms"==duration.substring(duration.length-2)){var value=lang_1.NumberWrapper.parseInt(this.stripLetters(duration),10);value>maxValue&&(maxValue=value)}else if("s"==duration.substring(duration.length-1)){var ms=1e3*lang_1.NumberWrapper.parseFloat(this.stripLetters(duration)),value=math_1.Math.floor(ms);value>maxValue&&(maxValue=value)}return maxValue},Animation.prototype.stripLetters=function(str){return lang_1.StringWrapper.replaceAll(str,lang_1.RegExpWrapper.create("[^0-9]+$",""),"")},Animation}();return exports.Animation=Animation,global.define=__define,module.exports}),$__System.registerDynamic("4a",["46","47"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var css_animation_options_1=$__require("46"),animation_1=$__require("47"),CssAnimationBuilder=function(){function CssAnimationBuilder(browserDetails){this.browserDetails=browserDetails,this.data=new css_animation_options_1.CssAnimationOptions}return CssAnimationBuilder.prototype.addAnimationClass=function(className){return this.data.animationClasses.push(className),this},CssAnimationBuilder.prototype.addClass=function(className){return this.data.classesToAdd.push(className),this},CssAnimationBuilder.prototype.removeClass=function(className){return this.data.classesToRemove.push(className),this},CssAnimationBuilder.prototype.setDuration=function(duration){return this.data.duration=duration,this},CssAnimationBuilder.prototype.setDelay=function(delay){return this.data.delay=delay,this},CssAnimationBuilder.prototype.setStyles=function(from,to){return this.setFromStyles(from).setToStyles(to)},CssAnimationBuilder.prototype.setFromStyles=function(from){return this.data.fromStyles=from,this},CssAnimationBuilder.prototype.setToStyles=function(to){return this.data.toStyles=to,this},CssAnimationBuilder.prototype.start=function(element){return new animation_1.Animation(element,this.data,this.browserDetails)},CssAnimationBuilder}();return exports.CssAnimationBuilder=CssAnimationBuilder,global.define=__define,module.exports}),$__System.registerDynamic("48",["7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");return exports.Math=lang_1.global.Math,exports.NaN=typeof exports.NaN,global.define=__define,module.exports}),$__System.registerDynamic("4b",["3c","48","3a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),math_1=$__require("48"),dom_adapter_1=$__require("3a"),BrowserDetails=function(){function BrowserDetails(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return BrowserDetails.prototype.doesElapsedTimeIncludesDelay=function(){var _this=this,div=dom_adapter_1.DOM.createElement("div");dom_adapter_1.DOM.setAttribute(div,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(timestamp){dom_adapter_1.DOM.on(div,"transitionend",function(event){var elapsed=math_1.Math.round(1e3*event.elapsedTime);_this.elapsedTimeIncludesDelay=2==elapsed,dom_adapter_1.DOM.remove(div)}),dom_adapter_1.DOM.setStyle(div,"width","2px")},2)},BrowserDetails.prototype.raf=function(callback,frames){void 0===frames&&(frames=1);var queue=new RafQueue(callback,frames);return function(){return queue.cancel()}},BrowserDetails=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],BrowserDetails)}();exports.BrowserDetails=BrowserDetails;var RafQueue=function(){function RafQueue(callback,frames){this.callback=callback,this.frames=frames,this._raf()}return RafQueue.prototype._raf=function(){var _this=this;this.currentFrameId=dom_adapter_1.DOM.requestAnimationFrame(function(timestamp){return _this._nextFrame(timestamp)})},RafQueue.prototype._nextFrame=function(timestamp){this.frames--,this.frames>0?this._raf():this.callback(timestamp)},RafQueue.prototype.cancel=function(){dom_adapter_1.DOM.cancelAnimationFrame(this.currentFrameId),this.currentFrameId=null},RafQueue}();return global.define=__define,module.exports}),$__System.registerDynamic("4c",["3c","4a","4b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),css_animation_builder_1=$__require("4a"),browser_details_1=$__require("4b"),AnimationBuilder=function(){function AnimationBuilder(browserDetails){this.browserDetails=browserDetails}return AnimationBuilder.prototype.css=function(){return new css_animation_builder_1.CssAnimationBuilder(this.browserDetails)},AnimationBuilder=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[browser_details_1.BrowserDetails])],AnimationBuilder)}();return exports.AnimationBuilder=AnimationBuilder,global.define=__define,module.exports}),$__System.registerDynamic("4d",["3a","3c","11","4e"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},dom_adapter_1=$__require("3a"),di_1=$__require("3c"),collection_1=$__require("11"),dom_tokens_1=$__require("4e"),SharedStylesHost=function(){function SharedStylesHost(){this._styles=[],this._stylesSet=new Set}return SharedStylesHost.prototype.addStyles=function(styles){var _this=this,additions=[];styles.forEach(function(style){collection_1.SetWrapper.has(_this._stylesSet,style)||(_this._stylesSet.add(style),_this._styles.push(style),additions.push(style))}),this.onStylesAdded(additions)},SharedStylesHost.prototype.onStylesAdded=function(additions){},SharedStylesHost.prototype.getAllStyles=function(){return this._styles},SharedStylesHost=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],SharedStylesHost)}();exports.SharedStylesHost=SharedStylesHost;var DomSharedStylesHost=function(_super){function DomSharedStylesHost(doc){_super.call(this),this._hostNodes=new Set,this._hostNodes.add(doc.head)}return __extends(DomSharedStylesHost,_super),DomSharedStylesHost.prototype._addStylesToHost=function(styles,host){for(var i=0;i<styles.length;i++){var style=styles[i];dom_adapter_1.DOM.appendChild(host,dom_adapter_1.DOM.createStyleElement(style))}},DomSharedStylesHost.prototype.addHost=function(hostNode){this._addStylesToHost(this._styles,hostNode),this._hostNodes.add(hostNode)},DomSharedStylesHost.prototype.removeHost=function(hostNode){collection_1.SetWrapper["delete"](this._hostNodes,hostNode)},DomSharedStylesHost.prototype.onStylesAdded=function(additions){var _this=this;this._hostNodes.forEach(function(hostNode){_this._addStylesToHost(additions,hostNode)})},DomSharedStylesHost=__decorate([di_1.Injectable(),__param(0,di_1.Inject(dom_tokens_1.DOCUMENT)),__metadata("design:paramtypes",[Object])],DomSharedStylesHost)}(SharedStylesHost);return exports.DomSharedStylesHost=DomSharedStylesHost,global.define=__define,module.exports}),$__System.registerDynamic("3b",["7","10","3c","4f","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},lang_1=$__require("7"),exceptions_1=$__require("10"),di_1=$__require("3c"),ng_zone_1=$__require("4f"),collection_1=$__require("11");exports.EVENT_MANAGER_PLUGINS=lang_1.CONST_EXPR(new di_1.OpaqueToken("EventManagerPlugins"));var EventManager=function(){function EventManager(plugins,_zone){var _this=this;this._zone=_zone,plugins.forEach(function(p){return p.manager=_this}),this._plugins=collection_1.ListWrapper.reversed(plugins)}return EventManager.prototype.addEventListener=function(element,eventName,handler){var plugin=this._findPluginFor(eventName);return plugin.addEventListener(element,eventName,handler)},EventManager.prototype.addGlobalEventListener=function(target,eventName,handler){var plugin=this._findPluginFor(eventName);return plugin.addGlobalEventListener(target,eventName,handler)},EventManager.prototype.getZone=function(){return this._zone},EventManager.prototype._findPluginFor=function(eventName){for(var plugins=this._plugins,i=0;i<plugins.length;i++){var plugin=plugins[i];if(plugin.supports(eventName))return plugin}throw new exceptions_1.BaseException("No event manager plugin found for event "+eventName)},EventManager=__decorate([di_1.Injectable(),__param(0,di_1.Inject(exports.EVENT_MANAGER_PLUGINS)),__metadata("design:paramtypes",[Array,ng_zone_1.NgZone])],EventManager)}();exports.EventManager=EventManager;var EventManagerPlugin=function(){function EventManagerPlugin(){}return EventManagerPlugin.prototype.supports=function(eventName){return!1},EventManagerPlugin.prototype.addEventListener=function(element,eventName,handler){throw"not implemented"},EventManagerPlugin.prototype.addGlobalEventListener=function(element,eventName,handler){throw"not implemented"},EventManagerPlugin}();return exports.EventManagerPlugin=EventManagerPlugin,global.define=__define,module.exports}),$__System.registerDynamic("4e",["3c","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var di_1=$__require("3c"),lang_1=$__require("7");return exports.DOCUMENT=lang_1.CONST_EXPR(new di_1.OpaqueToken("DocumentToken")),global.define=__define,module.exports}),$__System.registerDynamic("49",["7"],!0,function($__require,exports,module){"use strict";function camelCaseToDashCase(input){return lang_1.StringWrapper.replaceAllMapped(input,CAMEL_CASE_REGEXP,function(m){return"-"+m[1].toLowerCase()})}function dashCaseToCamelCase(input){return lang_1.StringWrapper.replaceAllMapped(input,DASH_CASE_REGEXP,function(m){return m[1].toUpperCase()})}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),CAMEL_CASE_REGEXP=/([A-Z])/g,DASH_CASE_REGEXP=/-([a-z])/g;return exports.camelCaseToDashCase=camelCaseToDashCase,exports.dashCaseToCamelCase=dashCaseToCamelCase,global.define=__define,module.exports}),$__System.registerDynamic("50",["3c","4c","7","10","4d","3b","4e","51","3a","49"],!0,function($__require,exports,module){"use strict";function moveNodesAfterSibling(sibling,nodes){var parent=dom_adapter_1.DOM.parentElement(sibling);if(nodes.length>0&&lang_1.isPresent(parent)){var nextSibling=dom_adapter_1.DOM.nextSibling(sibling);if(lang_1.isPresent(nextSibling))for(var i=0;i<nodes.length;i++)dom_adapter_1.DOM.insertBefore(nextSibling,nodes[i]);else for(var i=0;i<nodes.length;i++)dom_adapter_1.DOM.appendChild(parent,nodes[i])}}function appendNodes(parent,nodes){for(var i=0;i<nodes.length;i++)dom_adapter_1.DOM.appendChild(parent,nodes[i])}function decoratePreventDefault(eventHandler){return function(event){var allowDefaultBehavior=eventHandler(event);allowDefaultBehavior===!1&&dom_adapter_1.DOM.preventDefault(event)}}function _shimContentAttribute(componentShortId){return lang_1.StringWrapper.replaceAll(exports.CONTENT_ATTR,COMPONENT_REGEX,componentShortId)}function _shimHostAttribute(componentShortId){return lang_1.StringWrapper.replaceAll(exports.HOST_ATTR,COMPONENT_REGEX,componentShortId)}function _flattenStyles(compId,styles,target){for(var i=0;i<styles.length;i++){var style=styles[i];lang_1.isArray(style)?_flattenStyles(compId,style,target):(style=lang_1.StringWrapper.replaceAll(style,COMPONENT_REGEX,compId),target.push(style))}return target}function splitNamespace(name){if("@"!=name[0])return[null,name];var match=lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE,name);return[match[1],match[2]]}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;
if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3c"),animation_builder_1=$__require("4c"),lang_1=$__require("7"),exceptions_1=$__require("10"),shared_styles_host_1=$__require("4d"),event_manager_1=$__require("3b"),dom_tokens_1=$__require("4e"),metadata_1=$__require("51"),dom_adapter_1=$__require("3a"),util_1=$__require("49"),NAMESPACE_URIS=lang_1.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),TEMPLATE_COMMENT_TEXT="template bindings={}",TEMPLATE_BINDINGS_EXP=/^template bindings=(.*)$/g,DomRootRenderer=function(){function DomRootRenderer(document,eventManager,sharedStylesHost,animate){this.document=document,this.eventManager=eventManager,this.sharedStylesHost=sharedStylesHost,this.animate=animate,this._registeredComponents=new Map}return DomRootRenderer.prototype.renderComponent=function(componentProto){var renderer=this._registeredComponents.get(componentProto.id);return lang_1.isBlank(renderer)&&(renderer=new DomRenderer(this,componentProto),this._registeredComponents.set(componentProto.id,renderer)),renderer},DomRootRenderer}();exports.DomRootRenderer=DomRootRenderer;var DomRootRenderer_=function(_super){function DomRootRenderer_(_document,_eventManager,sharedStylesHost,animate){_super.call(this,_document,_eventManager,sharedStylesHost,animate)}return __extends(DomRootRenderer_,_super),DomRootRenderer_=__decorate([di_1.Injectable(),__param(0,di_1.Inject(dom_tokens_1.DOCUMENT)),__metadata("design:paramtypes",[Object,event_manager_1.EventManager,shared_styles_host_1.DomSharedStylesHost,animation_builder_1.AnimationBuilder])],DomRootRenderer_)}(DomRootRenderer);exports.DomRootRenderer_=DomRootRenderer_;var DomRenderer=function(){function DomRenderer(_rootRenderer,componentProto){this._rootRenderer=_rootRenderer,this.componentProto=componentProto,this._styles=_flattenStyles(componentProto.id,componentProto.styles,[]),componentProto.encapsulation!==metadata_1.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===metadata_1.ViewEncapsulation.Emulated?(this._contentAttr=_shimContentAttribute(componentProto.id),this._hostAttr=_shimHostAttribute(componentProto.id)):(this._contentAttr=null,this._hostAttr=null)}return DomRenderer.prototype.renderComponent=function(componentProto){return this._rootRenderer.renderComponent(componentProto)},DomRenderer.prototype.selectRootElement=function(selector){var el=dom_adapter_1.DOM.querySelector(this._rootRenderer.document,selector);if(lang_1.isBlank(el))throw new exceptions_1.BaseException('The selector "'+selector+'" did not match any elements');return dom_adapter_1.DOM.clearNodes(el),el},DomRenderer.prototype.createElement=function(parent,name){var nsAndName=splitNamespace(name),el=lang_1.isPresent(nsAndName[0])?dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]],nsAndName[1]):dom_adapter_1.DOM.createElement(nsAndName[1]);return lang_1.isPresent(this._contentAttr)&&dom_adapter_1.DOM.setAttribute(el,this._contentAttr,""),lang_1.isPresent(parent)&&dom_adapter_1.DOM.appendChild(parent,el),el},DomRenderer.prototype.createViewRoot=function(hostElement){var nodesParent;if(this.componentProto.encapsulation===metadata_1.ViewEncapsulation.Native){nodesParent=dom_adapter_1.DOM.createShadowRoot(hostElement),this._rootRenderer.sharedStylesHost.addHost(nodesParent);for(var i=0;i<this._styles.length;i++)dom_adapter_1.DOM.appendChild(nodesParent,dom_adapter_1.DOM.createStyleElement(this._styles[i]))}else lang_1.isPresent(this._hostAttr)&&dom_adapter_1.DOM.setAttribute(hostElement,this._hostAttr,""),nodesParent=hostElement;return nodesParent},DomRenderer.prototype.createTemplateAnchor=function(parentElement){var comment=dom_adapter_1.DOM.createComment(TEMPLATE_COMMENT_TEXT);return lang_1.isPresent(parentElement)&&dom_adapter_1.DOM.appendChild(parentElement,comment),comment},DomRenderer.prototype.createText=function(parentElement,value){var node=dom_adapter_1.DOM.createTextNode(value);return lang_1.isPresent(parentElement)&&dom_adapter_1.DOM.appendChild(parentElement,node),node},DomRenderer.prototype.projectNodes=function(parentElement,nodes){lang_1.isBlank(parentElement)||appendNodes(parentElement,nodes)},DomRenderer.prototype.attachViewAfter=function(node,viewRootNodes){moveNodesAfterSibling(node,viewRootNodes);for(var i=0;i<viewRootNodes.length;i++)this.animateNodeEnter(viewRootNodes[i])},DomRenderer.prototype.detachView=function(viewRootNodes){for(var i=0;i<viewRootNodes.length;i++){var node=viewRootNodes[i];dom_adapter_1.DOM.remove(node),this.animateNodeLeave(node)}},DomRenderer.prototype.destroyView=function(hostElement,viewAllNodes){this.componentProto.encapsulation===metadata_1.ViewEncapsulation.Native&&lang_1.isPresent(hostElement)&&this._rootRenderer.sharedStylesHost.removeHost(dom_adapter_1.DOM.getShadowRoot(hostElement))},DomRenderer.prototype.listen=function(renderElement,name,callback){return this._rootRenderer.eventManager.addEventListener(renderElement,name,decoratePreventDefault(callback))},DomRenderer.prototype.listenGlobal=function(target,name,callback){return this._rootRenderer.eventManager.addGlobalEventListener(target,name,decoratePreventDefault(callback))},DomRenderer.prototype.setElementProperty=function(renderElement,propertyName,propertyValue){dom_adapter_1.DOM.setProperty(renderElement,propertyName,propertyValue)},DomRenderer.prototype.setElementAttribute=function(renderElement,attributeName,attributeValue){var attrNs,nsAndName=splitNamespace(attributeName);lang_1.isPresent(nsAndName[0])&&(attributeName=nsAndName[0]+":"+nsAndName[1],attrNs=NAMESPACE_URIS[nsAndName[0]]),lang_1.isPresent(attributeValue)?lang_1.isPresent(attrNs)?dom_adapter_1.DOM.setAttributeNS(renderElement,attrNs,attributeName,attributeValue):dom_adapter_1.DOM.setAttribute(renderElement,nsAndName[1],attributeValue):dom_adapter_1.DOM.removeAttribute(renderElement,attributeName)},DomRenderer.prototype.setBindingDebugInfo=function(renderElement,propertyName,propertyValue){var dashCasedPropertyName=util_1.camelCaseToDashCase(propertyName);if(dom_adapter_1.DOM.isCommentNode(renderElement)){var existingBindings=lang_1.RegExpWrapper.firstMatch(TEMPLATE_BINDINGS_EXP,lang_1.StringWrapper.replaceAll(dom_adapter_1.DOM.getText(renderElement),/\n/g,"")),parsedBindings=lang_1.Json.parse(existingBindings[1]);parsedBindings[dashCasedPropertyName]=propertyValue,dom_adapter_1.DOM.setText(renderElement,lang_1.StringWrapper.replace(TEMPLATE_COMMENT_TEXT,"{}",lang_1.Json.stringify(parsedBindings)))}else this.setElementAttribute(renderElement,propertyName,propertyValue)},DomRenderer.prototype.setElementDebugInfo=function(renderElement,info){},DomRenderer.prototype.setElementClass=function(renderElement,className,isAdd){isAdd?dom_adapter_1.DOM.addClass(renderElement,className):dom_adapter_1.DOM.removeClass(renderElement,className)},DomRenderer.prototype.setElementStyle=function(renderElement,styleName,styleValue){lang_1.isPresent(styleValue)?dom_adapter_1.DOM.setStyle(renderElement,styleName,lang_1.stringify(styleValue)):dom_adapter_1.DOM.removeStyle(renderElement,styleName)},DomRenderer.prototype.invokeElementMethod=function(renderElement,methodName,args){dom_adapter_1.DOM.invoke(renderElement,methodName,args)},DomRenderer.prototype.setText=function(renderNode,text){dom_adapter_1.DOM.setText(renderNode,text)},DomRenderer.prototype.animateNodeEnter=function(node){dom_adapter_1.DOM.isElementNode(node)&&dom_adapter_1.DOM.hasClass(node,"ng-animate")&&(dom_adapter_1.DOM.addClass(node,"ng-enter"),this._rootRenderer.animate.css().addAnimationClass("ng-enter-active").start(node).onComplete(function(){dom_adapter_1.DOM.removeClass(node,"ng-enter")}))},DomRenderer.prototype.animateNodeLeave=function(node){dom_adapter_1.DOM.isElementNode(node)&&dom_adapter_1.DOM.hasClass(node,"ng-animate")?(dom_adapter_1.DOM.addClass(node,"ng-leave"),this._rootRenderer.animate.css().addAnimationClass("ng-leave-active").start(node).onComplete(function(){dom_adapter_1.DOM.removeClass(node,"ng-leave"),dom_adapter_1.DOM.remove(node)})):dom_adapter_1.DOM.remove(node)},DomRenderer}();exports.DomRenderer=DomRenderer;var COMPONENT_REGEX=/%COMP%/g;exports.COMPONENT_VARIABLE="%COMP%",exports.HOST_ATTR="_nghost-"+exports.COMPONENT_VARIABLE,exports.CONTENT_ATTR="_ngcontent-"+exports.COMPONENT_VARIABLE;var NS_PREFIX_RE=/^@([^:]+):(.+)/g;return global.define=__define,module.exports}),$__System.registerDynamic("52",["7","53"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),debug_node_1=$__require("53"),DebugDomRootRenderer=function(){function DebugDomRootRenderer(_delegate){this._delegate=_delegate}return DebugDomRootRenderer.prototype.renderComponent=function(componentProto){return new DebugDomRenderer(this,this._delegate.renderComponent(componentProto))},DebugDomRootRenderer}();exports.DebugDomRootRenderer=DebugDomRootRenderer;var DebugDomRenderer=function(){function DebugDomRenderer(_rootRenderer,_delegate){this._rootRenderer=_rootRenderer,this._delegate=_delegate}return DebugDomRenderer.prototype.renderComponent=function(componentType){return this._rootRenderer.renderComponent(componentType)},DebugDomRenderer.prototype.selectRootElement=function(selector){var nativeEl=this._delegate.selectRootElement(selector),debugEl=new debug_node_1.DebugElement(nativeEl,null);return debug_node_1.indexDebugNode(debugEl),nativeEl},DebugDomRenderer.prototype.createElement=function(parentElement,name){var nativeEl=this._delegate.createElement(parentElement,name),debugEl=new debug_node_1.DebugElement(nativeEl,debug_node_1.getDebugNode(parentElement));return debugEl.name=name,debug_node_1.indexDebugNode(debugEl),nativeEl},DebugDomRenderer.prototype.createViewRoot=function(hostElement){return this._delegate.createViewRoot(hostElement)},DebugDomRenderer.prototype.createTemplateAnchor=function(parentElement){var comment=this._delegate.createTemplateAnchor(parentElement),debugEl=new debug_node_1.DebugNode(comment,debug_node_1.getDebugNode(parentElement));return debug_node_1.indexDebugNode(debugEl),comment},DebugDomRenderer.prototype.createText=function(parentElement,value){var text=this._delegate.createText(parentElement,value),debugEl=new debug_node_1.DebugNode(text,debug_node_1.getDebugNode(parentElement));return debug_node_1.indexDebugNode(debugEl),text},DebugDomRenderer.prototype.projectNodes=function(parentElement,nodes){var debugParent=debug_node_1.getDebugNode(parentElement);return lang_1.isPresent(debugParent)&&debugParent instanceof debug_node_1.DebugElement&&nodes.forEach(function(node){debugParent.addChild(debug_node_1.getDebugNode(node))}),this._delegate.projectNodes(parentElement,nodes)},DebugDomRenderer.prototype.attachViewAfter=function(node,viewRootNodes){var debugNode=debug_node_1.getDebugNode(node);if(lang_1.isPresent(debugNode)){var debugParent=debugNode.parent;if(viewRootNodes.length>0&&lang_1.isPresent(debugParent)){var debugViewRootNodes=[];viewRootNodes.forEach(function(rootNode){return debugViewRootNodes.push(debug_node_1.getDebugNode(rootNode))}),debugParent.insertChildrenAfter(debugNode,debugViewRootNodes)}}return this._delegate.attachViewAfter(node,viewRootNodes)},DebugDomRenderer.prototype.detachView=function(viewRootNodes){return viewRootNodes.forEach(function(node){var debugNode=debug_node_1.getDebugNode(node);lang_1.isPresent(debugNode)&&lang_1.isPresent(debugNode.parent)&&debugNode.parent.removeChild(debugNode)}),this._delegate.detachView(viewRootNodes)},DebugDomRenderer.prototype.destroyView=function(hostElement,viewAllNodes){return viewAllNodes.forEach(function(node){debug_node_1.removeDebugNodeFromIndex(debug_node_1.getDebugNode(node))}),this._delegate.destroyView(hostElement,viewAllNodes)},DebugDomRenderer.prototype.listen=function(renderElement,name,callback){var debugEl=debug_node_1.getDebugNode(renderElement);return lang_1.isPresent(debugEl)&&debugEl.listeners.push(new debug_node_1.EventListener(name,callback)),this._delegate.listen(renderElement,name,callback)},DebugDomRenderer.prototype.listenGlobal=function(target,name,callback){return this._delegate.listenGlobal(target,name,callback)},DebugDomRenderer.prototype.setElementProperty=function(renderElement,propertyName,propertyValue){var debugEl=debug_node_1.getDebugNode(renderElement);return lang_1.isPresent(debugEl)&&debugEl instanceof debug_node_1.DebugElement&&debugEl.properties.set(propertyName,propertyValue),this._delegate.setElementProperty(renderElement,propertyName,propertyValue)},DebugDomRenderer.prototype.setElementAttribute=function(renderElement,attributeName,attributeValue){var debugEl=debug_node_1.getDebugNode(renderElement);return lang_1.isPresent(debugEl)&&debugEl instanceof debug_node_1.DebugElement&&debugEl.attributes.set(attributeName,attributeValue),this._delegate.setElementAttribute(renderElement,attributeName,attributeValue)},DebugDomRenderer.prototype.setBindingDebugInfo=function(renderElement,propertyName,propertyValue){return this._delegate.setBindingDebugInfo(renderElement,propertyName,propertyValue)},DebugDomRenderer.prototype.setElementDebugInfo=function(renderElement,info){var debugEl=debug_node_1.getDebugNode(renderElement);return debugEl.setDebugInfo(info),this._delegate.setElementDebugInfo(renderElement,info)},DebugDomRenderer.prototype.setElementClass=function(renderElement,className,isAdd){return this._delegate.setElementClass(renderElement,className,isAdd)},DebugDomRenderer.prototype.setElementStyle=function(renderElement,styleName,styleValue){return this._delegate.setElementStyle(renderElement,styleName,styleValue)},DebugDomRenderer.prototype.invokeElementMethod=function(renderElement,methodName,args){return this._delegate.invokeElementMethod(renderElement,methodName,args)},DebugDomRenderer.prototype.setText=function(renderNode,text){return this._delegate.setText(renderNode,text)},DebugDomRenderer}();return exports.DebugDomRenderer=DebugDomRenderer,global.define=__define,module.exports}),$__System.registerDynamic("54",["7","3c","3a","53","50","a","52"],!0,function($__require,exports,module){"use strict";function inspectNativeElement(element){return debug_node_1.getDebugNode(element)}function _createConditionalRootRenderer(rootRenderer){return lang_1.assertionsEnabled()?_createRootRenderer(rootRenderer):rootRenderer}function _createRootRenderer(rootRenderer){return dom_adapter_1.DOM.setGlobalVar(INSPECT_GLOBAL_NAME,inspectNativeElement),new debug_renderer_1.DebugDomRootRenderer(rootRenderer)}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),di_1=$__require("3c"),dom_adapter_1=$__require("3a"),debug_node_1=$__require("53"),dom_renderer_1=$__require("50"),core_1=$__require("a"),debug_renderer_1=$__require("52"),INSPECT_GLOBAL_NAME="ng.probe";return exports.inspectNativeElement=inspectNativeElement,exports.ELEMENT_PROBE_PROVIDERS=lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer,{useFactory:_createConditionalRootRenderer,deps:[dom_renderer_1.DomRootRenderer]})]),exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE=lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer,{useFactory:_createRootRenderer,deps:[dom_renderer_1.DomRootRenderer]})]),global.define=__define,module.exports}),$__System.registerDynamic("55",["3a","50","4e","4d","44","3b","45","54"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;global.define=void 0;var dom_adapter_1=$__require("3a");exports.DOM=dom_adapter_1.DOM,exports.setRootDomAdapter=dom_adapter_1.setRootDomAdapter,exports.DomAdapter=dom_adapter_1.DomAdapter;var dom_renderer_1=$__require("50");exports.DomRenderer=dom_renderer_1.DomRenderer;var dom_tokens_1=$__require("4e");exports.DOCUMENT=dom_tokens_1.DOCUMENT;var shared_styles_host_1=$__require("4d");exports.SharedStylesHost=shared_styles_host_1.SharedStylesHost,exports.DomSharedStylesHost=shared_styles_host_1.DomSharedStylesHost;var dom_events_1=$__require("44");exports.DomEventsPlugin=dom_events_1.DomEventsPlugin;var event_manager_1=$__require("3b");return exports.EVENT_MANAGER_PLUGINS=event_manager_1.EVENT_MANAGER_PLUGINS,exports.EventManager=event_manager_1.EventManager,exports.EventManagerPlugin=event_manager_1.EventManagerPlugin,__export($__require("45")),__export($__require("54")),global.define=__define,module.exports}),$__System.registerDynamic("56",["3a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var dom_adapter_1=$__require("3a"),Title=function(){function Title(){}return Title.prototype.getTitle=function(){return dom_adapter_1.DOM.getTitle()},Title.prototype.setTitle=function(newTitle){dom_adapter_1.DOM.setTitle(newTitle)},Title}();return exports.Title=Title,global.define=__define,module.exports}),$__System.registerDynamic("57",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var win=window;return exports.window=win,exports.document=window.document,exports.location=window.location,exports.gc=window.gc?function(){return window.gc()}:function(){return null},exports.performance=window.performance?window.performance:null,exports.Event=window.Event,exports.MouseEvent=window.MouseEvent,exports.KeyboardEvent=window.KeyboardEvent,exports.EventTarget=window.EventTarget,exports.History=window.History,exports.Location=window.Location,exports.EventListener=window.EventListener,global.define=__define,module.exports}),$__System.registerDynamic("58",["59","7","57","3a"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var application_ref_1=$__require("59"),lang_1=$__require("7"),browser_1=$__require("57"),dom_adapter_1=$__require("3a"),AngularTools=function(){function AngularTools(ref){this.profiler=new AngularProfiler(ref)}return AngularTools}();exports.AngularTools=AngularTools;var AngularProfiler=function(){function AngularProfiler(ref){this.appRef=ref.injector.get(application_ref_1.ApplicationRef)}return AngularProfiler.prototype.timeChangeDetection=function(config){var record=lang_1.isPresent(config)&&config.record,profileName="Change Detection",isProfilerAvailable=lang_1.isPresent(browser_1.window.console.profile);record&&isProfilerAvailable&&browser_1.window.console.profile(profileName);for(var start=dom_adapter_1.DOM.performanceNow(),numTicks=0;5>numTicks||dom_adapter_1.DOM.performanceNow()-start<500;)this.appRef.tick(),numTicks++;var end=dom_adapter_1.DOM.performanceNow();record&&isProfilerAvailable&&browser_1.window.console.profileEnd(profileName);var msPerTick=(end-start)/numTicks;browser_1.window.console.log("ran "+numTicks+" change detection cycles"),browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick,2)+" ms per check")},AngularProfiler}();return exports.AngularProfiler=AngularProfiler,global.define=__define,module.exports}),$__System.registerDynamic("5a",["7","58"],!0,function($__require,exports,module){"use strict";function enableDebugTools(ref){context.ng=new common_tools_1.AngularTools(ref)}function disableDebugTools(){delete context.ng}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),common_tools_1=$__require("58"),context=lang_1.global;return exports.enableDebugTools=enableDebugTools,exports.disableDebugTools=disableDebugTools,global.define=__define,module.exports}),$__System.registerDynamic("5b",["7","3c","a","38","5c","3a","44","39","3e","4e","50","4d","4b","4c","41","42","43","3b","55","56","5a"],!0,function($__require,exports,module){"use strict";function _exceptionHandler(){return new core_1.ExceptionHandler(dom_adapter_1.DOM,!lang_1.IS_DART)}function _document(){return dom_adapter_1.DOM.defaultDoc()}function initDomAdapter(){browser_adapter_1.BrowserDomAdapter.makeCurrent(),wtf_init_1.wtfInit(),testability_2.BrowserGetTestability.init()}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),di_1=$__require("3c"),core_1=$__require("a"),common_1=$__require("38"),testability_1=$__require("5c"),dom_adapter_1=$__require("3a"),dom_events_1=$__require("44"),key_events_1=$__require("39"),hammer_gestures_1=$__require("3e"),dom_tokens_1=$__require("4e"),dom_renderer_1=$__require("50"),shared_styles_host_1=$__require("4d"),shared_styles_host_2=$__require("4d"),browser_details_1=$__require("4b"),animation_builder_1=$__require("4c"),browser_adapter_1=$__require("41"),testability_2=$__require("42"),wtf_init_1=$__require("43"),event_manager_1=$__require("3b"),common_dom_1=$__require("55"),dom_tokens_2=$__require("4e");exports.DOCUMENT=dom_tokens_2.DOCUMENT;var title_1=$__require("56");exports.Title=title_1.Title;var common_dom_2=$__require("55");exports.ELEMENT_PROBE_PROVIDERS=common_dom_2.ELEMENT_PROBE_PROVIDERS,exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE=common_dom_2.ELEMENT_PROBE_PROVIDERS_PROD_MODE,exports.inspectNativeElement=common_dom_2.inspectNativeElement,exports.By=common_dom_2.By;var browser_adapter_2=$__require("41");exports.BrowserDomAdapter=browser_adapter_2.BrowserDomAdapter;var tools_1=$__require("5a");return exports.enableDebugTools=tools_1.enableDebugTools,exports.disableDebugTools=tools_1.disableDebugTools,exports.BROWSER_PROVIDERS=lang_1.CONST_EXPR([core_1.PLATFORM_COMMON_PROVIDERS,new di_1.Provider(core_1.PLATFORM_INITIALIZER,{useValue:initDomAdapter,multi:!0})]),exports.BROWSER_APP_COMMON_PROVIDERS=lang_1.CONST_EXPR([core_1.APPLICATION_COMMON_PROVIDERS,common_1.FORM_PROVIDERS,new di_1.Provider(core_1.PLATFORM_PIPES,{useValue:common_1.COMMON_PIPES,multi:!0}),new di_1.Provider(core_1.PLATFORM_DIRECTIVES,{useValue:common_1.COMMON_DIRECTIVES,multi:!0}),new di_1.Provider(core_1.ExceptionHandler,{useFactory:_exceptionHandler,deps:[]}),new di_1.Provider(dom_tokens_1.DOCUMENT,{useFactory:_document,deps:[]}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:dom_events_1.DomEventsPlugin,multi:!0}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:key_events_1.KeyEventsPlugin,multi:!0}),new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS,{useClass:hammer_gestures_1.HammerGesturesPlugin,multi:!0}),new di_1.Provider(dom_renderer_1.DomRootRenderer,{useClass:dom_renderer_1.DomRootRenderer_}),new di_1.Provider(core_1.RootRenderer,{useExisting:dom_renderer_1.DomRootRenderer}),new di_1.Provider(shared_styles_host_2.SharedStylesHost,{useExisting:shared_styles_host_1.DomSharedStylesHost}),shared_styles_host_1.DomSharedStylesHost,testability_1.Testability,browser_details_1.BrowserDetails,animation_builder_1.AnimationBuilder,event_manager_1.EventManager,common_dom_1.ELEMENT_PROBE_PROVIDERS]),exports.initDomAdapter=initDomAdapter,global.define=__define,module.exports}),$__System.registerDynamic("5d",["5e","5f","60","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},compiler_1=$__require("5e"),view_ref_1=$__require("5f"),template_compiler_1=$__require("60"),di_1=$__require("3c"),RuntimeCompiler=function(_super){function RuntimeCompiler(){_super.apply(this,arguments)}return __extends(RuntimeCompiler,_super),RuntimeCompiler}(compiler_1.Compiler);exports.RuntimeCompiler=RuntimeCompiler;var RuntimeCompiler_=function(_super){function RuntimeCompiler_(_templateCompiler){_super.call(this),this._templateCompiler=_templateCompiler}return __extends(RuntimeCompiler_,_super),RuntimeCompiler_.prototype.compileInHost=function(componentType){return this._templateCompiler.compileHostComponentRuntime(componentType).then(function(hostViewFactory){return new view_ref_1.HostViewFactoryRef_(hostViewFactory)})},RuntimeCompiler_.prototype.clearCache=function(){_super.prototype.clearCache.call(this),this._templateCompiler.clearCache()},RuntimeCompiler_=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[template_compiler_1.TemplateCompiler])],RuntimeCompiler_)}(compiler_1.Compiler_);return exports.RuntimeCompiler_=RuntimeCompiler_,global.define=__define,module.exports}),$__System.registerDynamic("60",["7","10","11","9","61","62","3c","63","64","65","66","67","68","69","6a","6b","6c","6d","6e"],!0,function($__require,exports,module){"use strict";function assertComponent(meta){if(!meta.isComponent)throw new exceptions_1.BaseException("Could not compile '"+meta.type.name+"' because it is not a component.")}function templateModuleUrl(moduleUrl){var urlWithoutSuffix=moduleUrl.substring(0,moduleUrl.length-util_1.MODULE_SUFFIX.length);return urlWithoutSuffix+".template"+util_1.MODULE_SUFFIX}function codeGenHostViewFactoryName(type){return"hostViewFactory_"+type.name}function codeGenComponentViewFactoryName(nestedCompType){return source_module_1.moduleRef(templateModuleUrl(nestedCompType.type.moduleUrl))+"viewFactory_"+nestedCompType.type.name+"0"}function mergeStringMaps(maps){var result={};return maps.forEach(function(map){collection_1.StringMapWrapper.forEach(map,function(value,key){result[key]=value})}),result}function removeDuplicates(items){var res=[];return items.forEach(function(item){var hasMatch=res.filter(function(r){return r.type.name==item.type.name&&r.type.moduleUrl==item.type.moduleUrl&&r.type.runtime==item.type.runtime}).length>0;hasMatch||res.push(item)}),res}function filterPipes(template,allPipes){var visitor=new PipeVisitor;return template_ast_1.templateVisitAll(visitor,template),allPipes.filter(function(pipeMeta){return collection_1.SetWrapper.has(visitor.collector.pipes,pipeMeta.name)})}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),async_1=$__require("9"),directive_metadata_1=$__require("61"),template_ast_1=$__require("62"),di_1=$__require("3c"),source_module_1=$__require("63"),change_detector_compiler_1=$__require("64"),style_compiler_1=$__require("65"),view_compiler_1=$__require("66"),proto_view_compiler_1=$__require("67"),template_parser_1=$__require("68"),template_normalizer_1=$__require("69"),runtime_metadata_1=$__require("6a"),view_1=$__require("6b"),change_detection_1=$__require("6c"),resolved_metadata_cache_1=$__require("6d"),util_1=$__require("6e");exports.METADATA_CACHE_MODULE_REF=source_module_1.moduleRef("package:angular2/src/core/linker/resolved_metadata_cache"+util_1.MODULE_SUFFIX);var TemplateCompiler=function(){function TemplateCompiler(_runtimeMetadataResolver,_templateNormalizer,_templateParser,_styleCompiler,_cdCompiler,_protoViewCompiler,_viewCompiler,_resolvedMetadataCache,_genConfig){this._runtimeMetadataResolver=_runtimeMetadataResolver,this._templateNormalizer=_templateNormalizer,this._templateParser=_templateParser,this._styleCompiler=_styleCompiler,this._cdCompiler=_cdCompiler,this._protoViewCompiler=_protoViewCompiler,this._viewCompiler=_viewCompiler,this._resolvedMetadataCache=_resolvedMetadataCache,this._genConfig=_genConfig,this._hostCacheKeys=new Map,this._compiledTemplateCache=new Map,this._compiledTemplateDone=new Map}return TemplateCompiler.prototype.normalizeDirectiveMetadata=function(directive){return directive.isComponent?this._templateNormalizer.normalizeTemplate(directive.type,directive.template).then(function(normalizedTemplate){return new directive_metadata_1.CompileDirectiveMetadata({type:directive.type,isComponent:directive.isComponent,dynamicLoadable:directive.dynamicLoadable,selector:directive.selector,exportAs:directive.exportAs,changeDetection:directive.changeDetection,inputs:directive.inputs,outputs:directive.outputs,hostListeners:directive.hostListeners,hostProperties:directive.hostProperties,hostAttributes:directive.hostAttributes,lifecycleHooks:directive.lifecycleHooks,template:normalizedTemplate})}):async_1.PromiseWrapper.resolve(directive)},TemplateCompiler.prototype.compileHostComponentRuntime=function(type){var compMeta=this._runtimeMetadataResolver.getDirectiveMetadata(type),hostCacheKey=this._hostCacheKeys.get(type);if(lang_1.isBlank(hostCacheKey)){hostCacheKey=new Object,this._hostCacheKeys.set(type,hostCacheKey),assertComponent(compMeta);var hostMeta=directive_metadata_1.createHostComponentMeta(compMeta.type,compMeta.selector);this._compileComponentRuntime(hostCacheKey,hostMeta,[compMeta],[],[])}return this._compiledTemplateDone.get(hostCacheKey).then(function(compiledTemplate){return new view_1.HostViewFactory(compMeta.selector,compiledTemplate.viewFactory)})},TemplateCompiler.prototype.clearCache=function(){this._styleCompiler.clearCache(),this._compiledTemplateCache.clear(),this._compiledTemplateDone.clear(),this._hostCacheKeys.clear()},TemplateCompiler.prototype.compileTemplatesCodeGen=function(components){var _this=this;if(0===components.length)throw new exceptions_1.BaseException("No components given");var declarations=[];components.forEach(function(componentWithDirs){var compMeta=componentWithDirs.component;if(assertComponent(compMeta),_this._compileComponentCodeGen(compMeta,componentWithDirs.directives,componentWithDirs.pipes,declarations),compMeta.dynamicLoadable){var hostMeta=directive_metadata_1.createHostComponentMeta(compMeta.type,compMeta.selector),viewFactoryExpression=_this._compileComponentCodeGen(hostMeta,[compMeta],[],declarations),constructionKeyword=lang_1.IS_DART?"const":"new",compiledTemplateExpr=constructionKeyword+" "+proto_view_compiler_1.APP_VIEW_MODULE_REF+"HostViewFactory('"+compMeta.selector+"',"+viewFactoryExpression+")",varName=codeGenHostViewFactoryName(compMeta.type);declarations.push(""+util_1.codeGenExportVariable(varName)+compiledTemplateExpr+";")}});var moduleUrl=components[0].component.type.moduleUrl;return new source_module_1.SourceModule(""+templateModuleUrl(moduleUrl),declarations.join("\n"))},TemplateCompiler.prototype.compileStylesheetCodeGen=function(stylesheetUrl,cssText){return this._styleCompiler.compileStylesheetCodeGen(stylesheetUrl,cssText)},TemplateCompiler.prototype._compileComponentRuntime=function(cacheKey,compMeta,viewDirectives,pipes,compilingComponentsPath){var _this=this,uniqViewDirectives=removeDuplicates(viewDirectives),uniqViewPipes=removeDuplicates(pipes),compiledTemplate=this._compiledTemplateCache.get(cacheKey),done=this._compiledTemplateDone.get(cacheKey);
return lang_1.isBlank(compiledTemplate)&&(compiledTemplate=new CompiledTemplate,this._compiledTemplateCache.set(cacheKey,compiledTemplate),done=async_1.PromiseWrapper.all([this._styleCompiler.compileComponentRuntime(compMeta.template)].concat(uniqViewDirectives.map(function(dirMeta){return _this.normalizeDirectiveMetadata(dirMeta)}))).then(function(stylesAndNormalizedViewDirMetas){var normalizedViewDirMetas=stylesAndNormalizedViewDirMetas.slice(1),styles=stylesAndNormalizedViewDirMetas[0],parsedTemplate=_this._templateParser.parse(compMeta.template.template,normalizedViewDirMetas,uniqViewPipes,compMeta.type.name),childPromises=[],usedDirectives=DirectiveCollector.findUsedDirectives(parsedTemplate);return usedDirectives.components.forEach(function(component){return _this._compileNestedComponentRuntime(component,compilingComponentsPath,childPromises)}),async_1.PromiseWrapper.all(childPromises).then(function(_){var filteredPipes=filterPipes(parsedTemplate,uniqViewPipes);return compiledTemplate.init(_this._createViewFactoryRuntime(compMeta,parsedTemplate,usedDirectives.directives,styles,filteredPipes)),compiledTemplate})}),this._compiledTemplateDone.set(cacheKey,done)),compiledTemplate},TemplateCompiler.prototype._compileNestedComponentRuntime=function(childComponentDir,parentCompilingComponentsPath,childPromises){var compilingComponentsPath=collection_1.ListWrapper.clone(parentCompilingComponentsPath),childCacheKey=childComponentDir.type.runtime,childViewDirectives=this._runtimeMetadataResolver.getViewDirectivesMetadata(childComponentDir.type.runtime),childViewPipes=this._runtimeMetadataResolver.getViewPipesMetadata(childComponentDir.type.runtime),childIsRecursive=collection_1.ListWrapper.contains(compilingComponentsPath,childCacheKey);compilingComponentsPath.push(childCacheKey),this._compileComponentRuntime(childCacheKey,childComponentDir,childViewDirectives,childViewPipes,compilingComponentsPath),childIsRecursive||childPromises.push(this._compiledTemplateDone.get(childCacheKey))},TemplateCompiler.prototype._createViewFactoryRuntime=function(compMeta,parsedTemplate,directives,styles,pipes){var _this=this;if(lang_1.IS_DART||!this._genConfig.useJit){var changeDetectorFactories=this._cdCompiler.compileComponentRuntime(compMeta.type,compMeta.changeDetection,parsedTemplate),protoViews=this._protoViewCompiler.compileProtoViewRuntime(this._resolvedMetadataCache,compMeta,parsedTemplate,pipes);return this._viewCompiler.compileComponentRuntime(compMeta,parsedTemplate,styles,protoViews.protoViews,changeDetectorFactories,function(compMeta){return _this._getNestedComponentViewFactory(compMeta)})}var declarations=[],viewFactoryExpr=this._createViewFactoryCodeGen("resolvedMetadataCache",compMeta,new source_module_1.SourceExpression([],"styles"),parsedTemplate,pipes,declarations),vars={exports:{},styles:styles,resolvedMetadataCache:this._resolvedMetadataCache};directives.forEach(function(dirMeta){vars[dirMeta.type.name]=dirMeta.type.runtime,dirMeta.isComponent&&dirMeta.type.runtime!==compMeta.type.runtime&&(vars["viewFactory_"+dirMeta.type.name+"0"]=_this._getNestedComponentViewFactory(dirMeta))}),pipes.forEach(function(pipeMeta){return vars[pipeMeta.type.name]=pipeMeta.type.runtime});var declarationsWithoutImports=source_module_1.SourceModule.getSourceWithoutImports(declarations.join("\n"));return lang_1.evalExpression("viewFactory_"+compMeta.type.name,viewFactoryExpr,declarationsWithoutImports,mergeStringMaps([vars,change_detector_compiler_1.CHANGE_DETECTION_JIT_IMPORTS,proto_view_compiler_1.PROTO_VIEW_JIT_IMPORTS,view_compiler_1.VIEW_JIT_IMPORTS]))},TemplateCompiler.prototype._getNestedComponentViewFactory=function(compMeta){return this._compiledTemplateCache.get(compMeta.type.runtime).viewFactory},TemplateCompiler.prototype._compileComponentCodeGen=function(compMeta,directives,pipes,targetDeclarations){var uniqueDirectives=removeDuplicates(directives),uniqPipes=removeDuplicates(pipes),styleExpr=this._styleCompiler.compileComponentCodeGen(compMeta.template),parsedTemplate=this._templateParser.parse(compMeta.template.template,uniqueDirectives,uniqPipes,compMeta.type.name),filteredPipes=filterPipes(parsedTemplate,uniqPipes);return this._createViewFactoryCodeGen(exports.METADATA_CACHE_MODULE_REF+"CODEGEN_RESOLVED_METADATA_CACHE",compMeta,styleExpr,parsedTemplate,filteredPipes,targetDeclarations)},TemplateCompiler.prototype._createViewFactoryCodeGen=function(resolvedMetadataCacheExpr,compMeta,styleExpr,parsedTemplate,pipes,targetDeclarations){var changeDetectorsExprs=this._cdCompiler.compileComponentCodeGen(compMeta.type,compMeta.changeDetection,parsedTemplate),protoViewExprs=this._protoViewCompiler.compileProtoViewCodeGen(new util_1.Expression(resolvedMetadataCacheExpr),compMeta,parsedTemplate,pipes),viewFactoryExpr=this._viewCompiler.compileComponentCodeGen(compMeta,parsedTemplate,styleExpr,protoViewExprs.protoViews,changeDetectorsExprs,codeGenComponentViewFactoryName);return util_1.addAll(changeDetectorsExprs.declarations,targetDeclarations),util_1.addAll(protoViewExprs.declarations,targetDeclarations),util_1.addAll(viewFactoryExpr.declarations,targetDeclarations),viewFactoryExpr.expression},TemplateCompiler=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[runtime_metadata_1.RuntimeMetadataResolver,template_normalizer_1.TemplateNormalizer,template_parser_1.TemplateParser,style_compiler_1.StyleCompiler,change_detector_compiler_1.ChangeDetectionCompiler,proto_view_compiler_1.ProtoViewCompiler,view_compiler_1.ViewCompiler,resolved_metadata_cache_1.ResolvedMetadataCache,change_detection_1.ChangeDetectorGenConfig])],TemplateCompiler)}();exports.TemplateCompiler=TemplateCompiler;var NormalizedComponentWithViewDirectives=function(){function NormalizedComponentWithViewDirectives(component,directives,pipes){this.component=component,this.directives=directives,this.pipes=pipes}return NormalizedComponentWithViewDirectives}();exports.NormalizedComponentWithViewDirectives=NormalizedComponentWithViewDirectives;var CompiledTemplate=function(){function CompiledTemplate(){this.viewFactory=null}return CompiledTemplate.prototype.init=function(viewFactory){this.viewFactory=viewFactory},CompiledTemplate}(),DirectiveCollector=function(){function DirectiveCollector(){this.directives=[],this.components=[]}return DirectiveCollector.findUsedDirectives=function(parsedTemplate){var collector=new DirectiveCollector;return template_ast_1.templateVisitAll(collector,parsedTemplate),collector},DirectiveCollector.prototype.visitBoundText=function(ast,context){return null},DirectiveCollector.prototype.visitText=function(ast,context){return null},DirectiveCollector.prototype.visitNgContent=function(ast,context){return null},DirectiveCollector.prototype.visitElement=function(ast,context){return template_ast_1.templateVisitAll(this,ast.directives),template_ast_1.templateVisitAll(this,ast.children),null},DirectiveCollector.prototype.visitEmbeddedTemplate=function(ast,context){return template_ast_1.templateVisitAll(this,ast.directives),template_ast_1.templateVisitAll(this,ast.children),null},DirectiveCollector.prototype.visitVariable=function(ast,ctx){return null},DirectiveCollector.prototype.visitAttr=function(ast,attrNameAndValues){return null},DirectiveCollector.prototype.visitDirective=function(ast,ctx){return ast.directive.isComponent&&this.components.push(ast.directive),this.directives.push(ast.directive),null},DirectiveCollector.prototype.visitEvent=function(ast,eventTargetAndNames){return null},DirectiveCollector.prototype.visitDirectiveProperty=function(ast,context){return null},DirectiveCollector.prototype.visitElementProperty=function(ast,context){return null},DirectiveCollector}(),PipeVisitor=function(){function PipeVisitor(){this.collector=new template_parser_1.PipeCollector}return PipeVisitor.prototype.visitBoundText=function(ast,context){return ast.value.visit(this.collector),null},PipeVisitor.prototype.visitText=function(ast,context){return null},PipeVisitor.prototype.visitNgContent=function(ast,context){return null},PipeVisitor.prototype.visitElement=function(ast,context){return template_ast_1.templateVisitAll(this,ast.inputs),template_ast_1.templateVisitAll(this,ast.outputs),template_ast_1.templateVisitAll(this,ast.directives),template_ast_1.templateVisitAll(this,ast.children),null},PipeVisitor.prototype.visitEmbeddedTemplate=function(ast,context){return template_ast_1.templateVisitAll(this,ast.outputs),template_ast_1.templateVisitAll(this,ast.directives),template_ast_1.templateVisitAll(this,ast.children),null},PipeVisitor.prototype.visitVariable=function(ast,ctx){return null},PipeVisitor.prototype.visitAttr=function(ast,attrNameAndValues){return null},PipeVisitor.prototype.visitDirective=function(ast,ctx){return template_ast_1.templateVisitAll(this,ast.inputs),template_ast_1.templateVisitAll(this,ast.hostEvents),template_ast_1.templateVisitAll(this,ast.hostProperties),null},PipeVisitor.prototype.visitEvent=function(ast,eventTargetAndNames){return ast.handler.visit(this.collector),null},PipeVisitor.prototype.visitDirectiveProperty=function(ast,context){return ast.value.visit(this.collector),null},PipeVisitor.prototype.visitElementProperty=function(ast,context){return ast.value.visit(this.collector),null},PipeVisitor}();return global.define=__define,module.exports}),$__System.registerDynamic("68",["11","7","a","10","6c","6f","70","71","72","62","73","74","75","76","77","6e","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";function splitClasses(classAttrValue){return lang_1.StringWrapper.split(classAttrValue.trim(),/\s+/g)}function createElementCssSelector(elementName,matchableAttrs){var cssSelector=new selector_1.CssSelector,elNameNoNs=html_tags_1.splitNsName(elementName)[1];cssSelector.setElement(elNameNoNs);for(var i=0;i<matchableAttrs.length;i++){var attrName=matchableAttrs[i][0],attrNameNoNs=html_tags_1.splitNsName(attrName)[1],attrValue=matchableAttrs[i][1];if(cssSelector.addAttribute(attrNameNoNs,attrValue),attrName.toLowerCase()==CLASS_ATTR){var classes=splitClasses(attrValue);classes.forEach(function(className){return cssSelector.addClassName(className)})}}return cssSelector}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},collection_1=$__require("11"),lang_1=$__require("7"),core_1=$__require("a"),lang_2=$__require("7"),exceptions_1=$__require("10"),change_detection_1=$__require("6c"),html_parser_1=$__require("6f"),html_tags_1=$__require("70"),parse_util_1=$__require("71"),ast_1=$__require("72"),template_ast_1=$__require("62"),selector_1=$__require("73"),element_schema_registry_1=$__require("74"),template_preparser_1=$__require("75"),style_url_resolver_1=$__require("76"),html_ast_1=$__require("77"),util_1=$__require("6e"),BIND_NAME_REGEXP=/^(?:(?:(?:(bind-)|(var-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,TEMPLATE_ELEMENT="template",TEMPLATE_ATTR="template",TEMPLATE_ATTR_PREFIX="*",CLASS_ATTR="class",PROPERTY_PARTS_SEPARATOR=".",ATTRIBUTE_PREFIX="attr",CLASS_PREFIX="class",STYLE_PREFIX="style",TEXT_CSS_SELECTOR=selector_1.CssSelector.parse("*")[0];exports.TEMPLATE_TRANSFORMS=lang_2.CONST_EXPR(new core_1.OpaqueToken("TemplateTransforms"));var TemplateParseError=function(_super){function TemplateParseError(message,location){_super.call(this,location,message)}return __extends(TemplateParseError,_super),TemplateParseError}(parse_util_1.ParseError);exports.TemplateParseError=TemplateParseError;var TemplateParser=function(){function TemplateParser(_exprParser,_schemaRegistry,_htmlParser,transforms){this._exprParser=_exprParser,this._schemaRegistry=_schemaRegistry,this._htmlParser=_htmlParser,this.transforms=transforms}return TemplateParser.prototype.parse=function(template,directives,pipes,templateUrl){var parseVisitor=new TemplateParseVisitor(directives,pipes,this._exprParser,this._schemaRegistry),htmlAstWithErrors=this._htmlParser.parse(template,templateUrl),result=html_ast_1.htmlVisitAll(parseVisitor,htmlAstWithErrors.rootNodes,EMPTY_COMPONENT),errors=htmlAstWithErrors.errors.concat(parseVisitor.errors);if(errors.length>0){var errorString=errors.join("\n");throw new exceptions_1.BaseException("Template parse errors:\n"+errorString)}return lang_1.isPresent(this.transforms)&&this.transforms.forEach(function(transform){result=template_ast_1.templateVisitAll(transform,result)}),result},TemplateParser=__decorate([core_1.Injectable(),__param(3,core_1.Optional()),__param(3,core_1.Inject(exports.TEMPLATE_TRANSFORMS)),__metadata("design:paramtypes",[change_detection_1.Parser,element_schema_registry_1.ElementSchemaRegistry,html_parser_1.HtmlParser,Array])],TemplateParser)}();exports.TemplateParser=TemplateParser;var TemplateParseVisitor=function(){function TemplateParseVisitor(directives,pipes,_exprParser,_schemaRegistry){var _this=this;this._exprParser=_exprParser,this._schemaRegistry=_schemaRegistry,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new selector_1.SelectorMatcher,collection_1.ListWrapper.forEachWithIndex(directives,function(directive,index){var selector=selector_1.CssSelector.parse(directive.selector);_this.selectorMatcher.addSelectables(selector,directive),_this.directivesIndex.set(directive,index)}),this.pipesByName=new Map,pipes.forEach(function(pipe){return _this.pipesByName.set(pipe.name,pipe)})}return TemplateParseVisitor.prototype._reportError=function(message,sourceSpan){this.errors.push(new TemplateParseError(message,sourceSpan.start))},TemplateParseVisitor.prototype._parseInterpolation=function(value,sourceSpan){var sourceInfo=sourceSpan.start.toString();try{var ast=this._exprParser.parseInterpolation(value,sourceInfo);return this._checkPipes(ast,sourceSpan),ast}catch(e){return this._reportError(""+e,sourceSpan),this._exprParser.wrapLiteralPrimitive("ERROR",sourceInfo)}},TemplateParseVisitor.prototype._parseAction=function(value,sourceSpan){var sourceInfo=sourceSpan.start.toString();try{var ast=this._exprParser.parseAction(value,sourceInfo);return this._checkPipes(ast,sourceSpan),ast}catch(e){return this._reportError(""+e,sourceSpan),this._exprParser.wrapLiteralPrimitive("ERROR",sourceInfo)}},TemplateParseVisitor.prototype._parseBinding=function(value,sourceSpan){var sourceInfo=sourceSpan.start.toString();try{var ast=this._exprParser.parseBinding(value,sourceInfo);return this._checkPipes(ast,sourceSpan),ast}catch(e){return this._reportError(""+e,sourceSpan),this._exprParser.wrapLiteralPrimitive("ERROR",sourceInfo)}},TemplateParseVisitor.prototype._parseTemplateBindings=function(value,sourceSpan){var _this=this,sourceInfo=sourceSpan.start.toString();try{var bindings=this._exprParser.parseTemplateBindings(value,sourceInfo);return bindings.forEach(function(binding){lang_1.isPresent(binding.expression)&&_this._checkPipes(binding.expression,sourceSpan)}),bindings}catch(e){return this._reportError(""+e,sourceSpan),[]}},TemplateParseVisitor.prototype._checkPipes=function(ast,sourceSpan){var _this=this;if(lang_1.isPresent(ast)){var collector=new PipeCollector;ast.visit(collector),collector.pipes.forEach(function(pipeName){_this.pipesByName.has(pipeName)||_this._reportError("The pipe '"+pipeName+"' could not be found",sourceSpan)})}},TemplateParseVisitor.prototype.visitText=function(ast,component){var ngContentIndex=component.findNgContentIndex(TEXT_CSS_SELECTOR),expr=this._parseInterpolation(ast.value,ast.sourceSpan);return lang_1.isPresent(expr)?new template_ast_1.BoundTextAst(expr,ngContentIndex,ast.sourceSpan):new template_ast_1.TextAst(ast.value,ngContentIndex,ast.sourceSpan)},TemplateParseVisitor.prototype.visitAttr=function(ast,contex){return new template_ast_1.AttrAst(ast.name,ast.value,ast.sourceSpan)},TemplateParseVisitor.prototype.visitElement=function(element,component){var _this=this,nodeName=element.name,preparsedElement=template_preparser_1.preparseElement(element);if(preparsedElement.type===template_preparser_1.PreparsedElementType.SCRIPT||preparsedElement.type===template_preparser_1.PreparsedElementType.STYLE)return null;if(preparsedElement.type===template_preparser_1.PreparsedElementType.STYLESHEET&&style_url_resolver_1.isStyleUrlResolvable(preparsedElement.hrefAttr))return null;var matchableAttrs=[],elementOrDirectiveProps=[],vars=[],events=[],templateElementOrDirectiveProps=[],templateVars=[],templateMatchableAttrs=[],hasInlineTemplates=!1,attrs=[];element.attrs.forEach(function(attr){var hasBinding=_this._parseAttr(attr,matchableAttrs,elementOrDirectiveProps,events,vars),hasTemplateBinding=_this._parseInlineTemplateBinding(attr,templateMatchableAttrs,templateElementOrDirectiveProps,templateVars);hasBinding||hasTemplateBinding||(attrs.push(_this.visitAttr(attr,null)),matchableAttrs.push([attr.name,attr.value])),hasTemplateBinding&&(hasInlineTemplates=!0)});var parsedElement,lcElName=html_tags_1.splitNsName(nodeName.toLowerCase())[1],isTemplateElement=lcElName==TEMPLATE_ELEMENT,elementCssSelector=createElementCssSelector(nodeName,matchableAttrs),directives=this._createDirectiveAsts(element.name,this._parseDirectives(this.selectorMatcher,elementCssSelector),elementOrDirectiveProps,isTemplateElement?[]:vars,element.sourceSpan),elementProps=this._createElementPropertyAsts(element.name,elementOrDirectiveProps,directives),children=html_ast_1.htmlVisitAll(preparsedElement.nonBindable?NON_BINDABLE_VISITOR:this,element.children,Component.create(directives)),elementNgContentIndex=hasInlineTemplates?null:component.findNgContentIndex(elementCssSelector);if(preparsedElement.type===template_preparser_1.PreparsedElementType.NG_CONTENT)lang_1.isPresent(element.children)&&element.children.length>0&&this._reportError("<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>",element.sourceSpan),parsedElement=new template_ast_1.NgContentAst(this.ngContentCount++,elementNgContentIndex,element.sourceSpan);else if(isTemplateElement)this._assertAllEventsPublishedByDirectives(directives,events),this._assertNoComponentsNorElementBindingsOnTemplate(directives,elementProps,element.sourceSpan),parsedElement=new template_ast_1.EmbeddedTemplateAst(attrs,events,vars,directives,children,elementNgContentIndex,element.sourceSpan);else{this._assertOnlyOneComponent(directives,element.sourceSpan);var elementExportAsVars=vars.filter(function(varAst){return 0===varAst.value.length});parsedElement=new template_ast_1.ElementAst(nodeName,attrs,elementProps,events,elementExportAsVars,directives,children,elementNgContentIndex,element.sourceSpan)}if(hasInlineTemplates){var templateCssSelector=createElementCssSelector(TEMPLATE_ELEMENT,templateMatchableAttrs),templateDirectives=this._createDirectiveAsts(element.name,this._parseDirectives(this.selectorMatcher,templateCssSelector),templateElementOrDirectiveProps,[],element.sourceSpan),templateElementProps=this._createElementPropertyAsts(element.name,templateElementOrDirectiveProps,templateDirectives);this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectives,templateElementProps,element.sourceSpan),parsedElement=new template_ast_1.EmbeddedTemplateAst([],[],templateVars,templateDirectives,[parsedElement],component.findNgContentIndex(templateCssSelector),element.sourceSpan)}return parsedElement},TemplateParseVisitor.prototype._parseInlineTemplateBinding=function(attr,targetMatchableAttrs,targetProps,targetVars){var templateBindingsSource=null;if(attr.name==TEMPLATE_ATTR)templateBindingsSource=attr.value;else if(attr.name.startsWith(TEMPLATE_ATTR_PREFIX)){var key=attr.name.substring(TEMPLATE_ATTR_PREFIX.length);templateBindingsSource=0==attr.value.length?key:key+" "+attr.value}if(lang_1.isPresent(templateBindingsSource)){for(var bindings=this._parseTemplateBindings(templateBindingsSource,attr.sourceSpan),i=0;i<bindings.length;i++){var binding=bindings[i];binding.keyIsVar?(targetVars.push(new template_ast_1.VariableAst(binding.key,binding.name,attr.sourceSpan)),targetMatchableAttrs.push([binding.key,binding.name])):lang_1.isPresent(binding.expression)?this._parsePropertyAst(binding.key,binding.expression,attr.sourceSpan,targetMatchableAttrs,targetProps):(targetMatchableAttrs.push([binding.key,""]),this._parseLiteralAttr(binding.key,null,attr.sourceSpan,targetProps))}return!0}return!1},TemplateParseVisitor.prototype._parseAttr=function(attr,targetMatchableAttrs,targetProps,targetEvents,targetVars){var attrName=this._normalizeAttributeName(attr.name),attrValue=attr.value,bindParts=lang_1.RegExpWrapper.firstMatch(BIND_NAME_REGEXP,attrName),hasBinding=!1;if(lang_1.isPresent(bindParts))if(hasBinding=!0,lang_1.isPresent(bindParts[1]))this._parseProperty(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps);else if(lang_1.isPresent(bindParts[2])){var identifier=bindParts[5];this._parseVariable(identifier,attrValue,attr.sourceSpan,targetVars)}else lang_1.isPresent(bindParts[3])?this._parseEvent(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents):lang_1.isPresent(bindParts[4])?(this._parseProperty(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps),this._parseAssignmentEvent(bindParts[5],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents)):lang_1.isPresent(bindParts[6])?(this._parseProperty(bindParts[6],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps),this._parseAssignmentEvent(bindParts[6],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents)):lang_1.isPresent(bindParts[7])?this._parseProperty(bindParts[7],attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps):lang_1.isPresent(bindParts[8])&&this._parseEvent(bindParts[8],attrValue,attr.sourceSpan,targetMatchableAttrs,targetEvents);else hasBinding=this._parsePropertyInterpolation(attrName,attrValue,attr.sourceSpan,targetMatchableAttrs,targetProps);return hasBinding||this._parseLiteralAttr(attrName,attrValue,attr.sourceSpan,targetProps),hasBinding},TemplateParseVisitor.prototype._normalizeAttributeName=function(attrName){return attrName.toLowerCase().startsWith("data-")?attrName.substring(5):attrName},TemplateParseVisitor.prototype._parseVariable=function(identifier,value,sourceSpan,targetVars){identifier.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',sourceSpan),targetVars.push(new template_ast_1.VariableAst(identifier,value,sourceSpan))},TemplateParseVisitor.prototype._parseProperty=function(name,expression,sourceSpan,targetMatchableAttrs,targetProps){this._parsePropertyAst(name,this._parseBinding(expression,sourceSpan),sourceSpan,targetMatchableAttrs,targetProps)},TemplateParseVisitor.prototype._parsePropertyInterpolation=function(name,value,sourceSpan,targetMatchableAttrs,targetProps){var expr=this._parseInterpolation(value,sourceSpan);return lang_1.isPresent(expr)?(this._parsePropertyAst(name,expr,sourceSpan,targetMatchableAttrs,targetProps),!0):!1},TemplateParseVisitor.prototype._parsePropertyAst=function(name,ast,sourceSpan,targetMatchableAttrs,targetProps){targetMatchableAttrs.push([name,ast.source]),targetProps.push(new BoundElementOrDirectiveProperty(name,ast,!1,sourceSpan))},TemplateParseVisitor.prototype._parseAssignmentEvent=function(name,expression,sourceSpan,targetMatchableAttrs,targetEvents){this._parseEvent(name+"Change",expression+"=$event",sourceSpan,targetMatchableAttrs,targetEvents)},TemplateParseVisitor.prototype._parseEvent=function(name,expression,sourceSpan,targetMatchableAttrs,targetEvents){var parts=util_1.splitAtColon(name,[null,name]),target=parts[0],eventName=parts[1],ast=this._parseAction(expression,sourceSpan);targetMatchableAttrs.push([name,ast.source]),targetEvents.push(new template_ast_1.BoundEventAst(eventName,target,ast,sourceSpan))},TemplateParseVisitor.prototype._parseLiteralAttr=function(name,value,sourceSpan,targetProps){targetProps.push(new BoundElementOrDirectiveProperty(name,this._exprParser.wrapLiteralPrimitive(value,""),!0,sourceSpan))},TemplateParseVisitor.prototype._parseDirectives=function(selectorMatcher,elementCssSelector){var _this=this,directives=[];return selectorMatcher.match(elementCssSelector,function(selector,directive){directives.push(directive)}),collection_1.ListWrapper.sort(directives,function(dir1,dir2){var dir1Comp=dir1.isComponent,dir2Comp=dir2.isComponent;return dir1Comp&&!dir2Comp?-1:!dir1Comp&&dir2Comp?1:_this.directivesIndex.get(dir1)-_this.directivesIndex.get(dir2)}),directives},TemplateParseVisitor.prototype._createDirectiveAsts=function(elementName,directives,props,possibleExportAsVars,sourceSpan){var _this=this,matchedVariables=new Set,directiveAsts=directives.map(function(directive){var hostProperties=[],hostEvents=[],directiveProperties=[];_this._createDirectiveHostPropertyAsts(elementName,directive.hostProperties,sourceSpan,hostProperties),_this._createDirectiveHostEventAsts(directive.hostListeners,sourceSpan,hostEvents),_this._createDirectivePropertyAsts(directive.inputs,props,directiveProperties);var exportAsVars=[];return possibleExportAsVars.forEach(function(varAst){(0===varAst.value.length&&directive.isComponent||directive.exportAs==varAst.value)&&(exportAsVars.push(varAst),matchedVariables.add(varAst.name))}),new template_ast_1.DirectiveAst(directive,directiveProperties,hostProperties,hostEvents,exportAsVars,sourceSpan)});return possibleExportAsVars.forEach(function(varAst){varAst.value.length>0&&!collection_1.SetWrapper.has(matchedVariables,varAst.name)&&_this._reportError('There is no directive with "exportAs" set to "'+varAst.value+'"',varAst.sourceSpan)}),directiveAsts},TemplateParseVisitor.prototype._createDirectiveHostPropertyAsts=function(elementName,hostProps,sourceSpan,targetPropertyAsts){var _this=this;lang_1.isPresent(hostProps)&&collection_1.StringMapWrapper.forEach(hostProps,function(expression,propName){var exprAst=_this._parseBinding(expression,sourceSpan);targetPropertyAsts.push(_this._createElementPropertyAst(elementName,propName,exprAst,sourceSpan))})},TemplateParseVisitor.prototype._createDirectiveHostEventAsts=function(hostListeners,sourceSpan,targetEventAsts){var _this=this;lang_1.isPresent(hostListeners)&&collection_1.StringMapWrapper.forEach(hostListeners,function(expression,propName){_this._parseEvent(propName,expression,sourceSpan,[],targetEventAsts)})},TemplateParseVisitor.prototype._createDirectivePropertyAsts=function(directiveProperties,boundProps,targetBoundDirectiveProps){if(lang_1.isPresent(directiveProperties)){var boundPropsByName=new Map;boundProps.forEach(function(boundProp){var prevValue=boundPropsByName.get(boundProp.name);(lang_1.isBlank(prevValue)||prevValue.isLiteral)&&boundPropsByName.set(boundProp.name,boundProp)}),collection_1.StringMapWrapper.forEach(directiveProperties,function(elProp,dirProp){var boundProp=boundPropsByName.get(elProp);lang_1.isPresent(boundProp)&&targetBoundDirectiveProps.push(new template_ast_1.BoundDirectivePropertyAst(dirProp,boundProp.name,boundProp.expression,boundProp.sourceSpan))})}},TemplateParseVisitor.prototype._createElementPropertyAsts=function(elementName,props,directives){var _this=this,boundElementProps=[],boundDirectivePropsIndex=new Map;return directives.forEach(function(directive){directive.inputs.forEach(function(prop){boundDirectivePropsIndex.set(prop.templateName,prop)})}),props.forEach(function(prop){!prop.isLiteral&&lang_1.isBlank(boundDirectivePropsIndex.get(prop.name))&&boundElementProps.push(_this._createElementPropertyAst(elementName,prop.name,prop.expression,prop.sourceSpan))}),boundElementProps},TemplateParseVisitor.prototype._createElementPropertyAst=function(elementName,name,ast,sourceSpan){var bindingType,boundPropertyName,unit=null,parts=name.split(PROPERTY_PARTS_SEPARATOR);return 1===parts.length?(boundPropertyName=this._schemaRegistry.getMappedPropName(parts[0]),bindingType=template_ast_1.PropertyBindingType.Property,this._schemaRegistry.hasProperty(elementName,boundPropertyName)||this._reportError("Can't bind to '"+boundPropertyName+"' since it isn't a known native property",sourceSpan)):parts[0]==ATTRIBUTE_PREFIX?(boundPropertyName=parts[1],bindingType=template_ast_1.PropertyBindingType.Attribute):parts[0]==CLASS_PREFIX?(boundPropertyName=parts[1],bindingType=template_ast_1.PropertyBindingType.Class):parts[0]==STYLE_PREFIX?(unit=parts.length>2?parts[2]:null,boundPropertyName=parts[1],bindingType=template_ast_1.PropertyBindingType.Style):(this._reportError("Invalid property name '"+name+"'",sourceSpan),bindingType=null),new template_ast_1.BoundElementPropertyAst(boundPropertyName,bindingType,ast,unit,sourceSpan)},TemplateParseVisitor.prototype._findComponentDirectiveNames=function(directives){var componentTypeNames=[];return directives.forEach(function(directive){var typeName=directive.directive.type.name;directive.directive.isComponent&&componentTypeNames.push(typeName)}),componentTypeNames},TemplateParseVisitor.prototype._assertOnlyOneComponent=function(directives,sourceSpan){var componentTypeNames=this._findComponentDirectiveNames(directives);componentTypeNames.length>1&&this._reportError("More than one component: "+componentTypeNames.join(","),sourceSpan)},TemplateParseVisitor.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(directives,elementProps,sourceSpan){var _this=this,componentTypeNames=this._findComponentDirectiveNames(directives);componentTypeNames.length>0&&this._reportError("Components on an embedded template: "+componentTypeNames.join(","),sourceSpan),elementProps.forEach(function(prop){_this._reportError("Property binding "+prop.name+" not used by any directive on an embedded template",sourceSpan)})},TemplateParseVisitor.prototype._assertAllEventsPublishedByDirectives=function(directives,events){var _this=this,allDirectiveEvents=new Set;directives.forEach(function(directive){collection_1.StringMapWrapper.forEach(directive.directive.outputs,function(eventName,_){allDirectiveEvents.add(eventName)})}),events.forEach(function(event){(lang_1.isPresent(event.target)||!collection_1.SetWrapper.has(allDirectiveEvents,event.name))&&_this._reportError("Event binding "+event.fullName+" not emitted by any directive on an embedded template",event.sourceSpan)})},TemplateParseVisitor}(),NonBindableVisitor=function(){function NonBindableVisitor(){}return NonBindableVisitor.prototype.visitElement=function(ast,component){var preparsedElement=template_preparser_1.preparseElement(ast);if(preparsedElement.type===template_preparser_1.PreparsedElementType.SCRIPT||preparsedElement.type===template_preparser_1.PreparsedElementType.STYLE||preparsedElement.type===template_preparser_1.PreparsedElementType.STYLESHEET)return null;var attrNameAndValues=ast.attrs.map(function(attrAst){return[attrAst.name,attrAst.value]}),selector=createElementCssSelector(ast.name,attrNameAndValues),ngContentIndex=component.findNgContentIndex(selector),children=html_ast_1.htmlVisitAll(this,ast.children,EMPTY_COMPONENT);return new template_ast_1.ElementAst(ast.name,html_ast_1.htmlVisitAll(this,ast.attrs),[],[],[],[],children,ngContentIndex,ast.sourceSpan)},NonBindableVisitor.prototype.visitAttr=function(ast,context){return new template_ast_1.AttrAst(ast.name,ast.value,ast.sourceSpan);
},NonBindableVisitor.prototype.visitText=function(ast,component){var ngContentIndex=component.findNgContentIndex(TEXT_CSS_SELECTOR);return new template_ast_1.TextAst(ast.value,ngContentIndex,ast.sourceSpan)},NonBindableVisitor}(),BoundElementOrDirectiveProperty=function(){function BoundElementOrDirectiveProperty(name,expression,isLiteral,sourceSpan){this.name=name,this.expression=expression,this.isLiteral=isLiteral,this.sourceSpan=sourceSpan}return BoundElementOrDirectiveProperty}();exports.splitClasses=splitClasses;var Component=function(){function Component(ngContentIndexMatcher,wildcardNgContentIndex){this.ngContentIndexMatcher=ngContentIndexMatcher,this.wildcardNgContentIndex=wildcardNgContentIndex}return Component.create=function(directives){if(0===directives.length||!directives[0].directive.isComponent)return EMPTY_COMPONENT;for(var matcher=new selector_1.SelectorMatcher,ngContentSelectors=directives[0].directive.template.ngContentSelectors,wildcardNgContentIndex=null,i=0;i<ngContentSelectors.length;i++){var selector=ngContentSelectors[i];lang_1.StringWrapper.equals(selector,"*")?wildcardNgContentIndex=i:matcher.addSelectables(selector_1.CssSelector.parse(ngContentSelectors[i]),i)}return new Component(matcher,wildcardNgContentIndex)},Component.prototype.findNgContentIndex=function(selector){var ngContentIndices=[];return this.ngContentIndexMatcher.match(selector,function(selector,ngContentIndex){ngContentIndices.push(ngContentIndex)}),collection_1.ListWrapper.sort(ngContentIndices),lang_1.isPresent(this.wildcardNgContentIndex)&&ngContentIndices.push(this.wildcardNgContentIndex),ngContentIndices.length>0?ngContentIndices[0]:null},Component}(),EMPTY_COMPONENT=new Component(new selector_1.SelectorMatcher,null),NON_BINDABLE_VISITOR=new NonBindableVisitor,PipeCollector=function(_super){function PipeCollector(){_super.apply(this,arguments),this.pipes=new Set}return __extends(PipeCollector,_super),PipeCollector.prototype.visitPipe=function(ast){return this.pipes.add(ast.name),ast.exp.visit(this),this.visitAll(ast.args),null},PipeCollector}(ast_1.RecursiveAstVisitor);exports.PipeCollector=PipeCollector}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("77",["7"],!0,function($__require,exports,module){"use strict";function htmlVisitAll(visitor,asts,context){void 0===context&&(context=null);var result=[];return asts.forEach(function(ast){var astResult=ast.visit(visitor,context);lang_1.isPresent(astResult)&&result.push(astResult)}),result}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),HtmlTextAst=function(){function HtmlTextAst(value,sourceSpan){this.value=value,this.sourceSpan=sourceSpan}return HtmlTextAst.prototype.visit=function(visitor,context){return visitor.visitText(this,context)},HtmlTextAst}();exports.HtmlTextAst=HtmlTextAst;var HtmlAttrAst=function(){function HtmlAttrAst(name,value,sourceSpan){this.name=name,this.value=value,this.sourceSpan=sourceSpan}return HtmlAttrAst.prototype.visit=function(visitor,context){return visitor.visitAttr(this,context)},HtmlAttrAst}();exports.HtmlAttrAst=HtmlAttrAst;var HtmlElementAst=function(){function HtmlElementAst(name,attrs,children,sourceSpan){this.name=name,this.attrs=attrs,this.children=children,this.sourceSpan=sourceSpan}return HtmlElementAst.prototype.visit=function(visitor,context){return visitor.visitElement(this,context)},HtmlElementAst}();return exports.HtmlElementAst=HtmlElementAst,exports.htmlVisitAll=htmlVisitAll,global.define=__define,module.exports}),$__System.registerDynamic("78",["7","11","71","70","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";function tokenizeHtml(sourceContent,sourceUrl){return new _HtmlTokenizer(new parse_util_1.ParseSourceFile(sourceContent,sourceUrl)).tokenize()}function unexpectedCharacterErrorMsg(charCode){var char=charCode===$EOF?"EOF":lang_1.StringWrapper.fromCharCode(charCode);return'Unexpected character "'+char+'"'}function unknownEntityErrorMsg(entitySrc){return'Unknown entity "'+entitySrc+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function isNotWhitespace(code){return!isWhitespace(code)||code===$EOF}function isWhitespace(code){return code>=$TAB&&$SPACE>=code||code===$NBSP}function isNameEnd(code){return isWhitespace(code)||code===$GT||code===$SLASH||code===$SQ||code===$DQ||code===$EQ}function isPrefixEnd(code){return($a>code||code>$z)&&($A>code||code>$Z)&&($0>code||code>$9)}function isDigitEntityEnd(code){return code==$SEMICOLON||code==$EOF||!isAsciiHexDigit(code)}function isNamedEntityEnd(code){return code==$SEMICOLON||code==$EOF||!isAsciiLetter(code)}function isTextEnd(code){return code===$LT||code===$EOF}function isAsciiLetter(code){return code>=$a&&$z>=code||code>=$A&&$Z>=code}function isAsciiHexDigit(code){return code>=$a&&$f>=code||code>=$A&&$F>=code||code>=$0&&$9>=code}function compareCharCodeCaseInsensitive(code1,code2){return toUpperCaseCharCode(code1)==toUpperCaseCharCode(code2)}function toUpperCaseCharCode(code){return code>=$a&&$z>=code?code-$a+$A:code}function mergeTextTokens(srcTokens){for(var lastDstToken,dstTokens=[],i=0;i<srcTokens.length;i++){var token=srcTokens[i];lang_1.isPresent(lastDstToken)&&lastDstToken.type==HtmlTokenType.TEXT&&token.type==HtmlTokenType.TEXT?(lastDstToken.parts[0]+=token.parts[0],lastDstToken.sourceSpan.end=token.sourceSpan.end):(lastDstToken=token,dstTokens.push(lastDstToken))}return dstTokens}var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("7"),collection_1=$__require("11"),parse_util_1=$__require("71"),html_tags_1=$__require("70");!function(HtmlTokenType){HtmlTokenType[HtmlTokenType.TAG_OPEN_START=0]="TAG_OPEN_START",HtmlTokenType[HtmlTokenType.TAG_OPEN_END=1]="TAG_OPEN_END",HtmlTokenType[HtmlTokenType.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",HtmlTokenType[HtmlTokenType.TAG_CLOSE=3]="TAG_CLOSE",HtmlTokenType[HtmlTokenType.TEXT=4]="TEXT",HtmlTokenType[HtmlTokenType.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",HtmlTokenType[HtmlTokenType.RAW_TEXT=6]="RAW_TEXT",HtmlTokenType[HtmlTokenType.COMMENT_START=7]="COMMENT_START",HtmlTokenType[HtmlTokenType.COMMENT_END=8]="COMMENT_END",HtmlTokenType[HtmlTokenType.CDATA_START=9]="CDATA_START",HtmlTokenType[HtmlTokenType.CDATA_END=10]="CDATA_END",HtmlTokenType[HtmlTokenType.ATTR_NAME=11]="ATTR_NAME",HtmlTokenType[HtmlTokenType.ATTR_VALUE=12]="ATTR_VALUE",HtmlTokenType[HtmlTokenType.DOC_TYPE=13]="DOC_TYPE",HtmlTokenType[HtmlTokenType.EOF=14]="EOF"}(exports.HtmlTokenType||(exports.HtmlTokenType={}));var HtmlTokenType=exports.HtmlTokenType,HtmlToken=function(){function HtmlToken(type,parts,sourceSpan){this.type=type,this.parts=parts,this.sourceSpan=sourceSpan}return HtmlToken}();exports.HtmlToken=HtmlToken;var HtmlTokenError=function(_super){function HtmlTokenError(errorMsg,tokenType,location){_super.call(this,location,errorMsg),this.tokenType=tokenType}return __extends(HtmlTokenError,_super),HtmlTokenError}(parse_util_1.ParseError);exports.HtmlTokenError=HtmlTokenError;var HtmlTokenizeResult=function(){function HtmlTokenizeResult(tokens,errors){this.tokens=tokens,this.errors=errors}return HtmlTokenizeResult}();exports.HtmlTokenizeResult=HtmlTokenizeResult,exports.tokenizeHtml=tokenizeHtml;var $EOF=0,$TAB=9,$LF=10,$CR=13,$SPACE=32,$BANG=33,$DQ=34,$HASH=35,$AMPERSAND=38,$SQ=39,$MINUS=45,$SLASH=47,$0=48,$SEMICOLON=59,$9=57,$COLON=58,$LT=60,$EQ=61,$GT=62,$LBRACKET=91,$RBRACKET=93,$A=65,$F=70,$X=88,$Z=90,$a=97,$f=102,$z=122,$x=120,$NBSP=160,CR_OR_CRLF_REGEXP=/\r\n?/g,ControlFlowError=function(){function ControlFlowError(error){this.error=error}return ControlFlowError}(),_HtmlTokenizer=function(){function _HtmlTokenizer(file){this.file=file,this.peek=-1,this.index=-1,this.line=0,this.column=-1,this.tokens=[],this.errors=[],this.input=file.content,this.length=file.content.length,this._advance()}return _HtmlTokenizer.prototype._processCarriageReturns=function(content){return lang_1.StringWrapper.replaceAll(content,CR_OR_CRLF_REGEXP,"\n")},_HtmlTokenizer.prototype.tokenize=function(){for(;this.peek!==$EOF;){var start=this._getLocation();try{this._attemptCharCode($LT)?this._attemptCharCode($BANG)?this._attemptCharCode($LBRACKET)?this._consumeCdata(start):this._attemptCharCode($MINUS)?this._consumeComment(start):this._consumeDocType(start):this._attemptCharCode($SLASH)?this._consumeTagClose(start):this._consumeTagOpen(start):this._consumeText()}catch(e){if(!(e instanceof ControlFlowError))throw e;this.errors.push(e.error)}}return this._beginToken(HtmlTokenType.EOF),this._endToken([]),new HtmlTokenizeResult(mergeTextTokens(this.tokens),this.errors)},_HtmlTokenizer.prototype._getLocation=function(){return new parse_util_1.ParseLocation(this.file,this.index,this.line,this.column)},_HtmlTokenizer.prototype._beginToken=function(type,start){void 0===start&&(start=null),lang_1.isBlank(start)&&(start=this._getLocation()),this.currentTokenStart=start,this.currentTokenType=type},_HtmlTokenizer.prototype._endToken=function(parts,end){void 0===end&&(end=null),lang_1.isBlank(end)&&(end=this._getLocation());var token=new HtmlToken(this.currentTokenType,parts,new parse_util_1.ParseSourceSpan(this.currentTokenStart,end));return this.tokens.push(token),this.currentTokenStart=null,this.currentTokenType=null,token},_HtmlTokenizer.prototype._createError=function(msg,position){var error=new HtmlTokenError(msg,this.currentTokenType,position);return this.currentTokenStart=null,this.currentTokenType=null,new ControlFlowError(error)},_HtmlTokenizer.prototype._advance=function(){if(this.index>=this.length)throw this._createError(unexpectedCharacterErrorMsg($EOF),this._getLocation());this.peek===$LF?(this.line++,this.column=0):this.peek!==$LF&&this.peek!==$CR&&this.column++,this.index++,this.peek=this.index>=this.length?$EOF:lang_1.StringWrapper.charCodeAt(this.input,this.index)},_HtmlTokenizer.prototype._attemptCharCode=function(charCode){return this.peek===charCode?(this._advance(),!0):!1},_HtmlTokenizer.prototype._attemptCharCodeCaseInsensitive=function(charCode){return compareCharCodeCaseInsensitive(this.peek,charCode)?(this._advance(),!0):!1},_HtmlTokenizer.prototype._requireCharCode=function(charCode){var location=this._getLocation();if(!this._attemptCharCode(charCode))throw this._createError(unexpectedCharacterErrorMsg(this.peek),location)},_HtmlTokenizer.prototype._attemptStr=function(chars){for(var i=0;i<chars.length;i++)if(!this._attemptCharCode(lang_1.StringWrapper.charCodeAt(chars,i)))return!1;return!0},_HtmlTokenizer.prototype._attemptStrCaseInsensitive=function(chars){for(var i=0;i<chars.length;i++)if(!this._attemptCharCodeCaseInsensitive(lang_1.StringWrapper.charCodeAt(chars,i)))return!1;return!0},_HtmlTokenizer.prototype._requireStr=function(chars){var location=this._getLocation();if(!this._attemptStr(chars))throw this._createError(unexpectedCharacterErrorMsg(this.peek),location)},_HtmlTokenizer.prototype._attemptCharCodeUntilFn=function(predicate){for(;!predicate(this.peek);)this._advance()},_HtmlTokenizer.prototype._requireCharCodeUntilFn=function(predicate,len){var start=this._getLocation();if(this._attemptCharCodeUntilFn(predicate),this.index-start.offset<len)throw this._createError(unexpectedCharacterErrorMsg(this.peek),start)},_HtmlTokenizer.prototype._attemptUntilChar=function(char){for(;this.peek!==char;)this._advance()},_HtmlTokenizer.prototype._readChar=function(decodeEntities){if(decodeEntities&&this.peek===$AMPERSAND)return this._decodeEntity();var index=this.index;return this._advance(),this.input[index]},_HtmlTokenizer.prototype._decodeEntity=function(){var start=this._getLocation();if(this._advance(),!this._attemptCharCode($HASH)){var startPosition=this._savePosition();if(this._attemptCharCodeUntilFn(isNamedEntityEnd),this.peek!=$SEMICOLON)return this._restorePosition(startPosition),"&";this._advance();var name_1=this.input.substring(start.offset+1,this.index-1),char=html_tags_1.NAMED_ENTITIES[name_1];if(lang_1.isBlank(char))throw this._createError(unknownEntityErrorMsg(name_1),start);return char}var isHex=this._attemptCharCode($x)||this._attemptCharCode($X),numberStart=this._getLocation().offset;if(this._attemptCharCodeUntilFn(isDigitEntityEnd),this.peek!=$SEMICOLON)throw this._createError(unexpectedCharacterErrorMsg(this.peek),this._getLocation());this._advance();var strNum=this.input.substring(numberStart,this.index-1);try{var charCode=lang_1.NumberWrapper.parseInt(strNum,isHex?16:10);return lang_1.StringWrapper.fromCharCode(charCode)}catch(e){var entity=this.input.substring(start.offset+1,this.index-1);throw this._createError(unknownEntityErrorMsg(entity),start)}},_HtmlTokenizer.prototype._consumeRawText=function(decodeEntities,firstCharOfEnd,attemptEndRest){var tagCloseStart,textStart=this._getLocation();this._beginToken(decodeEntities?HtmlTokenType.ESCAPABLE_RAW_TEXT:HtmlTokenType.RAW_TEXT,textStart);for(var parts=[];;){if(tagCloseStart=this._getLocation(),this._attemptCharCode(firstCharOfEnd)&&attemptEndRest())break;for(this.index>tagCloseStart.offset&&parts.push(this.input.substring(tagCloseStart.offset,this.index));this.peek!==firstCharOfEnd;)parts.push(this._readChar(decodeEntities))}return this._endToken([this._processCarriageReturns(parts.join(""))],tagCloseStart)},_HtmlTokenizer.prototype._consumeComment=function(start){var _this=this;this._beginToken(HtmlTokenType.COMMENT_START,start),this._requireCharCode($MINUS),this._endToken([]);var textToken=this._consumeRawText(!1,$MINUS,function(){return _this._attemptStr("->")});this._beginToken(HtmlTokenType.COMMENT_END,textToken.sourceSpan.end),this._endToken([])},_HtmlTokenizer.prototype._consumeCdata=function(start){var _this=this;this._beginToken(HtmlTokenType.CDATA_START,start),this._requireStr("CDATA["),this._endToken([]);var textToken=this._consumeRawText(!1,$RBRACKET,function(){return _this._attemptStr("]>")});this._beginToken(HtmlTokenType.CDATA_END,textToken.sourceSpan.end),this._endToken([])},_HtmlTokenizer.prototype._consumeDocType=function(start){this._beginToken(HtmlTokenType.DOC_TYPE,start),this._attemptUntilChar($GT),this._advance(),this._endToken([this.input.substring(start.offset+2,this.index-1)])},_HtmlTokenizer.prototype._consumePrefixAndName=function(){for(var nameOrPrefixStart=this.index,prefix=null;this.peek!==$COLON&&!isPrefixEnd(this.peek);)this._advance();var nameStart;this.peek===$COLON?(this._advance(),prefix=this.input.substring(nameOrPrefixStart,this.index-1),nameStart=this.index):nameStart=nameOrPrefixStart,this._requireCharCodeUntilFn(isNameEnd,this.index===nameStart?1:0);var name=this.input.substring(nameStart,this.index);return[prefix,name]},_HtmlTokenizer.prototype._consumeTagOpen=function(start){var lowercaseTagName,savedPos=this._savePosition();try{if(!isAsciiLetter(this.peek))throw this._createError(unexpectedCharacterErrorMsg(this.peek),this._getLocation());var nameStart=this.index;for(this._consumeTagOpenStart(start),lowercaseTagName=this.input.substring(nameStart,this.index).toLowerCase(),this._attemptCharCodeUntilFn(isNotWhitespace);this.peek!==$SLASH&&this.peek!==$GT;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._attemptCharCode($EQ)&&(this._attemptCharCodeUntilFn(isNotWhitespace),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(isNotWhitespace);this._consumeTagOpenEnd()}catch(e){if(e instanceof ControlFlowError)return this._restorePosition(savedPos),this._beginToken(HtmlTokenType.TEXT,start),void this._endToken(["<"]);throw e}var contentTokenType=html_tags_1.getHtmlTagDefinition(lowercaseTagName).contentType;contentTokenType===html_tags_1.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(lowercaseTagName,!1):contentTokenType===html_tags_1.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(lowercaseTagName,!0)},_HtmlTokenizer.prototype._consumeRawTextWithTagClose=function(lowercaseTagName,decodeEntities){var _this=this,textToken=this._consumeRawText(decodeEntities,$LT,function(){return _this._attemptCharCode($SLASH)?(_this._attemptCharCodeUntilFn(isNotWhitespace),_this._attemptStrCaseInsensitive(lowercaseTagName)?(_this._attemptCharCodeUntilFn(isNotWhitespace),_this._attemptCharCode($GT)?!0:!1):!1):!1});this._beginToken(HtmlTokenType.TAG_CLOSE,textToken.sourceSpan.end),this._endToken([null,lowercaseTagName])},_HtmlTokenizer.prototype._consumeTagOpenStart=function(start){this._beginToken(HtmlTokenType.TAG_OPEN_START,start);var parts=this._consumePrefixAndName();this._endToken(parts)},_HtmlTokenizer.prototype._consumeAttributeName=function(){this._beginToken(HtmlTokenType.ATTR_NAME);var prefixAndName=this._consumePrefixAndName();this._endToken(prefixAndName)},_HtmlTokenizer.prototype._consumeAttributeValue=function(){this._beginToken(HtmlTokenType.ATTR_VALUE);var value;if(this.peek===$SQ||this.peek===$DQ){var quoteChar=this.peek;this._advance();for(var parts=[];this.peek!==quoteChar;)parts.push(this._readChar(!0));value=parts.join(""),this._advance()}else{var valueStart=this.index;this._requireCharCodeUntilFn(isNameEnd,1),value=this.input.substring(valueStart,this.index)}this._endToken([this._processCarriageReturns(value)])},_HtmlTokenizer.prototype._consumeTagOpenEnd=function(){var tokenType=this._attemptCharCode($SLASH)?HtmlTokenType.TAG_OPEN_END_VOID:HtmlTokenType.TAG_OPEN_END;this._beginToken(tokenType),this._requireCharCode($GT),this._endToken([])},_HtmlTokenizer.prototype._consumeTagClose=function(start){this._beginToken(HtmlTokenType.TAG_CLOSE,start),this._attemptCharCodeUntilFn(isNotWhitespace);var prefixAndName;prefixAndName=this._consumePrefixAndName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._requireCharCode($GT),this._endToken(prefixAndName)},_HtmlTokenizer.prototype._consumeText=function(){var start=this._getLocation();this._beginToken(HtmlTokenType.TEXT,start);for(var parts=[this._readChar(!0)];!isTextEnd(this.peek);)parts.push(this._readChar(!0));this._endToken([this._processCarriageReturns(parts.join(""))])},_HtmlTokenizer.prototype._savePosition=function(){return[this.peek,this.index,this.column,this.line,this.tokens.length]},_HtmlTokenizer.prototype._restorePosition=function(position){this.peek=position[0],this.index=position[1],this.column=position[2],this.line=position[3];var nbTokens=position[4];nbTokens<this.tokens.length&&(this.tokens=collection_1.ListWrapper.slice(this.tokens,0,nbTokens))},_HtmlTokenizer}()}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("71",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var ParseLocation=function(){function ParseLocation(file,offset,line,col){this.file=file,this.offset=offset,this.line=line,this.col=col}return ParseLocation.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},ParseLocation}();exports.ParseLocation=ParseLocation;var ParseSourceFile=function(){function ParseSourceFile(content,url){this.content=content,this.url=url}return ParseSourceFile}();exports.ParseSourceFile=ParseSourceFile;var ParseError=function(){function ParseError(location,msg){this.location=location,this.msg=msg}return ParseError.prototype.toString=function(){var source=this.location.file.content,ctxStart=this.location.offset;ctxStart>source.length-1&&(ctxStart=source.length-1);for(var ctxEnd=ctxStart,ctxLen=0,ctxLines=0;100>ctxLen&&ctxStart>0&&(ctxStart--,ctxLen++,"\n"!=source[ctxStart]||3!=++ctxLines););for(ctxLen=0,ctxLines=0;100>ctxLen&&ctxEnd<source.length-1&&(ctxEnd++,ctxLen++,"\n"!=source[ctxEnd]||3!=++ctxLines););var context=source.substring(ctxStart,this.location.offset)+"[ERROR ->]"+source.substring(this.location.offset,ctxEnd+1);return this.msg+' ("'+context+'"): '+this.location},ParseError}();exports.ParseError=ParseError;var ParseSourceSpan=function(){function ParseSourceSpan(start,end){this.start=start,this.end=end}return ParseSourceSpan.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},ParseSourceSpan}();return exports.ParseSourceSpan=ParseSourceSpan,global.define=__define,module.exports}),$__System.registerDynamic("6f",["7","11","77","3c","78","71","70"],!0,function($__require,exports,module){"use strict";function mergeNsAndName(prefix,localName){return lang_1.isPresent(prefix)?"@"+prefix+":"+localName:localName}function getElementFullName(prefix,localName,parentElement){return lang_1.isBlank(prefix)&&(prefix=html_tags_1.getHtmlTagDefinition(localName).implicitNamespacePrefix,lang_1.isBlank(prefix)&&lang_1.isPresent(parentElement)&&(prefix=html_tags_1.getNsPrefix(parentElement.name))),mergeNsAndName(prefix,localName)}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),collection_1=$__require("11"),html_ast_1=$__require("77"),di_1=$__require("3c"),html_lexer_1=$__require("78"),parse_util_1=$__require("71"),html_tags_1=$__require("70"),HtmlTreeError=function(_super){function HtmlTreeError(elementName,location,msg){_super.call(this,location,msg),this.elementName=elementName}return __extends(HtmlTreeError,_super),HtmlTreeError.create=function(elementName,location,msg){return new HtmlTreeError(elementName,location,msg)},HtmlTreeError}(parse_util_1.ParseError);exports.HtmlTreeError=HtmlTreeError;var HtmlParseTreeResult=function(){function HtmlParseTreeResult(rootNodes,errors){this.rootNodes=rootNodes,this.errors=errors}return HtmlParseTreeResult}();exports.HtmlParseTreeResult=HtmlParseTreeResult;var HtmlParser=function(){function HtmlParser(){}return HtmlParser.prototype.parse=function(sourceContent,sourceUrl){var tokensAndErrors=html_lexer_1.tokenizeHtml(sourceContent,sourceUrl),treeAndErrors=new TreeBuilder(tokensAndErrors.tokens).build();return new HtmlParseTreeResult(treeAndErrors.rootNodes,tokensAndErrors.errors.concat(treeAndErrors.errors))},HtmlParser=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],HtmlParser)}();exports.HtmlParser=HtmlParser;var TreeBuilder=function(){function TreeBuilder(tokens){this.tokens=tokens,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return TreeBuilder.prototype.build=function(){for(;this.peek.type!==html_lexer_1.HtmlTokenType.EOF;)this.peek.type===html_lexer_1.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===html_lexer_1.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===html_lexer_1.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===html_lexer_1.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===html_lexer_1.HtmlTokenType.TEXT||this.peek.type===html_lexer_1.HtmlTokenType.RAW_TEXT||this.peek.type===html_lexer_1.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._advance();return new HtmlParseTreeResult(this.rootNodes,this.errors)},TreeBuilder.prototype._advance=function(){var prev=this.peek;return this.index<this.tokens.length-1&&this.index++,this.peek=this.tokens[this.index],prev},TreeBuilder.prototype._advanceIf=function(type){return this.peek.type===type?this._advance():null},TreeBuilder.prototype._consumeCdata=function(startToken){this._consumeText(this._advance()),this._advanceIf(html_lexer_1.HtmlTokenType.CDATA_END)},TreeBuilder.prototype._consumeComment=function(startToken){this._advanceIf(html_lexer_1.HtmlTokenType.RAW_TEXT),this._advanceIf(html_lexer_1.HtmlTokenType.COMMENT_END)},TreeBuilder.prototype._consumeText=function(token){var text=token.parts[0];if(text.length>0&&"\n"==text[0]){var parent_1=this._getParentElement();lang_1.isPresent(parent_1)&&0==parent_1.children.length&&html_tags_1.getHtmlTagDefinition(parent_1.name).ignoreFirstLf&&(text=text.substring(1))}text.length>0&&this._addToParent(new html_ast_1.HtmlTextAst(text,token.sourceSpan))},TreeBuilder.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var el=collection_1.ListWrapper.last(this.elementStack);html_tags_1.getHtmlTagDefinition(el.name).isVoid&&this.elementStack.pop()}},TreeBuilder.prototype._consumeStartTag=function(startTagToken){for(var prefix=startTagToken.parts[0],name=startTagToken.parts[1],attrs=[];this.peek.type===html_lexer_1.HtmlTokenType.ATTR_NAME;)attrs.push(this._consumeAttr(this._advance()));var fullName=getElementFullName(prefix,name,this._getParentElement()),selfClosing=!1;this.peek.type===html_lexer_1.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),selfClosing=!0,null!=html_tags_1.getNsPrefix(fullName)||html_tags_1.getHtmlTagDefinition(fullName).isVoid||this.errors.push(HtmlTreeError.create(fullName,startTagToken.sourceSpan.start,'Only void and foreign elements can be self closed "'+startTagToken.parts[1]+'"'))):this.peek.type===html_lexer_1.HtmlTokenType.TAG_OPEN_END&&(this._advance(),selfClosing=!1);var end=this.peek.sourceSpan.start,el=new html_ast_1.HtmlElementAst(fullName,attrs,[],new parse_util_1.ParseSourceSpan(startTagToken.sourceSpan.start,end));this._pushElement(el),selfClosing&&this._popElement(fullName)},TreeBuilder.prototype._pushElement=function(el){if(this.elementStack.length>0){var parentEl=collection_1.ListWrapper.last(this.elementStack);html_tags_1.getHtmlTagDefinition(parentEl.name).isClosedByChild(el.name)&&this.elementStack.pop()}var tagDef=html_tags_1.getHtmlTagDefinition(el.name),parentEl=this._getParentElement();if(tagDef.requireExtraParent(lang_1.isPresent(parentEl)?parentEl.name:null)){var newParent=new html_ast_1.HtmlElementAst(tagDef.parentToAdd,[],[el],el.sourceSpan);this._addToParent(newParent),this.elementStack.push(newParent),this.elementStack.push(el)}else this._addToParent(el),this.elementStack.push(el)},TreeBuilder.prototype._consumeEndTag=function(endTagToken){var fullName=getElementFullName(endTagToken.parts[0],endTagToken.parts[1],this._getParentElement());html_tags_1.getHtmlTagDefinition(fullName).isVoid?this.errors.push(HtmlTreeError.create(fullName,endTagToken.sourceSpan.start,'Void elements do not have end tags "'+endTagToken.parts[1]+'"')):this._popElement(fullName)||this.errors.push(HtmlTreeError.create(fullName,endTagToken.sourceSpan.start,'Unexpected closing tag "'+endTagToken.parts[1]+'"'))},TreeBuilder.prototype._popElement=function(fullName){for(var stackIndex=this.elementStack.length-1;stackIndex>=0;stackIndex--){var el=this.elementStack[stackIndex];if(el.name==fullName)return collection_1.ListWrapper.splice(this.elementStack,stackIndex,this.elementStack.length-stackIndex),!0;if(!html_tags_1.getHtmlTagDefinition(el.name).closedByParent)return!1}return!1},TreeBuilder.prototype._consumeAttr=function(attrName){var fullName=mergeNsAndName(attrName.parts[0],attrName.parts[1]),end=attrName.sourceSpan.end,value="";if(this.peek.type===html_lexer_1.HtmlTokenType.ATTR_VALUE){var valueToken=this._advance();value=valueToken.parts[0],end=valueToken.sourceSpan.end}return new html_ast_1.HtmlAttrAst(fullName,value,new parse_util_1.ParseSourceSpan(attrName.sourceSpan.start,end))},TreeBuilder.prototype._getParentElement=function(){return this.elementStack.length>0?collection_1.ListWrapper.last(this.elementStack):null},TreeBuilder.prototype._addToParent=function(node){var parent=this._getParentElement();lang_1.isPresent(parent)?parent.children.push(node):this.rootNodes.push(node)},TreeBuilder}();return global.define=__define,module.exports}),$__System.registerDynamic("75",["7","70"],!0,function($__require,exports,module){"use strict";function preparseElement(ast){var selectAttr=null,hrefAttr=null,relAttr=null,nonBindable=!1;ast.attrs.forEach(function(attr){var lcAttrName=attr.name.toLowerCase();lcAttrName==NG_CONTENT_SELECT_ATTR?selectAttr=attr.value:lcAttrName==LINK_STYLE_HREF_ATTR?hrefAttr=attr.value:lcAttrName==LINK_STYLE_REL_ATTR?relAttr=attr.value:attr.name==NG_NON_BINDABLE_ATTR&&(nonBindable=!0)}),selectAttr=normalizeNgContentSelect(selectAttr);var nodeName=ast.name.toLowerCase(),type=PreparsedElementType.OTHER;return html_tags_1.splitNsName(nodeName)[1]==NG_CONTENT_ELEMENT?type=PreparsedElementType.NG_CONTENT:nodeName==STYLE_ELEMENT?type=PreparsedElementType.STYLE:nodeName==SCRIPT_ELEMENT?type=PreparsedElementType.SCRIPT:nodeName==LINK_ELEMENT&&relAttr==LINK_STYLE_REL_VALUE&&(type=PreparsedElementType.STYLESHEET),new PreparsedElement(type,selectAttr,hrefAttr,nonBindable)}function normalizeNgContentSelect(selectAttr){return lang_1.isBlank(selectAttr)||0===selectAttr.length?"*":selectAttr}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),html_tags_1=$__require("70"),NG_CONTENT_SELECT_ATTR="select",NG_CONTENT_ELEMENT="ng-content",LINK_ELEMENT="link",LINK_STYLE_REL_ATTR="rel",LINK_STYLE_HREF_ATTR="href",LINK_STYLE_REL_VALUE="stylesheet",STYLE_ELEMENT="style",SCRIPT_ELEMENT="script",NG_NON_BINDABLE_ATTR="ngNonBindable";exports.preparseElement=preparseElement,function(PreparsedElementType){PreparsedElementType[PreparsedElementType.NG_CONTENT=0]="NG_CONTENT",PreparsedElementType[PreparsedElementType.STYLE=1]="STYLE",PreparsedElementType[PreparsedElementType.STYLESHEET=2]="STYLESHEET",PreparsedElementType[PreparsedElementType.SCRIPT=3]="SCRIPT",PreparsedElementType[PreparsedElementType.OTHER=4]="OTHER"}(exports.PreparsedElementType||(exports.PreparsedElementType={}));var PreparsedElementType=exports.PreparsedElementType,PreparsedElement=function(){function PreparsedElement(type,selectAttr,hrefAttr,nonBindable){this.type=type,this.selectAttr=selectAttr,this.hrefAttr=hrefAttr,this.nonBindable=nonBindable}return PreparsedElement}();return exports.PreparsedElement=PreparsedElement,global.define=__define,module.exports}),$__System.registerDynamic("69",["61","7","10","9","79","7a","76","3c","7b","77","6f","75"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},directive_metadata_1=$__require("61"),lang_1=$__require("7"),exceptions_1=$__require("10"),async_1=$__require("9"),xhr_1=$__require("79"),url_resolver_1=$__require("7a"),style_url_resolver_1=$__require("76"),di_1=$__require("3c"),view_1=$__require("7b"),html_ast_1=$__require("77"),html_parser_1=$__require("6f"),template_preparser_1=$__require("75"),TemplateNormalizer=function(){function TemplateNormalizer(_xhr,_urlResolver,_htmlParser){this._xhr=_xhr,this._urlResolver=_urlResolver,this._htmlParser=_htmlParser}return TemplateNormalizer.prototype.normalizeTemplate=function(directiveType,template){
var _this=this;if(lang_1.isPresent(template.template))return async_1.PromiseWrapper.resolve(this.normalizeLoadedTemplate(directiveType,template,template.template,directiveType.moduleUrl));if(lang_1.isPresent(template.templateUrl)){var sourceAbsUrl=this._urlResolver.resolve(directiveType.moduleUrl,template.templateUrl);return this._xhr.get(sourceAbsUrl).then(function(templateContent){return _this.normalizeLoadedTemplate(directiveType,template,templateContent,sourceAbsUrl)})}throw new exceptions_1.BaseException("No template specified for component "+directiveType.name)},TemplateNormalizer.prototype.normalizeLoadedTemplate=function(directiveType,templateMeta,template,templateAbsUrl){var _this=this,rootNodesAndErrors=this._htmlParser.parse(template,directiveType.name);if(rootNodesAndErrors.errors.length>0){var errorString=rootNodesAndErrors.errors.join("\n");throw new exceptions_1.BaseException("Template parse errors:\n"+errorString)}var visitor=new TemplatePreparseVisitor;html_ast_1.htmlVisitAll(visitor,rootNodesAndErrors.rootNodes);var allStyles=templateMeta.styles.concat(visitor.styles),allStyleAbsUrls=visitor.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable).map(function(url){return _this._urlResolver.resolve(templateAbsUrl,url)}).concat(templateMeta.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable).map(function(url){return _this._urlResolver.resolve(directiveType.moduleUrl,url)})),allResolvedStyles=allStyles.map(function(style){var styleWithImports=style_url_resolver_1.extractStyleUrls(_this._urlResolver,templateAbsUrl,style);return styleWithImports.styleUrls.forEach(function(styleUrl){return allStyleAbsUrls.push(styleUrl)}),styleWithImports.style}),encapsulation=templateMeta.encapsulation;return encapsulation===view_1.ViewEncapsulation.Emulated&&0===allResolvedStyles.length&&0===allStyleAbsUrls.length&&(encapsulation=view_1.ViewEncapsulation.None),new directive_metadata_1.CompileTemplateMetadata({encapsulation:encapsulation,template:template,templateUrl:templateAbsUrl,styles:allResolvedStyles,styleUrls:allStyleAbsUrls,ngContentSelectors:visitor.ngContentSelectors})},TemplateNormalizer=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[xhr_1.XHR,url_resolver_1.UrlResolver,html_parser_1.HtmlParser])],TemplateNormalizer)}();exports.TemplateNormalizer=TemplateNormalizer;var TemplatePreparseVisitor=function(){function TemplatePreparseVisitor(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return TemplatePreparseVisitor.prototype.visitElement=function(ast,context){var preparsedElement=template_preparser_1.preparseElement(ast);switch(preparsedElement.type){case template_preparser_1.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(preparsedElement.selectAttr);break;case template_preparser_1.PreparsedElementType.STYLE:var textContent="";ast.children.forEach(function(child){child instanceof html_ast_1.HtmlTextAst&&(textContent+=child.value)}),this.styles.push(textContent);break;case template_preparser_1.PreparsedElementType.STYLESHEET:this.styleUrls.push(preparsedElement.hrefAttr)}return preparsedElement.nonBindable&&this.ngNonBindableStackCount++,html_ast_1.htmlVisitAll(this,ast.children),preparsedElement.nonBindable&&this.ngNonBindableStackCount--,null},TemplatePreparseVisitor.prototype.visitAttr=function(ast,context){return null},TemplatePreparseVisitor.prototype.visitText=function(ast,context){return null},TemplatePreparseVisitor}();return global.define=__define,module.exports}),$__System.registerDynamic("73",["11","7","10","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";var collection_1=$__require("11"),lang_1=$__require("7"),exceptions_1=$__require("10"),_EMPTY_ATTR_VALUE="",_SELECTOR_REGEXP=lang_1.RegExpWrapper.create("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)"),CssSelector=function(){function CssSelector(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return CssSelector.parse=function(selector){for(var match,results=[],_addResult=function(res,cssSel){cssSel.notSelectors.length>0&&lang_1.isBlank(cssSel.element)&&collection_1.ListWrapper.isEmpty(cssSel.classNames)&&collection_1.ListWrapper.isEmpty(cssSel.attrs)&&(cssSel.element="*"),res.push(cssSel)},cssSelector=new CssSelector,matcher=lang_1.RegExpWrapper.matcher(_SELECTOR_REGEXP,selector),current=cssSelector,inNot=!1;lang_1.isPresent(match=lang_1.RegExpMatcherWrapper.next(matcher));){if(lang_1.isPresent(match[1])){if(inNot)throw new exceptions_1.BaseException("Nesting :not is not allowed in a selector");inNot=!0,current=new CssSelector,cssSelector.notSelectors.push(current)}if(lang_1.isPresent(match[2])&&current.setElement(match[2]),lang_1.isPresent(match[3])&&current.addClassName(match[3]),lang_1.isPresent(match[4])&&current.addAttribute(match[4],match[5]),lang_1.isPresent(match[6])&&(inNot=!1,current=cssSelector),lang_1.isPresent(match[7])){if(inNot)throw new exceptions_1.BaseException("Multiple selectors in :not are not supported");_addResult(results,cssSelector),cssSelector=current=new CssSelector}}return _addResult(results,cssSelector),results},CssSelector.prototype.isElementSelector=function(){return lang_1.isPresent(this.element)&&collection_1.ListWrapper.isEmpty(this.classNames)&&collection_1.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},CssSelector.prototype.setElement=function(element){void 0===element&&(element=null),this.element=element},CssSelector.prototype.getMatchingElementTemplate=function(){for(var tagName=lang_1.isPresent(this.element)?this.element:"div",classAttr=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",attrs="",i=0;i<this.attrs.length;i+=2){var attrName=this.attrs[i],attrValue=""!==this.attrs[i+1]?'="'+this.attrs[i+1]+'"':"";attrs+=" "+attrName+attrValue}return"<"+tagName+classAttr+attrs+"></"+tagName+">"},CssSelector.prototype.addAttribute=function(name,value){void 0===value&&(value=_EMPTY_ATTR_VALUE),this.attrs.push(name),value=lang_1.isPresent(value)?value.toLowerCase():_EMPTY_ATTR_VALUE,this.attrs.push(value)},CssSelector.prototype.addClassName=function(name){this.classNames.push(name.toLowerCase())},CssSelector.prototype.toString=function(){var res="";if(lang_1.isPresent(this.element)&&(res+=this.element),lang_1.isPresent(this.classNames))for(var i=0;i<this.classNames.length;i++)res+="."+this.classNames[i];if(lang_1.isPresent(this.attrs))for(var i=0;i<this.attrs.length;){var attrName=this.attrs[i++],attrValue=this.attrs[i++];res+="["+attrName,attrValue.length>0&&(res+="="+attrValue),res+="]"}return this.notSelectors.forEach(function(notSelector){return res+=":not("+notSelector+")"}),res},CssSelector}();exports.CssSelector=CssSelector;var SelectorMatcher=function(){function SelectorMatcher(){this._elementMap=new collection_1.Map,this._elementPartialMap=new collection_1.Map,this._classMap=new collection_1.Map,this._classPartialMap=new collection_1.Map,this._attrValueMap=new collection_1.Map,this._attrValuePartialMap=new collection_1.Map,this._listContexts=[]}return SelectorMatcher.createNotMatcher=function(notSelectors){var notMatcher=new SelectorMatcher;return notMatcher.addSelectables(notSelectors,null),notMatcher},SelectorMatcher.prototype.addSelectables=function(cssSelectors,callbackCtxt){var listContext=null;cssSelectors.length>1&&(listContext=new SelectorListContext(cssSelectors),this._listContexts.push(listContext));for(var i=0;i<cssSelectors.length;i++)this._addSelectable(cssSelectors[i],callbackCtxt,listContext)},SelectorMatcher.prototype._addSelectable=function(cssSelector,callbackCtxt,listContext){var matcher=this,element=cssSelector.element,classNames=cssSelector.classNames,attrs=cssSelector.attrs,selectable=new SelectorContext(cssSelector,callbackCtxt,listContext);if(lang_1.isPresent(element)){var isTerminal=0===attrs.length&&0===classNames.length;isTerminal?this._addTerminal(matcher._elementMap,element,selectable):matcher=this._addPartial(matcher._elementPartialMap,element)}if(lang_1.isPresent(classNames))for(var index=0;index<classNames.length;index++){var isTerminal=0===attrs.length&&index===classNames.length-1,className=classNames[index];isTerminal?this._addTerminal(matcher._classMap,className,selectable):matcher=this._addPartial(matcher._classPartialMap,className)}if(lang_1.isPresent(attrs))for(var index=0;index<attrs.length;){var isTerminal=index===attrs.length-2,attrName=attrs[index++],attrValue=attrs[index++];if(isTerminal){var terminalMap=matcher._attrValueMap,terminalValuesMap=terminalMap.get(attrName);lang_1.isBlank(terminalValuesMap)&&(terminalValuesMap=new collection_1.Map,terminalMap.set(attrName,terminalValuesMap)),this._addTerminal(terminalValuesMap,attrValue,selectable)}else{var parttialMap=matcher._attrValuePartialMap,partialValuesMap=parttialMap.get(attrName);lang_1.isBlank(partialValuesMap)&&(partialValuesMap=new collection_1.Map,parttialMap.set(attrName,partialValuesMap)),matcher=this._addPartial(partialValuesMap,attrValue)}}},SelectorMatcher.prototype._addTerminal=function(map,name,selectable){var terminalList=map.get(name);lang_1.isBlank(terminalList)&&(terminalList=[],map.set(name,terminalList)),terminalList.push(selectable)},SelectorMatcher.prototype._addPartial=function(map,name){var matcher=map.get(name);return lang_1.isBlank(matcher)&&(matcher=new SelectorMatcher,map.set(name,matcher)),matcher},SelectorMatcher.prototype.match=function(cssSelector,matchedCallback){for(var result=!1,element=cssSelector.element,classNames=cssSelector.classNames,attrs=cssSelector.attrs,i=0;i<this._listContexts.length;i++)this._listContexts[i].alreadyMatched=!1;if(result=this._matchTerminal(this._elementMap,element,cssSelector,matchedCallback)||result,result=this._matchPartial(this._elementPartialMap,element,cssSelector,matchedCallback)||result,lang_1.isPresent(classNames))for(var index=0;index<classNames.length;index++){var className=classNames[index];result=this._matchTerminal(this._classMap,className,cssSelector,matchedCallback)||result,result=this._matchPartial(this._classPartialMap,className,cssSelector,matchedCallback)||result}if(lang_1.isPresent(attrs))for(var index=0;index<attrs.length;){var attrName=attrs[index++],attrValue=attrs[index++],terminalValuesMap=this._attrValueMap.get(attrName);lang_1.StringWrapper.equals(attrValue,_EMPTY_ATTR_VALUE)||(result=this._matchTerminal(terminalValuesMap,_EMPTY_ATTR_VALUE,cssSelector,matchedCallback)||result),result=this._matchTerminal(terminalValuesMap,attrValue,cssSelector,matchedCallback)||result;var partialValuesMap=this._attrValuePartialMap.get(attrName);lang_1.StringWrapper.equals(attrValue,_EMPTY_ATTR_VALUE)||(result=this._matchPartial(partialValuesMap,_EMPTY_ATTR_VALUE,cssSelector,matchedCallback)||result),result=this._matchPartial(partialValuesMap,attrValue,cssSelector,matchedCallback)||result}return result},SelectorMatcher.prototype._matchTerminal=function(map,name,cssSelector,matchedCallback){if(lang_1.isBlank(map)||lang_1.isBlank(name))return!1;var selectables=map.get(name),starSelectables=map.get("*");if(lang_1.isPresent(starSelectables)&&(selectables=selectables.concat(starSelectables)),lang_1.isBlank(selectables))return!1;for(var selectable,result=!1,index=0;index<selectables.length;index++)selectable=selectables[index],result=selectable.finalize(cssSelector,matchedCallback)||result;return result},SelectorMatcher.prototype._matchPartial=function(map,name,cssSelector,matchedCallback){if(lang_1.isBlank(map)||lang_1.isBlank(name))return!1;var nestedSelector=map.get(name);return lang_1.isBlank(nestedSelector)?!1:nestedSelector.match(cssSelector,matchedCallback)},SelectorMatcher}();exports.SelectorMatcher=SelectorMatcher;var SelectorListContext=function(){function SelectorListContext(selectors){this.selectors=selectors,this.alreadyMatched=!1}return SelectorListContext}();exports.SelectorListContext=SelectorListContext;var SelectorContext=function(){function SelectorContext(selector,cbContext,listContext){this.selector=selector,this.cbContext=cbContext,this.listContext=listContext,this.notSelectors=selector.notSelectors}return SelectorContext.prototype.finalize=function(cssSelector,callback){var result=!0;if(this.notSelectors.length>0&&(lang_1.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var notMatcher=SelectorMatcher.createNotMatcher(this.notSelectors);result=!notMatcher.match(cssSelector,null)}return result&&lang_1.isPresent(callback)&&(lang_1.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(lang_1.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),callback(this.selector,this.cbContext)),result},SelectorContext}();exports.SelectorContext=SelectorContext}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("61",["7","10","11","6c","7b","73","6e","7c"],!0,function($__require,exports,module){"use strict";function createHostComponentMeta(componentType,componentSelector){var template=selector_1.CssSelector.parse(componentSelector)[0].getMatchingElementTemplate();return CompileDirectiveMetadata.create({type:new CompileTypeMetadata({runtime:Object,name:"Host"+componentType.name,moduleUrl:componentType.moduleUrl,isHost:!0}),template:new CompileTemplateMetadata({template:template,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[]}),changeDetection:change_detection_1.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},lifecycleHooks:[],isComponent:!0,dynamicLoadable:!1,selector:"*"})}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),change_detection_1=$__require("6c"),view_1=$__require("7b"),selector_1=$__require("73"),util_1=$__require("6e"),interfaces_1=$__require("7c"),HOST_REG_EXP=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g,CompileMetadataWithType=function(){function CompileMetadataWithType(){}return CompileMetadataWithType.fromJson=function(data){return _COMPILE_METADATA_FROM_JSON[data["class"]](data)},Object.defineProperty(CompileMetadataWithType.prototype,"type",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),CompileMetadataWithType}();exports.CompileMetadataWithType=CompileMetadataWithType;var CompileTypeMetadata=function(){function CompileTypeMetadata(_a){var _b=void 0===_a?{}:_a,runtime=_b.runtime,name=_b.name,moduleUrl=_b.moduleUrl,isHost=_b.isHost;this.runtime=runtime,this.name=name,this.moduleUrl=moduleUrl,this.isHost=lang_1.normalizeBool(isHost)}return CompileTypeMetadata.fromJson=function(data){return new CompileTypeMetadata({name:data.name,moduleUrl:data.moduleUrl,isHost:data.isHost})},CompileTypeMetadata.prototype.toJson=function(){return{name:this.name,moduleUrl:this.moduleUrl,isHost:this.isHost}},CompileTypeMetadata}();exports.CompileTypeMetadata=CompileTypeMetadata;var CompileTemplateMetadata=function(){function CompileTemplateMetadata(_a){var _b=void 0===_a?{}:_a,encapsulation=_b.encapsulation,template=_b.template,templateUrl=_b.templateUrl,styles=_b.styles,styleUrls=_b.styleUrls,ngContentSelectors=_b.ngContentSelectors;this.encapsulation=lang_1.isPresent(encapsulation)?encapsulation:view_1.ViewEncapsulation.Emulated,this.template=template,this.templateUrl=templateUrl,this.styles=lang_1.isPresent(styles)?styles:[],this.styleUrls=lang_1.isPresent(styleUrls)?styleUrls:[],this.ngContentSelectors=lang_1.isPresent(ngContentSelectors)?ngContentSelectors:[]}return CompileTemplateMetadata.fromJson=function(data){return new CompileTemplateMetadata({encapsulation:lang_1.isPresent(data.encapsulation)?view_1.VIEW_ENCAPSULATION_VALUES[data.encapsulation]:data.encapsulation,template:data.template,templateUrl:data.templateUrl,styles:data.styles,styleUrls:data.styleUrls,ngContentSelectors:data.ngContentSelectors})},CompileTemplateMetadata.prototype.toJson=function(){return{encapsulation:lang_1.isPresent(this.encapsulation)?lang_1.serializeEnum(this.encapsulation):this.encapsulation,template:this.template,templateUrl:this.templateUrl,styles:this.styles,styleUrls:this.styleUrls,ngContentSelectors:this.ngContentSelectors}},CompileTemplateMetadata}();exports.CompileTemplateMetadata=CompileTemplateMetadata;var CompileDirectiveMetadata=function(){function CompileDirectiveMetadata(_a){var _b=void 0===_a?{}:_a,type=_b.type,isComponent=_b.isComponent,dynamicLoadable=_b.dynamicLoadable,selector=_b.selector,exportAs=_b.exportAs,changeDetection=_b.changeDetection,inputs=_b.inputs,outputs=_b.outputs,hostListeners=_b.hostListeners,hostProperties=_b.hostProperties,hostAttributes=_b.hostAttributes,lifecycleHooks=_b.lifecycleHooks,template=_b.template;this.type=type,this.isComponent=isComponent,this.dynamicLoadable=dynamicLoadable,this.selector=selector,this.exportAs=exportAs,this.changeDetection=changeDetection,this.inputs=inputs,this.outputs=outputs,this.hostListeners=hostListeners,this.hostProperties=hostProperties,this.hostAttributes=hostAttributes,this.lifecycleHooks=lifecycleHooks,this.template=template}return CompileDirectiveMetadata.create=function(_a){var _b=void 0===_a?{}:_a,type=_b.type,isComponent=_b.isComponent,dynamicLoadable=_b.dynamicLoadable,selector=_b.selector,exportAs=_b.exportAs,changeDetection=_b.changeDetection,inputs=_b.inputs,outputs=_b.outputs,host=_b.host,lifecycleHooks=_b.lifecycleHooks,template=_b.template,hostListeners={},hostProperties={},hostAttributes={};lang_1.isPresent(host)&&collection_1.StringMapWrapper.forEach(host,function(value,key){var matches=lang_1.RegExpWrapper.firstMatch(HOST_REG_EXP,key);lang_1.isBlank(matches)?hostAttributes[key]=value:lang_1.isPresent(matches[1])?hostProperties[matches[1]]=value:lang_1.isPresent(matches[2])&&(hostListeners[matches[2]]=value)});var inputsMap={};lang_1.isPresent(inputs)&&inputs.forEach(function(bindConfig){var parts=util_1.splitAtColon(bindConfig,[bindConfig,bindConfig]);inputsMap[parts[0]]=parts[1]});var outputsMap={};return lang_1.isPresent(outputs)&&outputs.forEach(function(bindConfig){var parts=util_1.splitAtColon(bindConfig,[bindConfig,bindConfig]);outputsMap[parts[0]]=parts[1]}),new CompileDirectiveMetadata({type:type,isComponent:lang_1.normalizeBool(isComponent),dynamicLoadable:lang_1.normalizeBool(dynamicLoadable),selector:selector,exportAs:exportAs,changeDetection:changeDetection,inputs:inputsMap,outputs:outputsMap,hostListeners:hostListeners,hostProperties:hostProperties,hostAttributes:hostAttributes,lifecycleHooks:lang_1.isPresent(lifecycleHooks)?lifecycleHooks:[],template:template})},CompileDirectiveMetadata.fromJson=function(data){return new CompileDirectiveMetadata({isComponent:data.isComponent,dynamicLoadable:data.dynamicLoadable,selector:data.selector,exportAs:data.exportAs,type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,changeDetection:lang_1.isPresent(data.changeDetection)?change_detection_1.CHANGE_DETECTION_STRATEGY_VALUES[data.changeDetection]:data.changeDetection,inputs:data.inputs,outputs:data.outputs,hostListeners:data.hostListeners,hostProperties:data.hostProperties,hostAttributes:data.hostAttributes,lifecycleHooks:data.lifecycleHooks.map(function(hookValue){return interfaces_1.LIFECYCLE_HOOKS_VALUES[hookValue]}),template:lang_1.isPresent(data.template)?CompileTemplateMetadata.fromJson(data.template):data.template})},CompileDirectiveMetadata.prototype.toJson=function(){return{"class":"Directive",isComponent:this.isComponent,dynamicLoadable:this.dynamicLoadable,selector:this.selector,exportAs:this.exportAs,type:lang_1.isPresent(this.type)?this.type.toJson():this.type,changeDetection:lang_1.isPresent(this.changeDetection)?lang_1.serializeEnum(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(hook){return lang_1.serializeEnum(hook)}),template:lang_1.isPresent(this.template)?this.template.toJson():this.template}},CompileDirectiveMetadata}();exports.CompileDirectiveMetadata=CompileDirectiveMetadata,exports.createHostComponentMeta=createHostComponentMeta;var CompilePipeMetadata=function(){function CompilePipeMetadata(_a){var _b=void 0===_a?{}:_a,type=_b.type,name=_b.name,pure=_b.pure;this.type=type,this.name=name,this.pure=lang_1.normalizeBool(pure)}return CompilePipeMetadata.fromJson=function(data){return new CompilePipeMetadata({type:lang_1.isPresent(data.type)?CompileTypeMetadata.fromJson(data.type):data.type,name:data.name,pure:data.pure})},CompilePipeMetadata.prototype.toJson=function(){return{"class":"Pipe",type:lang_1.isPresent(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},CompilePipeMetadata}();exports.CompilePipeMetadata=CompilePipeMetadata;var _COMPILE_METADATA_FROM_JSON={Directive:CompileDirectiveMetadata.fromJson,Pipe:CompilePipeMetadata.fromJson};return global.define=__define,module.exports}),$__System.registerDynamic("7d",["7","7c"],!0,function($__require,exports,module){"use strict";function hasLifecycleHook(lcInterface,token){if(!(token instanceof lang_1.Type))return!1;var proto=token.prototype;switch(lcInterface){case interfaces_1.LifecycleHooks.AfterContentInit:return!!proto.ngAfterContentInit;case interfaces_1.LifecycleHooks.AfterContentChecked:return!!proto.ngAfterContentChecked;case interfaces_1.LifecycleHooks.AfterViewInit:return!!proto.ngAfterViewInit;case interfaces_1.LifecycleHooks.AfterViewChecked:return!!proto.ngAfterViewChecked;case interfaces_1.LifecycleHooks.OnChanges:return!!proto.ngOnChanges;case interfaces_1.LifecycleHooks.DoCheck:return!!proto.ngDoCheck;case interfaces_1.LifecycleHooks.OnDestroy:return!!proto.ngOnDestroy;case interfaces_1.LifecycleHooks.OnInit:return!!proto.ngOnInit;default:return!1}}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),interfaces_1=$__require("7c");return exports.hasLifecycleHook=hasLifecycleHook,global.define=__define,module.exports}),$__System.registerDynamic("6a",["3c","7","10","61","7e","7f","80","81","7d","7c","82","83","6e","7a"],!0,function($__require,exports,module){"use strict";function flattenDirectives(view,platformDirectives){var directives=[];return lang_1.isPresent(platformDirectives)&&flattenArray(platformDirectives,directives),lang_1.isPresent(view.directives)&&flattenArray(view.directives,directives),directives}function flattenPipes(view,platformPipes){var pipes=[];return lang_1.isPresent(platformPipes)&&flattenArray(platformPipes,pipes),lang_1.isPresent(view.pipes)&&flattenArray(view.pipes,pipes),pipes}function flattenArray(tree,out){for(var i=0;i<tree.length;i++){var item=di_1.resolveForwardRef(tree[i]);lang_1.isArray(item)?flattenArray(item,out):out.push(item)}}function isValidType(value){return lang_1.isPresent(value)&&value instanceof lang_1.Type}function calcModuleUrl(type,cmpMetadata){var moduleId=cmpMetadata.moduleId;if(lang_1.isPresent(moduleId)){var scheme=url_resolver_1.getUrlScheme(moduleId);return lang_1.isPresent(scheme)&&scheme.length>0?moduleId:"package:"+moduleId+util_1.MODULE_SUFFIX}return reflection_1.reflector.importUri(type)}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3c"),lang_1=$__require("7"),exceptions_1=$__require("10"),cpl=$__require("61"),md=$__require("7e"),directive_resolver_1=$__require("7f"),pipe_resolver_1=$__require("80"),view_resolver_1=$__require("81"),directive_lifecycle_reflector_1=$__require("7d"),interfaces_1=$__require("7c"),reflection_1=$__require("82"),di_2=$__require("3c"),platform_directives_and_pipes_1=$__require("83"),util_1=$__require("6e"),url_resolver_1=$__require("7a"),RuntimeMetadataResolver=function(){function RuntimeMetadataResolver(_directiveResolver,_pipeResolver,_viewResolver,_platformDirectives,_platformPipes){this._directiveResolver=_directiveResolver,this._pipeResolver=_pipeResolver,this._viewResolver=_viewResolver,this._platformDirectives=_platformDirectives,this._platformPipes=_platformPipes,this._directiveCache=new Map,this._pipeCache=new Map}return RuntimeMetadataResolver.prototype.getDirectiveMetadata=function(directiveType){var meta=this._directiveCache.get(directiveType);if(lang_1.isBlank(meta)){var dirMeta=this._directiveResolver.resolve(directiveType),moduleUrl=null,templateMeta=null,changeDetectionStrategy=null;if(dirMeta instanceof md.ComponentMetadata){var cmpMeta=dirMeta;moduleUrl=calcModuleUrl(directiveType,cmpMeta);var viewMeta=this._viewResolver.resolve(directiveType);templateMeta=new cpl.CompileTemplateMetadata({encapsulation:viewMeta.encapsulation,template:viewMeta.template,templateUrl:viewMeta.templateUrl,styles:viewMeta.styles,styleUrls:viewMeta.styleUrls}),changeDetectionStrategy=cmpMeta.changeDetection}meta=cpl.CompileDirectiveMetadata.create({selector:dirMeta.selector,exportAs:dirMeta.exportAs,isComponent:lang_1.isPresent(templateMeta),dynamicLoadable:!0,type:new cpl.CompileTypeMetadata({name:lang_1.stringify(directiveType),moduleUrl:moduleUrl,runtime:directiveType}),template:templateMeta,changeDetection:changeDetectionStrategy,inputs:dirMeta.inputs,outputs:dirMeta.outputs,host:dirMeta.host,lifecycleHooks:interfaces_1.LIFECYCLE_HOOKS_VALUES.filter(function(hook){return directive_lifecycle_reflector_1.hasLifecycleHook(hook,directiveType)})}),this._directiveCache.set(directiveType,meta)}return meta},RuntimeMetadataResolver.prototype.getPipeMetadata=function(pipeType){var meta=this._pipeCache.get(pipeType);if(lang_1.isBlank(meta)){var pipeMeta=this._pipeResolver.resolve(pipeType),moduleUrl=reflection_1.reflector.importUri(pipeType);meta=new cpl.CompilePipeMetadata({type:new cpl.CompileTypeMetadata({name:lang_1.stringify(pipeType),moduleUrl:moduleUrl,runtime:pipeType}),name:pipeMeta.name,pure:pipeMeta.pure}),this._pipeCache.set(pipeType,meta)}return meta},RuntimeMetadataResolver.prototype.getViewDirectivesMetadata=function(component){for(var _this=this,view=this._viewResolver.resolve(component),directives=flattenDirectives(view,this._platformDirectives),i=0;i<directives.length;i++)if(!isValidType(directives[i]))throw new exceptions_1.BaseException("Unexpected directive value '"+lang_1.stringify(directives[i])+"' on the View of component '"+lang_1.stringify(component)+"'");return directives.map(function(type){return _this.getDirectiveMetadata(type)})},RuntimeMetadataResolver.prototype.getViewPipesMetadata=function(component){for(var _this=this,view=this._viewResolver.resolve(component),pipes=flattenPipes(view,this._platformPipes),i=0;i<pipes.length;i++)if(!isValidType(pipes[i]))throw new exceptions_1.BaseException("Unexpected piped value '"+lang_1.stringify(pipes[i])+"' on the View of component '"+lang_1.stringify(component)+"'");return pipes.map(function(type){return _this.getPipeMetadata(type)})},RuntimeMetadataResolver=__decorate([di_2.Injectable(),__param(3,di_2.Optional()),__param(3,di_2.Inject(platform_directives_and_pipes_1.PLATFORM_DIRECTIVES)),__param(4,di_2.Optional()),__param(4,di_2.Inject(platform_directives_and_pipes_1.PLATFORM_PIPES)),__metadata("design:paramtypes",[directive_resolver_1.DirectiveResolver,pipe_resolver_1.PipeResolver,view_resolver_1.ViewResolver,Array,Array])],RuntimeMetadataResolver)}();return exports.RuntimeMetadataResolver=RuntimeMetadataResolver,global.define=__define,module.exports}),$__System.registerDynamic("7c",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0,function(LifecycleHooks){LifecycleHooks[LifecycleHooks.OnInit=0]="OnInit",LifecycleHooks[LifecycleHooks.OnDestroy=1]="OnDestroy",LifecycleHooks[LifecycleHooks.DoCheck=2]="DoCheck",LifecycleHooks[LifecycleHooks.OnChanges=3]="OnChanges",LifecycleHooks[LifecycleHooks.AfterContentInit=4]="AfterContentInit",LifecycleHooks[LifecycleHooks.AfterContentChecked=5]="AfterContentChecked",LifecycleHooks[LifecycleHooks.AfterViewInit=6]="AfterViewInit",LifecycleHooks[LifecycleHooks.AfterViewChecked=7]="AfterViewChecked"}(exports.LifecycleHooks||(exports.LifecycleHooks={}));var LifecycleHooks=exports.LifecycleHooks;return exports.LIFECYCLE_HOOKS_VALUES=[LifecycleHooks.OnInit,LifecycleHooks.OnDestroy,LifecycleHooks.DoCheck,LifecycleHooks.OnChanges,LifecycleHooks.AfterContentInit,LifecycleHooks.AfterContentChecked,LifecycleHooks.AfterViewInit,LifecycleHooks.AfterViewChecked],global.define=__define,module.exports}),$__System.registerDynamic("84",["11","7","82","6c","62","7c"],!0,function($__require,exports,module){"use strict";function createChangeDetectorDefinitions(componentType,componentStrategy,genConfig,parsedTemplate){var pvVisitors=[],visitor=new ProtoViewVisitor(null,pvVisitors,componentStrategy);return template_ast_1.templateVisitAll(visitor,parsedTemplate),createChangeDefinitions(pvVisitors,componentType,genConfig)}function createChangeDefinitions(pvVisitors,componentType,genConfig){var pvVariableNames=_collectNestedProtoViewsVariableNames(pvVisitors);return pvVisitors.map(function(pvVisitor){var id=componentType.name+"_"+pvVisitor.viewIndex;return new change_detection_1.ChangeDetectorDefinition(id,pvVisitor.strategy,pvVariableNames[pvVisitor.viewIndex],pvVisitor.bindingRecords,pvVisitor.eventRecords,pvVisitor.directiveRecords,genConfig)})}function _collectNestedProtoViewsVariableNames(pvVisitors){var nestedPvVariableNames=collection_1.ListWrapper.createFixedSize(pvVisitors.length);return pvVisitors.forEach(function(pv){var parentVariableNames=lang_1.isPresent(pv.parent)?nestedPvVariableNames[pv.parent.viewIndex]:[];nestedPvVariableNames[pv.viewIndex]=parentVariableNames.concat(pv.variableNames)}),nestedPvVariableNames}var global=this,__define=global.define;global.define=void 0;var collection_1=$__require("11"),lang_1=$__require("7"),reflection_1=$__require("82"),change_detection_1=$__require("6c"),template_ast_1=$__require("62"),interfaces_1=$__require("7c");exports.createChangeDetectorDefinitions=createChangeDetectorDefinitions;var ProtoViewVisitor=function(){function ProtoViewVisitor(parent,allVisitors,strategy){this.parent=parent,this.allVisitors=allVisitors,this.strategy=strategy,this.nodeCount=0,this.boundElementCount=0,this.variableNames=[],this.bindingRecords=[],this.eventRecords=[],this.directiveRecords=[],this.viewIndex=allVisitors.length,allVisitors.push(this)}return ProtoViewVisitor.prototype.visitEmbeddedTemplate=function(ast,context){this.nodeCount++,this.boundElementCount++,template_ast_1.templateVisitAll(this,ast.outputs);for(var i=0;i<ast.directives.length;i++)ast.directives[i].visit(this,i);var childVisitor=new ProtoViewVisitor(this,this.allVisitors,change_detection_1.ChangeDetectionStrategy.Default);return template_ast_1.templateVisitAll(childVisitor,ast.vars),template_ast_1.templateVisitAll(childVisitor,ast.children),null},ProtoViewVisitor.prototype.visitElement=function(ast,context){this.nodeCount++,ast.isBound()&&this.boundElementCount++,template_ast_1.templateVisitAll(this,ast.inputs,null),template_ast_1.templateVisitAll(this,ast.outputs),template_ast_1.templateVisitAll(this,ast.exportAsVars);for(var i=0;i<ast.directives.length;i++)ast.directives[i].visit(this,i);return template_ast_1.templateVisitAll(this,ast.children),null},ProtoViewVisitor.prototype.visitNgContent=function(ast,context){
return null},ProtoViewVisitor.prototype.visitVariable=function(ast,context){return this.variableNames.push(ast.name),null},ProtoViewVisitor.prototype.visitEvent=function(ast,directiveRecord){var bindingRecord=lang_1.isPresent(directiveRecord)?change_detection_1.BindingRecord.createForHostEvent(ast.handler,ast.fullName,directiveRecord):change_detection_1.BindingRecord.createForEvent(ast.handler,ast.fullName,this.boundElementCount-1);return this.eventRecords.push(bindingRecord),null},ProtoViewVisitor.prototype.visitElementProperty=function(ast,directiveRecord){var bindingRecord,boundElementIndex=this.boundElementCount-1,dirIndex=lang_1.isPresent(directiveRecord)?directiveRecord.directiveIndex:null;return ast.type===template_ast_1.PropertyBindingType.Property?bindingRecord=lang_1.isPresent(dirIndex)?change_detection_1.BindingRecord.createForHostProperty(dirIndex,ast.value,ast.name):change_detection_1.BindingRecord.createForElementProperty(ast.value,boundElementIndex,ast.name):ast.type===template_ast_1.PropertyBindingType.Attribute?bindingRecord=lang_1.isPresent(dirIndex)?change_detection_1.BindingRecord.createForHostAttribute(dirIndex,ast.value,ast.name):change_detection_1.BindingRecord.createForElementAttribute(ast.value,boundElementIndex,ast.name):ast.type===template_ast_1.PropertyBindingType.Class?bindingRecord=lang_1.isPresent(dirIndex)?change_detection_1.BindingRecord.createForHostClass(dirIndex,ast.value,ast.name):change_detection_1.BindingRecord.createForElementClass(ast.value,boundElementIndex,ast.name):ast.type===template_ast_1.PropertyBindingType.Style&&(bindingRecord=lang_1.isPresent(dirIndex)?change_detection_1.BindingRecord.createForHostStyle(dirIndex,ast.value,ast.name,ast.unit):change_detection_1.BindingRecord.createForElementStyle(ast.value,boundElementIndex,ast.name,ast.unit)),this.bindingRecords.push(bindingRecord),null},ProtoViewVisitor.prototype.visitAttr=function(ast,context){return null},ProtoViewVisitor.prototype.visitBoundText=function(ast,context){var nodeIndex=this.nodeCount++;return this.bindingRecords.push(change_detection_1.BindingRecord.createForTextNode(ast.value,nodeIndex)),null},ProtoViewVisitor.prototype.visitText=function(ast,context){return this.nodeCount++,null},ProtoViewVisitor.prototype.visitDirective=function(ast,directiveIndexAsNumber){var directiveIndex=new change_detection_1.DirectiveIndex(this.boundElementCount-1,directiveIndexAsNumber),directiveMetadata=ast.directive,outputsArray=[];collection_1.StringMapWrapper.forEach(ast.directive.outputs,function(eventName,dirProperty){return outputsArray.push([dirProperty,eventName])});var directiveRecord=new change_detection_1.DirectiveRecord({directiveIndex:directiveIndex,callAfterContentInit:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterContentInit),callAfterContentChecked:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterContentChecked),callAfterViewInit:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterViewInit),callAfterViewChecked:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.AfterViewChecked),callOnChanges:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnChanges),callDoCheck:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.DoCheck),callOnInit:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnInit),callOnDestroy:-1!==directiveMetadata.lifecycleHooks.indexOf(interfaces_1.LifecycleHooks.OnDestroy),changeDetection:directiveMetadata.changeDetection,outputs:outputsArray});this.directiveRecords.push(directiveRecord),template_ast_1.templateVisitAll(this,ast.inputs,directiveRecord);var bindingRecords=this.bindingRecords;return directiveRecord.callOnChanges&&bindingRecords.push(change_detection_1.BindingRecord.createDirectiveOnChanges(directiveRecord)),directiveRecord.callOnInit&&bindingRecords.push(change_detection_1.BindingRecord.createDirectiveOnInit(directiveRecord)),directiveRecord.callDoCheck&&bindingRecords.push(change_detection_1.BindingRecord.createDirectiveDoCheck(directiveRecord)),template_ast_1.templateVisitAll(this,ast.hostProperties,directiveRecord),template_ast_1.templateVisitAll(this,ast.hostEvents,directiveRecord),template_ast_1.templateVisitAll(this,ast.exportAsVars),null},ProtoViewVisitor.prototype.visitDirectiveProperty=function(ast,directiveRecord){var setter=reflection_1.reflector.setter(ast.directiveName);return this.bindingRecords.push(change_detection_1.BindingRecord.createForDirective(ast.value,ast.directiveName,setter,directiveRecord)),null},ProtoViewVisitor}();return global.define=__define,module.exports}),$__System.registerDynamic("85",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var Codegen=function(){function Codegen(moduleAlias){}return Codegen.prototype.generate=function(typeName,changeDetectorTypeName,def){throw"Not implemented in JS"},Codegen.prototype.toString=function(){throw"Not implemented in JS"},Codegen}();return exports.Codegen=Codegen,global.define=__define,module.exports}),$__System.registerDynamic("64",["63","86","87","88","89","84","7","6c","85","6e","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},source_module_1=$__require("63"),change_detection_jit_generator_1=$__require("86"),abstract_change_detector_1=$__require("87"),change_detection_util_1=$__require("88"),constants_1=$__require("89"),change_definition_factory_1=$__require("84"),lang_1=$__require("7"),change_detection_1=$__require("6c"),change_detector_codegen_1=$__require("85"),util_1=$__require("6e"),di_1=$__require("3c"),ABSTRACT_CHANGE_DETECTOR="AbstractChangeDetector",UTIL="ChangeDetectionUtil",CHANGE_DETECTOR_STATE="ChangeDetectorState";exports.CHANGE_DETECTION_JIT_IMPORTS=lang_1.CONST_EXPR({AbstractChangeDetector:abstract_change_detector_1.AbstractChangeDetector,ChangeDetectionUtil:change_detection_util_1.ChangeDetectionUtil,ChangeDetectorState:constants_1.ChangeDetectorState});var ABSTRACT_CHANGE_DETECTOR_MODULE=source_module_1.moduleRef("package:angular2/src/core/change_detection/abstract_change_detector"+util_1.MODULE_SUFFIX),UTIL_MODULE=source_module_1.moduleRef("package:angular2/src/core/change_detection/change_detection_util"+util_1.MODULE_SUFFIX),PREGEN_PROTO_CHANGE_DETECTOR_MODULE=source_module_1.moduleRef("package:angular2/src/core/change_detection/pregen_proto_change_detector"+util_1.MODULE_SUFFIX),CONSTANTS_MODULE=source_module_1.moduleRef("package:angular2/src/core/change_detection/constants"+util_1.MODULE_SUFFIX),ChangeDetectionCompiler=function(){function ChangeDetectionCompiler(_genConfig){this._genConfig=_genConfig}return ChangeDetectionCompiler.prototype.compileComponentRuntime=function(componentType,strategy,parsedTemplate){var _this=this,changeDetectorDefinitions=change_definition_factory_1.createChangeDetectorDefinitions(componentType,strategy,this._genConfig,parsedTemplate);return changeDetectorDefinitions.map(function(definition){return _this._createChangeDetectorFactory(definition)})},ChangeDetectionCompiler.prototype._createChangeDetectorFactory=function(definition){var proto=new change_detection_1.DynamicProtoChangeDetector(definition);return function(){return proto.instantiate()}},ChangeDetectionCompiler.prototype.compileComponentCodeGen=function(componentType,strategy,parsedTemplate){var changeDetectorDefinitions=change_definition_factory_1.createChangeDetectorDefinitions(componentType,strategy,this._genConfig,parsedTemplate),factories=[],index=0,sourceParts=changeDetectorDefinitions.map(function(definition){var codegen,sourcePart;if(lang_1.IS_DART){codegen=new change_detector_codegen_1.Codegen(PREGEN_PROTO_CHANGE_DETECTOR_MODULE);var className="_"+definition.id,typeRef=0===index&&componentType.isHost?"dynamic":""+source_module_1.moduleRef(componentType.moduleUrl)+componentType.name;codegen.generate(typeRef,className,definition),factories.push(className+".newChangeDetector"),sourcePart=codegen.toString()}else codegen=new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition,""+UTIL_MODULE+UTIL,""+ABSTRACT_CHANGE_DETECTOR_MODULE+ABSTRACT_CHANGE_DETECTOR,""+CONSTANTS_MODULE+CHANGE_DETECTOR_STATE),factories.push("function() { return new "+codegen.typeName+"(); }"),sourcePart=codegen.generateSource();return index++,sourcePart});return new source_module_1.SourceExpressions(sourceParts,factories)},ChangeDetectionCompiler=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[change_detection_1.ChangeDetectorGenConfig])],ChangeDetectionCompiler)}();return exports.ChangeDetectionCompiler=ChangeDetectionCompiler,global.define=__define,module.exports}),$__System.registerDynamic("8a",["11","7","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";function stripComments(input){return lang_1.StringWrapper.replaceAllMapped(input,_commentRe,function(_){return""})}function processRules(input,ruleCallback){var inputWithEscapedBlocks=escapeBlocks(input),nextBlockIndex=0;return lang_1.StringWrapper.replaceAllMapped(inputWithEscapedBlocks.escapedString,_ruleRe,function(m){var selector=m[2],content="",suffix=m[4],contentPrefix="";lang_1.isPresent(m[4])&&m[4].startsWith("{"+BLOCK_PLACEHOLDER)&&(content=inputWithEscapedBlocks.blocks[nextBlockIndex++],suffix=m[4].substring(BLOCK_PLACEHOLDER.length+1),contentPrefix="{");var rule=ruleCallback(new CssRule(selector,content));return""+m[1]+rule.selector+m[3]+contentPrefix+rule.content+suffix})}function escapeBlocks(input){for(var inputParts=lang_1.StringWrapper.split(input,_curlyRe),resultParts=[],escapedBlocks=[],bracketCount=0,currentBlockParts=[],partIndex=0;partIndex<inputParts.length;partIndex++){var part=inputParts[partIndex];part==CLOSE_CURLY&&bracketCount--,bracketCount>0?currentBlockParts.push(part):(currentBlockParts.length>0&&(escapedBlocks.push(currentBlockParts.join("")),resultParts.push(BLOCK_PLACEHOLDER),currentBlockParts=[]),resultParts.push(part)),part==OPEN_CURLY&&bracketCount++}return currentBlockParts.length>0&&(escapedBlocks.push(currentBlockParts.join("")),resultParts.push(BLOCK_PLACEHOLDER)),new StringWithEscapedBlocks(resultParts.join(""),escapedBlocks)}var collection_1=$__require("11"),lang_1=$__require("7"),ShadowCss=function(){function ShadowCss(){this.strictStyling=!0}return ShadowCss.prototype.shimCssText=function(cssText,selector,hostSelector){return void 0===hostSelector&&(hostSelector=""),cssText=stripComments(cssText),cssText=this._insertDirectives(cssText),this._scopeCssText(cssText,selector,hostSelector)},ShadowCss.prototype._insertDirectives=function(cssText){return cssText=this._insertPolyfillDirectivesInCssText(cssText),this._insertPolyfillRulesInCssText(cssText)},ShadowCss.prototype._insertPolyfillDirectivesInCssText=function(cssText){return lang_1.StringWrapper.replaceAllMapped(cssText,_cssContentNextSelectorRe,function(m){return m[1]+"{"})},ShadowCss.prototype._insertPolyfillRulesInCssText=function(cssText){return lang_1.StringWrapper.replaceAllMapped(cssText,_cssContentRuleRe,function(m){var rule=m[0];return rule=lang_1.StringWrapper.replace(rule,m[1],""),rule=lang_1.StringWrapper.replace(rule,m[2],""),m[3]+rule})},ShadowCss.prototype._scopeCssText=function(cssText,scopeSelector,hostSelector){var unscoped=this._extractUnscopedRulesFromCssText(cssText);return cssText=this._insertPolyfillHostInCssText(cssText),cssText=this._convertColonHost(cssText),cssText=this._convertColonHostContext(cssText),cssText=this._convertShadowDOMSelectors(cssText),lang_1.isPresent(scopeSelector)&&(cssText=this._scopeSelectors(cssText,scopeSelector,hostSelector)),cssText=cssText+"\n"+unscoped,cssText.trim()},ShadowCss.prototype._extractUnscopedRulesFromCssText=function(cssText){for(var m,r="",matcher=lang_1.RegExpWrapper.matcher(_cssContentUnscopedRuleRe,cssText);lang_1.isPresent(m=lang_1.RegExpMatcherWrapper.next(matcher));){var rule=m[0];rule=lang_1.StringWrapper.replace(rule,m[2],""),rule=lang_1.StringWrapper.replace(rule,m[1],m[3]),r+=rule+"\n\n"}return r},ShadowCss.prototype._convertColonHost=function(cssText){return this._convertColonRule(cssText,_cssColonHostRe,this._colonHostPartReplacer)},ShadowCss.prototype._convertColonHostContext=function(cssText){return this._convertColonRule(cssText,_cssColonHostContextRe,this._colonHostContextPartReplacer)},ShadowCss.prototype._convertColonRule=function(cssText,regExp,partReplacer){return lang_1.StringWrapper.replaceAllMapped(cssText,regExp,function(m){if(lang_1.isPresent(m[2])){for(var parts=m[2].split(","),r=[],i=0;i<parts.length;i++){var p=parts[i];if(lang_1.isBlank(p))break;p=p.trim(),r.push(partReplacer(_polyfillHostNoCombinator,p,m[3]))}return r.join(",")}return _polyfillHostNoCombinator+m[3]})},ShadowCss.prototype._colonHostContextPartReplacer=function(host,part,suffix){return lang_1.StringWrapper.contains(part,_polyfillHost)?this._colonHostPartReplacer(host,part,suffix):host+part+suffix+", "+part+" "+host+suffix},ShadowCss.prototype._colonHostPartReplacer=function(host,part,suffix){return host+lang_1.StringWrapper.replace(part,_polyfillHost,"")+suffix},ShadowCss.prototype._convertShadowDOMSelectors=function(cssText){for(var i=0;i<_shadowDOMSelectorsRe.length;i++)cssText=lang_1.StringWrapper.replaceAll(cssText,_shadowDOMSelectorsRe[i]," ");return cssText},ShadowCss.prototype._scopeSelectors=function(cssText,scopeSelector,hostSelector){var _this=this;return processRules(cssText,function(rule){var selector=rule.selector,content=rule.content;return"@"!=rule.selector[0]||rule.selector.startsWith("@page")?selector=_this._scopeSelector(rule.selector,scopeSelector,hostSelector,_this.strictStyling):rule.selector.startsWith("@media")&&(content=_this._scopeSelectors(rule.content,scopeSelector,hostSelector)),new CssRule(selector,content)})},ShadowCss.prototype._scopeSelector=function(selector,scopeSelector,hostSelector,strict){for(var r=[],parts=selector.split(","),i=0;i<parts.length;i++){var p=parts[i];p=p.trim(),this._selectorNeedsScoping(p,scopeSelector)&&(p=strict&&!lang_1.StringWrapper.contains(p,_polyfillHostNoCombinator)?this._applyStrictSelectorScope(p,scopeSelector):this._applySelectorScope(p,scopeSelector,hostSelector)),r.push(p)}return r.join(", ")},ShadowCss.prototype._selectorNeedsScoping=function(selector,scopeSelector){var re=this._makeScopeMatcher(scopeSelector);return!lang_1.isPresent(lang_1.RegExpWrapper.firstMatch(re,selector))},ShadowCss.prototype._makeScopeMatcher=function(scopeSelector){var lre=/\[/g,rre=/\]/g;return scopeSelector=lang_1.StringWrapper.replaceAll(scopeSelector,lre,"\\["),scopeSelector=lang_1.StringWrapper.replaceAll(scopeSelector,rre,"\\]"),lang_1.RegExpWrapper.create("^("+scopeSelector+")"+_selectorReSuffix,"m")},ShadowCss.prototype._applySelectorScope=function(selector,scopeSelector,hostSelector){return this._applySimpleSelectorScope(selector,scopeSelector,hostSelector)},ShadowCss.prototype._applySimpleSelectorScope=function(selector,scopeSelector,hostSelector){if(lang_1.isPresent(lang_1.RegExpWrapper.firstMatch(_polyfillHostRe,selector))){var replaceBy=this.strictStyling?"["+hostSelector+"]":scopeSelector;return selector=lang_1.StringWrapper.replace(selector,_polyfillHostNoCombinator,replaceBy),lang_1.StringWrapper.replaceAll(selector,_polyfillHostRe,replaceBy+" ")}return scopeSelector+" "+selector},ShadowCss.prototype._applyStrictSelectorScope=function(selector,scopeSelector){var isRe=/\[is=([^\]]*)\]/g;scopeSelector=lang_1.StringWrapper.replaceAllMapped(scopeSelector,isRe,function(m){return m[1]});for(var splits=[" ",">","+","~"],scoped=selector,attrName="["+scopeSelector+"]",i=0;i<splits.length;i++){var sep=splits[i],parts=scoped.split(sep);scoped=parts.map(function(p){var t=lang_1.StringWrapper.replaceAll(p.trim(),_polyfillHostRe,"");if(t.length>0&&!collection_1.ListWrapper.contains(splits,t)&&!lang_1.StringWrapper.contains(t,attrName)){var re=/([^:]*)(:*)(.*)/g,m=lang_1.RegExpWrapper.firstMatch(re,t);lang_1.isPresent(m)&&(p=m[1]+attrName+m[2]+m[3])}return p}).join(sep)}return scoped},ShadowCss.prototype._insertPolyfillHostInCssText=function(selector){return selector=lang_1.StringWrapper.replaceAll(selector,_colonHostContextRe,_polyfillHostContext),selector=lang_1.StringWrapper.replaceAll(selector,_colonHostRe,_polyfillHost)},ShadowCss}();exports.ShadowCss=ShadowCss;var _cssContentNextSelectorRe=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,_cssContentRuleRe=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,_cssContentUnscopedRuleRe=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,_polyfillHost="-shadowcsshost",_polyfillHostContext="-shadowcsscontext",_parenSuffix=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",_cssColonHostRe=lang_1.RegExpWrapper.create("("+_polyfillHost+_parenSuffix,"im"),_cssColonHostContextRe=lang_1.RegExpWrapper.create("("+_polyfillHostContext+_parenSuffix,"im"),_polyfillHostNoCombinator=_polyfillHost+"-no-combinator",_shadowDOMSelectorsRe=[/>>>/g,/::shadow/g,/::content/g,/\/deep\//g,/\/shadow-deep\//g,/\/shadow\//g],_selectorReSuffix="([>\\s~+[.,{:][\\s\\S]*)?$",_polyfillHostRe=lang_1.RegExpWrapper.create(_polyfillHost,"im"),_colonHostRe=/:host/gim,_colonHostContextRe=/:host-context/gim,_commentRe=/\/\*[\s\S]*?\*\//g,_ruleRe=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,_curlyRe=/([{}])/g,OPEN_CURLY="{",CLOSE_CURLY="}",BLOCK_PLACEHOLDER="%BLOCK%",CssRule=function(){function CssRule(selector,content){this.selector=selector,this.content=content}return CssRule}();exports.CssRule=CssRule,exports.processRules=processRules;var StringWithEscapedBlocks=function(){function StringWithEscapedBlocks(escapedString,blocks){this.escapedString=escapedString,this.blocks=blocks}return StringWithEscapedBlocks}()}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("76",["7"],!0,function($__require,exports,module){"use strict";function isStyleUrlResolvable(url){if(lang_1.isBlank(url)||0===url.length||"/"==url[0])return!1;var schemeMatch=lang_1.RegExpWrapper.firstMatch(_urlWithSchemaRe,url);return lang_1.isBlank(schemeMatch)||"package"==schemeMatch[1]||"asset"==schemeMatch[1]}function extractStyleUrls(resolver,baseUrl,cssText){var foundUrls=[],modifiedCssText=lang_1.StringWrapper.replaceAllMapped(cssText,_cssImportRe,function(m){var url=lang_1.isPresent(m[1])?m[1]:m[2];return isStyleUrlResolvable(url)?(foundUrls.push(resolver.resolve(baseUrl,url)),""):m[0]});return new StyleWithImports(modifiedCssText,foundUrls)}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),StyleWithImports=function(){function StyleWithImports(style,styleUrls){this.style=style,this.styleUrls=styleUrls}return StyleWithImports}();exports.StyleWithImports=StyleWithImports,exports.isStyleUrlResolvable=isStyleUrlResolvable,exports.extractStyleUrls=extractStyleUrls;var _cssImportRe=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,_urlWithSchemaRe=/^([a-zA-Z\-\+\.]+):/g;return global.define=__define,module.exports}),$__System.registerDynamic("65",["63","7b","79","7","9","8a","7a","76","6e","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},source_module_1=$__require("63"),view_1=$__require("7b"),xhr_1=$__require("79"),lang_1=$__require("7"),async_1=$__require("9"),shadow_css_1=$__require("8a"),url_resolver_1=$__require("7a"),style_url_resolver_1=$__require("76"),util_1=$__require("6e"),di_1=$__require("3c"),COMPONENT_VARIABLE="%COMP%",HOST_ATTR="_nghost-"+COMPONENT_VARIABLE,CONTENT_ATTR="_ngcontent-"+COMPONENT_VARIABLE,StyleCompiler=function(){function StyleCompiler(_xhr,_urlResolver){this._xhr=_xhr,this._urlResolver=_urlResolver,this._styleCache=new Map,this._shadowCss=new shadow_css_1.ShadowCss}return StyleCompiler.prototype.compileComponentRuntime=function(template){var styles=template.styles,styleAbsUrls=template.styleUrls;return this._loadStyles(styles,styleAbsUrls,template.encapsulation===view_1.ViewEncapsulation.Emulated)},StyleCompiler.prototype.compileComponentCodeGen=function(template){var shim=template.encapsulation===view_1.ViewEncapsulation.Emulated;return this._styleCodeGen(template.styles,template.styleUrls,shim)},StyleCompiler.prototype.compileStylesheetCodeGen=function(stylesheetUrl,cssText){var styleWithImports=style_url_resolver_1.extractStyleUrls(this._urlResolver,stylesheetUrl,cssText);return[this._styleModule(stylesheetUrl,!1,this._styleCodeGen([styleWithImports.style],styleWithImports.styleUrls,!1)),this._styleModule(stylesheetUrl,!0,this._styleCodeGen([styleWithImports.style],styleWithImports.styleUrls,!0))]},StyleCompiler.prototype.clearCache=function(){this._styleCache.clear()},StyleCompiler.prototype._loadStyles=function(plainStyles,absUrls,encapsulate){var _this=this,promises=absUrls.map(function(absUrl){var cacheKey=""+absUrl+(encapsulate?".shim":""),result=_this._styleCache.get(cacheKey);return lang_1.isBlank(result)&&(result=_this._xhr.get(absUrl).then(function(style){var styleWithImports=style_url_resolver_1.extractStyleUrls(_this._urlResolver,absUrl,style);return _this._loadStyles([styleWithImports.style],styleWithImports.styleUrls,encapsulate)}),_this._styleCache.set(cacheKey,result)),result});return async_1.PromiseWrapper.all(promises).then(function(nestedStyles){var result=plainStyles.map(function(plainStyle){return _this._shimIfNeeded(plainStyle,encapsulate)});return nestedStyles.forEach(function(styles){return result.push(styles)}),result})},StyleCompiler.prototype._styleCodeGen=function(plainStyles,absUrls,shim){for(var _this=this,arrayPrefix=lang_1.IS_DART?"const":"",styleExpressions=plainStyles.map(function(plainStyle){return util_1.escapeSingleQuoteString(_this._shimIfNeeded(plainStyle,shim))}),i=0;i<absUrls.length;i++){var moduleUrl=this._createModuleUrl(absUrls[i],shim);styleExpressions.push(source_module_1.moduleRef(moduleUrl)+"STYLES")}var expressionSource=arrayPrefix+" ["+styleExpressions.join(",")+"]";return new source_module_1.SourceExpression([],expressionSource)},StyleCompiler.prototype._styleModule=function(stylesheetUrl,shim,expression){var moduleSource="\n "+expression.declarations.join("\n")+"\n "+util_1.codeGenExportVariable("STYLES")+expression.expression+";\n ";return new source_module_1.SourceModule(this._createModuleUrl(stylesheetUrl,shim),moduleSource)},StyleCompiler.prototype._shimIfNeeded=function(style,shim){return shim?this._shadowCss.shimCssText(style,CONTENT_ATTR,HOST_ATTR):style},StyleCompiler.prototype._createModuleUrl=function(stylesheetUrl,shim){return shim?stylesheetUrl+".shim"+util_1.MODULE_SUFFIX:""+stylesheetUrl+util_1.MODULE_SUFFIX},StyleCompiler=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[xhr_1.XHR,url_resolver_1.UrlResolver])],StyleCompiler)}();return exports.StyleCompiler=StyleCompiler,global.define=__define,module.exports}),$__System.registerDynamic("66",["7","11","62","63","6b","8b","8c","7b","6e","3c","67"],!0,function($__require,exports,module){"use strict";function codeGenEventHandler(view,boundElementIndex,eventName){return util_1.codeGenValueFn(["event"],view.expression+".triggerEventHandlers("+util_1.escapeValue(eventName)+", event, "+boundElementIndex+")")}function codeGenViewFactoryName(component,embeddedTemplateIndex){return"viewFactory_"+component.type.name+embeddedTemplateIndex}function codeGenViewEncapsulation(value){return lang_1.IS_DART?""+proto_view_compiler_1.METADATA_MODULE_REF+value:""+value}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),collection_1=$__require("11"),template_ast_1=$__require("62"),source_module_1=$__require("63"),view_1=$__require("6b"),view_type_1=$__require("8b"),element_1=$__require("8c"),view_2=$__require("7b"),util_1=$__require("6e"),di_1=$__require("3c"),proto_view_compiler_1=$__require("67");exports.VIEW_JIT_IMPORTS=lang_1.CONST_EXPR({AppView:view_1.AppView,AppElement:element_1.AppElement,flattenNestedViewRenderNodes:view_1.flattenNestedViewRenderNodes,checkSlotCount:view_1.checkSlotCount});var ViewCompiler=function(){function ViewCompiler(){}return ViewCompiler.prototype.compileComponentRuntime=function(component,template,styles,protoViews,changeDetectorFactories,componentViewFactory){var viewFactory=new RuntimeViewFactory(component,styles,protoViews,changeDetectorFactories,componentViewFactory);return viewFactory.createViewFactory(template,0,[])},ViewCompiler.prototype.compileComponentCodeGen=function(component,template,styles,protoViews,changeDetectorFactoryExpressions,componentViewFactory){var viewFactory=new CodeGenViewFactory(component,styles,protoViews,changeDetectorFactoryExpressions,componentViewFactory),targetStatements=[],viewFactoryExpression=viewFactory.createViewFactory(template,0,targetStatements);return new source_module_1.SourceExpression(targetStatements.map(function(stmt){return stmt.statement}),viewFactoryExpression.expression)},ViewCompiler=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],ViewCompiler)}();exports.ViewCompiler=ViewCompiler;var CodeGenViewFactory=function(){function CodeGenViewFactory(component,styles,protoViews,changeDetectorExpressions,componentViewFactory){this.component=component,this.styles=styles,this.protoViews=protoViews,this.changeDetectorExpressions=changeDetectorExpressions,this.componentViewFactory=componentViewFactory,this._nextVarId=0}return CodeGenViewFactory.prototype._nextVar=function(prefix){return""+prefix+this._nextVarId++ +"_"+this.component.type.name},CodeGenViewFactory.prototype._nextRenderVar=function(){return this._nextVar("render")},CodeGenViewFactory.prototype._nextAppVar=function(){return this._nextVar("app")},CodeGenViewFactory.prototype._nextDisposableVar=function(){return"disposable"+this._nextVarId++ +"_"+this.component.type.name},CodeGenViewFactory.prototype.createText=function(renderer,parent,text,targetStatements){var varName=this._nextRenderVar(),statement="var "+varName+" = "+renderer.expression+".createText("+(lang_1.isPresent(parent)?parent.expression:null)+", "+util_1.escapeSingleQuoteString(text)+");";return targetStatements.push(new util_1.Statement(statement)),new util_1.Expression(varName)},CodeGenViewFactory.prototype.createElement=function(renderer,parentRenderNode,name,rootSelector,targetStatements){var valueExpr,varName=this._nextRenderVar();valueExpr=lang_1.isPresent(rootSelector)?rootSelector.expression+" == null ?\n "+renderer.expression+".createElement("+(lang_1.isPresent(parentRenderNode)?parentRenderNode.expression:null)+", "+util_1.escapeSingleQuoteString(name)+") :\n "+renderer.expression+".selectRootElement("+rootSelector.expression+");":renderer.expression+".createElement("+(lang_1.isPresent(parentRenderNode)?parentRenderNode.expression:null)+", "+util_1.escapeSingleQuoteString(name)+")";var statement="var "+varName+" = "+valueExpr+";";return targetStatements.push(new util_1.Statement(statement)),new util_1.Expression(varName)},CodeGenViewFactory.prototype.createTemplateAnchor=function(renderer,parentRenderNode,targetStatements){var varName=this._nextRenderVar(),valueExpr=renderer.expression+".createTemplateAnchor("+(lang_1.isPresent(parentRenderNode)?parentRenderNode.expression:null)+");";return targetStatements.push(new util_1.Statement("var "+varName+" = "+valueExpr)),new util_1.Expression(varName)},CodeGenViewFactory.prototype.createGlobalEventListener=function(renderer,appView,boundElementIndex,eventAst,targetStatements){var disposableVar=this._nextDisposableVar(),eventHandlerExpr=codeGenEventHandler(appView,boundElementIndex,eventAst.fullName);return targetStatements.push(new util_1.Statement("var "+disposableVar+" = "+renderer.expression+".listenGlobal("+util_1.escapeValue(eventAst.target)+", "+util_1.escapeValue(eventAst.name)+", "+eventHandlerExpr+");")),new util_1.Expression(disposableVar)},CodeGenViewFactory.prototype.createElementEventListener=function(renderer,appView,boundElementIndex,renderNode,eventAst,targetStatements){var disposableVar=this._nextDisposableVar(),eventHandlerExpr=codeGenEventHandler(appView,boundElementIndex,eventAst.fullName);return targetStatements.push(new util_1.Statement("var "+disposableVar+" = "+renderer.expression+".listen("+renderNode.expression+", "+util_1.escapeValue(eventAst.name)+", "+eventHandlerExpr+");")),new util_1.Expression(disposableVar)},CodeGenViewFactory.prototype.setElementAttribute=function(renderer,renderNode,attrName,attrValue,targetStatements){targetStatements.push(new util_1.Statement(renderer.expression+".setElementAttribute("+renderNode.expression+", "+util_1.escapeSingleQuoteString(attrName)+", "+util_1.escapeSingleQuoteString(attrValue)+");"))},CodeGenViewFactory.prototype.createAppElement=function(appProtoEl,appView,renderNode,parentAppEl,embeddedViewFactory,targetStatements){var appVar=this._nextAppVar(),varValue="new "+proto_view_compiler_1.APP_EL_MODULE_REF+"AppElement("+appProtoEl.expression+", "+appView.expression+",\n "+(lang_1.isPresent(parentAppEl)?parentAppEl.expression:null)+", "+renderNode.expression+", "+(lang_1.isPresent(embeddedViewFactory)?embeddedViewFactory.expression:null)+")";return targetStatements.push(new util_1.Statement("var "+appVar+" = "+varValue+";")),new util_1.Expression(appVar)},CodeGenViewFactory.prototype.createAndSetComponentView=function(renderer,viewManager,view,appEl,component,contentNodesByNgContentIndex,targetStatements){var codeGenContentNodes;codeGenContentNodes=this.component.type.isHost?view.expression+".projectableNodes":"["+contentNodesByNgContentIndex.map(function(nodes){return util_1.codeGenFlatArray(nodes)}).join(",")+"]",targetStatements.push(new util_1.Statement(this.componentViewFactory(component)+"("+renderer.expression+", "+viewManager.expression+", "+appEl.expression+", "+codeGenContentNodes+", null, null, null);"))},CodeGenViewFactory.prototype.getProjectedNodes=function(projectableNodes,ngContentIndex){return new util_1.Expression(projectableNodes.expression+"["+ngContentIndex+"]",!0)},
CodeGenViewFactory.prototype.appendProjectedNodes=function(renderer,parent,nodes,targetStatements){targetStatements.push(new util_1.Statement(renderer.expression+".projectNodes("+parent.expression+", "+proto_view_compiler_1.APP_VIEW_MODULE_REF+"flattenNestedViewRenderNodes("+nodes.expression+"));"))},CodeGenViewFactory.prototype.createViewFactory=function(asts,embeddedTemplateIndex,targetStatements){var compileProtoView=this.protoViews[embeddedTemplateIndex],isHostView=this.component.type.isHost,isComponentView=0===embeddedTemplateIndex&&!isHostView,visitor=new ViewBuilderVisitor(new util_1.Expression("renderer"),new util_1.Expression("viewManager"),new util_1.Expression("projectableNodes"),isHostView?new util_1.Expression("rootSelector"):null,new util_1.Expression("view"),compileProtoView,targetStatements,this);template_ast_1.templateVisitAll(visitor,asts,new ParentElement(isComponentView?new util_1.Expression("parentRenderNode"):null,null,null));var appProtoView=compileProtoView.protoView.expression,viewFactoryName=codeGenViewFactoryName(this.component,embeddedTemplateIndex),changeDetectorFactory=this.changeDetectorExpressions.expressions[embeddedTemplateIndex],factoryArgs=["parentRenderer","viewManager","containerEl","projectableNodes","rootSelector","dynamicallyCreatedProviders","rootInjector"],initRendererStmts=[],rendererExpr="parentRenderer";if(0===embeddedTemplateIndex){var renderCompTypeVar=this._nextVar("renderType");targetStatements.push(new util_1.Statement("var "+renderCompTypeVar+" = null;"));var stylesVar=this._nextVar("styles");targetStatements.push(new util_1.Statement(util_1.CONST_VAR+" "+stylesVar+" = "+this.styles.expression+";"));var encapsulation=this.component.template.encapsulation;initRendererStmts.push("if ("+renderCompTypeVar+" == null) {\n "+renderCompTypeVar+" = viewManager.createRenderComponentType("+codeGenViewEncapsulation(encapsulation)+", "+stylesVar+");\n }"),rendererExpr="parentRenderer.renderComponent("+renderCompTypeVar+")"}var statement="\n"+util_1.codeGenFnHeader(factoryArgs,viewFactoryName)+"{\n "+initRendererStmts.join("\n")+"\n var renderer = "+rendererExpr+";\n var view = new "+proto_view_compiler_1.APP_VIEW_MODULE_REF+"AppView(\n "+appProtoView+", renderer, viewManager,\n projectableNodes,\n containerEl,\n dynamicallyCreatedProviders, rootInjector,\n "+changeDetectorFactory+"()\n );\n "+proto_view_compiler_1.APP_VIEW_MODULE_REF+"checkSlotCount("+util_1.escapeValue(this.component.type.name)+", "+this.component.template.ngContentSelectors.length+", projectableNodes);\n "+(isComponentView?"var parentRenderNode = renderer.createViewRoot(view.containerAppElement.nativeElement);":"")+"\n "+visitor.renderStmts.map(function(stmt){return stmt.statement}).join("\n")+"\n "+visitor.appStmts.map(function(stmt){return stmt.statement}).join("\n")+"\n\n view.init("+util_1.codeGenFlatArray(visitor.rootNodesOrAppElements)+", "+util_1.codeGenArray(visitor.renderNodes)+", "+util_1.codeGenArray(visitor.appDisposables)+",\n "+util_1.codeGenArray(visitor.appElements)+");\n return view;\n}";return targetStatements.push(new util_1.Statement(statement)),new util_1.Expression(viewFactoryName)},CodeGenViewFactory}(),RuntimeViewFactory=function(){function RuntimeViewFactory(component,styles,protoViews,changeDetectorFactories,componentViewFactory){this.component=component,this.styles=styles,this.protoViews=protoViews,this.changeDetectorFactories=changeDetectorFactories,this.componentViewFactory=componentViewFactory}return RuntimeViewFactory.prototype.createText=function(renderer,parent,text,targetStatements){return renderer.createText(parent,text)},RuntimeViewFactory.prototype.createElement=function(renderer,parent,name,rootSelector,targetStatements){var el;return el=lang_1.isPresent(rootSelector)?renderer.selectRootElement(rootSelector):renderer.createElement(parent,name)},RuntimeViewFactory.prototype.createTemplateAnchor=function(renderer,parent,targetStatements){return renderer.createTemplateAnchor(parent)},RuntimeViewFactory.prototype.createGlobalEventListener=function(renderer,appView,boundElementIndex,eventAst,targetStatements){return renderer.listenGlobal(eventAst.target,eventAst.name,function(event){return appView.triggerEventHandlers(eventAst.fullName,event,boundElementIndex)})},RuntimeViewFactory.prototype.createElementEventListener=function(renderer,appView,boundElementIndex,renderNode,eventAst,targetStatements){return renderer.listen(renderNode,eventAst.name,function(event){return appView.triggerEventHandlers(eventAst.fullName,event,boundElementIndex)})},RuntimeViewFactory.prototype.setElementAttribute=function(renderer,renderNode,attrName,attrValue,targetStatements){renderer.setElementAttribute(renderNode,attrName,attrValue)},RuntimeViewFactory.prototype.createAppElement=function(appProtoEl,appView,renderNode,parentAppEl,embeddedViewFactory,targetStatements){return new element_1.AppElement(appProtoEl,appView,parentAppEl,renderNode,embeddedViewFactory)},RuntimeViewFactory.prototype.createAndSetComponentView=function(renderer,viewManager,appView,appEl,component,contentNodesByNgContentIndex,targetStatements){var flattenedContentNodes;if(this.component.type.isHost)flattenedContentNodes=appView.projectableNodes;else{flattenedContentNodes=collection_1.ListWrapper.createFixedSize(contentNodesByNgContentIndex.length);for(var i=0;i<contentNodesByNgContentIndex.length;i++)flattenedContentNodes[i]=util_1.flattenArray(contentNodesByNgContentIndex[i],[])}this.componentViewFactory(component)(renderer,viewManager,appEl,flattenedContentNodes)},RuntimeViewFactory.prototype.getProjectedNodes=function(projectableNodes,ngContentIndex){return projectableNodes[ngContentIndex]},RuntimeViewFactory.prototype.appendProjectedNodes=function(renderer,parent,nodes,targetStatements){renderer.projectNodes(parent,view_1.flattenNestedViewRenderNodes(nodes))},RuntimeViewFactory.prototype.createViewFactory=function(asts,embeddedTemplateIndex,targetStatements){var _this=this,compileProtoView=this.protoViews[embeddedTemplateIndex],isComponentView=compileProtoView.protoView.type===view_type_1.ViewType.COMPONENT,renderComponentType=null;return function(parentRenderer,viewManager,containerEl,projectableNodes,rootSelector,dynamicallyCreatedProviders,rootInjector){void 0===rootSelector&&(rootSelector=null),void 0===dynamicallyCreatedProviders&&(dynamicallyCreatedProviders=null),void 0===rootInjector&&(rootInjector=null),view_1.checkSlotCount(_this.component.type.name,_this.component.template.ngContentSelectors.length,projectableNodes);var renderer;0===embeddedTemplateIndex?(lang_1.isBlank(renderComponentType)&&(renderComponentType=viewManager.createRenderComponentType(_this.component.template.encapsulation,_this.styles)),renderer=parentRenderer.renderComponent(renderComponentType)):renderer=parentRenderer;var changeDetector=_this.changeDetectorFactories[embeddedTemplateIndex](),view=new view_1.AppView(compileProtoView.protoView,renderer,viewManager,projectableNodes,containerEl,dynamicallyCreatedProviders,rootInjector,changeDetector),visitor=new ViewBuilderVisitor(renderer,viewManager,projectableNodes,rootSelector,view,compileProtoView,[],_this),parentRenderNode=isComponentView?renderer.createViewRoot(containerEl.nativeElement):null;return template_ast_1.templateVisitAll(visitor,asts,new ParentElement(parentRenderNode,null,null)),view.init(util_1.flattenArray(visitor.rootNodesOrAppElements,[]),visitor.renderNodes,visitor.appDisposables,visitor.appElements),view}},RuntimeViewFactory}(),ParentElement=function(){function ParentElement(renderNode,appEl,component){if(this.renderNode=renderNode,this.appEl=appEl,this.component=component,lang_1.isPresent(component)){this.contentNodesByNgContentIndex=collection_1.ListWrapper.createFixedSize(component.template.ngContentSelectors.length);for(var i=0;i<this.contentNodesByNgContentIndex.length;i++)this.contentNodesByNgContentIndex[i]=[]}else this.contentNodesByNgContentIndex=null}return ParentElement.prototype.addContentNode=function(ngContentIndex,nodeExpr){this.contentNodesByNgContentIndex[ngContentIndex].push(nodeExpr)},ParentElement}(),ViewBuilderVisitor=function(){function ViewBuilderVisitor(renderer,viewManager,projectableNodes,rootSelector,view,protoView,targetStatements,factory){this.renderer=renderer,this.viewManager=viewManager,this.projectableNodes=projectableNodes,this.rootSelector=rootSelector,this.view=view,this.protoView=protoView,this.targetStatements=targetStatements,this.factory=factory,this.renderStmts=[],this.renderNodes=[],this.appStmts=[],this.appElements=[],this.appDisposables=[],this.rootNodesOrAppElements=[],this.elementCount=0}return ViewBuilderVisitor.prototype._addRenderNode=function(renderNode,appEl,ngContentIndex,parent){this.renderNodes.push(renderNode),lang_1.isPresent(parent.component)?lang_1.isPresent(ngContentIndex)&&parent.addContentNode(ngContentIndex,lang_1.isPresent(appEl)?appEl:renderNode):lang_1.isBlank(parent.renderNode)&&this.rootNodesOrAppElements.push(lang_1.isPresent(appEl)?appEl:renderNode)},ViewBuilderVisitor.prototype._getParentRenderNode=function(ngContentIndex,parent){return lang_1.isPresent(parent.component)&&parent.component.template.encapsulation!==view_2.ViewEncapsulation.Native?null:parent.renderNode},ViewBuilderVisitor.prototype.visitBoundText=function(ast,parent){return this._visitText("",ast.ngContentIndex,parent)},ViewBuilderVisitor.prototype.visitText=function(ast,parent){return this._visitText(ast.value,ast.ngContentIndex,parent)},ViewBuilderVisitor.prototype._visitText=function(value,ngContentIndex,parent){var renderNode=this.factory.createText(this.renderer,this._getParentRenderNode(ngContentIndex,parent),value,this.renderStmts);return this._addRenderNode(renderNode,null,ngContentIndex,parent),null},ViewBuilderVisitor.prototype.visitNgContent=function(ast,parent){var nodesExpression=this.factory.getProjectedNodes(this.projectableNodes,ast.index);return lang_1.isPresent(parent.component)?lang_1.isPresent(ast.ngContentIndex)&&parent.addContentNode(ast.ngContentIndex,nodesExpression):lang_1.isPresent(parent.renderNode)?this.factory.appendProjectedNodes(this.renderer,parent.renderNode,nodesExpression,this.renderStmts):this.rootNodesOrAppElements.push(nodesExpression),null},ViewBuilderVisitor.prototype.visitElement=function(ast,parent){var _this=this,renderNode=this.factory.createElement(this.renderer,this._getParentRenderNode(ast.ngContentIndex,parent),ast.name,this.rootSelector,this.renderStmts),component=ast.getComponent(),elementIndex=this.elementCount++,protoEl=this.protoView.protoElements[elementIndex];protoEl.renderEvents.forEach(function(eventAst){var disposable;disposable=lang_1.isPresent(eventAst.target)?_this.factory.createGlobalEventListener(_this.renderer,_this.view,protoEl.boundElementIndex,eventAst,_this.renderStmts):_this.factory.createElementEventListener(_this.renderer,_this.view,protoEl.boundElementIndex,renderNode,eventAst,_this.renderStmts),_this.appDisposables.push(disposable)});for(var i=0;i<protoEl.attrNameAndValues.length;i++){var attrName=protoEl.attrNameAndValues[i][0],attrValue=protoEl.attrNameAndValues[i][1];this.factory.setElementAttribute(this.renderer,renderNode,attrName,attrValue,this.renderStmts)}var appEl=null;lang_1.isPresent(protoEl.appProtoEl)&&(appEl=this.factory.createAppElement(protoEl.appProtoEl,this.view,renderNode,parent.appEl,null,this.appStmts),this.appElements.push(appEl)),this._addRenderNode(renderNode,appEl,ast.ngContentIndex,parent);var newParent=new ParentElement(renderNode,lang_1.isPresent(appEl)?appEl:parent.appEl,component);return template_ast_1.templateVisitAll(this,ast.children,newParent),lang_1.isPresent(appEl)&&lang_1.isPresent(component)&&this.factory.createAndSetComponentView(this.renderer,this.viewManager,this.view,appEl,component,newParent.contentNodesByNgContentIndex,this.appStmts),null},ViewBuilderVisitor.prototype.visitEmbeddedTemplate=function(ast,parent){var renderNode=this.factory.createTemplateAnchor(this.renderer,this._getParentRenderNode(ast.ngContentIndex,parent),this.renderStmts),elementIndex=this.elementCount++,protoEl=this.protoView.protoElements[elementIndex],embeddedViewFactory=this.factory.createViewFactory(ast.children,protoEl.embeddedTemplateIndex,this.targetStatements),appEl=this.factory.createAppElement(protoEl.appProtoEl,this.view,renderNode,parent.appEl,embeddedViewFactory,this.appStmts);return this._addRenderNode(renderNode,appEl,ast.ngContentIndex,parent),this.appElements.push(appEl),null},ViewBuilderVisitor.prototype.visitVariable=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitAttr=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitDirective=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitEvent=function(ast,ctx){return null},ViewBuilderVisitor.prototype.visitDirectiveProperty=function(ast,context){return null},ViewBuilderVisitor.prototype.visitElementProperty=function(ast,context){return null},ViewBuilderVisitor}();return global.define=__define,module.exports}),$__System.registerDynamic("62",["7"],!0,function($__require,exports,module){"use strict";function templateVisitAll(visitor,asts,context){void 0===context&&(context=null);var result=[];return asts.forEach(function(ast){var astResult=ast.visit(visitor,context);lang_1.isPresent(astResult)&&result.push(astResult)}),result}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),TextAst=function(){function TextAst(value,ngContentIndex,sourceSpan){this.value=value,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return TextAst.prototype.visit=function(visitor,context){return visitor.visitText(this,context)},TextAst}();exports.TextAst=TextAst;var BoundTextAst=function(){function BoundTextAst(value,ngContentIndex,sourceSpan){this.value=value,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return BoundTextAst.prototype.visit=function(visitor,context){return visitor.visitBoundText(this,context)},BoundTextAst}();exports.BoundTextAst=BoundTextAst;var AttrAst=function(){function AttrAst(name,value,sourceSpan){this.name=name,this.value=value,this.sourceSpan=sourceSpan}return AttrAst.prototype.visit=function(visitor,context){return visitor.visitAttr(this,context)},AttrAst}();exports.AttrAst=AttrAst;var BoundElementPropertyAst=function(){function BoundElementPropertyAst(name,type,value,unit,sourceSpan){this.name=name,this.type=type,this.value=value,this.unit=unit,this.sourceSpan=sourceSpan}return BoundElementPropertyAst.prototype.visit=function(visitor,context){return visitor.visitElementProperty(this,context)},BoundElementPropertyAst}();exports.BoundElementPropertyAst=BoundElementPropertyAst;var BoundEventAst=function(){function BoundEventAst(name,target,handler,sourceSpan){this.name=name,this.target=target,this.handler=handler,this.sourceSpan=sourceSpan}return BoundEventAst.prototype.visit=function(visitor,context){return visitor.visitEvent(this,context)},Object.defineProperty(BoundEventAst.prototype,"fullName",{get:function(){return lang_1.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),BoundEventAst}();exports.BoundEventAst=BoundEventAst;var VariableAst=function(){function VariableAst(name,value,sourceSpan){this.name=name,this.value=value,this.sourceSpan=sourceSpan}return VariableAst.prototype.visit=function(visitor,context){return visitor.visitVariable(this,context)},VariableAst}();exports.VariableAst=VariableAst;var ElementAst=function(){function ElementAst(name,attrs,inputs,outputs,exportAsVars,directives,children,ngContentIndex,sourceSpan){this.name=name,this.attrs=attrs,this.inputs=inputs,this.outputs=outputs,this.exportAsVars=exportAsVars,this.directives=directives,this.children=children,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return ElementAst.prototype.visit=function(visitor,context){return visitor.visitElement(this,context)},ElementAst.prototype.isBound=function(){return this.inputs.length>0||this.outputs.length>0||this.exportAsVars.length>0||this.directives.length>0},ElementAst.prototype.getComponent=function(){return this.directives.length>0&&this.directives[0].directive.isComponent?this.directives[0].directive:null},ElementAst}();exports.ElementAst=ElementAst;var EmbeddedTemplateAst=function(){function EmbeddedTemplateAst(attrs,outputs,vars,directives,children,ngContentIndex,sourceSpan){this.attrs=attrs,this.outputs=outputs,this.vars=vars,this.directives=directives,this.children=children,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return EmbeddedTemplateAst.prototype.visit=function(visitor,context){return visitor.visitEmbeddedTemplate(this,context)},EmbeddedTemplateAst}();exports.EmbeddedTemplateAst=EmbeddedTemplateAst;var BoundDirectivePropertyAst=function(){function BoundDirectivePropertyAst(directiveName,templateName,value,sourceSpan){this.directiveName=directiveName,this.templateName=templateName,this.value=value,this.sourceSpan=sourceSpan}return BoundDirectivePropertyAst.prototype.visit=function(visitor,context){return visitor.visitDirectiveProperty(this,context)},BoundDirectivePropertyAst}();exports.BoundDirectivePropertyAst=BoundDirectivePropertyAst;var DirectiveAst=function(){function DirectiveAst(directive,inputs,hostProperties,hostEvents,exportAsVars,sourceSpan){this.directive=directive,this.inputs=inputs,this.hostProperties=hostProperties,this.hostEvents=hostEvents,this.exportAsVars=exportAsVars,this.sourceSpan=sourceSpan}return DirectiveAst.prototype.visit=function(visitor,context){return visitor.visitDirective(this,context)},DirectiveAst}();exports.DirectiveAst=DirectiveAst;var NgContentAst=function(){function NgContentAst(index,ngContentIndex,sourceSpan){this.index=index,this.ngContentIndex=ngContentIndex,this.sourceSpan=sourceSpan}return NgContentAst.prototype.visit=function(visitor,context){return visitor.visitNgContent(this,context)},NgContentAst}();exports.NgContentAst=NgContentAst,function(PropertyBindingType){PropertyBindingType[PropertyBindingType.Property=0]="Property",PropertyBindingType[PropertyBindingType.Attribute=1]="Attribute",PropertyBindingType[PropertyBindingType.Class=2]="Class",PropertyBindingType[PropertyBindingType.Style=3]="Style"}(exports.PropertyBindingType||(exports.PropertyBindingType={}));exports.PropertyBindingType;return exports.templateVisitAll=templateVisitAll,global.define=__define,module.exports}),$__System.registerDynamic("63",["7"],!0,function($__require,exports,module){"use strict";function moduleRef(moduleUrl){return"#MODULE["+moduleUrl+"]"}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),MODULE_REGEXP=/#MODULE\[([^\]]*)\]/g;exports.moduleRef=moduleRef;var SourceModule=function(){function SourceModule(moduleUrl,sourceWithModuleRefs){this.moduleUrl=moduleUrl,this.sourceWithModuleRefs=sourceWithModuleRefs}return SourceModule.getSourceWithoutImports=function(sourceWithModuleRefs){return lang_1.StringWrapper.replaceAllMapped(sourceWithModuleRefs,MODULE_REGEXP,function(match){return""})},SourceModule.prototype.getSourceWithImports=function(){var _this=this,moduleAliases={},imports=[],newSource=lang_1.StringWrapper.replaceAllMapped(this.sourceWithModuleRefs,MODULE_REGEXP,function(match){var moduleUrl=match[1],alias=moduleAliases[moduleUrl];return lang_1.isBlank(alias)&&(moduleUrl==_this.moduleUrl?alias="":(alias="import"+imports.length,imports.push([moduleUrl,alias])),moduleAliases[moduleUrl]=alias),alias.length>0?alias+".":""});return new SourceWithImports(newSource,imports)},SourceModule}();exports.SourceModule=SourceModule;var SourceExpression=function(){function SourceExpression(declarations,expression){this.declarations=declarations,this.expression=expression}return SourceExpression}();exports.SourceExpression=SourceExpression;var SourceExpressions=function(){function SourceExpressions(declarations,expressions){this.declarations=declarations,this.expressions=expressions}return SourceExpressions}();exports.SourceExpressions=SourceExpressions;var SourceWithImports=function(){function SourceWithImports(source,imports){this.source=source,this.imports=imports}return SourceWithImports}();return exports.SourceWithImports=SourceWithImports,global.define=__define,module.exports}),$__System.registerDynamic("6e",["7"],!0,function($__require,exports,module){"use strict";function camelCaseToDashCase(input){return lang_1.StringWrapper.replaceAllMapped(input,CAMEL_CASE_REGEXP,function(m){return"-"+m[1].toLowerCase()})}function dashCaseToCamelCase(input){return lang_1.StringWrapper.replaceAllMapped(input,DASH_CASE_REGEXP,function(m){return m[1].toUpperCase()})}function escapeSingleQuoteString(input){return lang_1.isBlank(input)?null:"'"+escapeString(input,SINGLE_QUOTE_ESCAPE_STRING_RE)+"'"}function escapeDoubleQuoteString(input){return lang_1.isBlank(input)?null:'"'+escapeString(input,DOUBLE_QUOTE_ESCAPE_STRING_RE)+'"'}function escapeString(input,re){return lang_1.StringWrapper.replaceAllMapped(input,re,function(match){return"$"==match[0]?lang_1.IS_DART?"\\$":"$":"\n"==match[0]?"\\n":"\r"==match[0]?"\\r":"\\"+match[0]})}function codeGenExportVariable(name){return lang_1.IS_DART?"const "+name+" = ":"var "+name+" = exports['"+name+"'] = "}function codeGenConstConstructorCall(name){return lang_1.IS_DART?"const "+name:"new "+name}function codeGenValueFn(params,value,fnName){return void 0===fnName&&(fnName=""),lang_1.IS_DART?codeGenFnHeader(params,fnName)+" => "+value:codeGenFnHeader(params,fnName)+" { return "+value+"; }"}function codeGenFnHeader(params,fnName){return void 0===fnName&&(fnName=""),lang_1.IS_DART?fnName+"("+params.join(",")+")":"function "+fnName+"("+params.join(",")+")"}function codeGenToString(expr){return lang_1.IS_DART?"'${"+expr+"}'":expr}function splitAtColon(input,defaultValues){var parts=lang_1.StringWrapper.split(input.trim(),/\s*:\s*/g);return parts.length>1?parts:defaultValues}function escapeValue(value){return value instanceof Expression?value.expression:lang_1.isString(value)?escapeSingleQuoteString(value):lang_1.isBlank(value)?"null":""+value}function codeGenArray(data){return"["+data.map(escapeValue).join(",")+"]"}function codeGenFlatArray(values){for(var result="([",isFirstArrayEntry=!0,concatFn=lang_1.IS_DART?".addAll":"concat",i=0;i<values.length;i++){var value=values[i];value instanceof Expression&&value.isArray?(result+="])."+concatFn+"("+value.expression+")."+concatFn+"([",isFirstArrayEntry=!0):(isFirstArrayEntry||(result+=","),isFirstArrayEntry=!1,result+=escapeValue(value))}return result+="])"}function codeGenStringMap(keyValueArray){return"{"+keyValueArray.map(codeGenKeyValue).join(",")+"}"}function codeGenKeyValue(keyValue){return escapeValue(keyValue[0])+":"+escapeValue(keyValue[1])}function addAll(source,target){for(var i=0;i<source.length;i++)target.push(source[i])}function flattenArray(source,target){if(lang_1.isPresent(source))for(var i=0;i<source.length;i++){var item=source[i];lang_1.isArray(item)?flattenArray(item,target):target.push(item)}return target}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),CAMEL_CASE_REGEXP=/([A-Z])/g,DASH_CASE_REGEXP=/-([a-z])/g,SINGLE_QUOTE_ESCAPE_STRING_RE=/'|\\|\n|\r|\$/g,DOUBLE_QUOTE_ESCAPE_STRING_RE=/"|\\|\n|\r|\$/g;exports.MODULE_SUFFIX=lang_1.IS_DART?".dart":".js",exports.CONST_VAR=lang_1.IS_DART?"const":"var",exports.camelCaseToDashCase=camelCaseToDashCase,exports.dashCaseToCamelCase=dashCaseToCamelCase,exports.escapeSingleQuoteString=escapeSingleQuoteString,exports.escapeDoubleQuoteString=escapeDoubleQuoteString,exports.codeGenExportVariable=codeGenExportVariable,exports.codeGenConstConstructorCall=codeGenConstConstructorCall,exports.codeGenValueFn=codeGenValueFn,exports.codeGenFnHeader=codeGenFnHeader,exports.codeGenToString=codeGenToString,exports.splitAtColon=splitAtColon;var Statement=function(){function Statement(statement){this.statement=statement}return Statement}();exports.Statement=Statement;var Expression=function(){function Expression(expression,isArray){void 0===isArray&&(isArray=!1),this.expression=expression,this.isArray=isArray}return Expression}();return exports.Expression=Expression,exports.escapeValue=escapeValue,exports.codeGenArray=codeGenArray,exports.codeGenFlatArray=codeGenFlatArray,exports.codeGenStringMap=codeGenStringMap,exports.addAll=addAll,exports.flattenArray=flattenArray,global.define=__define,module.exports}),$__System.registerDynamic("67",["7","11","62","63","6b","8b","8c","6e","3c"],!0,function($__require,exports,module){"use strict";function visitAndReturnContext(visitor,asts,context){return template_ast_1.templateVisitAll(visitor,asts,context),context}function mapToKeyValueArray(data){var entryArray=[];collection_1.StringMapWrapper.forEach(data,function(value,name){entryArray.push([name,value])}),collection_1.ListWrapper.sort(entryArray,function(entry1,entry2){return lang_1.StringWrapper.compare(entry1[0],entry2[0])});var keyValueArray=[];return entryArray.forEach(function(entry){keyValueArray.push([entry[0],entry[1]])}),keyValueArray}function mergeAttributeValue(attrName,attrValue1,attrValue2){return attrName==CLASS_ATTR||attrName==STYLE_ATTR?attrValue1+" "+attrValue2:attrValue2}function keyValueArrayToStringMap(keyValueArray){for(var stringMap={},i=0;i<keyValueArray.length;i++){var entry=keyValueArray[i];stringMap[entry[0]]=entry[1]}return stringMap}function codeGenDirectivesArray(directives){var expressions=directives.map(function(directiveType){return typeRef(directiveType.type)});return"["+expressions.join(",")+"]"}function codeGenTypesArray(types){var expressions=types.map(typeRef);return"["+expressions.join(",")+"]"}function codeGenViewType(value){return lang_1.IS_DART?""+exports.VIEW_TYPE_MODULE_REF+value:""+value}function typeRef(type){return""+source_module_1.moduleRef(type.moduleUrl)+type.name}function getViewType(component,embeddedTemplateIndex){return embeddedTemplateIndex>0?view_type_1.ViewType.EMBEDDED:component.type.isHost?view_type_1.ViewType.HOST:view_type_1.ViewType.COMPONENT}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),collection_1=$__require("11"),template_ast_1=$__require("62"),source_module_1=$__require("63"),view_1=$__require("6b"),view_type_1=$__require("8b"),element_1=$__require("8c"),util_1=$__require("6e"),di_1=$__require("3c");exports.PROTO_VIEW_JIT_IMPORTS=lang_1.CONST_EXPR({AppProtoView:view_1.AppProtoView,AppProtoElement:element_1.AppProtoElement,ViewType:view_type_1.ViewType}),exports.APP_VIEW_MODULE_REF=source_module_1.moduleRef("package:angular2/src/core/linker/view"+util_1.MODULE_SUFFIX),exports.VIEW_TYPE_MODULE_REF=source_module_1.moduleRef("package:angular2/src/core/linker/view_type"+util_1.MODULE_SUFFIX),exports.APP_EL_MODULE_REF=source_module_1.moduleRef("package:angular2/src/core/linker/element"+util_1.MODULE_SUFFIX),exports.METADATA_MODULE_REF=source_module_1.moduleRef("package:angular2/src/core/metadata/view"+util_1.MODULE_SUFFIX);var IMPLICIT_TEMPLATE_VAR="$implicit",CLASS_ATTR="class",STYLE_ATTR="style",ProtoViewCompiler=function(){function ProtoViewCompiler(){}return ProtoViewCompiler.prototype.compileProtoViewRuntime=function(metadataCache,component,template,pipes){var protoViewFactory=new RuntimeProtoViewFactory(metadataCache,component,pipes),allProtoViews=[];return protoViewFactory.createCompileProtoView(template,[],[],allProtoViews),new CompileProtoViews([],allProtoViews)},ProtoViewCompiler.prototype.compileProtoViewCodeGen=function(resolvedMetadataCacheExpr,component,template,pipes){var protoViewFactory=new CodeGenProtoViewFactory(resolvedMetadataCacheExpr,component,pipes),allProtoViews=[],allStatements=[];return protoViewFactory.createCompileProtoView(template,[],allStatements,allProtoViews),new CompileProtoViews(allStatements.map(function(stmt){return stmt.statement}),allProtoViews)},ProtoViewCompiler=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],ProtoViewCompiler)}();exports.ProtoViewCompiler=ProtoViewCompiler;var CompileProtoViews=function(){function CompileProtoViews(declarations,protoViews){this.declarations=declarations,this.protoViews=protoViews}return CompileProtoViews}();exports.CompileProtoViews=CompileProtoViews;var CompileProtoView=function(){function CompileProtoView(embeddedTemplateIndex,protoElements,protoView){this.embeddedTemplateIndex=embeddedTemplateIndex,this.protoElements=protoElements,this.protoView=protoView}return CompileProtoView}();exports.CompileProtoView=CompileProtoView;var CompileProtoElement=function(){function CompileProtoElement(boundElementIndex,attrNameAndValues,variableNameAndValues,renderEvents,directives,embeddedTemplateIndex,appProtoEl){this.boundElementIndex=boundElementIndex,this.attrNameAndValues=attrNameAndValues,this.variableNameAndValues=variableNameAndValues,this.renderEvents=renderEvents,this.directives=directives,this.embeddedTemplateIndex=embeddedTemplateIndex,this.appProtoEl=appProtoEl}return CompileProtoElement}();exports.CompileProtoElement=CompileProtoElement;var ProtoViewFactory=function(){function ProtoViewFactory(component){this.component=component}return ProtoViewFactory.prototype.createCompileProtoView=function(template,templateVariableBindings,targetStatements,targetProtoViews){var embeddedTemplateIndex=targetProtoViews.length;targetProtoViews.push(null);var builder=new ProtoViewBuilderVisitor(this,targetStatements,targetProtoViews);template_ast_1.templateVisitAll(builder,template);var viewType=getViewType(this.component,embeddedTemplateIndex),appProtoView=this.createAppProtoView(embeddedTemplateIndex,viewType,templateVariableBindings,targetStatements),cpv=new CompileProtoView(embeddedTemplateIndex,builder.protoElements,appProtoView);return targetProtoViews[embeddedTemplateIndex]=cpv,cpv},ProtoViewFactory}(),CodeGenProtoViewFactory=function(_super){function CodeGenProtoViewFactory(resolvedMetadataCacheExpr,component,pipes){_super.call(this,component),this.resolvedMetadataCacheExpr=resolvedMetadataCacheExpr,this.pipes=pipes,this._nextVarId=0}return __extends(CodeGenProtoViewFactory,_super),CodeGenProtoViewFactory.prototype._nextProtoViewVar=function(embeddedTemplateIndex){return"appProtoView"+this._nextVarId++ +"_"+this.component.type.name+embeddedTemplateIndex},CodeGenProtoViewFactory.prototype.createAppProtoView=function(embeddedTemplateIndex,viewType,templateVariableBindings,targetStatements){var protoViewVarName=this._nextProtoViewVar(embeddedTemplateIndex),viewTypeExpr=codeGenViewType(viewType),pipesExpr=0===embeddedTemplateIndex?codeGenTypesArray(this.pipes.map(function(pipeMeta){return pipeMeta.type})):null,statement="var "+protoViewVarName+" = "+exports.APP_VIEW_MODULE_REF+"AppProtoView.create("+this.resolvedMetadataCacheExpr.expression+", "+viewTypeExpr+", "+pipesExpr+", "+util_1.codeGenStringMap(templateVariableBindings)+");";return targetStatements.push(new util_1.Statement(statement)),new util_1.Expression(protoViewVarName)},CodeGenProtoViewFactory.prototype.createAppProtoElement=function(boundElementIndex,attrNameAndValues,variableNameAndValues,directives,targetStatements){var varName="appProtoEl"+this._nextVarId++ +"_"+this.component.type.name,value=exports.APP_EL_MODULE_REF+"AppProtoElement.create(\n "+this.resolvedMetadataCacheExpr.expression+",\n "+boundElementIndex+",\n "+util_1.codeGenStringMap(attrNameAndValues)+",\n "+codeGenDirectivesArray(directives)+",\n "+util_1.codeGenStringMap(variableNameAndValues)+"\n )",statement="var "+varName+" = "+value+";";
return targetStatements.push(new util_1.Statement(statement)),new util_1.Expression(varName)},CodeGenProtoViewFactory}(ProtoViewFactory),RuntimeProtoViewFactory=function(_super){function RuntimeProtoViewFactory(metadataCache,component,pipes){_super.call(this,component),this.metadataCache=metadataCache,this.pipes=pipes}return __extends(RuntimeProtoViewFactory,_super),RuntimeProtoViewFactory.prototype.createAppProtoView=function(embeddedTemplateIndex,viewType,templateVariableBindings,targetStatements){var pipes=0===embeddedTemplateIndex?this.pipes.map(function(pipeMeta){return pipeMeta.type.runtime}):[],templateVars=keyValueArrayToStringMap(templateVariableBindings);return view_1.AppProtoView.create(this.metadataCache,viewType,pipes,templateVars)},RuntimeProtoViewFactory.prototype.createAppProtoElement=function(boundElementIndex,attrNameAndValues,variableNameAndValues,directives,targetStatements){var attrs=keyValueArrayToStringMap(attrNameAndValues);return element_1.AppProtoElement.create(this.metadataCache,boundElementIndex,attrs,directives.map(function(dirMeta){return dirMeta.type.runtime}),keyValueArrayToStringMap(variableNameAndValues))},RuntimeProtoViewFactory}(ProtoViewFactory),ProtoViewBuilderVisitor=function(){function ProtoViewBuilderVisitor(factory,allStatements,allProtoViews){this.factory=factory,this.allStatements=allStatements,this.allProtoViews=allProtoViews,this.protoElements=[],this.boundElementCount=0}return ProtoViewBuilderVisitor.prototype._readAttrNameAndValues=function(directives,attrAsts){var attrs=visitAndReturnContext(this,attrAsts,{});return directives.forEach(function(directiveMeta){collection_1.StringMapWrapper.forEach(directiveMeta.hostAttributes,function(value,name){var prevValue=attrs[name];attrs[name]=lang_1.isPresent(prevValue)?mergeAttributeValue(name,prevValue,value):value})}),mapToKeyValueArray(attrs)},ProtoViewBuilderVisitor.prototype.visitBoundText=function(ast,context){return null},ProtoViewBuilderVisitor.prototype.visitText=function(ast,context){return null},ProtoViewBuilderVisitor.prototype.visitNgContent=function(ast,context){return null},ProtoViewBuilderVisitor.prototype.visitElement=function(ast,context){var _this=this,boundElementIndex=null;ast.isBound()&&(boundElementIndex=this.boundElementCount++);var component=ast.getComponent(),variableNameAndValues=[];lang_1.isBlank(component)&&ast.exportAsVars.forEach(function(varAst){variableNameAndValues.push([varAst.name,null])});var directives=[],renderEvents=visitAndReturnContext(this,ast.outputs,new Map);collection_1.ListWrapper.forEachWithIndex(ast.directives,function(directiveAst,index){directiveAst.visit(_this,new DirectiveContext(index,boundElementIndex,renderEvents,variableNameAndValues,directives))});var renderEventArray=[];renderEvents.forEach(function(eventAst,_){return renderEventArray.push(eventAst)});var attrNameAndValues=this._readAttrNameAndValues(directives,ast.attrs);return this._addProtoElement(ast.isBound(),boundElementIndex,attrNameAndValues,variableNameAndValues,renderEventArray,directives,null),template_ast_1.templateVisitAll(this,ast.children),null},ProtoViewBuilderVisitor.prototype.visitEmbeddedTemplate=function(ast,context){var _this=this,boundElementIndex=this.boundElementCount++,directives=[];collection_1.ListWrapper.forEachWithIndex(ast.directives,function(directiveAst,index){directiveAst.visit(_this,new DirectiveContext(index,boundElementIndex,new Map,[],directives))});var attrNameAndValues=this._readAttrNameAndValues(directives,ast.attrs),templateVariableBindings=ast.vars.map(function(varAst){return[varAst.value.length>0?varAst.value:IMPLICIT_TEMPLATE_VAR,varAst.name]}),nestedProtoView=this.factory.createCompileProtoView(ast.children,templateVariableBindings,this.allStatements,this.allProtoViews);return this._addProtoElement(!0,boundElementIndex,attrNameAndValues,[],[],directives,nestedProtoView.embeddedTemplateIndex),null},ProtoViewBuilderVisitor.prototype._addProtoElement=function(isBound,boundElementIndex,attrNameAndValues,variableNameAndValues,renderEvents,directives,embeddedTemplateIndex){var appProtoEl=null;isBound&&(appProtoEl=this.factory.createAppProtoElement(boundElementIndex,attrNameAndValues,variableNameAndValues,directives,this.allStatements));var compileProtoEl=new CompileProtoElement(boundElementIndex,attrNameAndValues,variableNameAndValues,renderEvents,directives,embeddedTemplateIndex,appProtoEl);this.protoElements.push(compileProtoEl)},ProtoViewBuilderVisitor.prototype.visitVariable=function(ast,ctx){return null},ProtoViewBuilderVisitor.prototype.visitAttr=function(ast,attrNameAndValues){return attrNameAndValues[ast.name]=ast.value,null},ProtoViewBuilderVisitor.prototype.visitDirective=function(ast,ctx){return ctx.targetDirectives.push(ast.directive),template_ast_1.templateVisitAll(this,ast.hostEvents,ctx.hostEventTargetAndNames),ast.exportAsVars.forEach(function(varAst){ctx.targetVariableNameAndValues.push([varAst.name,ctx.index])}),null},ProtoViewBuilderVisitor.prototype.visitEvent=function(ast,eventTargetAndNames){return eventTargetAndNames.set(ast.fullName,ast),null},ProtoViewBuilderVisitor.prototype.visitDirectiveProperty=function(ast,context){return null},ProtoViewBuilderVisitor.prototype.visitElementProperty=function(ast,context){return null},ProtoViewBuilderVisitor}(),DirectiveContext=function(){function DirectiveContext(index,boundElementIndex,hostEventTargetAndNames,targetVariableNameAndValues,targetDirectives){this.index=index,this.boundElementIndex=boundElementIndex,this.hostEventTargetAndNames=hostEventTargetAndNames,this.targetVariableNameAndValues=targetVariableNameAndValues,this.targetDirectives=targetDirectives}return DirectiveContext}();return global.define=__define,module.exports}),$__System.registerDynamic("3a",["7"],!0,function($__require,exports,module){"use strict";function setRootDomAdapter(adapter){lang_1.isBlank(exports.DOM)&&(exports.DOM=adapter)}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");exports.DOM=null,exports.setRootDomAdapter=setRootDomAdapter;var DomAdapter=function(){function DomAdapter(){}return Object.defineProperty(DomAdapter.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(value){this._attrToPropMap=value},enumerable:!0,configurable:!0}),DomAdapter}();return exports.DomAdapter=DomAdapter,global.define=__define,module.exports}),$__System.registerDynamic("70",["7"],!0,function($__require,exports,module){"use strict";function getHtmlTagDefinition(tagName){var result=TAG_DEFINITIONS[tagName.toLowerCase()];return lang_1.isPresent(result)?result:DEFAULT_TAG_DEFINITION}function splitNsName(elementName){if("@"!=elementName[0])return[null,elementName];var match=lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE,elementName);return[match[1],match[2]]}function getNsPrefix(elementName){return splitNsName(elementName)[0]}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");exports.NAMED_ENTITIES=lang_1.CONST_EXPR({Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"}),function(HtmlTagContentType){HtmlTagContentType[HtmlTagContentType.RAW_TEXT=0]="RAW_TEXT",HtmlTagContentType[HtmlTagContentType.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",HtmlTagContentType[HtmlTagContentType.PARSABLE_DATA=2]="PARSABLE_DATA"}(exports.HtmlTagContentType||(exports.HtmlTagContentType={}));var HtmlTagContentType=exports.HtmlTagContentType,HtmlTagDefinition=function(){function HtmlTagDefinition(_a){var _this=this,_b=void 0===_a?{}:_a,closedByChildren=_b.closedByChildren,requiredParents=_b.requiredParents,implicitNamespacePrefix=_b.implicitNamespacePrefix,contentType=_b.contentType,closedByParent=_b.closedByParent,isVoid=_b.isVoid,ignoreFirstLf=_b.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,lang_1.isPresent(closedByChildren)&&closedByChildren.length>0&&closedByChildren.forEach(function(tagName){return _this.closedByChildren[tagName]=!0}),this.isVoid=lang_1.normalizeBool(isVoid),this.closedByParent=lang_1.normalizeBool(closedByParent)||this.isVoid,lang_1.isPresent(requiredParents)&&requiredParents.length>0&&(this.requiredParents={},this.parentToAdd=requiredParents[0],requiredParents.forEach(function(tagName){return _this.requiredParents[tagName]=!0})),this.implicitNamespacePrefix=implicitNamespacePrefix,this.contentType=lang_1.isPresent(contentType)?contentType:HtmlTagContentType.PARSABLE_DATA,this.ignoreFirstLf=lang_1.normalizeBool(ignoreFirstLf)}return HtmlTagDefinition.prototype.requireExtraParent=function(currentParent){if(lang_1.isBlank(this.requiredParents))return!1;if(lang_1.isBlank(currentParent))return!0;var lcParent=currentParent.toLowerCase();return 1!=this.requiredParents[lcParent]&&"template"!=lcParent},HtmlTagDefinition.prototype.isClosedByChild=function(name){return this.isVoid||lang_1.normalizeBool(this.closedByChildren[name.toLowerCase()])},HtmlTagDefinition}();exports.HtmlTagDefinition=HtmlTagDefinition;var TAG_DEFINITIONS={area:new HtmlTagDefinition({isVoid:!0}),embed:new HtmlTagDefinition({isVoid:!0}),link:new HtmlTagDefinition({isVoid:!0}),img:new HtmlTagDefinition({isVoid:!0}),input:new HtmlTagDefinition({isVoid:!0}),param:new HtmlTagDefinition({isVoid:!0}),hr:new HtmlTagDefinition({isVoid:!0}),br:new HtmlTagDefinition({isVoid:!0}),source:new HtmlTagDefinition({isVoid:!0}),track:new HtmlTagDefinition({isVoid:!0}),wbr:new HtmlTagDefinition({isVoid:!0}),p:new HtmlTagDefinition({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new HtmlTagDefinition({closedByChildren:["tbody","tfoot"]}),tbody:new HtmlTagDefinition({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new HtmlTagDefinition({closedByChildren:["tbody"],closedByParent:!0}),tr:new HtmlTagDefinition({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new HtmlTagDefinition({closedByChildren:["td","th"],closedByParent:!0}),th:new HtmlTagDefinition({closedByChildren:["td","th"],closedByParent:!0}),col:new HtmlTagDefinition({requiredParents:["colgroup"],isVoid:!0}),svg:new HtmlTagDefinition({implicitNamespacePrefix:"svg"}),math:new HtmlTagDefinition({implicitNamespacePrefix:"math"}),li:new HtmlTagDefinition({closedByChildren:["li"],closedByParent:!0}),dt:new HtmlTagDefinition({closedByChildren:["dt","dd"]}),dd:new HtmlTagDefinition({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new HtmlTagDefinition({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new HtmlTagDefinition({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new HtmlTagDefinition({closedByChildren:["optgroup"],closedByParent:!0}),option:new HtmlTagDefinition({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new HtmlTagDefinition({ignoreFirstLf:!0}),listing:new HtmlTagDefinition({ignoreFirstLf:!0}),style:new HtmlTagDefinition({contentType:HtmlTagContentType.RAW_TEXT}),script:new HtmlTagDefinition({contentType:HtmlTagContentType.RAW_TEXT}),title:new HtmlTagDefinition({contentType:HtmlTagContentType.ESCAPABLE_RAW_TEXT}),textarea:new HtmlTagDefinition({contentType:HtmlTagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},DEFAULT_TAG_DEFINITION=new HtmlTagDefinition;exports.getHtmlTagDefinition=getHtmlTagDefinition;var NS_PREFIX_RE=/^@([^:]+):(.+)/g;return exports.splitNsName=splitNsName,exports.getNsPrefix=getNsPrefix,global.define=__define,module.exports}),$__System.registerDynamic("74",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var ElementSchemaRegistry=function(){function ElementSchemaRegistry(){}return ElementSchemaRegistry.prototype.hasProperty=function(tagName,propName){return!0},ElementSchemaRegistry.prototype.getMappedPropName=function(propName){return propName},ElementSchemaRegistry}();return exports.ElementSchemaRegistry=ElementSchemaRegistry,global.define=__define,module.exports}),$__System.registerDynamic("8d",["3c","7","11","3a","70","74"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),lang_1=$__require("7"),collection_1=$__require("11"),dom_adapter_1=$__require("3a"),html_tags_1=$__require("70"),element_schema_registry_1=$__require("74"),NAMESPACE_URIS=lang_1.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),DomElementSchemaRegistry=function(_super){function DomElementSchemaRegistry(){_super.apply(this,arguments),this._protoElements=new Map}return __extends(DomElementSchemaRegistry,_super),DomElementSchemaRegistry.prototype._getProtoElement=function(tagName){var element=this._protoElements.get(tagName);if(lang_1.isBlank(element)){var nsAndName=html_tags_1.splitNsName(tagName);element=lang_1.isPresent(nsAndName[0])?dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]],nsAndName[1]):dom_adapter_1.DOM.createElement(nsAndName[1]),this._protoElements.set(tagName,element)}return element},DomElementSchemaRegistry.prototype.hasProperty=function(tagName,propName){if(-1!==tagName.indexOf("-"))return!0;var elm=this._getProtoElement(tagName);return dom_adapter_1.DOM.hasProperty(elm,propName)},DomElementSchemaRegistry.prototype.getMappedPropName=function(propName){var mappedPropName=collection_1.StringMapWrapper.get(dom_adapter_1.DOM.attrToPropMap,propName);return lang_1.isPresent(mappedPropName)?mappedPropName:propName},DomElementSchemaRegistry=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],DomElementSchemaRegistry)}(element_schema_registry_1.ElementSchemaRegistry);return exports.DomElementSchemaRegistry=DomElementSchemaRegistry,global.define=__define,module.exports}),$__System.registerDynamic("7a",["3c","7","8e"],!0,function($__require,exports,module){"use strict";function createWithoutPackagePrefix(){return new UrlResolver}function getUrlScheme(url){var match=_split(url);return match&&match[_ComponentIndex.Scheme]||""}function _buildFromEncodedParts(opt_scheme,opt_userInfo,opt_domain,opt_port,opt_path,opt_queryData,opt_fragment){var out=[];return lang_1.isPresent(opt_scheme)&&out.push(opt_scheme+":"),lang_1.isPresent(opt_domain)&&(out.push("//"),lang_1.isPresent(opt_userInfo)&&out.push(opt_userInfo+"@"),out.push(opt_domain),lang_1.isPresent(opt_port)&&out.push(":"+opt_port)),lang_1.isPresent(opt_path)&&out.push(opt_path),lang_1.isPresent(opt_queryData)&&out.push("?"+opt_queryData),lang_1.isPresent(opt_fragment)&&out.push("#"+opt_fragment),out.join("")}function _split(uri){return lang_1.RegExpWrapper.firstMatch(_splitRe,uri)}function _removeDotSegments(path){if("/"==path)return"/";for(var leadingSlash="/"==path[0]?"/":"",trailingSlash="/"===path[path.length-1]?"/":"",segments=path.split("/"),out=[],up=0,pos=0;pos<segments.length;pos++){var segment=segments[pos];switch(segment){case"":case".":break;case"..":out.length>0?out.pop():up++;break;default:out.push(segment)}}if(""==leadingSlash){for(;up-- >0;)out.unshift("..");0===out.length&&out.push(".")}return leadingSlash+out.join("/")+trailingSlash}function _joinAndCanonicalizePath(parts){var path=parts[_ComponentIndex.Path];return path=lang_1.isBlank(path)?"":_removeDotSegments(path),parts[_ComponentIndex.Path]=path,_buildFromEncodedParts(parts[_ComponentIndex.Scheme],parts[_ComponentIndex.UserInfo],parts[_ComponentIndex.Domain],parts[_ComponentIndex.Port],path,parts[_ComponentIndex.QueryData],parts[_ComponentIndex.Fragment])}function _resolveUrl(base,url){var parts=_split(encodeURI(url)),baseParts=_split(base);if(lang_1.isPresent(parts[_ComponentIndex.Scheme]))return _joinAndCanonicalizePath(parts);parts[_ComponentIndex.Scheme]=baseParts[_ComponentIndex.Scheme];for(var i=_ComponentIndex.Scheme;i<=_ComponentIndex.Port;i++)lang_1.isBlank(parts[i])&&(parts[i]=baseParts[i]);if("/"==parts[_ComponentIndex.Path][0])return _joinAndCanonicalizePath(parts);var path=baseParts[_ComponentIndex.Path];lang_1.isBlank(path)&&(path="/");var index=path.lastIndexOf("/");return path=path.substring(0,index+1)+parts[_ComponentIndex.Path],parts[_ComponentIndex.Path]=path,_joinAndCanonicalizePath(parts)}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3c"),lang_1=$__require("7"),application_tokens_1=$__require("8e"),di_2=$__require("3c");exports.createWithoutPackagePrefix=createWithoutPackagePrefix,exports.DEFAULT_PACKAGE_URL_PROVIDER=new di_2.Provider(application_tokens_1.PACKAGE_ROOT_URL,{useValue:"/"});var UrlResolver=function(){function UrlResolver(packagePrefix){void 0===packagePrefix&&(packagePrefix=null),lang_1.isPresent(packagePrefix)&&(this._packagePrefix=lang_1.StringWrapper.stripRight(packagePrefix,"/")+"/")}return UrlResolver.prototype.resolve=function(baseUrl,url){var resolvedUrl=url;return lang_1.isPresent(baseUrl)&&baseUrl.length>0&&(resolvedUrl=_resolveUrl(baseUrl,resolvedUrl)),lang_1.isPresent(this._packagePrefix)&&"package"==getUrlScheme(resolvedUrl)&&(resolvedUrl=resolvedUrl.replace("package:",this._packagePrefix)),resolvedUrl},UrlResolver=__decorate([di_1.Injectable(),__param(0,di_1.Inject(application_tokens_1.PACKAGE_ROOT_URL)),__metadata("design:paramtypes",[String])],UrlResolver)}();exports.UrlResolver=UrlResolver,exports.getUrlScheme=getUrlScheme;var _ComponentIndex,_splitRe=lang_1.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");return function(_ComponentIndex){_ComponentIndex[_ComponentIndex.Scheme=1]="Scheme",_ComponentIndex[_ComponentIndex.UserInfo=2]="UserInfo",_ComponentIndex[_ComponentIndex.Domain=3]="Domain",_ComponentIndex[_ComponentIndex.Port=4]="Port",_ComponentIndex[_ComponentIndex.Path=5]="Path",_ComponentIndex[_ComponentIndex.QueryData=6]="QueryData",_ComponentIndex[_ComponentIndex.Fragment=7]="Fragment"}(_ComponentIndex||(_ComponentIndex={})),global.define=__define,module.exports}),$__System.registerDynamic("8f",["5d","60","61","63","83","62","68","7","3c","6f","69","6a","64","65","66","67","6c","5e","74","8d","7a"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}function _createChangeDetectorGenConfig(){return new change_detection_1.ChangeDetectorGenConfig(lang_1.assertionsEnabled(),!1,!0)}var global=this,__define=global.define;global.define=void 0;var runtime_compiler_1=$__require("5d"),template_compiler_1=$__require("60");exports.TemplateCompiler=template_compiler_1.TemplateCompiler;var directive_metadata_1=$__require("61");exports.CompileDirectiveMetadata=directive_metadata_1.CompileDirectiveMetadata,exports.CompileTypeMetadata=directive_metadata_1.CompileTypeMetadata,exports.CompileTemplateMetadata=directive_metadata_1.CompileTemplateMetadata;var source_module_1=$__require("63");exports.SourceModule=source_module_1.SourceModule,exports.SourceWithImports=source_module_1.SourceWithImports;var platform_directives_and_pipes_1=$__require("83");exports.PLATFORM_DIRECTIVES=platform_directives_and_pipes_1.PLATFORM_DIRECTIVES,exports.PLATFORM_PIPES=platform_directives_and_pipes_1.PLATFORM_PIPES,__export($__require("62"));var template_parser_1=$__require("68");exports.TEMPLATE_TRANSFORMS=template_parser_1.TEMPLATE_TRANSFORMS;var lang_1=$__require("7"),di_1=$__require("3c"),template_parser_2=$__require("68"),html_parser_1=$__require("6f"),template_normalizer_1=$__require("69"),runtime_metadata_1=$__require("6a"),change_detector_compiler_1=$__require("64"),style_compiler_1=$__require("65"),view_compiler_1=$__require("66"),proto_view_compiler_1=$__require("67"),template_compiler_2=$__require("60"),change_detection_1=$__require("6c"),compiler_1=$__require("5e"),runtime_compiler_2=$__require("5d"),element_schema_registry_1=$__require("74"),dom_element_schema_registry_1=$__require("8d"),url_resolver_1=$__require("7a"),change_detection_2=$__require("6c");return exports.COMPILER_PROVIDERS=lang_1.CONST_EXPR([change_detection_2.Lexer,change_detection_2.Parser,html_parser_1.HtmlParser,template_parser_2.TemplateParser,template_normalizer_1.TemplateNormalizer,runtime_metadata_1.RuntimeMetadataResolver,url_resolver_1.DEFAULT_PACKAGE_URL_PROVIDER,style_compiler_1.StyleCompiler,proto_view_compiler_1.ProtoViewCompiler,view_compiler_1.ViewCompiler,change_detector_compiler_1.ChangeDetectionCompiler,new di_1.Provider(change_detection_1.ChangeDetectorGenConfig,{useFactory:_createChangeDetectorGenConfig,deps:[]}),template_compiler_2.TemplateCompiler,new di_1.Provider(runtime_compiler_2.RuntimeCompiler,{useClass:runtime_compiler_1.RuntimeCompiler_}),new di_1.Provider(compiler_1.Compiler,{useExisting:runtime_compiler_2.RuntimeCompiler}),dom_element_schema_registry_1.DomElementSchemaRegistry,new di_1.Provider(element_schema_registry_1.ElementSchemaRegistry,{useExisting:dom_element_schema_registry_1.DomElementSchemaRegistry}),url_resolver_1.UrlResolver]),global.define=__define,module.exports}),$__System.registerDynamic("90",["7a","79","8f"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;return global.define=void 0,__export($__require("7a")),__export($__require("79")),__export($__require("8f")),global.define=__define,module.exports}),$__System.registerDynamic("79",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var XHR=function(){function XHR(){}return XHR.prototype.get=function(url){return null},XHR}();return exports.XHR=XHR,global.define=__define,module.exports}),$__System.registerDynamic("40",["2c","7","79"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},promise_1=$__require("2c"),lang_1=$__require("7"),xhr_1=$__require("79"),XHRImpl=function(_super){function XHRImpl(){_super.apply(this,arguments)}return __extends(XHRImpl,_super),XHRImpl.prototype.get=function(url){var completer=promise_1.PromiseWrapper.completer(),xhr=new XMLHttpRequest;return xhr.open("GET",url,!0),xhr.responseType="text",xhr.onload=function(){var response=lang_1.isPresent(xhr.response)?xhr.response:xhr.responseText,status=1223===xhr.status?204:xhr.status;0===status&&(status=response?200:0),status>=200&&300>=status?completer.resolve(response):completer.reject("Failed to load "+url,null)},xhr.onerror=function(){completer.reject("Failed to load "+url,null)},xhr.send(),completer.promise},XHRImpl}(xhr_1.XHR);return exports.XHRImpl=XHRImpl,global.define=__define,module.exports}),$__System.registerDynamic("91",["6","5b","7","90","a","92","40","3c","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";function bootstrap(appComponentType,customProviders){core_1.reflector.reflectionCapabilities=new reflection_capabilities_1.ReflectionCapabilities;var appProviders=lang_1.isPresent(customProviders)?[exports.BROWSER_APP_PROVIDERS,customProviders]:exports.BROWSER_APP_PROVIDERS;return core_1.platform(browser_common_2.BROWSER_PROVIDERS).application(appProviders).bootstrap(appComponentType)}var angular_entrypoint_1=$__require("6");exports.AngularEntrypoint=angular_entrypoint_1.AngularEntrypoint;var browser_common_1=$__require("5b");exports.BROWSER_PROVIDERS=browser_common_1.BROWSER_PROVIDERS,exports.ELEMENT_PROBE_PROVIDERS=browser_common_1.ELEMENT_PROBE_PROVIDERS,exports.ELEMENT_PROBE_PROVIDERS_PROD_MODE=browser_common_1.ELEMENT_PROBE_PROVIDERS_PROD_MODE,exports.inspectNativeElement=browser_common_1.inspectNativeElement,exports.BrowserDomAdapter=browser_common_1.BrowserDomAdapter,exports.By=browser_common_1.By,exports.Title=browser_common_1.Title,exports.DOCUMENT=browser_common_1.DOCUMENT,exports.enableDebugTools=browser_common_1.enableDebugTools,exports.disableDebugTools=browser_common_1.disableDebugTools;var lang_1=$__require("7"),browser_common_2=$__require("5b"),compiler_1=$__require("90"),core_1=$__require("a"),reflection_capabilities_1=$__require("92"),xhr_impl_1=$__require("40"),compiler_2=$__require("90"),di_1=$__require("3c");exports.BROWSER_APP_PROVIDERS=lang_1.CONST_EXPR([browser_common_2.BROWSER_APP_COMMON_PROVIDERS,compiler_1.COMPILER_PROVIDERS,new di_1.Provider(compiler_2.XHR,{useClass:xhr_impl_1.XHRImpl})]),exports.bootstrap=bootstrap}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("93",["94"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var decorators_1=$__require("94");return exports.Class=decorators_1.Class,global.define=__define,module.exports}),$__System.registerDynamic("95",["7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");return exports.enableProdMode=lang_1.enableProdMode,global.define=__define,module.exports}),$__System.registerDynamic("96",["7","9","10","97"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");exports.Type=lang_1.Type;var async_1=$__require("9");exports.EventEmitter=async_1.EventEmitter;var exceptions_1=$__require("10");exports.WrappedException=exceptions_1.WrappedException;var exception_handler_1=$__require("97");return exports.ExceptionHandler=exception_handler_1.ExceptionHandler,global.define=__define,module.exports}),$__System.registerDynamic("59",["4f","7","3c","8e","9","11","5c","98","10","99","9a"],!0,function($__require,exports,module){"use strict";function _componentProviders(appComponentType){return[di_1.provide(application_tokens_1.APP_COMPONENT,{useValue:appComponentType}),di_1.provide(application_tokens_1.APP_COMPONENT_REF_PROMISE,{useFactory:function(dynamicComponentLoader,appRef,injector){var ref;return dynamicComponentLoader.loadAsRoot(appComponentType,null,injector,function(){appRef._unloadComponent(ref)}).then(function(componentRef){ref=componentRef;var testability=injector.getOptional(testability_1.Testability);return lang_1.isPresent(testability)&&injector.get(testability_1.TestabilityRegistry).registerApplication(componentRef.location.nativeElement,testability),componentRef})},deps:[dynamic_component_loader_1.DynamicComponentLoader,ApplicationRef,di_1.Injector]}),di_1.provide(appComponentType,{useFactory:function(p){return p.then(function(ref){return ref.instance})},deps:[application_tokens_1.APP_COMPONENT_REF_PROMISE]})]}function createNgZone(){return new ng_zone_1.NgZone({enableLongStackTrace:lang_1.assertionsEnabled()})}function platform(providers){if(lang_2.lockMode(),lang_1.isPresent(_platform)){if(collection_1.ListWrapper.equals(_platformProviders,providers))return _platform;throw new exceptions_1.BaseException("platform cannot be initialized with different sets of providers.")}return _createPlatform(providers)}function disposePlatform(){lang_1.isPresent(_platform)&&(_platform.dispose(),_platform=null)}function _createPlatform(providers){_platformProviders=providers;var injector=di_1.Injector.resolveAndCreate(providers);return _platform=new PlatformRef_(injector,function(){_platform=null,_platformProviders=null}),_runPlatformInitializers(injector),_platform}function _runPlatformInitializers(injector){var inits=injector.getOptional(application_tokens_1.PLATFORM_INITIALIZER);lang_1.isPresent(inits)&&inits.forEach(function(init){return init()})}function _runAppInitializers(injector){var inits=injector.getOptional(application_tokens_1.APP_INITIALIZER),promises=[];return lang_1.isPresent(inits)&&inits.forEach(function(init){var retVal=init();
async_1.PromiseWrapper.isPromise(retVal)&&promises.push(retVal)}),promises.length>0?async_1.PromiseWrapper.all(promises):null}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},ng_zone_1=$__require("4f"),lang_1=$__require("7"),di_1=$__require("3c"),application_tokens_1=$__require("8e"),async_1=$__require("9"),collection_1=$__require("11"),testability_1=$__require("5c"),dynamic_component_loader_1=$__require("98"),exceptions_1=$__require("10"),console_1=$__require("99"),profile_1=$__require("9a"),lang_2=$__require("7");exports.createNgZone=createNgZone;var _platform,_platformProviders;exports.platform=platform,exports.disposePlatform=disposePlatform;var PlatformRef=function(){function PlatformRef(){}return Object.defineProperty(PlatformRef.prototype,"injector",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),PlatformRef}();exports.PlatformRef=PlatformRef;var PlatformRef_=function(_super){function PlatformRef_(_injector,_dispose){_super.call(this),this._injector=_injector,this._dispose=_dispose,this._applications=[],this._disposeListeners=[]}return __extends(PlatformRef_,_super),PlatformRef_.prototype.registerDisposeListener=function(dispose){this._disposeListeners.push(dispose)},Object.defineProperty(PlatformRef_.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),PlatformRef_.prototype.application=function(providers){var app=this._initApp(createNgZone(),providers);if(async_1.PromiseWrapper.isPromise(app))throw new exceptions_1.BaseException("Cannot use asyncronous app initializers with application. Use asyncApplication instead.");return app},PlatformRef_.prototype.asyncApplication=function(bindingFn,additionalProviders){var _this=this,zone=createNgZone(),completer=async_1.PromiseWrapper.completer();return null===bindingFn?completer.resolve(this._initApp(zone,additionalProviders)):zone.run(function(){async_1.PromiseWrapper.then(bindingFn(zone),function(providers){lang_1.isPresent(additionalProviders)&&(providers=collection_1.ListWrapper.concat(providers,additionalProviders));var promise=_this._initApp(zone,providers);completer.resolve(promise)})}),completer.promise},PlatformRef_.prototype._initApp=function(zone,providers){var injector,app,_this=this;zone.run(function(){providers=collection_1.ListWrapper.concat(providers,[di_1.provide(ng_zone_1.NgZone,{useValue:zone}),di_1.provide(ApplicationRef,{useFactory:function(){return app},deps:[]})]);var exceptionHandler;try{injector=_this.injector.resolveAndCreateChild(providers),exceptionHandler=injector.get(exceptions_1.ExceptionHandler),zone.overrideOnErrorHandler(function(e,s){return exceptionHandler.call(e,s)})}catch(e){lang_1.isPresent(exceptionHandler)?exceptionHandler.call(e,e.stack):lang_1.print(e.toString())}}),app=new ApplicationRef_(this,zone,injector),this._applications.push(app);var promise=_runAppInitializers(injector);return null!==promise?async_1.PromiseWrapper.then(promise,function(_){return app}):app},PlatformRef_.prototype.dispose=function(){collection_1.ListWrapper.clone(this._applications).forEach(function(app){return app.dispose()}),this._disposeListeners.forEach(function(dispose){return dispose()}),this._dispose()},PlatformRef_.prototype._applicationDisposed=function(app){collection_1.ListWrapper.remove(this._applications,app)},PlatformRef_}(PlatformRef);exports.PlatformRef_=PlatformRef_;var ApplicationRef=function(){function ApplicationRef(){}return Object.defineProperty(ApplicationRef.prototype,"injector",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"zone",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"componentTypes",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ApplicationRef}();exports.ApplicationRef=ApplicationRef;var ApplicationRef_=function(_super){function ApplicationRef_(_platform,_zone,_injector){var _this=this;_super.call(this),this._platform=_platform,this._zone=_zone,this._injector=_injector,this._bootstrapListeners=[],this._disposeListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1,lang_1.isPresent(this._zone)&&async_1.ObservableWrapper.subscribe(this._zone.onTurnDone,function(_){_this._zone.run(function(){_this.tick()})}),this._enforceNoNewChanges=lang_1.assertionsEnabled()}return __extends(ApplicationRef_,_super),ApplicationRef_.prototype.registerBootstrapListener=function(listener){this._bootstrapListeners.push(listener)},ApplicationRef_.prototype.registerDisposeListener=function(dispose){this._disposeListeners.push(dispose)},ApplicationRef_.prototype.registerChangeDetector=function(changeDetector){this._changeDetectorRefs.push(changeDetector)},ApplicationRef_.prototype.unregisterChangeDetector=function(changeDetector){collection_1.ListWrapper.remove(this._changeDetectorRefs,changeDetector)},ApplicationRef_.prototype.bootstrap=function(componentType,providers){var _this=this,completer=async_1.PromiseWrapper.completer();return this._zone.run(function(){var componentProviders=_componentProviders(componentType);lang_1.isPresent(providers)&&componentProviders.push(providers);var exceptionHandler=_this._injector.get(exceptions_1.ExceptionHandler);_this._rootComponentTypes.push(componentType);try{var injector=_this._injector.resolveAndCreateChild(componentProviders),compRefToken=injector.get(application_tokens_1.APP_COMPONENT_REF_PROMISE),tick=function(componentRef){_this._loadComponent(componentRef),completer.resolve(componentRef)},tickResult=async_1.PromiseWrapper.then(compRefToken,tick);lang_1.IS_DART&&async_1.PromiseWrapper.then(tickResult,function(_){}),async_1.PromiseWrapper.then(tickResult,null,function(err,stackTrace){return completer.reject(err,stackTrace)})}catch(e){exceptionHandler.call(e,e.stack),completer.reject(e,e.stack)}}),completer.promise.then(function(_){var c=_this._injector.get(console_1.Console);return lang_1.assertionsEnabled()&&c.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),_})},ApplicationRef_.prototype._loadComponent=function(ref){var appChangeDetector=ref.location.internalElement.parentView.changeDetector;this._changeDetectorRefs.push(appChangeDetector.ref),this.tick(),this._rootComponents.push(ref),this._bootstrapListeners.forEach(function(listener){return listener(ref)})},ApplicationRef_.prototype._unloadComponent=function(ref){collection_1.ListWrapper.contains(this._rootComponents,ref)&&(this.unregisterChangeDetector(ref.location.internalElement.parentView.changeDetector.ref),collection_1.ListWrapper.remove(this._rootComponents,ref))},Object.defineProperty(ApplicationRef_.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef_.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),ApplicationRef_.prototype.tick=function(){if(this._runningTick)throw new exceptions_1.BaseException("ApplicationRef.tick is called recursively");var s=ApplicationRef_._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(detector){return detector.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(detector){return detector.checkNoChanges()})}finally{this._runningTick=!1,profile_1.wtfLeave(s)}},ApplicationRef_.prototype.dispose=function(){collection_1.ListWrapper.clone(this._rootComponents).forEach(function(ref){return ref.dispose()}),this._disposeListeners.forEach(function(dispose){return dispose()}),this._platform._applicationDisposed(this)},Object.defineProperty(ApplicationRef_.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),ApplicationRef_._tickScope=profile_1.wtfCreateScope("ApplicationRef#tick()"),ApplicationRef_}(ApplicationRef);return exports.ApplicationRef_=ApplicationRef_,global.define=__define,module.exports}),$__System.registerDynamic("9b",["4f"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var ng_zone_1=$__require("4f");return exports.NgZone=ng_zone_1.NgZone,exports.NgZoneError=ng_zone_1.NgZoneError,global.define=__define,module.exports}),$__System.registerDynamic("9c",["9d"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var api_1=$__require("9d");return exports.RootRenderer=api_1.RootRenderer,exports.Renderer=api_1.Renderer,exports.RenderComponentType=api_1.RenderComponentType,global.define=__define,module.exports}),$__System.registerDynamic("9e",["7f","81","5e","9f","a0","98","a1","a2","5f","a3"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var directive_resolver_1=$__require("7f");exports.DirectiveResolver=directive_resolver_1.DirectiveResolver;var view_resolver_1=$__require("81");exports.ViewResolver=view_resolver_1.ViewResolver;var compiler_1=$__require("5e");exports.Compiler=compiler_1.Compiler;var view_manager_1=$__require("9f");exports.AppViewManager=view_manager_1.AppViewManager;var query_list_1=$__require("a0");exports.QueryList=query_list_1.QueryList;var dynamic_component_loader_1=$__require("98");exports.DynamicComponentLoader=dynamic_component_loader_1.DynamicComponentLoader;var element_ref_1=$__require("a1");exports.ElementRef=element_ref_1.ElementRef;var template_ref_1=$__require("a2");exports.TemplateRef=template_ref_1.TemplateRef;var view_ref_1=$__require("5f");exports.EmbeddedViewRef=view_ref_1.EmbeddedViewRef,exports.HostViewRef=view_ref_1.HostViewRef,exports.ViewRef=view_ref_1.ViewRef,exports.HostViewFactoryRef=view_ref_1.HostViewFactoryRef;var view_container_ref_1=$__require("a3");exports.ViewContainerRef=view_container_ref_1.ViewContainerRef;var dynamic_component_loader_2=$__require("98");return exports.ComponentRef=dynamic_component_loader_2.ComponentRef,global.define=__define,module.exports}),$__System.registerDynamic("53",["7","11"],!0,function($__require,exports,module){"use strict";function asNativeElements(debugEls){return debugEls.map(function(el){return el.nativeElement})}function _queryElementChildren(element,predicate,matches){element.childNodes.forEach(function(node){node instanceof DebugElement&&(predicate(node)&&matches.push(node),_queryElementChildren(node,predicate,matches))})}function _queryNodeChildren(parentNode,predicate,matches){parentNode instanceof DebugElement&&parentNode.childNodes.forEach(function(node){predicate(node)&&matches.push(node),node instanceof DebugElement&&_queryNodeChildren(node,predicate,matches)})}function getDebugNode(nativeNode){return _nativeNodeToDebugNode.get(nativeNode)}function getAllDebugNodes(){return collection_1.MapWrapper.values(_nativeNodeToDebugNode)}function indexDebugNode(node){_nativeNodeToDebugNode.set(node.nativeNode,node)}function removeDebugNodeFromIndex(node){_nativeNodeToDebugNode["delete"](node.nativeNode)}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("7"),collection_1=$__require("11"),EventListener=function(){function EventListener(name,callback){this.name=name,this.callback=callback}return EventListener}();exports.EventListener=EventListener;var DebugNode=function(){function DebugNode(nativeNode,parent){this.nativeNode=nativeNode,lang_1.isPresent(parent)&&parent instanceof DebugElement?parent.addChild(this):this.parent=null,this.listeners=[],this.providerTokens=[]}return DebugNode.prototype.setDebugInfo=function(info){this.injector=info.injector,this.providerTokens=info.providerTokens,this.locals=info.locals,this.componentInstance=info.component},DebugNode.prototype.inject=function(token){return this.injector.get(token)},DebugNode.prototype.getLocal=function(name){return this.locals.get(name)},DebugNode}();exports.DebugNode=DebugNode;var DebugElement=function(_super){function DebugElement(nativeNode,parent){_super.call(this,nativeNode,parent),this.properties=new Map,this.attributes=new Map,this.childNodes=[],this.nativeElement=nativeNode}return __extends(DebugElement,_super),DebugElement.prototype.addChild=function(child){lang_1.isPresent(child)&&(this.childNodes.push(child),child.parent=this)},DebugElement.prototype.removeChild=function(child){var childIndex=this.childNodes.indexOf(child);-1!==childIndex&&(child.parent=null,this.childNodes.splice(childIndex,1))},DebugElement.prototype.insertChildrenAfter=function(child,newChildren){var siblingIndex=this.childNodes.indexOf(child);if(-1!==siblingIndex){var previousChildren=this.childNodes.slice(0,siblingIndex+1),nextChildren=this.childNodes.slice(siblingIndex+1);this.childNodes=collection_1.ListWrapper.concat(collection_1.ListWrapper.concat(previousChildren,newChildren),nextChildren);for(var i=0;i<newChildren.length;++i){var newChild=newChildren[i];lang_1.isPresent(newChild.parent)&&newChild.parent.removeChild(newChild),newChild.parent=this}}},DebugElement.prototype.query=function(predicate){var results=this.queryAll(predicate);return results.length>0?results[0]:null},DebugElement.prototype.queryAll=function(predicate){var matches=[];return _queryElementChildren(this,predicate,matches),matches},DebugElement.prototype.queryAllNodes=function(predicate){var matches=[];return _queryNodeChildren(this,predicate,matches),matches},Object.defineProperty(DebugElement.prototype,"children",{get:function(){var children=[];return this.childNodes.forEach(function(node){node instanceof DebugElement&&children.push(node)}),children},enumerable:!0,configurable:!0}),DebugElement.prototype.triggerEventHandler=function(eventName,eventObj){this.listeners.forEach(function(listener){listener.name==eventName&&listener.callback(eventObj)})},DebugElement}(DebugNode);exports.DebugElement=DebugElement,exports.asNativeElements=asNativeElements;var _nativeNodeToDebugNode=new Map;return exports.getDebugNode=getDebugNode,exports.getAllDebugNodes=getAllDebugNodes,exports.indexDebugNode=indexDebugNode,exports.removeDebugNodeFromIndex=removeDebugNodeFromIndex,global.define=__define,module.exports}),$__System.registerDynamic("83",["3c","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var di_1=$__require("3c"),lang_1=$__require("7");return exports.PLATFORM_DIRECTIVES=lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Directives")),exports.PLATFORM_PIPES=lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Pipes")),global.define=__define,module.exports}),$__System.registerDynamic("99",["3c","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),lang_1=$__require("7"),Console=function(){function Console(){}return Console.prototype.log=function(message){lang_1.print(message)},Console=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],Console)}();return exports.Console=Console,global.define=__define,module.exports}),$__System.registerDynamic("4f",["11","7","9","9a","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";var collection_1=$__require("11"),lang_1=$__require("7"),async_1=$__require("9"),profile_1=$__require("9a"),NgZoneError=function(){function NgZoneError(error,stackTrace){this.error=error,this.stackTrace=stackTrace}return NgZoneError}();exports.NgZoneError=NgZoneError;var NgZone=function(){function NgZone(_a){var enableLongStackTrace=_a.enableLongStackTrace;this._runScope=profile_1.wtfCreateScope("NgZone#run()"),this._microtaskScope=profile_1.wtfCreateScope("NgZone#microtask()"),this._pendingMicrotasks=0,this._hasExecutedCodeInInnerZone=!1,this._nestedRun=0,this._inVmTurnDone=!1,this._pendingTimeouts=[],lang_1.global.zone?(this._disabled=!1,this._mountZone=lang_1.global.zone,this._innerZone=this._createInnerZone(this._mountZone,enableLongStackTrace)):(this._disabled=!0,this._mountZone=null),this._onTurnStartEvents=new async_1.EventEmitter(!1),this._onTurnDoneEvents=new async_1.EventEmitter(!1),this._onEventDoneEvents=new async_1.EventEmitter(!1),this._onErrorEvents=new async_1.EventEmitter(!1)}return NgZone.prototype.overrideOnTurnStart=function(onTurnStartHook){this._onTurnStart=lang_1.normalizeBlank(onTurnStartHook)},Object.defineProperty(NgZone.prototype,"onTurnStart",{get:function(){return this._onTurnStartEvents},enumerable:!0,configurable:!0}),NgZone.prototype._notifyOnTurnStart=function(parentRun){var _this=this;parentRun.call(this._innerZone,function(){_this._onTurnStartEvents.emit(null)})},NgZone.prototype.overrideOnTurnDone=function(onTurnDoneHook){this._onTurnDone=lang_1.normalizeBlank(onTurnDoneHook)},Object.defineProperty(NgZone.prototype,"onTurnDone",{get:function(){return this._onTurnDoneEvents},enumerable:!0,configurable:!0}),NgZone.prototype._notifyOnTurnDone=function(parentRun){var _this=this;parentRun.call(this._innerZone,function(){_this._onTurnDoneEvents.emit(null)})},NgZone.prototype.overrideOnEventDone=function(onEventDoneFn,opt_waitForAsync){var _this=this;void 0===opt_waitForAsync&&(opt_waitForAsync=!1);var normalizedOnEventDone=lang_1.normalizeBlank(onEventDoneFn);opt_waitForAsync?this._onEventDone=function(){_this._pendingTimeouts.length||normalizedOnEventDone()}:this._onEventDone=normalizedOnEventDone},Object.defineProperty(NgZone.prototype,"onEventDone",{get:function(){return this._onEventDoneEvents},enumerable:!0,configurable:!0}),NgZone.prototype._notifyOnEventDone=function(){var _this=this;this.runOutsideAngular(function(){_this._onEventDoneEvents.emit(null)})},Object.defineProperty(NgZone.prototype,"hasPendingMicrotasks",{get:function(){return this._pendingMicrotasks>0},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"hasPendingTimers",{get:function(){return this._pendingTimeouts.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"hasPendingAsyncTasks",{get:function(){return this.hasPendingMicrotasks||this.hasPendingTimers},enumerable:!0,configurable:!0}),NgZone.prototype.overrideOnErrorHandler=function(errorHandler){this._onErrorHandler=lang_1.normalizeBlank(errorHandler)},Object.defineProperty(NgZone.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),NgZone.prototype.run=function(fn){if(this._disabled)return fn();var s=this._runScope();try{return this._innerZone.run(fn)}finally{profile_1.wtfLeave(s)}},NgZone.prototype.runOutsideAngular=function(fn){return this._disabled?fn():this._mountZone.run(fn)},NgZone.prototype._createInnerZone=function(zone,enableLongStackTrace){var errorHandling,microtaskScope=this._microtaskScope,ngZone=this;return errorHandling=enableLongStackTrace?collection_1.StringMapWrapper.merge(lang_1.global.Zone.longStackTraceZone,{onError:function(e){ngZone._notifyOnError(this,e)}}):{onError:function(e){ngZone._notifyOnError(this,e)}},zone.fork(errorHandling).fork({$run:function(parentRun){return function(){try{return ngZone._nestedRun++,ngZone._hasExecutedCodeInInnerZone||(ngZone._hasExecutedCodeInInnerZone=!0,ngZone._notifyOnTurnStart(parentRun),ngZone._onTurnStart&&parentRun.call(ngZone._innerZone,ngZone._onTurnStart)),parentRun.apply(this,arguments)}finally{if(ngZone._nestedRun--,0==ngZone._pendingMicrotasks&&0==ngZone._nestedRun&&!this._inVmTurnDone){if(ngZone._hasExecutedCodeInInnerZone)try{this._inVmTurnDone=!0,ngZone._notifyOnTurnDone(parentRun),ngZone._onTurnDone&&parentRun.call(ngZone._innerZone,ngZone._onTurnDone)}finally{this._inVmTurnDone=!1,ngZone._hasExecutedCodeInInnerZone=!1}0===ngZone._pendingMicrotasks&&(ngZone._notifyOnEventDone(),lang_1.isPresent(ngZone._onEventDone)&&ngZone.runOutsideAngular(ngZone._onEventDone))}}}},$scheduleMicrotask:function(parentScheduleMicrotask){return function(fn){ngZone._pendingMicrotasks++;var microtask=function(){var s=microtaskScope();try{fn()}finally{ngZone._pendingMicrotasks--,profile_1.wtfLeave(s)}};parentScheduleMicrotask.call(this,microtask)}},$setTimeout:function(parentSetTimeout){return function(fn,delay){for(var args=[],_i=2;_i<arguments.length;_i++)args[_i-2]=arguments[_i];var id,cb=function(){fn(),collection_1.ListWrapper.remove(ngZone._pendingTimeouts,id)};return id=parentSetTimeout.call(this,cb,delay,args),ngZone._pendingTimeouts.push(id),id}},$clearTimeout:function(parentClearTimeout){return function(id){parentClearTimeout.call(this,id),collection_1.ListWrapper.remove(ngZone._pendingTimeouts,id)}},_innerZone:!0})},NgZone.prototype._notifyOnError=function(zone,e){if(!lang_1.isPresent(this._onErrorHandler)&&!async_1.ObservableWrapper.hasSubscribers(this._onErrorEvents))throw console.log("## _notifyOnError ##"),console.log(e.stack),e;for(var trace=[lang_1.normalizeBlank(e.stack)];zone&&zone.constructedAtException;)trace.push(zone.constructedAtException.get()),zone=zone.parent;async_1.ObservableWrapper.hasSubscribers(this._onErrorEvents)&&async_1.ObservableWrapper.callEmit(this._onErrorEvents,new NgZoneError(e,trace)),lang_1.isPresent(this._onErrorHandler)&&this._onErrorHandler(e,trace)},NgZone}();exports.NgZone=NgZone}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("5c",["3c","11","7","10","4f","9"],!0,function($__require,exports,module){"use strict";function setTestabilityGetter(getter){_testabilityGetter=getter}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),collection_1=$__require("11"),lang_1=$__require("7"),exceptions_1=$__require("10"),ng_zone_1=$__require("4f"),async_1=$__require("9"),Testability=function(){function Testability(_ngZone){this._pendingCount=0,this._didWork=!1,this._callbacks=[],this._isAngularEventPending=!1,this._watchAngularEvents(_ngZone)}return Testability.prototype._watchAngularEvents=function(_ngZone){var _this=this;async_1.ObservableWrapper.subscribe(_ngZone.onTurnStart,function(_){_this._didWork=!0,_this._isAngularEventPending=!0}),_ngZone.runOutsideAngular(function(){async_1.ObservableWrapper.subscribe(_ngZone.onEventDone,function(_){_ngZone.hasPendingTimers||(_this._isAngularEventPending=!1,_this._runCallbacksIfReady())})})},Testability.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},Testability.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new exceptions_1.BaseException("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},Testability.prototype.isStable=function(){return 0==this._pendingCount&&!this._isAngularEventPending},Testability.prototype._runCallbacksIfReady=function(){var _this=this;return this.isStable()?void async_1.PromiseWrapper.resolve(null).then(function(_){for(;0!==_this._callbacks.length;)_this._callbacks.pop()(_this._didWork);_this._didWork=!1}):void(this._didWork=!0)},Testability.prototype.whenStable=function(callback){this._callbacks.push(callback),this._runCallbacksIfReady()},Testability.prototype.getPendingRequestCount=function(){return this._pendingCount},Testability.prototype.isAngularEventPending=function(){return this._isAngularEventPending},Testability.prototype.findBindings=function(using,provider,exactMatch){return[]},Testability.prototype.findProviders=function(using,provider,exactMatch){return[]},Testability=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[ng_zone_1.NgZone])],Testability)}();exports.Testability=Testability;var TestabilityRegistry=function(){function TestabilityRegistry(){this._applications=new collection_1.Map,_testabilityGetter.addToWindow(this)}return TestabilityRegistry.prototype.registerApplication=function(token,testability){this._applications.set(token,testability)},TestabilityRegistry.prototype.getTestability=function(elem){return this._applications.get(elem)},TestabilityRegistry.prototype.getAllTestabilities=function(){return collection_1.MapWrapper.values(this._applications)},TestabilityRegistry.prototype.findTestabilityInTree=function(elem,findInAncestors){return void 0===findInAncestors&&(findInAncestors=!0),_testabilityGetter.findTestabilityInTree(this,elem,findInAncestors)},TestabilityRegistry=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],TestabilityRegistry)}();exports.TestabilityRegistry=TestabilityRegistry;var _NoopGetTestability=function(){function _NoopGetTestability(){}return _NoopGetTestability.prototype.addToWindow=function(registry){},_NoopGetTestability.prototype.findTestabilityInTree=function(registry,elem,findInAncestors){return null},_NoopGetTestability=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],_NoopGetTestability)}();exports.setTestabilityGetter=setTestabilityGetter;var _testabilityGetter=lang_1.CONST_EXPR(new _NoopGetTestability);return global.define=__define,module.exports}),$__System.registerDynamic("a4",["7","3c","99","82","5c"],!0,function($__require,exports,module){"use strict";function _reflector(){return reflection_1.reflector}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),di_1=$__require("3c"),console_1=$__require("99"),reflection_1=$__require("82"),testability_1=$__require("5c");return exports.PLATFORM_COMMON_PROVIDERS=lang_1.CONST_EXPR([new di_1.Provider(reflection_1.Reflector,{useFactory:_reflector,deps:[]}),testability_1.TestabilityRegistry,console_1.Console]),global.define=__define,module.exports}),$__System.registerDynamic("6d",["3c","7","8c","7f","a5","80"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),lang_1=$__require("7"),element_1=$__require("8c"),directive_resolver_1=$__require("7f"),pipe_provider_1=$__require("a5"),pipe_resolver_1=$__require("80"),ResolvedMetadataCache=function(){function ResolvedMetadataCache(_directiveResolver,_pipeResolver){this._directiveResolver=_directiveResolver,this._pipeResolver=_pipeResolver,this._directiveCache=new Map,this._pipeCache=new Map}return ResolvedMetadataCache.prototype.getResolvedDirectiveMetadata=function(type){var result=this._directiveCache.get(type);return lang_1.isBlank(result)&&(result=element_1.DirectiveProvider.createFromType(type,this._directiveResolver.resolve(type)),this._directiveCache.set(type,result)),result},ResolvedMetadataCache.prototype.getResolvedPipeMetadata=function(type){var result=this._pipeCache.get(type);return lang_1.isBlank(result)&&(result=pipe_provider_1.PipeProvider.createFromType(type,this._pipeResolver.resolve(type)),this._pipeCache.set(type,result)),result},ResolvedMetadataCache=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[directive_resolver_1.DirectiveResolver,pipe_resolver_1.PipeResolver])],ResolvedMetadataCache)}();return exports.ResolvedMetadataCache=ResolvedMetadataCache,exports.CODEGEN_RESOLVED_METADATA_CACHE=new ResolvedMetadataCache(directive_resolver_1.CODEGEN_DIRECTIVE_RESOLVER,pipe_resolver_1.CODEGEN_PIPE_RESOLVER),global.define=__define,module.exports}),$__System.registerDynamic("81",["3c","7b","7e","7","10","11","82"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),view_1=$__require("7b"),directives_1=$__require("7e"),lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),reflection_1=$__require("82"),ViewResolver=function(){function ViewResolver(){this._cache=new collection_1.Map}return ViewResolver.prototype.resolve=function(component){var view=this._cache.get(component);return lang_1.isBlank(view)&&(view=this._resolve(component),this._cache.set(component,view)),view},ViewResolver.prototype._resolve=function(component){var compMeta,viewMeta;if(reflection_1.reflector.annotations(component).forEach(function(m){m instanceof view_1.ViewMetadata&&(viewMeta=m),m instanceof directives_1.ComponentMetadata&&(compMeta=m)}),!lang_1.isPresent(compMeta)){if(lang_1.isBlank(viewMeta))throw new exceptions_1.BaseException("No View decorator found on component '"+lang_1.stringify(component)+"'");return viewMeta}if(lang_1.isBlank(compMeta.template)&&lang_1.isBlank(compMeta.templateUrl)&&lang_1.isBlank(viewMeta))throw new exceptions_1.BaseException("Component '"+lang_1.stringify(component)+"' must have either 'template', 'templateUrl', or '@View' set.");if(lang_1.isPresent(compMeta.template)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("template",component);else if(lang_1.isPresent(compMeta.templateUrl)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("templateUrl",component);else if(lang_1.isPresent(compMeta.directives)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("directives",component);else if(lang_1.isPresent(compMeta.pipes)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("pipes",component);else if(lang_1.isPresent(compMeta.encapsulation)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("encapsulation",component);else if(lang_1.isPresent(compMeta.styles)&&lang_1.isPresent(viewMeta))this._throwMixingViewAndComponent("styles",component);else{
if(!lang_1.isPresent(compMeta.styleUrls)||!lang_1.isPresent(viewMeta))return lang_1.isPresent(viewMeta)?viewMeta:new view_1.ViewMetadata({templateUrl:compMeta.templateUrl,template:compMeta.template,directives:compMeta.directives,pipes:compMeta.pipes,encapsulation:compMeta.encapsulation,styles:compMeta.styles,styleUrls:compMeta.styleUrls});this._throwMixingViewAndComponent("styleUrls",component)}return null},ViewResolver.prototype._throwMixingViewAndComponent=function(propertyName,component){throw new exceptions_1.BaseException("Component '"+lang_1.stringify(component)+"' cannot have both '"+propertyName+"' and '@View' set at the same time\"")},ViewResolver=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],ViewResolver)}();return exports.ViewResolver=ViewResolver,global.define=__define,module.exports}),$__System.registerDynamic("7f",["3c","7","10","11","51","82"],!0,function($__require,exports,module){"use strict";function _isDirectiveMetadata(type){return type instanceof metadata_1.DirectiveMetadata}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),metadata_1=$__require("51"),reflection_1=$__require("82"),DirectiveResolver=function(){function DirectiveResolver(){}return DirectiveResolver.prototype.resolve=function(type){var typeMetadata=reflection_1.reflector.annotations(di_1.resolveForwardRef(type));if(lang_1.isPresent(typeMetadata)){var metadata=typeMetadata.find(_isDirectiveMetadata);if(lang_1.isPresent(metadata)){var propertyMetadata=reflection_1.reflector.propMetadata(type);return this._mergeWithPropertyMetadata(metadata,propertyMetadata,type)}}throw new exceptions_1.BaseException("No Directive annotation found on "+lang_1.stringify(type))},DirectiveResolver.prototype._mergeWithPropertyMetadata=function(dm,propertyMetadata,directiveType){var inputs=[],outputs=[],host={},queries={};return collection_1.StringMapWrapper.forEach(propertyMetadata,function(metadata,propName){metadata.forEach(function(a){if(a instanceof metadata_1.InputMetadata&&(lang_1.isPresent(a.bindingPropertyName)?inputs.push(propName+": "+a.bindingPropertyName):inputs.push(propName)),a instanceof metadata_1.OutputMetadata&&(lang_1.isPresent(a.bindingPropertyName)?outputs.push(propName+": "+a.bindingPropertyName):outputs.push(propName)),a instanceof metadata_1.HostBindingMetadata&&(lang_1.isPresent(a.hostPropertyName)?host["["+a.hostPropertyName+"]"]=propName:host["["+propName+"]"]=propName),a instanceof metadata_1.HostListenerMetadata){var args=lang_1.isPresent(a.args)?a.args.join(", "):"";host["("+a.eventName+")"]=propName+"("+args+")"}a instanceof metadata_1.ContentChildrenMetadata&&(queries[propName]=a),a instanceof metadata_1.ViewChildrenMetadata&&(queries[propName]=a),a instanceof metadata_1.ContentChildMetadata&&(queries[propName]=a),a instanceof metadata_1.ViewChildMetadata&&(queries[propName]=a)})}),this._merge(dm,inputs,outputs,host,queries,directiveType)},DirectiveResolver.prototype._merge=function(dm,inputs,outputs,host,queries,directiveType){var mergedOutputs,mergedInputs=lang_1.isPresent(dm.inputs)?collection_1.ListWrapper.concat(dm.inputs,inputs):inputs;lang_1.isPresent(dm.outputs)?(dm.outputs.forEach(function(propName){if(collection_1.ListWrapper.contains(outputs,propName))throw new exceptions_1.BaseException("Output event '"+propName+"' defined multiple times in '"+lang_1.stringify(directiveType)+"'")}),mergedOutputs=collection_1.ListWrapper.concat(dm.outputs,outputs)):mergedOutputs=outputs;var mergedHost=lang_1.isPresent(dm.host)?collection_1.StringMapWrapper.merge(dm.host,host):host,mergedQueries=lang_1.isPresent(dm.queries)?collection_1.StringMapWrapper.merge(dm.queries,queries):queries;return dm instanceof metadata_1.ComponentMetadata?new metadata_1.ComponentMetadata({selector:dm.selector,inputs:mergedInputs,outputs:mergedOutputs,host:mergedHost,exportAs:dm.exportAs,moduleId:dm.moduleId,queries:mergedQueries,changeDetection:dm.changeDetection,providers:dm.providers,viewProviders:dm.viewProviders}):new metadata_1.DirectiveMetadata({selector:dm.selector,inputs:mergedInputs,outputs:mergedOutputs,host:mergedHost,exportAs:dm.exportAs,queries:mergedQueries,providers:dm.providers})},DirectiveResolver=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],DirectiveResolver)}();return exports.DirectiveResolver=DirectiveResolver,exports.CODEGEN_DIRECTIVE_RESOLVER=new DirectiveResolver,global.define=__define,module.exports}),$__System.registerDynamic("7b",["7","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7");!function(ViewEncapsulation){ViewEncapsulation[ViewEncapsulation.Emulated=0]="Emulated",ViewEncapsulation[ViewEncapsulation.Native=1]="Native",ViewEncapsulation[ViewEncapsulation.None=2]="None"}(exports.ViewEncapsulation||(exports.ViewEncapsulation={}));var ViewEncapsulation=exports.ViewEncapsulation;exports.VIEW_ENCAPSULATION_VALUES=[ViewEncapsulation.Emulated,ViewEncapsulation.Native,ViewEncapsulation.None];var ViewMetadata=function(){function ViewMetadata(_a){var _b=void 0===_a?{}:_a,templateUrl=_b.templateUrl,template=_b.template,directives=_b.directives,pipes=_b.pipes,encapsulation=_b.encapsulation,styles=_b.styles,styleUrls=_b.styleUrls;this.templateUrl=templateUrl,this.template=template,this.styleUrls=styleUrls,this.styles=styles,this.directives=directives,this.pipes=pipes,this.encapsulation=encapsulation}return ViewMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],ViewMetadata)}();exports.ViewMetadata=ViewMetadata}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("51",["a6","7e","7b","94"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var di_1=$__require("a6");exports.QueryMetadata=di_1.QueryMetadata,exports.ContentChildrenMetadata=di_1.ContentChildrenMetadata,exports.ContentChildMetadata=di_1.ContentChildMetadata,exports.ViewChildrenMetadata=di_1.ViewChildrenMetadata,exports.ViewQueryMetadata=di_1.ViewQueryMetadata,exports.ViewChildMetadata=di_1.ViewChildMetadata,exports.AttributeMetadata=di_1.AttributeMetadata;var directives_1=$__require("7e");exports.ComponentMetadata=directives_1.ComponentMetadata,exports.DirectiveMetadata=directives_1.DirectiveMetadata,exports.PipeMetadata=directives_1.PipeMetadata,exports.InputMetadata=directives_1.InputMetadata,exports.OutputMetadata=directives_1.OutputMetadata,exports.HostBindingMetadata=directives_1.HostBindingMetadata,exports.HostListenerMetadata=directives_1.HostListenerMetadata;var view_1=$__require("7b");exports.ViewMetadata=view_1.ViewMetadata,exports.ViewEncapsulation=view_1.ViewEncapsulation;var di_2=$__require("a6"),directives_2=$__require("7e"),view_2=$__require("7b"),decorators_1=$__require("94");return exports.Component=decorators_1.makeDecorator(directives_2.ComponentMetadata,function(fn){return fn.View=exports.View}),exports.Directive=decorators_1.makeDecorator(directives_2.DirectiveMetadata),exports.View=decorators_1.makeDecorator(view_2.ViewMetadata,function(fn){return fn.View=exports.View}),exports.Attribute=decorators_1.makeParamDecorator(di_2.AttributeMetadata),exports.Query=decorators_1.makeParamDecorator(di_2.QueryMetadata),exports.ContentChildren=decorators_1.makePropDecorator(di_2.ContentChildrenMetadata),exports.ContentChild=decorators_1.makePropDecorator(di_2.ContentChildMetadata),exports.ViewChildren=decorators_1.makePropDecorator(di_2.ViewChildrenMetadata),exports.ViewChild=decorators_1.makePropDecorator(di_2.ViewChildMetadata),exports.ViewQuery=decorators_1.makeParamDecorator(di_2.ViewQueryMetadata),exports.Pipe=decorators_1.makeDecorator(directives_2.PipeMetadata),exports.Input=decorators_1.makePropDecorator(directives_2.InputMetadata),exports.Output=decorators_1.makePropDecorator(directives_2.OutputMetadata),exports.HostBinding=decorators_1.makePropDecorator(directives_2.HostBindingMetadata),exports.HostListener=decorators_1.makePropDecorator(directives_2.HostListenerMetadata),global.define=__define,module.exports}),$__System.registerDynamic("80",["3c","7","10","51","82"],!0,function($__require,exports,module){"use strict";function _isPipeMetadata(type){return type instanceof metadata_1.PipeMetadata}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),lang_1=$__require("7"),exceptions_1=$__require("10"),metadata_1=$__require("51"),reflection_1=$__require("82"),PipeResolver=function(){function PipeResolver(){}return PipeResolver.prototype.resolve=function(type){var metas=reflection_1.reflector.annotations(di_1.resolveForwardRef(type));if(lang_1.isPresent(metas)){var annotation=metas.find(_isPipeMetadata);if(lang_1.isPresent(annotation))return annotation}throw new exceptions_1.BaseException("No Pipe decorator found on "+lang_1.stringify(type))},PipeResolver=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],PipeResolver)}();return exports.PipeResolver=PipeResolver,exports.CODEGEN_PIPE_RESOLVER=new PipeResolver,global.define=__define,module.exports}),$__System.registerDynamic("5e",["3c","7","10","9","82","6b","5f"],!0,function($__require,exports,module){"use strict";function isHostViewFactory(type){return type instanceof view_1.HostViewFactory}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),lang_1=$__require("7"),exceptions_1=$__require("10"),async_1=$__require("9"),reflection_1=$__require("82"),view_1=$__require("6b"),view_ref_1=$__require("5f"),Compiler=function(){function Compiler(){}return Compiler}();exports.Compiler=Compiler;var Compiler_=function(_super){function Compiler_(){_super.apply(this,arguments)}return __extends(Compiler_,_super),Compiler_.prototype.compileInHost=function(componentType){var metadatas=reflection_1.reflector.annotations(componentType),hostViewFactory=metadatas.find(isHostViewFactory);if(lang_1.isBlank(hostViewFactory))throw new exceptions_1.BaseException("No precompiled component "+lang_1.stringify(componentType)+" found");return async_1.PromiseWrapper.resolve(new view_ref_1.HostViewFactoryRef_(hostViewFactory))},Compiler_.prototype.clearCache=function(){},Compiler_=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[])],Compiler_)}(Compiler);return exports.Compiler_=Compiler_,global.define=__define,module.exports}),$__System.registerDynamic("5f",["10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},exceptions_1=$__require("10"),ViewRef=function(){function ViewRef(){}return Object.defineProperty(ViewRef.prototype,"changeDetectorRef",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef.prototype,"destroyed",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ViewRef}();exports.ViewRef=ViewRef;var HostViewRef=function(_super){function HostViewRef(){_super.apply(this,arguments)}return __extends(HostViewRef,_super),Object.defineProperty(HostViewRef.prototype,"rootNodes",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),HostViewRef}(ViewRef);exports.HostViewRef=HostViewRef;var EmbeddedViewRef=function(_super){function EmbeddedViewRef(){_super.apply(this,arguments)}return __extends(EmbeddedViewRef,_super),Object.defineProperty(EmbeddedViewRef.prototype,"rootNodes",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),EmbeddedViewRef}(ViewRef);exports.EmbeddedViewRef=EmbeddedViewRef;var ViewRef_=function(){function ViewRef_(_view){this._view=_view,this._view=_view}return Object.defineProperty(ViewRef_.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"changeDetectorRef",{get:function(){return this._view.changeDetector.ref},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),ViewRef_.prototype.setLocal=function(variableName,value){this._view.setLocal(variableName,value)},ViewRef_.prototype.hasLocal=function(variableName){return this._view.hasLocal(variableName)},Object.defineProperty(ViewRef_.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),ViewRef_}();exports.ViewRef_=ViewRef_;var HostViewFactoryRef=function(){function HostViewFactoryRef(){}return HostViewFactoryRef}();exports.HostViewFactoryRef=HostViewFactoryRef;var HostViewFactoryRef_=function(){function HostViewFactoryRef_(_hostViewFactory){this._hostViewFactory=_hostViewFactory}return Object.defineProperty(HostViewFactoryRef_.prototype,"internalHostViewFactory",{get:function(){return this._hostViewFactory},enumerable:!0,configurable:!0}),HostViewFactoryRef_}();return exports.HostViewFactoryRef_=HostViewFactoryRef_,global.define=__define,module.exports}),$__System.registerDynamic("a7",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var SelectedPipe=function(){function SelectedPipe(pipe,pure){this.pipe=pipe,this.pure=pure}return SelectedPipe}();return exports.SelectedPipe=SelectedPipe,global.define=__define,module.exports}),$__System.registerDynamic("a8",["7","10","11","a7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),cd=$__require("a7"),ProtoPipes=function(){function ProtoPipes(config){this.config=config,this.config=config}return ProtoPipes.fromProviders=function(providers){var config={};return providers.forEach(function(b){return config[b.name]=b}),new ProtoPipes(config)},ProtoPipes.prototype.get=function(name){var provider=this.config[name];if(lang_1.isBlank(provider))throw new exceptions_1.BaseException("Cannot find pipe '"+name+"'.");return provider},ProtoPipes}();exports.ProtoPipes=ProtoPipes;var Pipes=function(){function Pipes(proto,injector){this.proto=proto,this.injector=injector,this._config={}}return Pipes.prototype.get=function(name){var cached=collection_1.StringMapWrapper.get(this._config,name);if(lang_1.isPresent(cached))return cached;var p=this.proto.get(name),transform=this.injector.instantiateResolved(p),res=new cd.SelectedPipe(transform,p.pure);return p.pure&&collection_1.StringMapWrapper.set(this._config,name,res),res},Pipes}();return exports.Pipes=Pipes,global.define=__define,module.exports}),$__System.registerDynamic("a9",["7"],!0,function($__require,exports,module){"use strict";function camelCaseToDashCase(input){return lang_1.StringWrapper.replaceAllMapped(input,CAMEL_CASE_REGEXP,function(m){return"-"+m[1].toLowerCase()})}function dashCaseToCamelCase(input){return lang_1.StringWrapper.replaceAllMapped(input,DASH_CASE_REGEXP,function(m){return m[1].toUpperCase()})}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),CAMEL_CASE_REGEXP=/([A-Z])/g,DASH_CASE_REGEXP=/-([a-z])/g;return exports.camelCaseToDashCase=camelCaseToDashCase,exports.dashCaseToCamelCase=dashCaseToCamelCase,global.define=__define,module.exports}),$__System.registerDynamic("6b",["11","6c","aa","8c","7","10","9d","5f","a8","a9","8b"],!0,function($__require,exports,module){"use strict";function _localsToStringMap(locals){for(var res={},c=locals;lang_1.isPresent(c);)res=collection_1.StringMapWrapper.merge(res,collection_1.MapWrapper.toStringMap(c.current)),c=c.parent;return res}function flattenNestedViewRenderNodes(nodes){return _flattenNestedViewRenderNodes(nodes,[])}function _flattenNestedViewRenderNodes(nodes,renderNodes){for(var i=0;i<nodes.length;i++){var node=nodes[i];if(node instanceof element_1.AppElement){var appEl=node;if(renderNodes.push(appEl.nativeElement),lang_1.isPresent(appEl.nestedViews))for(var k=0;k<appEl.nestedViews.length;k++)_flattenNestedViewRenderNodes(appEl.nestedViews[k].rootNodesOrAppElements,renderNodes)}else renderNodes.push(node)}return renderNodes}function checkSlotCount(componentName,expectedSlotCount,projectableNodes){var givenSlotCount=lang_1.isPresent(projectableNodes)?projectableNodes.length:0;if(expectedSlotCount>givenSlotCount)throw new exceptions_1.BaseException("The component "+componentName+" has "+expectedSlotCount+" <ng-content> elements,"+(" but only "+givenSlotCount+" slots were provided."))}var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},collection_1=$__require("11"),change_detection_1=$__require("6c"),interfaces_1=$__require("aa"),element_1=$__require("8c"),lang_1=$__require("7"),exceptions_1=$__require("10"),api_1=$__require("9d"),view_ref_1=$__require("5f"),pipes_1=$__require("a8"),util_1=$__require("a9"),interfaces_2=$__require("aa");exports.DebugContext=interfaces_2.DebugContext;var pipes_2=$__require("a8"),view_type_1=$__require("8b"),REFLECT_PREFIX="ng-reflect-",EMPTY_CONTEXT=lang_1.CONST_EXPR(new Object),AppView=function(){function AppView(proto,renderer,viewManager,projectableNodes,containerAppElement,imperativelyCreatedProviders,rootInjector,changeDetector){this.proto=proto,this.renderer=renderer,this.viewManager=viewManager,this.projectableNodes=projectableNodes,this.containerAppElement=containerAppElement,this.changeDetector=changeDetector,this.context=null,this.destroyed=!1,this.ref=new view_ref_1.ViewRef_(this);var injectorWithHostBoundary=element_1.AppElement.getViewParentInjector(this.proto.type,containerAppElement,imperativelyCreatedProviders,rootInjector);this.parentInjector=injectorWithHostBoundary.injector,this.hostInjectorBoundary=injectorWithHostBoundary.hostInjectorBoundary;var pipes,context;switch(proto.type){case view_type_1.ViewType.COMPONENT:pipes=new pipes_2.Pipes(proto.protoPipes,containerAppElement.getInjector()),context=containerAppElement.getComponent();break;case view_type_1.ViewType.EMBEDDED:pipes=containerAppElement.parentView.pipes,context=containerAppElement.parentView.context;break;case view_type_1.ViewType.HOST:pipes=null,context=EMPTY_CONTEXT}this.pipes=pipes,this.context=context}return AppView.prototype.init=function(rootNodesOrAppElements,allNodes,disposables,appElements){this.rootNodesOrAppElements=rootNodesOrAppElements,this.allNodes=allNodes,this.disposables=disposables,this.appElements=appElements;var localsMap=new collection_1.Map;collection_1.StringMapWrapper.forEach(this.proto.templateVariableBindings,function(templateName,_){localsMap.set(templateName,null)});for(var i=0;i<appElements.length;i++){var appEl=appElements[i],providerTokens=[];if(lang_1.isPresent(appEl.proto.protoInjector))for(var j=0;j<appEl.proto.protoInjector.numberOfProviders;j++)providerTokens.push(appEl.proto.protoInjector.getProviderAtIndex(j).key.token);collection_1.StringMapWrapper.forEach(appEl.proto.directiveVariableBindings,function(directiveIndex,name){lang_1.isBlank(directiveIndex)?localsMap.set(name,appEl.nativeElement):localsMap.set(name,appEl.getDirectiveAtIndex(directiveIndex))}),this.renderer.setElementDebugInfo(appEl.nativeElement,new api_1.RenderDebugInfo(appEl.getInjector(),appEl.getComponent(),providerTokens,localsMap))}var parentLocals=null;this.proto.type!==view_type_1.ViewType.COMPONENT&&(parentLocals=lang_1.isPresent(this.containerAppElement)?this.containerAppElement.parentView.locals:null),this.proto.type===view_type_1.ViewType.COMPONENT&&(this.containerAppElement.attachComponentView(this),this.containerAppElement.parentView.changeDetector.addViewChild(this.changeDetector)),this.locals=new change_detection_1.Locals(parentLocals,localsMap),this.changeDetector.hydrate(this.context,this.locals,this,this.pipes),this.viewManager.onViewCreated(this)},AppView.prototype.destroy=function(){if(this.destroyed)throw new exceptions_1.BaseException("This view has already been destroyed!");this.changeDetector.destroyRecursive()},AppView.prototype.notifyOnDestroy=function(){this.destroyed=!0;var hostElement=this.proto.type===view_type_1.ViewType.COMPONENT?this.containerAppElement.nativeElement:null;this.renderer.destroyView(hostElement,this.allNodes);for(var i=0;i<this.disposables.length;i++)this.disposables[i]();this.viewManager.onViewDestroyed(this)},Object.defineProperty(AppView.prototype,"changeDetectorRef",{get:function(){return this.changeDetector.ref},enumerable:!0,configurable:!0}),Object.defineProperty(AppView.prototype,"flatRootNodes",{get:function(){return flattenNestedViewRenderNodes(this.rootNodesOrAppElements)},enumerable:!0,configurable:!0}),AppView.prototype.hasLocal=function(contextName){return collection_1.StringMapWrapper.contains(this.proto.templateVariableBindings,contextName)},AppView.prototype.setLocal=function(contextName,value){if(this.hasLocal(contextName)){var templateName=this.proto.templateVariableBindings[contextName];this.locals.set(templateName,value)}},AppView.prototype.notifyOnBinding=function(b,currentValue){if(b.isTextNode())this.renderer.setText(this.allNodes[b.elementIndex],currentValue);else{var nativeElement=this.appElements[b.elementIndex].nativeElement;if(b.isElementProperty())this.renderer.setElementProperty(nativeElement,b.name,currentValue);else if(b.isElementAttribute())this.renderer.setElementAttribute(nativeElement,b.name,lang_1.isPresent(currentValue)?""+currentValue:null);else if(b.isElementClass())this.renderer.setElementClass(nativeElement,b.name,currentValue);else{if(!b.isElementStyle())throw new exceptions_1.BaseException("Unsupported directive record");var unit=lang_1.isPresent(b.unit)?b.unit:"";this.renderer.setElementStyle(nativeElement,b.name,lang_1.isPresent(currentValue)?""+currentValue+unit:null)}}},AppView.prototype.logBindingUpdate=function(b,value){if(b.isDirective()||b.isElementProperty()){var nativeElement=this.appElements[b.elementIndex].nativeElement;this.renderer.setBindingDebugInfo(nativeElement,""+REFLECT_PREFIX+util_1.camelCaseToDashCase(b.name),""+value)}},AppView.prototype.notifyAfterContentChecked=function(){for(var count=this.appElements.length,i=count-1;i>=0;i--)this.appElements[i].ngAfterContentChecked()},AppView.prototype.notifyAfterViewChecked=function(){for(var count=this.appElements.length,i=count-1;i>=0;i--)this.appElements[i].ngAfterViewChecked()},AppView.prototype.getDebugContext=function(appElement,elementIndex,directiveIndex){try{lang_1.isBlank(appElement)&&elementIndex<this.appElements.length&&(appElement=this.appElements[elementIndex]);var container=this.containerAppElement,element=lang_1.isPresent(appElement)?appElement.nativeElement:null,componentElement=lang_1.isPresent(container)?container.nativeElement:null,directive=lang_1.isPresent(directiveIndex)?appElement.getDirectiveAtIndex(directiveIndex):null,injector=lang_1.isPresent(appElement)?appElement.getInjector():null;return new interfaces_1.DebugContext(element,componentElement,directive,this.context,_localsToStringMap(this.locals),injector)}catch(e){return null}},AppView.prototype.getDirectiveFor=function(directive){return this.appElements[directive.elementIndex].getDirectiveAtIndex(directive.directiveIndex)},AppView.prototype.getDetectorFor=function(directive){var componentView=this.appElements[directive.elementIndex].componentView;return lang_1.isPresent(componentView)?componentView.changeDetector:null},AppView.prototype.triggerEventHandlers=function(eventName,eventObj,boundElementIndex){return this.changeDetector.handleEvent(eventName,boundElementIndex,eventObj)},AppView}();exports.AppView=AppView;var AppProtoView=function(){function AppProtoView(type,protoPipes,templateVariableBindings){this.type=type,this.protoPipes=protoPipes,this.templateVariableBindings=templateVariableBindings}return AppProtoView.create=function(metadataCache,type,pipes,templateVariableBindings){var protoPipes=null;if(lang_1.isPresent(pipes)&&pipes.length>0){for(var boundPipes=collection_1.ListWrapper.createFixedSize(pipes.length),i=0;i<pipes.length;i++)boundPipes[i]=metadataCache.getResolvedPipeMetadata(pipes[i]);protoPipes=pipes_1.ProtoPipes.fromProviders(boundPipes)}return new AppProtoView(type,protoPipes,templateVariableBindings)},AppProtoView}();exports.AppProtoView=AppProtoView;var HostViewFactory=function(){function HostViewFactory(selector,viewFactory){this.selector=selector,this.viewFactory=viewFactory}return HostViewFactory=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String,Function])],HostViewFactory)}();return exports.HostViewFactory=HostViewFactory,exports.flattenNestedViewRenderNodes=flattenNestedViewRenderNodes,exports.checkSlotCount=checkSlotCount,global.define=__define,module.exports}),$__System.registerDynamic("a6",["7","3c","ab"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),di_1=$__require("3c"),metadata_1=$__require("ab"),AttributeMetadata=function(_super){function AttributeMetadata(attributeName){_super.call(this),this.attributeName=attributeName}return __extends(AttributeMetadata,_super),Object.defineProperty(AttributeMetadata.prototype,"token",{get:function(){return this},enumerable:!0,configurable:!0}),AttributeMetadata.prototype.toString=function(){return"@Attribute("+lang_1.stringify(this.attributeName)+")"},AttributeMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String])],AttributeMetadata)}(metadata_1.DependencyMetadata);exports.AttributeMetadata=AttributeMetadata;var QueryMetadata=function(_super){function QueryMetadata(_selector,_a){var _b=void 0===_a?{}:_a,_c=_b.descendants,descendants=void 0===_c?!1:_c,_d=_b.first,first=void 0===_d?!1:_d;_super.call(this),this._selector=_selector,this.descendants=descendants,this.first=first}return __extends(QueryMetadata,_super),Object.defineProperty(QueryMetadata.prototype,"isViewQuery",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(QueryMetadata.prototype,"selector",{get:function(){return di_1.resolveForwardRef(this._selector)},enumerable:!0,configurable:!0}),Object.defineProperty(QueryMetadata.prototype,"isVarBindingQuery",{get:function(){return lang_1.isString(this.selector)},enumerable:!0,configurable:!0}),Object.defineProperty(QueryMetadata.prototype,"varBindings",{get:function(){return this.selector.split(",")},enumerable:!0,configurable:!0}),QueryMetadata.prototype.toString=function(){return"@Query("+lang_1.stringify(this.selector)+")"},QueryMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object,Object])],QueryMetadata)}(metadata_1.DependencyMetadata);exports.QueryMetadata=QueryMetadata;var ContentChildrenMetadata=function(_super){function ContentChildrenMetadata(_selector,_a){var _b=(void 0===_a?{}:_a).descendants,descendants=void 0===_b?!1:_b;_super.call(this,_selector,{descendants:descendants})}return __extends(ContentChildrenMetadata,_super),ContentChildrenMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object,Object])],ContentChildrenMetadata)}(QueryMetadata);exports.ContentChildrenMetadata=ContentChildrenMetadata;var ContentChildMetadata=function(_super){function ContentChildMetadata(_selector){_super.call(this,_selector,{descendants:!0,first:!0})}return __extends(ContentChildMetadata,_super),ContentChildMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],ContentChildMetadata)}(QueryMetadata);exports.ContentChildMetadata=ContentChildMetadata;var ViewQueryMetadata=function(_super){function ViewQueryMetadata(_selector,_a){var _b=void 0===_a?{}:_a,_c=_b.descendants,descendants=void 0===_c?!1:_c,_d=_b.first,first=void 0===_d?!1:_d;_super.call(this,_selector,{descendants:descendants,first:first})}return __extends(ViewQueryMetadata,_super),
Object.defineProperty(ViewQueryMetadata.prototype,"isViewQuery",{get:function(){return!0},enumerable:!0,configurable:!0}),ViewQueryMetadata.prototype.toString=function(){return"@ViewQuery("+lang_1.stringify(this.selector)+")"},ViewQueryMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object,Object])],ViewQueryMetadata)}(QueryMetadata);exports.ViewQueryMetadata=ViewQueryMetadata;var ViewChildrenMetadata=function(_super){function ViewChildrenMetadata(_selector){_super.call(this,_selector,{descendants:!0})}return __extends(ViewChildrenMetadata,_super),ViewChildrenMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],ViewChildrenMetadata)}(ViewQueryMetadata);exports.ViewChildrenMetadata=ViewChildrenMetadata;var ViewChildMetadata=function(_super){function ViewChildMetadata(_selector){_super.call(this,_selector,{descendants:!0,first:!0})}return __extends(ViewChildMetadata,_super),ViewChildMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],ViewChildMetadata)}(ViewQueryMetadata);return exports.ViewChildMetadata=ViewChildMetadata,global.define=__define,module.exports}),$__System.registerDynamic("a1",["10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var exceptions_1=$__require("10"),ElementRef=function(){function ElementRef(){}return Object.defineProperty(ElementRef.prototype,"nativeElement",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ElementRef}();exports.ElementRef=ElementRef;var ElementRef_=function(){function ElementRef_(_appElement){this._appElement=_appElement}return Object.defineProperty(ElementRef_.prototype,"internalElement",{get:function(){return this._appElement},enumerable:!0,configurable:!0}),Object.defineProperty(ElementRef_.prototype,"nativeElement",{get:function(){return this._appElement.nativeElement},enumerable:!0,configurable:!0}),ElementRef_}();return exports.ElementRef_=ElementRef_,global.define=__define,module.exports}),$__System.registerDynamic("a3",["11","10","7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("11"),exceptions_1=$__require("10"),lang_1=$__require("7"),ViewContainerRef=function(){function ViewContainerRef(){}return Object.defineProperty(ViewContainerRef.prototype,"element",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ViewContainerRef.prototype.clear=function(){for(var i=this.length-1;i>=0;i--)this.remove(i)},Object.defineProperty(ViewContainerRef.prototype,"length",{get:function(){return exceptions_1.unimplemented()},enumerable:!0,configurable:!0}),ViewContainerRef}();exports.ViewContainerRef=ViewContainerRef;var ViewContainerRef_=function(_super){function ViewContainerRef_(_element){_super.call(this),this._element=_element}return __extends(ViewContainerRef_,_super),ViewContainerRef_.prototype.get=function(index){return this._element.nestedViews[index].ref},Object.defineProperty(ViewContainerRef_.prototype,"length",{get:function(){var views=this._element.nestedViews;return lang_1.isPresent(views)?views.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef_.prototype,"element",{get:function(){return this._element.ref},enumerable:!0,configurable:!0}),ViewContainerRef_.prototype.createEmbeddedView=function(templateRef,index){void 0===index&&(index=-1),-1==index&&(index=this.length);var vm=this._element.parentView.viewManager;return vm.createEmbeddedViewInContainer(this._element.ref,index,templateRef)},ViewContainerRef_.prototype.createHostView=function(hostViewFactoryRef,index,dynamicallyCreatedProviders,projectableNodes){void 0===index&&(index=-1),void 0===dynamicallyCreatedProviders&&(dynamicallyCreatedProviders=null),void 0===projectableNodes&&(projectableNodes=null),-1==index&&(index=this.length);var vm=this._element.parentView.viewManager;return vm.createHostViewInContainer(this._element.ref,index,hostViewFactoryRef,dynamicallyCreatedProviders,projectableNodes)},ViewContainerRef_.prototype.insert=function(viewRef,index){void 0===index&&(index=-1),-1==index&&(index=this.length);var vm=this._element.parentView.viewManager;return vm.attachViewInContainer(this._element.ref,index,viewRef)},ViewContainerRef_.prototype.indexOf=function(viewRef){return collection_1.ListWrapper.indexOf(this._element.nestedViews,viewRef.internalView)},ViewContainerRef_.prototype.remove=function(index){void 0===index&&(index=-1),-1==index&&(index=this.length-1);var vm=this._element.parentView.viewManager;return vm.destroyViewInContainer(this._element.ref,index)},ViewContainerRef_.prototype.detach=function(index){void 0===index&&(index=-1),-1==index&&(index=this.length-1);var vm=this._element.parentView.viewManager;return vm.detachViewInContainer(this._element.ref,index)},ViewContainerRef_}(ViewContainerRef);return exports.ViewContainerRef_=ViewContainerRef_,global.define=__define,module.exports}),$__System.registerDynamic("a2",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},TemplateRef=function(){function TemplateRef(){}return Object.defineProperty(TemplateRef.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),TemplateRef}();exports.TemplateRef=TemplateRef;var TemplateRef_=function(_super){function TemplateRef_(_elementRef){_super.call(this),this._elementRef=_elementRef}return __extends(TemplateRef_,_super),Object.defineProperty(TemplateRef_.prototype,"elementRef",{get:function(){return this._elementRef},enumerable:!0,configurable:!0}),TemplateRef_}(TemplateRef);return exports.TemplateRef_=TemplateRef_,global.define=__define,module.exports}),$__System.registerDynamic("ac",["6c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var change_detection_1=$__require("6c");return exports.ChangeDetectionStrategy=change_detection_1.ChangeDetectionStrategy,exports.ExpressionChangedAfterItHasBeenCheckedException=change_detection_1.ExpressionChangedAfterItHasBeenCheckedException,exports.ChangeDetectionError=change_detection_1.ChangeDetectionError,exports.ChangeDetectorRef=change_detection_1.ChangeDetectorRef,exports.WrappedValue=change_detection_1.WrappedValue,exports.SimpleChange=change_detection_1.SimpleChange,exports.IterableDiffers=change_detection_1.IterableDiffers,exports.KeyValueDiffers=change_detection_1.KeyValueDiffers,global.define=__define,module.exports}),$__System.registerDynamic("7e",["7","ab","ac"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),metadata_1=$__require("ab"),change_detection_1=$__require("ac"),DirectiveMetadata=function(_super){function DirectiveMetadata(_a){var _b=void 0===_a?{}:_a,selector=_b.selector,inputs=_b.inputs,outputs=_b.outputs,properties=_b.properties,events=_b.events,host=_b.host,bindings=_b.bindings,providers=_b.providers,exportAs=_b.exportAs,queries=_b.queries;_super.call(this),this.selector=selector,this._inputs=inputs,this._properties=properties,this._outputs=outputs,this._events=events,this.host=host,this.exportAs=exportAs,this.queries=queries,this._providers=providers,this._bindings=bindings}return __extends(DirectiveMetadata,_super),Object.defineProperty(DirectiveMetadata.prototype,"inputs",{get:function(){return lang_1.isPresent(this._properties)&&this._properties.length>0?this._properties:this._inputs},enumerable:!0,configurable:!0}),Object.defineProperty(DirectiveMetadata.prototype,"properties",{get:function(){return this.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(DirectiveMetadata.prototype,"outputs",{get:function(){return lang_1.isPresent(this._events)&&this._events.length>0?this._events:this._outputs},enumerable:!0,configurable:!0}),Object.defineProperty(DirectiveMetadata.prototype,"events",{get:function(){return this.outputs},enumerable:!0,configurable:!0}),Object.defineProperty(DirectiveMetadata.prototype,"providers",{get:function(){return lang_1.isPresent(this._bindings)&&this._bindings.length>0?this._bindings:this._providers},enumerable:!0,configurable:!0}),Object.defineProperty(DirectiveMetadata.prototype,"bindings",{get:function(){return this.providers},enumerable:!0,configurable:!0}),DirectiveMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],DirectiveMetadata)}(metadata_1.InjectableMetadata);exports.DirectiveMetadata=DirectiveMetadata;var ComponentMetadata=function(_super){function ComponentMetadata(_a){var _b=void 0===_a?{}:_a,selector=_b.selector,inputs=_b.inputs,outputs=_b.outputs,properties=_b.properties,events=_b.events,host=_b.host,exportAs=_b.exportAs,moduleId=_b.moduleId,bindings=_b.bindings,providers=_b.providers,viewBindings=_b.viewBindings,viewProviders=_b.viewProviders,_c=_b.changeDetection,changeDetection=void 0===_c?change_detection_1.ChangeDetectionStrategy.Default:_c,queries=_b.queries,templateUrl=_b.templateUrl,template=_b.template,styleUrls=_b.styleUrls,styles=_b.styles,directives=_b.directives,pipes=_b.pipes,encapsulation=_b.encapsulation;_super.call(this,{selector:selector,inputs:inputs,outputs:outputs,properties:properties,events:events,host:host,exportAs:exportAs,bindings:bindings,providers:providers,queries:queries}),this.changeDetection=changeDetection,this._viewProviders=viewProviders,this._viewBindings=viewBindings,this.templateUrl=templateUrl,this.template=template,this.styleUrls=styleUrls,this.styles=styles,this.directives=directives,this.pipes=pipes,this.encapsulation=encapsulation,this.moduleId=moduleId}return __extends(ComponentMetadata,_super),Object.defineProperty(ComponentMetadata.prototype,"viewProviders",{get:function(){return lang_1.isPresent(this._viewBindings)&&this._viewBindings.length>0?this._viewBindings:this._viewProviders},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentMetadata.prototype,"viewBindings",{get:function(){return this.viewProviders},enumerable:!0,configurable:!0}),ComponentMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],ComponentMetadata)}(DirectiveMetadata);exports.ComponentMetadata=ComponentMetadata;var PipeMetadata=function(_super){function PipeMetadata(_a){var name=_a.name,pure=_a.pure;_super.call(this),this.name=name,this._pure=pure}return __extends(PipeMetadata,_super),Object.defineProperty(PipeMetadata.prototype,"pure",{get:function(){return lang_1.isPresent(this._pure)?this._pure:!0},enumerable:!0,configurable:!0}),PipeMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],PipeMetadata)}(metadata_1.InjectableMetadata);exports.PipeMetadata=PipeMetadata;var InputMetadata=function(){function InputMetadata(bindingPropertyName){this.bindingPropertyName=bindingPropertyName}return InputMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String])],InputMetadata)}();exports.InputMetadata=InputMetadata;var OutputMetadata=function(){function OutputMetadata(bindingPropertyName){this.bindingPropertyName=bindingPropertyName}return OutputMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String])],OutputMetadata)}();exports.OutputMetadata=OutputMetadata;var HostBindingMetadata=function(){function HostBindingMetadata(hostPropertyName){this.hostPropertyName=hostPropertyName}return HostBindingMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String])],HostBindingMetadata)}();exports.HostBindingMetadata=HostBindingMetadata;var HostListenerMetadata=function(){function HostListenerMetadata(eventName,args){this.eventName=eventName,this.args=args}return HostListenerMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String,Array])],HostListenerMetadata)}();return exports.HostListenerMetadata=HostListenerMetadata,global.define=__define,module.exports}),$__System.registerDynamic("ad",["7","10","11","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),di_1=$__require("3c"),IterableDiffers=function(){function IterableDiffers(factories){this.factories=factories}return IterableDiffers.create=function(factories,parent){if(lang_1.isPresent(parent)){var copied=collection_1.ListWrapper.clone(parent.factories);return factories=factories.concat(copied),new IterableDiffers(factories)}return new IterableDiffers(factories)},IterableDiffers.extend=function(factories){return new di_1.Provider(IterableDiffers,{useFactory:function(parent){if(lang_1.isBlank(parent))throw new exceptions_1.BaseException("Cannot extend IterableDiffers without a parent injector");return IterableDiffers.create(factories,parent)},deps:[[IterableDiffers,new di_1.SkipSelfMetadata,new di_1.OptionalMetadata]]})},IterableDiffers.prototype.find=function(iterable){var factory=this.factories.find(function(f){return f.supports(iterable)});if(lang_1.isPresent(factory))return factory;throw new exceptions_1.BaseException("Cannot find a differ supporting object '"+iterable+"'")},IterableDiffers=__decorate([di_1.Injectable(),lang_1.CONST(),__metadata("design:paramtypes",[Array])],IterableDiffers)}();return exports.IterableDiffers=IterableDiffers,global.define=__define,module.exports}),$__System.registerDynamic("ae",["7","10","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),lang_2=$__require("7"),DefaultIterableDifferFactory=function(){function DefaultIterableDifferFactory(){}return DefaultIterableDifferFactory.prototype.supports=function(obj){return collection_1.isListLikeIterable(obj)},DefaultIterableDifferFactory.prototype.create=function(cdRef,trackByFn){return new DefaultIterableDiffer(trackByFn)},DefaultIterableDifferFactory=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],DefaultIterableDifferFactory)}();exports.DefaultIterableDifferFactory=DefaultIterableDifferFactory;var trackByIdentity=function(index,item){return item},DefaultIterableDiffer=function(){function DefaultIterableDiffer(_trackByFn){this._trackByFn=_trackByFn,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=lang_2.isPresent(this._trackByFn)?this._trackByFn:trackByIdentity}return Object.defineProperty(DefaultIterableDiffer.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(DefaultIterableDiffer.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),DefaultIterableDiffer.prototype.forEachItem=function(fn){var record;for(record=this._itHead;null!==record;record=record._next)fn(record)},DefaultIterableDiffer.prototype.forEachPreviousItem=function(fn){var record;for(record=this._previousItHead;null!==record;record=record._nextPrevious)fn(record)},DefaultIterableDiffer.prototype.forEachAddedItem=function(fn){var record;for(record=this._additionsHead;null!==record;record=record._nextAdded)fn(record)},DefaultIterableDiffer.prototype.forEachMovedItem=function(fn){var record;for(record=this._movesHead;null!==record;record=record._nextMoved)fn(record)},DefaultIterableDiffer.prototype.forEachRemovedItem=function(fn){var record;for(record=this._removalsHead;null!==record;record=record._nextRemoved)fn(record)},DefaultIterableDiffer.prototype.forEachIdentityChange=function(fn){var record;for(record=this._identityChangesHead;null!==record;record=record._nextIdentityChange)fn(record)},DefaultIterableDiffer.prototype.diff=function(collection){if(lang_2.isBlank(collection)&&(collection=[]),!collection_1.isListLikeIterable(collection))throw new exceptions_1.BaseException("Error trying to diff '"+collection+"'");return this.check(collection)?this:null},DefaultIterableDiffer.prototype.onDestroy=function(){},DefaultIterableDiffer.prototype.check=function(collection){var _this=this;this._reset();var index,item,itemTrackBy,record=this._itHead,mayBeDirty=!1;if(lang_2.isArray(collection)){var list=collection;for(this._length=collection.length,index=0;index<this._length;index++)item=list[index],itemTrackBy=this._trackByFn(index,item),null!==record&&lang_2.looseIdentical(record.trackById,itemTrackBy)?(mayBeDirty&&(record=this._verifyReinsertion(record,item,itemTrackBy,index)),lang_2.looseIdentical(record.item,item)||this._addIdentityChange(record,item)):(record=this._mismatch(record,item,itemTrackBy,index),mayBeDirty=!0),record=record._next}else index=0,collection_1.iterateListLike(collection,function(item){itemTrackBy=_this._trackByFn(index,item),null!==record&&lang_2.looseIdentical(record.trackById,itemTrackBy)?(mayBeDirty&&(record=_this._verifyReinsertion(record,item,itemTrackBy,index)),lang_2.looseIdentical(record.item,item)||_this._addIdentityChange(record,item)):(record=_this._mismatch(record,item,itemTrackBy,index),mayBeDirty=!0),record=record._next,index++}),this._length=index;return this._truncate(record),this._collection=collection,this.isDirty},Object.defineProperty(DefaultIterableDiffer.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),DefaultIterableDiffer.prototype._reset=function(){if(this.isDirty){var record,nextRecord;for(record=this._previousItHead=this._itHead;null!==record;record=record._next)record._nextPrevious=record._next;for(record=this._additionsHead;null!==record;record=record._nextAdded)record.previousIndex=record.currentIndex;for(this._additionsHead=this._additionsTail=null,record=this._movesHead;null!==record;record=nextRecord)record.previousIndex=record.currentIndex,nextRecord=record._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},DefaultIterableDiffer.prototype._mismatch=function(record,item,itemTrackBy,index){var previousRecord;return null===record?previousRecord=this._itTail:(previousRecord=record._prev,this._remove(record)),record=null===this._linkedRecords?null:this._linkedRecords.get(itemTrackBy,index),null!==record?(lang_2.looseIdentical(record.item,item)||this._addIdentityChange(record,item),this._moveAfter(record,previousRecord,index)):(record=null===this._unlinkedRecords?null:this._unlinkedRecords.get(itemTrackBy),null!==record?(lang_2.looseIdentical(record.item,item)||this._addIdentityChange(record,item),this._reinsertAfter(record,previousRecord,index)):record=this._addAfter(new CollectionChangeRecord(item,itemTrackBy),previousRecord,index)),record},DefaultIterableDiffer.prototype._verifyReinsertion=function(record,item,itemTrackBy,index){var reinsertRecord=null===this._unlinkedRecords?null:this._unlinkedRecords.get(itemTrackBy);return null!==reinsertRecord?record=this._reinsertAfter(reinsertRecord,record._prev,index):record.currentIndex!=index&&(record.currentIndex=index,this._addToMoves(record,index)),record},DefaultIterableDiffer.prototype._truncate=function(record){for(;null!==record;){var nextRecord=record._next;this._addToRemovals(this._unlink(record)),record=nextRecord}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null)},DefaultIterableDiffer.prototype._reinsertAfter=function(record,prevRecord,index){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(record);var prev=record._prevRemoved,next=record._nextRemoved;return null===prev?this._removalsHead=next:prev._nextRemoved=next,null===next?this._removalsTail=prev:next._prevRemoved=prev,this._insertAfter(record,prevRecord,index),this._addToMoves(record,index),record},DefaultIterableDiffer.prototype._moveAfter=function(record,prevRecord,index){return this._unlink(record),this._insertAfter(record,prevRecord,index),this._addToMoves(record,index),record},DefaultIterableDiffer.prototype._addAfter=function(record,prevRecord,index){return this._insertAfter(record,prevRecord,index),null===this._additionsTail?this._additionsTail=this._additionsHead=record:this._additionsTail=this._additionsTail._nextAdded=record,record},DefaultIterableDiffer.prototype._insertAfter=function(record,prevRecord,index){var next=null===prevRecord?this._itHead:prevRecord._next;return record._next=next,record._prev=prevRecord,null===next?this._itTail=record:next._prev=record,null===prevRecord?this._itHead=record:prevRecord._next=record,null===this._linkedRecords&&(this._linkedRecords=new _DuplicateMap),this._linkedRecords.put(record),record.currentIndex=index,record},DefaultIterableDiffer.prototype._remove=function(record){return this._addToRemovals(this._unlink(record))},DefaultIterableDiffer.prototype._unlink=function(record){null!==this._linkedRecords&&this._linkedRecords.remove(record);var prev=record._prev,next=record._next;return null===prev?this._itHead=next:prev._next=next,null===next?this._itTail=prev:next._prev=prev,record},DefaultIterableDiffer.prototype._addToMoves=function(record,toIndex){return record.previousIndex===toIndex?record:(null===this._movesTail?this._movesTail=this._movesHead=record:this._movesTail=this._movesTail._nextMoved=record,record)},DefaultIterableDiffer.prototype._addToRemovals=function(record){return null===this._unlinkedRecords&&(this._unlinkedRecords=new _DuplicateMap),this._unlinkedRecords.put(record),record.currentIndex=null,record._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=record,record._prevRemoved=null):(record._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=record),record},DefaultIterableDiffer.prototype._addIdentityChange=function(record,item){return record.item=item,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=record:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=record,record},DefaultIterableDiffer.prototype.toString=function(){var list=[];this.forEachItem(function(record){return list.push(record)});var previous=[];this.forEachPreviousItem(function(record){return previous.push(record)});var additions=[];this.forEachAddedItem(function(record){return additions.push(record)});var moves=[];this.forEachMovedItem(function(record){return moves.push(record)});var removals=[];this.forEachRemovedItem(function(record){return removals.push(record)});var identityChanges=[];return this.forEachIdentityChange(function(record){return identityChanges.push(record)}),"collection: "+list.join(", ")+"\nprevious: "+previous.join(", ")+"\nadditions: "+additions.join(", ")+"\nmoves: "+moves.join(", ")+"\nremovals: "+removals.join(", ")+"\nidentityChanges: "+identityChanges.join(", ")+"\n"},DefaultIterableDiffer}();exports.DefaultIterableDiffer=DefaultIterableDiffer;var CollectionChangeRecord=function(){function CollectionChangeRecord(item,trackById){this.item=item,this.trackById=trackById,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return CollectionChangeRecord.prototype.toString=function(){return this.previousIndex===this.currentIndex?lang_2.stringify(this.item):lang_2.stringify(this.item)+"["+lang_2.stringify(this.previousIndex)+"->"+lang_2.stringify(this.currentIndex)+"]"},CollectionChangeRecord}();exports.CollectionChangeRecord=CollectionChangeRecord;var _DuplicateItemRecordList=function(){function _DuplicateItemRecordList(){this._head=null,this._tail=null}return _DuplicateItemRecordList.prototype.add=function(record){null===this._head?(this._head=this._tail=record,record._nextDup=null,record._prevDup=null):(this._tail._nextDup=record,record._prevDup=this._tail,record._nextDup=null,this._tail=record)},_DuplicateItemRecordList.prototype.get=function(trackById,afterIndex){var record;for(record=this._head;null!==record;record=record._nextDup)if((null===afterIndex||afterIndex<record.currentIndex)&&lang_2.looseIdentical(record.trackById,trackById))return record;return null},_DuplicateItemRecordList.prototype.remove=function(record){var prev=record._prevDup,next=record._nextDup;return null===prev?this._head=next:prev._nextDup=next,null===next?this._tail=prev:next._prevDup=prev,null===this._head},_DuplicateItemRecordList}(),_DuplicateMap=function(){function _DuplicateMap(){this.map=new Map}return _DuplicateMap.prototype.put=function(record){var key=lang_2.getMapKey(record.trackById),duplicates=this.map.get(key);lang_2.isPresent(duplicates)||(duplicates=new _DuplicateItemRecordList,this.map.set(key,duplicates)),duplicates.add(record)},_DuplicateMap.prototype.get=function(trackById,afterIndex){void 0===afterIndex&&(afterIndex=null);var key=lang_2.getMapKey(trackById),recordList=this.map.get(key);return lang_2.isBlank(recordList)?null:recordList.get(trackById,afterIndex)},_DuplicateMap.prototype.remove=function(record){var key=lang_2.getMapKey(record.trackById),recordList=this.map.get(key);return recordList.remove(record)&&this.map["delete"](key),record},Object.defineProperty(_DuplicateMap.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),_DuplicateMap.prototype.clear=function(){this.map.clear()},_DuplicateMap.prototype.toString=function(){return"_DuplicateMap("+lang_2.stringify(this.map)+")"},_DuplicateMap}();return global.define=__define,module.exports}),$__System.registerDynamic("af",["7","10","11","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),di_1=$__require("3c"),KeyValueDiffers=function(){function KeyValueDiffers(factories){this.factories=factories}return KeyValueDiffers.create=function(factories,parent){if(lang_1.isPresent(parent)){var copied=collection_1.ListWrapper.clone(parent.factories);return factories=factories.concat(copied),new KeyValueDiffers(factories)}return new KeyValueDiffers(factories)},KeyValueDiffers.extend=function(factories){return new di_1.Provider(KeyValueDiffers,{useFactory:function(parent){if(lang_1.isBlank(parent))throw new exceptions_1.BaseException("Cannot extend KeyValueDiffers without a parent injector");return KeyValueDiffers.create(factories,parent)},deps:[[KeyValueDiffers,new di_1.SkipSelfMetadata,new di_1.OptionalMetadata]]})},KeyValueDiffers.prototype.find=function(kv){var factory=this.factories.find(function(f){return f.supports(kv)});if(lang_1.isPresent(factory))return factory;throw new exceptions_1.BaseException("Cannot find a differ supporting object '"+kv+"'")},KeyValueDiffers=__decorate([di_1.Injectable(),lang_1.CONST(),__metadata("design:paramtypes",[Array])],KeyValueDiffers)}();return exports.KeyValueDiffers=KeyValueDiffers,global.define=__define,module.exports}),$__System.registerDynamic("b0",["11","7","10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},collection_1=$__require("11"),lang_1=$__require("7"),exceptions_1=$__require("10"),DefaultKeyValueDifferFactory=function(){function DefaultKeyValueDifferFactory(){}return DefaultKeyValueDifferFactory.prototype.supports=function(obj){return obj instanceof Map||lang_1.isJsObject(obj)},DefaultKeyValueDifferFactory.prototype.create=function(cdRef){return new DefaultKeyValueDiffer},DefaultKeyValueDifferFactory=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],DefaultKeyValueDifferFactory)}();exports.DefaultKeyValueDifferFactory=DefaultKeyValueDifferFactory;var DefaultKeyValueDiffer=function(){function DefaultKeyValueDiffer(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,
this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(DefaultKeyValueDiffer.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),DefaultKeyValueDiffer.prototype.forEachItem=function(fn){var record;for(record=this._mapHead;null!==record;record=record._next)fn(record)},DefaultKeyValueDiffer.prototype.forEachPreviousItem=function(fn){var record;for(record=this._previousMapHead;null!==record;record=record._nextPrevious)fn(record)},DefaultKeyValueDiffer.prototype.forEachChangedItem=function(fn){var record;for(record=this._changesHead;null!==record;record=record._nextChanged)fn(record)},DefaultKeyValueDiffer.prototype.forEachAddedItem=function(fn){var record;for(record=this._additionsHead;null!==record;record=record._nextAdded)fn(record)},DefaultKeyValueDiffer.prototype.forEachRemovedItem=function(fn){var record;for(record=this._removalsHead;null!==record;record=record._nextRemoved)fn(record)},DefaultKeyValueDiffer.prototype.diff=function(map){if(lang_1.isBlank(map)&&(map=collection_1.MapWrapper.createFromPairs([])),!(map instanceof Map||lang_1.isJsObject(map)))throw new exceptions_1.BaseException("Error trying to diff '"+map+"'");return this.check(map)?this:null},DefaultKeyValueDiffer.prototype.onDestroy=function(){},DefaultKeyValueDiffer.prototype.check=function(map){var _this=this;this._reset();var records=this._records,oldSeqRecord=this._mapHead,lastOldSeqRecord=null,lastNewSeqRecord=null,seqChanged=!1;return this._forEach(map,function(value,key){var newSeqRecord;null!==oldSeqRecord&&key===oldSeqRecord.key?(newSeqRecord=oldSeqRecord,lang_1.looseIdentical(value,oldSeqRecord.currentValue)||(oldSeqRecord.previousValue=oldSeqRecord.currentValue,oldSeqRecord.currentValue=value,_this._addToChanges(oldSeqRecord))):(seqChanged=!0,null!==oldSeqRecord&&(oldSeqRecord._next=null,_this._removeFromSeq(lastOldSeqRecord,oldSeqRecord),_this._addToRemovals(oldSeqRecord)),records.has(key)?newSeqRecord=records.get(key):(newSeqRecord=new KVChangeRecord(key),records.set(key,newSeqRecord),newSeqRecord.currentValue=value,_this._addToAdditions(newSeqRecord))),seqChanged&&(_this._isInRemovals(newSeqRecord)&&_this._removeFromRemovals(newSeqRecord),null==lastNewSeqRecord?_this._mapHead=newSeqRecord:lastNewSeqRecord._next=newSeqRecord),lastOldSeqRecord=oldSeqRecord,lastNewSeqRecord=newSeqRecord,oldSeqRecord=null===oldSeqRecord?null:oldSeqRecord._next}),this._truncate(lastOldSeqRecord,oldSeqRecord),this.isDirty},DefaultKeyValueDiffer.prototype._reset=function(){if(this.isDirty){var record;for(record=this._previousMapHead=this._mapHead;null!==record;record=record._next)record._nextPrevious=record._next;for(record=this._changesHead;null!==record;record=record._nextChanged)record.previousValue=record.currentValue;for(record=this._additionsHead;null!=record;record=record._nextAdded)record.previousValue=record.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},DefaultKeyValueDiffer.prototype._truncate=function(lastRecord,record){for(;null!==record;){null===lastRecord?this._mapHead=null:lastRecord._next=null;var nextRecord=record._next;this._addToRemovals(record),lastRecord=record,record=nextRecord}for(var rec=this._removalsHead;null!==rec;rec=rec._nextRemoved)rec.previousValue=rec.currentValue,rec.currentValue=null,this._records["delete"](rec.key)},DefaultKeyValueDiffer.prototype._isInRemovals=function(record){return record===this._removalsHead||null!==record._nextRemoved||null!==record._prevRemoved},DefaultKeyValueDiffer.prototype._addToRemovals=function(record){null===this._removalsHead?this._removalsHead=this._removalsTail=record:(this._removalsTail._nextRemoved=record,record._prevRemoved=this._removalsTail,this._removalsTail=record)},DefaultKeyValueDiffer.prototype._removeFromSeq=function(prev,record){var next=record._next;null===prev?this._mapHead=next:prev._next=next},DefaultKeyValueDiffer.prototype._removeFromRemovals=function(record){var prev=record._prevRemoved,next=record._nextRemoved;null===prev?this._removalsHead=next:prev._nextRemoved=next,null===next?this._removalsTail=prev:next._prevRemoved=prev,record._prevRemoved=record._nextRemoved=null},DefaultKeyValueDiffer.prototype._addToAdditions=function(record){null===this._additionsHead?this._additionsHead=this._additionsTail=record:(this._additionsTail._nextAdded=record,this._additionsTail=record)},DefaultKeyValueDiffer.prototype._addToChanges=function(record){null===this._changesHead?this._changesHead=this._changesTail=record:(this._changesTail._nextChanged=record,this._changesTail=record)},DefaultKeyValueDiffer.prototype.toString=function(){var record,items=[],previous=[],changes=[],additions=[],removals=[];for(record=this._mapHead;null!==record;record=record._next)items.push(lang_1.stringify(record));for(record=this._previousMapHead;null!==record;record=record._nextPrevious)previous.push(lang_1.stringify(record));for(record=this._changesHead;null!==record;record=record._nextChanged)changes.push(lang_1.stringify(record));for(record=this._additionsHead;null!==record;record=record._nextAdded)additions.push(lang_1.stringify(record));for(record=this._removalsHead;null!==record;record=record._nextRemoved)removals.push(lang_1.stringify(record));return"map: "+items.join(", ")+"\nprevious: "+previous.join(", ")+"\nadditions: "+additions.join(", ")+"\nchanges: "+changes.join(", ")+"\nremovals: "+removals.join(", ")+"\n"},DefaultKeyValueDiffer.prototype._forEach=function(obj,fn){obj instanceof Map?obj.forEach(fn):collection_1.StringMapWrapper.forEach(obj,fn)},DefaultKeyValueDiffer}();exports.DefaultKeyValueDiffer=DefaultKeyValueDiffer;var KVChangeRecord=function(){function KVChangeRecord(key){this.key=key,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return KVChangeRecord.prototype.toString=function(){return lang_1.looseIdentical(this.previousValue,this.currentValue)?lang_1.stringify(this.key):lang_1.stringify(this.key)+"["+lang_1.stringify(this.previousValue)+"->"+lang_1.stringify(this.currentValue)+"]"},KVChangeRecord}();return exports.KVChangeRecord=KVChangeRecord,global.define=__define,module.exports}),$__System.registerDynamic("b1",["b2","11","7","10"],!0,function($__require,exports,module){"use strict";function newCharacterToken(index,code){return new Token(index,TokenType.Character,code,lang_1.StringWrapper.fromCharCode(code))}function newIdentifierToken(index,text){return new Token(index,TokenType.Identifier,0,text)}function newKeywordToken(index,text){return new Token(index,TokenType.Keyword,0,text)}function newOperatorToken(index,text){return new Token(index,TokenType.Operator,0,text)}function newStringToken(index,text){return new Token(index,TokenType.String,0,text)}function newNumberToken(index,n){return new Token(index,TokenType.Number,n,"")}function isWhitespace(code){return code>=exports.$TAB&&code<=exports.$SPACE||code==$NBSP}function isIdentifierStart(code){return code>=$a&&$z>=code||code>=$A&&$Z>=code||code==$_||code==exports.$$}function isIdentifier(input){if(0==input.length)return!1;var scanner=new _Scanner(input);if(!isIdentifierStart(scanner.peek))return!1;for(scanner.advance();scanner.peek!==exports.$EOF;){if(!isIdentifierPart(scanner.peek))return!1;scanner.advance()}return!0}function isIdentifierPart(code){return code>=$a&&$z>=code||code>=$A&&$Z>=code||code>=$0&&$9>=code||code==$_||code==exports.$$}function isDigit(code){return code>=$0&&$9>=code}function isExponentStart(code){return code==$e||code==$E}function isExponentSign(code){return code==exports.$MINUS||code==exports.$PLUS}function unescape(code){switch(code){case $n:return exports.$LF;case $f:return exports.$FF;case $r:return exports.$CR;case $t:return exports.$TAB;case $v:return exports.$VTAB;default:return code}}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},decorators_1=$__require("b2"),collection_1=$__require("11"),lang_1=$__require("7"),exceptions_1=$__require("10");!function(TokenType){TokenType[TokenType.Character=0]="Character",TokenType[TokenType.Identifier=1]="Identifier",TokenType[TokenType.Keyword=2]="Keyword",TokenType[TokenType.String=3]="String",TokenType[TokenType.Operator=4]="Operator",TokenType[TokenType.Number=5]="Number"}(exports.TokenType||(exports.TokenType={}));var TokenType=exports.TokenType,Lexer=function(){function Lexer(){}return Lexer.prototype.tokenize=function(text){for(var scanner=new _Scanner(text),tokens=[],token=scanner.scanToken();null!=token;)tokens.push(token),token=scanner.scanToken();return tokens},Lexer=__decorate([decorators_1.Injectable(),__metadata("design:paramtypes",[])],Lexer)}();exports.Lexer=Lexer;var Token=function(){function Token(index,type,numValue,strValue){this.index=index,this.type=type,this.numValue=numValue,this.strValue=strValue}return Token.prototype.isCharacter=function(code){return this.type==TokenType.Character&&this.numValue==code},Token.prototype.isNumber=function(){return this.type==TokenType.Number},Token.prototype.isString=function(){return this.type==TokenType.String},Token.prototype.isOperator=function(operater){return this.type==TokenType.Operator&&this.strValue==operater},Token.prototype.isIdentifier=function(){return this.type==TokenType.Identifier},Token.prototype.isKeyword=function(){return this.type==TokenType.Keyword},Token.prototype.isKeywordVar=function(){return this.type==TokenType.Keyword&&"var"==this.strValue},Token.prototype.isKeywordNull=function(){return this.type==TokenType.Keyword&&"null"==this.strValue},Token.prototype.isKeywordUndefined=function(){return this.type==TokenType.Keyword&&"undefined"==this.strValue},Token.prototype.isKeywordTrue=function(){return this.type==TokenType.Keyword&&"true"==this.strValue},Token.prototype.isKeywordFalse=function(){return this.type==TokenType.Keyword&&"false"==this.strValue},Token.prototype.toNumber=function(){return this.type==TokenType.Number?this.numValue:-1},Token.prototype.toString=function(){switch(this.type){case TokenType.Character:case TokenType.Identifier:case TokenType.Keyword:case TokenType.Operator:case TokenType.String:return this.strValue;case TokenType.Number:return this.numValue.toString();default:return null}},Token}();exports.Token=Token,exports.EOF=new Token(-1,TokenType.Character,0,""),exports.$EOF=0,exports.$TAB=9,exports.$LF=10,exports.$VTAB=11,exports.$FF=12,exports.$CR=13,exports.$SPACE=32,exports.$BANG=33,exports.$DQ=34,exports.$HASH=35,exports.$$=36,exports.$PERCENT=37,exports.$AMPERSAND=38,exports.$SQ=39,exports.$LPAREN=40,exports.$RPAREN=41,exports.$STAR=42,exports.$PLUS=43,exports.$COMMA=44,exports.$MINUS=45,exports.$PERIOD=46,exports.$SLASH=47,exports.$COLON=58,exports.$SEMICOLON=59,exports.$LT=60,exports.$EQ=61,exports.$GT=62,exports.$QUESTION=63;var $0=48,$9=57,$A=65,$E=69,$Z=90;exports.$LBRACKET=91,exports.$BACKSLASH=92,exports.$RBRACKET=93;var $CARET=94,$_=95,$a=97,$e=101,$f=102,$n=110,$r=114,$t=116,$u=117,$v=118,$z=122;exports.$LBRACE=123,exports.$BAR=124,exports.$RBRACE=125;var $NBSP=160,ScannerError=function(_super){function ScannerError(message){_super.call(this),this.message=message}return __extends(ScannerError,_super),ScannerError.prototype.toString=function(){return this.message},ScannerError}(exceptions_1.BaseException);exports.ScannerError=ScannerError;var _Scanner=function(){function _Scanner(input){this.input=input,this.peek=0,this.index=-1,this.length=input.length,this.advance()}return _Scanner.prototype.advance=function(){this.peek=++this.index>=this.length?exports.$EOF:lang_1.StringWrapper.charCodeAt(this.input,this.index)},_Scanner.prototype.scanToken=function(){for(var input=this.input,length=this.length,peek=this.peek,index=this.index;peek<=exports.$SPACE;){if(++index>=length){peek=exports.$EOF;break}peek=lang_1.StringWrapper.charCodeAt(input,index)}if(this.peek=peek,this.index=index,index>=length)return null;if(isIdentifierStart(peek))return this.scanIdentifier();if(isDigit(peek))return this.scanNumber(index);var start=index;switch(peek){case exports.$PERIOD:return this.advance(),isDigit(this.peek)?this.scanNumber(start):newCharacterToken(start,exports.$PERIOD);case exports.$LPAREN:case exports.$RPAREN:case exports.$LBRACE:case exports.$RBRACE:case exports.$LBRACKET:case exports.$RBRACKET:case exports.$COMMA:case exports.$COLON:case exports.$SEMICOLON:return this.scanCharacter(start,peek);case exports.$SQ:case exports.$DQ:return this.scanString();case exports.$HASH:case exports.$PLUS:case exports.$MINUS:case exports.$STAR:case exports.$SLASH:case exports.$PERCENT:case $CARET:return this.scanOperator(start,lang_1.StringWrapper.fromCharCode(peek));case exports.$QUESTION:return this.scanComplexOperator(start,"?",exports.$PERIOD,".");case exports.$LT:case exports.$GT:return this.scanComplexOperator(start,lang_1.StringWrapper.fromCharCode(peek),exports.$EQ,"=");case exports.$BANG:case exports.$EQ:return this.scanComplexOperator(start,lang_1.StringWrapper.fromCharCode(peek),exports.$EQ,"=",exports.$EQ,"=");case exports.$AMPERSAND:return this.scanComplexOperator(start,"&",exports.$AMPERSAND,"&");case exports.$BAR:return this.scanComplexOperator(start,"|",exports.$BAR,"|");case $NBSP:for(;isWhitespace(this.peek);)this.advance();return this.scanToken()}return this.error("Unexpected character ["+lang_1.StringWrapper.fromCharCode(peek)+"]",0),null},_Scanner.prototype.scanCharacter=function(start,code){return this.advance(),newCharacterToken(start,code)},_Scanner.prototype.scanOperator=function(start,str){return this.advance(),newOperatorToken(start,str)},_Scanner.prototype.scanComplexOperator=function(start,one,twoCode,two,threeCode,three){this.advance();var str=one;return this.peek==twoCode&&(this.advance(),str+=two),lang_1.isPresent(threeCode)&&this.peek==threeCode&&(this.advance(),str+=three),newOperatorToken(start,str)},_Scanner.prototype.scanIdentifier=function(){var start=this.index;for(this.advance();isIdentifierPart(this.peek);)this.advance();var str=this.input.substring(start,this.index);return collection_1.SetWrapper.has(KEYWORDS,str)?newKeywordToken(start,str):newIdentifierToken(start,str)},_Scanner.prototype.scanNumber=function(start){var simple=this.index===start;for(this.advance();;){if(isDigit(this.peek));else if(this.peek==exports.$PERIOD)simple=!1;else{if(!isExponentStart(this.peek))break;this.advance(),isExponentSign(this.peek)&&this.advance(),isDigit(this.peek)||this.error("Invalid exponent",-1),simple=!1}this.advance()}var str=this.input.substring(start,this.index),value=simple?lang_1.NumberWrapper.parseIntAutoRadix(str):lang_1.NumberWrapper.parseFloat(str);return newNumberToken(start,value)},_Scanner.prototype.scanString=function(){var start=this.index,quote=this.peek;this.advance();for(var buffer,marker=this.index,input=this.input;this.peek!=quote;)if(this.peek==exports.$BACKSLASH){null==buffer&&(buffer=new lang_1.StringJoiner),buffer.add(input.substring(marker,this.index)),this.advance();var unescapedCode;if(this.peek==$u){var hex=input.substring(this.index+1,this.index+5);try{unescapedCode=lang_1.NumberWrapper.parseInt(hex,16)}catch(e){this.error("Invalid unicode escape [\\u"+hex+"]",0)}for(var i=0;5>i;i++)this.advance()}else unescapedCode=unescape(this.peek),this.advance();buffer.add(lang_1.StringWrapper.fromCharCode(unescapedCode)),marker=this.index}else this.peek==exports.$EOF?this.error("Unterminated quote",0):this.advance();var last=input.substring(marker,this.index);this.advance();var unescaped=last;return null!=buffer&&(buffer.add(last),unescaped=buffer.toString()),newStringToken(start,unescaped)},_Scanner.prototype.error=function(message,offset){var position=this.index+offset;throw new ScannerError("Lexer Error: "+message+" at column "+position+" in expression ["+this.input+"]")},_Scanner}();exports.isIdentifier=isIdentifier;var KEYWORDS=(collection_1.SetWrapper.createFromList(["+","-","*","/","%","^","=","==","!=","===","!==","<",">","<=",">=","&&","||","&","|","!","?","#","?."]),collection_1.SetWrapper.createFromList(["var","null","undefined","true","false","if","else"]));return global.define=__define,module.exports}),$__System.registerDynamic("b3",["b2","7","10","11","b1","82","72"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},decorators_1=$__require("b2"),lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),lexer_1=$__require("b1"),reflection_1=$__require("82"),ast_1=$__require("72"),_implicitReceiver=new ast_1.ImplicitReceiver,INTERPOLATION_REGEXP=/\{\{([\s\S]*?)\}\}/g,ParseException=function(_super){function ParseException(message,input,errLocation,ctxLocation){_super.call(this,"Parser Error: "+message+" "+errLocation+" ["+input+"] in "+ctxLocation)}return __extends(ParseException,_super),ParseException}(exceptions_1.BaseException),Parser=function(){function Parser(_lexer,providedReflector){void 0===providedReflector&&(providedReflector=null),this._lexer=_lexer,this._reflector=lang_1.isPresent(providedReflector)?providedReflector:reflection_1.reflector}return Parser.prototype.parseAction=function(input,location){this._checkNoInterpolation(input,location);var tokens=this._lexer.tokenize(input),ast=new _ParseAST(input,location,tokens,this._reflector,!0).parseChain();return new ast_1.ASTWithSource(ast,input,location)},Parser.prototype.parseBinding=function(input,location){var ast=this._parseBindingAst(input,location);return new ast_1.ASTWithSource(ast,input,location)},Parser.prototype.parseSimpleBinding=function(input,location){var ast=this._parseBindingAst(input,location);if(!SimpleExpressionChecker.check(ast))throw new ParseException("Host binding expression can only contain field access and constants",input,location);return new ast_1.ASTWithSource(ast,input,location)},Parser.prototype._parseBindingAst=function(input,location){var quote=this._parseQuote(input,location);if(lang_1.isPresent(quote))return quote;this._checkNoInterpolation(input,location);var tokens=this._lexer.tokenize(input);return new _ParseAST(input,location,tokens,this._reflector,!1).parseChain()},Parser.prototype._parseQuote=function(input,location){if(lang_1.isBlank(input))return null;var prefixSeparatorIndex=input.indexOf(":");if(-1==prefixSeparatorIndex)return null;var prefix=input.substring(0,prefixSeparatorIndex).trim();if(!lexer_1.isIdentifier(prefix))return null;var uninterpretedExpression=input.substring(prefixSeparatorIndex+1);return new ast_1.Quote(prefix,uninterpretedExpression,location)},Parser.prototype.parseTemplateBindings=function(input,location){var tokens=this._lexer.tokenize(input);return new _ParseAST(input,location,tokens,this._reflector,!1).parseTemplateBindings()},Parser.prototype.parseInterpolation=function(input,location){var parts=lang_1.StringWrapper.split(input,INTERPOLATION_REGEXP);if(parts.length<=1)return null;for(var strings=[],expressions=[],i=0;i<parts.length;i++){var part=parts[i];if(i%2===0)strings.push(part);else{if(!(part.trim().length>0))throw new ParseException("Blank expressions are not allowed in interpolated strings",input,"at column "+this._findInterpolationErrorColumn(parts,i)+" in",location);var tokens=this._lexer.tokenize(part),ast=new _ParseAST(input,location,tokens,this._reflector,!1).parseChain();expressions.push(ast)}}return new ast_1.ASTWithSource(new ast_1.Interpolation(strings,expressions),input,location)},Parser.prototype.wrapLiteralPrimitive=function(input,location){return new ast_1.ASTWithSource(new ast_1.LiteralPrimitive(input),input,location)},Parser.prototype._checkNoInterpolation=function(input,location){var parts=lang_1.StringWrapper.split(input,INTERPOLATION_REGEXP);if(parts.length>1)throw new ParseException("Got interpolation ({{}}) where expression was expected",input,"at column "+this._findInterpolationErrorColumn(parts,1)+" in",location)},Parser.prototype._findInterpolationErrorColumn=function(parts,partInErrIdx){for(var errLocation="",j=0;partInErrIdx>j;j++)errLocation+=j%2===0?parts[j]:"{{"+parts[j]+"}}";return errLocation.length},Parser=__decorate([decorators_1.Injectable(),__metadata("design:paramtypes",[lexer_1.Lexer,reflection_1.Reflector])],Parser)}();exports.Parser=Parser;var _ParseAST=function(){function _ParseAST(input,location,tokens,reflector,parseAction){this.input=input,this.location=location,this.tokens=tokens,this.reflector=reflector,this.parseAction=parseAction,this.index=0}return _ParseAST.prototype.peek=function(offset){var i=this.index+offset;return i<this.tokens.length?this.tokens[i]:lexer_1.EOF},Object.defineProperty(_ParseAST.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(_ParseAST.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index:this.input.length},enumerable:!0,configurable:!0}),_ParseAST.prototype.advance=function(){this.index++},_ParseAST.prototype.optionalCharacter=function(code){return this.next.isCharacter(code)?(this.advance(),!0):!1},_ParseAST.prototype.optionalKeywordVar=function(){return this.peekKeywordVar()?(this.advance(),!0):!1},_ParseAST.prototype.peekKeywordVar=function(){return this.next.isKeywordVar()||this.next.isOperator("#")},_ParseAST.prototype.expectCharacter=function(code){this.optionalCharacter(code)||this.error("Missing expected "+lang_1.StringWrapper.fromCharCode(code))},_ParseAST.prototype.optionalOperator=function(op){return this.next.isOperator(op)?(this.advance(),!0):!1},_ParseAST.prototype.expectOperator=function(operator){this.optionalOperator(operator)||this.error("Missing expected operator "+operator)},_ParseAST.prototype.expectIdentifierOrKeyword=function(){var n=this.next;return n.isIdentifier()||n.isKeyword()||this.error("Unexpected token "+n+", expected identifier or keyword"),this.advance(),n.toString()},_ParseAST.prototype.expectIdentifierOrKeywordOrString=function(){var n=this.next;return n.isIdentifier()||n.isKeyword()||n.isString()||this.error("Unexpected token "+n+", expected identifier, keyword, or string"),this.advance(),n.toString()},_ParseAST.prototype.parseChain=function(){for(var exprs=[];this.index<this.tokens.length;){var expr=this.parsePipe();if(exprs.push(expr),this.optionalCharacter(lexer_1.$SEMICOLON))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(lexer_1.$SEMICOLON););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==exprs.length?new ast_1.EmptyExpr:1==exprs.length?exprs[0]:new ast_1.Chain(exprs)},_ParseAST.prototype.parsePipe=function(){var result=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var name=this.expectIdentifierOrKeyword(),args=[];this.optionalCharacter(lexer_1.$COLON);)args.push(this.parseExpression());result=new ast_1.BindingPipe(result,name,args)}while(this.optionalOperator("|"))}return result},_ParseAST.prototype.parseExpression=function(){return this.parseConditional()},_ParseAST.prototype.parseConditional=function(){var start=this.inputIndex,result=this.parseLogicalOr();if(this.optionalOperator("?")){var yes=this.parsePipe();if(!this.optionalCharacter(lexer_1.$COLON)){var end=this.inputIndex,expression=this.input.substring(start,end);this.error("Conditional expression "+expression+" requires all 3 expressions")}var no=this.parsePipe();return new ast_1.Conditional(result,yes,no)}return result},_ParseAST.prototype.parseLogicalOr=function(){for(var result=this.parseLogicalAnd();this.optionalOperator("||");)result=new ast_1.Binary("||",result,this.parseLogicalAnd());return result},_ParseAST.prototype.parseLogicalAnd=function(){for(var result=this.parseEquality();this.optionalOperator("&&");)result=new ast_1.Binary("&&",result,this.parseEquality());return result},_ParseAST.prototype.parseEquality=function(){for(var result=this.parseRelational();;)if(this.optionalOperator("=="))result=new ast_1.Binary("==",result,this.parseRelational());else if(this.optionalOperator("==="))result=new ast_1.Binary("===",result,this.parseRelational());else if(this.optionalOperator("!="))result=new ast_1.Binary("!=",result,this.parseRelational());else{if(!this.optionalOperator("!=="))return result;result=new ast_1.Binary("!==",result,this.parseRelational())}},_ParseAST.prototype.parseRelational=function(){for(var result=this.parseAdditive();;)if(this.optionalOperator("<"))result=new ast_1.Binary("<",result,this.parseAdditive());else if(this.optionalOperator(">"))result=new ast_1.Binary(">",result,this.parseAdditive());else if(this.optionalOperator("<="))result=new ast_1.Binary("<=",result,this.parseAdditive());else{if(!this.optionalOperator(">="))return result;result=new ast_1.Binary(">=",result,this.parseAdditive())}},_ParseAST.prototype.parseAdditive=function(){for(var result=this.parseMultiplicative();;)if(this.optionalOperator("+"))result=new ast_1.Binary("+",result,this.parseMultiplicative());else{if(!this.optionalOperator("-"))return result;result=new ast_1.Binary("-",result,this.parseMultiplicative())}},_ParseAST.prototype.parseMultiplicative=function(){for(var result=this.parsePrefix();;)if(this.optionalOperator("*"))result=new ast_1.Binary("*",result,this.parsePrefix());else if(this.optionalOperator("%"))result=new ast_1.Binary("%",result,this.parsePrefix());else{if(!this.optionalOperator("/"))return result;result=new ast_1.Binary("/",result,this.parsePrefix())}},_ParseAST.prototype.parsePrefix=function(){return this.optionalOperator("+")?this.parsePrefix():this.optionalOperator("-")?new ast_1.Binary("-",new ast_1.LiteralPrimitive(0),this.parsePrefix()):this.optionalOperator("!")?new ast_1.PrefixNot(this.parsePrefix()):this.parseCallChain()},_ParseAST.prototype.parseCallChain=function(){for(var result=this.parsePrimary();;)if(this.optionalCharacter(lexer_1.$PERIOD))result=this.parseAccessMemberOrMethodCall(result,!1);else if(this.optionalOperator("?."))result=this.parseAccessMemberOrMethodCall(result,!0);else if(this.optionalCharacter(lexer_1.$LBRACKET)){var key=this.parsePipe();if(this.expectCharacter(lexer_1.$RBRACKET),this.optionalOperator("=")){var value=this.parseConditional();result=new ast_1.KeyedWrite(result,key,value)}else result=new ast_1.KeyedRead(result,key)}else{if(!this.optionalCharacter(lexer_1.$LPAREN))return result;var args=this.parseCallArguments();this.expectCharacter(lexer_1.$RPAREN),result=new ast_1.FunctionCall(result,args)}},_ParseAST.prototype.parsePrimary=function(){if(this.optionalCharacter(lexer_1.$LPAREN)){var result=this.parsePipe();return this.expectCharacter(lexer_1.$RPAREN),result}if(this.next.isKeywordNull()||this.next.isKeywordUndefined())return this.advance(),new ast_1.LiteralPrimitive(null);if(this.next.isKeywordTrue())return this.advance(),new ast_1.LiteralPrimitive(!0);if(this.next.isKeywordFalse())return this.advance(),new ast_1.LiteralPrimitive(!1);if(this.optionalCharacter(lexer_1.$LBRACKET)){var elements=this.parseExpressionList(lexer_1.$RBRACKET);return this.expectCharacter(lexer_1.$RBRACKET),new ast_1.LiteralArray(elements)}if(this.next.isCharacter(lexer_1.$LBRACE))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(_implicitReceiver,!1);if(this.next.isNumber()){var value=this.next.toNumber();return this.advance(),new ast_1.LiteralPrimitive(value)}if(this.next.isString()){var literalValue=this.next.toString();return this.advance(),new ast_1.LiteralPrimitive(literalValue)}throw this.index>=this.tokens.length?this.error("Unexpected end of expression: "+this.input):this.error("Unexpected token "+this.next),new exceptions_1.BaseException("Fell through all cases in parsePrimary")},_ParseAST.prototype.parseExpressionList=function(terminator){var result=[];if(!this.next.isCharacter(terminator))do result.push(this.parsePipe());while(this.optionalCharacter(lexer_1.$COMMA));return result},_ParseAST.prototype.parseLiteralMap=function(){var keys=[],values=[];if(this.expectCharacter(lexer_1.$LBRACE),!this.optionalCharacter(lexer_1.$RBRACE)){do{var key=this.expectIdentifierOrKeywordOrString();keys.push(key),this.expectCharacter(lexer_1.$COLON),values.push(this.parsePipe())}while(this.optionalCharacter(lexer_1.$COMMA));this.expectCharacter(lexer_1.$RBRACE)}return new ast_1.LiteralMap(keys,values)},_ParseAST.prototype.parseAccessMemberOrMethodCall=function(receiver,isSafe){void 0===isSafe&&(isSafe=!1);var id=this.expectIdentifierOrKeyword();if(this.optionalCharacter(lexer_1.$LPAREN)){var args=this.parseCallArguments();this.expectCharacter(lexer_1.$RPAREN);var fn=this.reflector.method(id);return isSafe?new ast_1.SafeMethodCall(receiver,id,fn,args):new ast_1.MethodCall(receiver,id,fn,args)}if(!isSafe){if(this.optionalOperator("=")){this.parseAction||this.error("Bindings cannot contain assignments");var value=this.parseConditional();return new ast_1.PropertyWrite(receiver,id,this.reflector.setter(id),value)}return new ast_1.PropertyRead(receiver,id,this.reflector.getter(id))}return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),null):new ast_1.SafePropertyRead(receiver,id,this.reflector.getter(id))},_ParseAST.prototype.parseCallArguments=function(){if(this.next.isCharacter(lexer_1.$RPAREN))return[];var positionals=[];do positionals.push(this.parsePipe());while(this.optionalCharacter(lexer_1.$COMMA));return positionals},_ParseAST.prototype.parseBlockContent=function(){this.parseAction||this.error("Binding expression cannot contain chained expression");for(var exprs=[];this.index<this.tokens.length&&!this.next.isCharacter(lexer_1.$RBRACE);){var expr=this.parseExpression();if(exprs.push(expr),this.optionalCharacter(lexer_1.$SEMICOLON))for(;this.optionalCharacter(lexer_1.$SEMICOLON););}return 0==exprs.length?new ast_1.EmptyExpr:1==exprs.length?exprs[0]:new ast_1.Chain(exprs)},_ParseAST.prototype.expectTemplateBindingKey=function(){var result="",operatorFound=!1;do result+=this.expectIdentifierOrKeywordOrString(),operatorFound=this.optionalOperator("-"),operatorFound&&(result+="-");while(operatorFound);return result.toString()},_ParseAST.prototype.parseTemplateBindings=function(){
for(var bindings=[],prefix=null;this.index<this.tokens.length;){var keyIsVar=this.optionalKeywordVar(),key=this.expectTemplateBindingKey();keyIsVar||(null==prefix?prefix=key:key=prefix+key[0].toUpperCase()+key.substring(1)),this.optionalCharacter(lexer_1.$COLON);var name=null,expression=null;if(keyIsVar)name=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==lexer_1.EOF&&!this.peekKeywordVar()){var start=this.inputIndex,ast=this.parsePipe(),source=this.input.substring(start,this.inputIndex);expression=new ast_1.ASTWithSource(ast,source,this.location)}bindings.push(new ast_1.TemplateBinding(key,keyIsVar,name,expression)),this.optionalCharacter(lexer_1.$SEMICOLON)||this.optionalCharacter(lexer_1.$COMMA)}return bindings},_ParseAST.prototype.error=function(message,index){void 0===index&&(index=null),lang_1.isBlank(index)&&(index=this.index);var location=index<this.tokens.length?"at column "+(this.tokens[index].index+1)+" in":"at the end of the expression";throw new ParseException(message,this.input,location,this.location)},_ParseAST}();exports._ParseAST=_ParseAST;var SimpleExpressionChecker=function(){function SimpleExpressionChecker(){this.simple=!0}return SimpleExpressionChecker.check=function(ast){var s=new SimpleExpressionChecker;return ast.visit(s),s.simple},SimpleExpressionChecker.prototype.visitImplicitReceiver=function(ast){},SimpleExpressionChecker.prototype.visitInterpolation=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitLiteralPrimitive=function(ast){},SimpleExpressionChecker.prototype.visitPropertyRead=function(ast){},SimpleExpressionChecker.prototype.visitPropertyWrite=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitSafePropertyRead=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitMethodCall=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitSafeMethodCall=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitFunctionCall=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitLiteralArray=function(ast){this.visitAll(ast.expressions)},SimpleExpressionChecker.prototype.visitLiteralMap=function(ast){this.visitAll(ast.values)},SimpleExpressionChecker.prototype.visitBinary=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitPrefixNot=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitConditional=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitPipe=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitKeyedRead=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitKeyedWrite=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitAll=function(asts){for(var res=collection_1.ListWrapper.createFixedSize(asts.length),i=0;i<asts.length;++i)res[i]=asts[i].visit(this);return res},SimpleExpressionChecker.prototype.visitChain=function(ast){this.simple=!1},SimpleExpressionChecker.prototype.visitQuote=function(ast){this.simple=!1},SimpleExpressionChecker}();return global.define=__define,module.exports}),$__System.registerDynamic("aa",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var DebugContext=function(){function DebugContext(element,componentElement,directive,context,locals,injector){this.element=element,this.componentElement=componentElement,this.directive=directive,this.context=context,this.locals=locals,this.injector=injector}return DebugContext}();exports.DebugContext=DebugContext;var ChangeDetectorGenConfig=function(){function ChangeDetectorGenConfig(genDebugInfo,logBindingUpdate,useJit){this.genDebugInfo=genDebugInfo,this.logBindingUpdate=logBindingUpdate,this.useJit=useJit}return ChangeDetectorGenConfig}();exports.ChangeDetectorGenConfig=ChangeDetectorGenConfig;var ChangeDetectorDefinition=function(){function ChangeDetectorDefinition(id,strategy,variableNames,bindingRecords,eventRecords,directiveRecords,genConfig){this.id=id,this.strategy=strategy,this.variableNames=variableNames,this.bindingRecords=bindingRecords,this.eventRecords=eventRecords,this.directiveRecords=directiveRecords,this.genConfig=genConfig}return ChangeDetectorDefinition}();return exports.ChangeDetectorDefinition=ChangeDetectorDefinition,global.define=__define,module.exports}),$__System.registerDynamic("b4",["7","11"],!0,function($__require,exports,module){"use strict";function sanitizeName(s){return lang_1.StringWrapper.replaceAll(s,_whiteSpaceRegExp,"")}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),collection_1=$__require("11"),_STATE_ACCESSOR="state",_PROP_BINDING_INDEX="propertyBindingIndex",_DIRECTIVES_ACCESSOR="directiveIndices",_DISPATCHER_ACCESSOR="dispatcher",_LOCALS_ACCESSOR="locals",_MODE_ACCESSOR="mode",_PIPES_ACCESSOR="pipes",_PROTOS_ACCESSOR="protos";exports.CONTEXT_ACCESSOR="context",exports.CONTEXT_INDEX=0;var _FIELD_PREFIX="this.",_whiteSpaceRegExp=/\W/g;exports.sanitizeName=sanitizeName;var CodegenNameUtil=function(){function CodegenNameUtil(_records,_eventBindings,_directiveRecords,_utilName){this._records=_records,this._eventBindings=_eventBindings,this._directiveRecords=_directiveRecords,this._utilName=_utilName,this._sanitizedEventNames=new collection_1.Map,this._sanitizedNames=collection_1.ListWrapper.createFixedSize(this._records.length+1),this._sanitizedNames[exports.CONTEXT_INDEX]=exports.CONTEXT_ACCESSOR;for(var i=0,iLen=this._records.length;iLen>i;++i)this._sanitizedNames[i+1]=sanitizeName(""+this._records[i].name+i);for(var ebIndex=0;ebIndex<_eventBindings.length;++ebIndex){for(var eb=_eventBindings[ebIndex],names=[exports.CONTEXT_ACCESSOR],i=0,iLen=eb.records.length;iLen>i;++i)names.push(sanitizeName(""+eb.records[i].name+i+"_"+ebIndex));this._sanitizedEventNames.set(eb,names)}}return CodegenNameUtil.prototype._addFieldPrefix=function(name){return""+_FIELD_PREFIX+name},CodegenNameUtil.prototype.getDispatcherName=function(){return this._addFieldPrefix(_DISPATCHER_ACCESSOR)},CodegenNameUtil.prototype.getPipesAccessorName=function(){return this._addFieldPrefix(_PIPES_ACCESSOR)},CodegenNameUtil.prototype.getProtosName=function(){return this._addFieldPrefix(_PROTOS_ACCESSOR)},CodegenNameUtil.prototype.getDirectivesAccessorName=function(){return this._addFieldPrefix(_DIRECTIVES_ACCESSOR)},CodegenNameUtil.prototype.getLocalsAccessorName=function(){return this._addFieldPrefix(_LOCALS_ACCESSOR)},CodegenNameUtil.prototype.getStateName=function(){return this._addFieldPrefix(_STATE_ACCESSOR)},CodegenNameUtil.prototype.getModeName=function(){return this._addFieldPrefix(_MODE_ACCESSOR)},CodegenNameUtil.prototype.getPropertyBindingIndex=function(){return this._addFieldPrefix(_PROP_BINDING_INDEX)},CodegenNameUtil.prototype.getLocalName=function(idx){return"l_"+this._sanitizedNames[idx]},CodegenNameUtil.prototype.getEventLocalName=function(eb,idx){return"l_"+this._sanitizedEventNames.get(eb)[idx]},CodegenNameUtil.prototype.getChangeName=function(idx){return"c_"+this._sanitizedNames[idx]},CodegenNameUtil.prototype.genInitLocals=function(){for(var declarations=[],assignments=[],i=0,iLen=this.getFieldCount();iLen>i;++i)if(i==exports.CONTEXT_INDEX)declarations.push(this.getLocalName(i)+" = "+this.getFieldName(i));else{var rec=this._records[i-1];if(rec.argumentToPureFunction){var changeName=this.getChangeName(i);declarations.push(this.getLocalName(i)+","+changeName),assignments.push(changeName)}else declarations.push(""+this.getLocalName(i))}var assignmentsCode=collection_1.ListWrapper.isEmpty(assignments)?"":assignments.join("=")+" = false;";return"var "+declarations.join(",")+";"+assignmentsCode},CodegenNameUtil.prototype.genInitEventLocals=function(){var _this=this,res=[this.getLocalName(exports.CONTEXT_INDEX)+" = "+this.getFieldName(exports.CONTEXT_INDEX)];return this._sanitizedEventNames.forEach(function(names,eb){for(var i=0;i<names.length;++i)i!==exports.CONTEXT_INDEX&&res.push(""+_this.getEventLocalName(eb,i))}),res.length>1?"var "+res.join(",")+";":""},CodegenNameUtil.prototype.getPreventDefaultAccesor=function(){return"preventDefault"},CodegenNameUtil.prototype.getFieldCount=function(){return this._sanitizedNames.length},CodegenNameUtil.prototype.getFieldName=function(idx){return this._addFieldPrefix(this._sanitizedNames[idx])},CodegenNameUtil.prototype.getAllFieldNames=function(){for(var fieldList=[],k=0,kLen=this.getFieldCount();kLen>k;++k)(0===k||this._records[k-1].shouldBeChecked())&&fieldList.push(this.getFieldName(k));for(var i=0,iLen=this._records.length;iLen>i;++i){var rec=this._records[i];rec.isPipeRecord()&&fieldList.push(this.getPipeName(rec.selfIndex))}for(var j=0,jLen=this._directiveRecords.length;jLen>j;++j){var dRec=this._directiveRecords[j];fieldList.push(this.getDirectiveName(dRec.directiveIndex)),dRec.isDefaultChangeDetection()||fieldList.push(this.getDetectorName(dRec.directiveIndex))}return fieldList},CodegenNameUtil.prototype.genDehydrateFields=function(){var fields=this.getAllFieldNames();return collection_1.ListWrapper.removeAt(fields,exports.CONTEXT_INDEX),collection_1.ListWrapper.isEmpty(fields)?"":(fields.push(this._utilName+".uninitialized;"),fields.join(" = "))},CodegenNameUtil.prototype.genPipeOnDestroy=function(){var _this=this;return this._records.filter(function(r){return r.isPipeRecord()}).map(function(r){return _this._utilName+".callPipeOnDestroy("+_this.getPipeName(r.selfIndex)+");"}).join("\n")},CodegenNameUtil.prototype.getPipeName=function(idx){return this._addFieldPrefix(this._sanitizedNames[idx]+"_pipe")},CodegenNameUtil.prototype.getDirectiveName=function(d){return this._addFieldPrefix("directive_"+d.name)},CodegenNameUtil.prototype.getDetectorName=function(d){return this._addFieldPrefix("detector_"+d.name)},CodegenNameUtil}();return exports.CodegenNameUtil=CodegenNameUtil,global.define=__define,module.exports}),$__System.registerDynamic("b5",["7","b6","b7","89","10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),codegen_facade_1=$__require("b6"),proto_record_1=$__require("b7"),constants_1=$__require("89"),exceptions_1=$__require("10"),CodegenLogicUtil=function(){function CodegenLogicUtil(_names,_utilName,_changeDetectorStateName,_changeDetection){this._names=_names,this._utilName=_utilName,this._changeDetectorStateName=_changeDetectorStateName,this._changeDetection=_changeDetection}return CodegenLogicUtil.prototype.genPropertyBindingEvalValue=function(protoRec){var _this=this;return this._genEvalValue(protoRec,function(idx){return _this._names.getLocalName(idx)},this._names.getLocalsAccessorName())},CodegenLogicUtil.prototype.genEventBindingEvalValue=function(eventRecord,protoRec){var _this=this;return this._genEvalValue(protoRec,function(idx){return _this._names.getEventLocalName(eventRecord,idx)},"locals")},CodegenLogicUtil.prototype._genEvalValue=function(protoRec,getLocalName,localsAccessor){var rhs,context=-1==protoRec.contextIndex?this._names.getDirectiveName(protoRec.directiveIndex):getLocalName(protoRec.contextIndex),argString=protoRec.args.map(function(arg){return getLocalName(arg)}).join(", ");switch(protoRec.mode){case proto_record_1.RecordType.Self:rhs=context;break;case proto_record_1.RecordType.Const:rhs=codegen_facade_1.codify(protoRec.funcOrValue);break;case proto_record_1.RecordType.PropertyRead:rhs=this._observe(context+"."+protoRec.name,protoRec);break;case proto_record_1.RecordType.SafeProperty:var read=this._observe(context+"."+protoRec.name,protoRec);rhs=this._utilName+".isValueBlank("+context+") ? null : "+this._observe(read,protoRec);break;case proto_record_1.RecordType.PropertyWrite:rhs=context+"."+protoRec.name+" = "+getLocalName(protoRec.args[0]);break;case proto_record_1.RecordType.Local:rhs=this._observe(localsAccessor+".get("+codegen_facade_1.rawString(protoRec.name)+")",protoRec);break;case proto_record_1.RecordType.InvokeMethod:rhs=this._observe(context+"."+protoRec.name+"("+argString+")",protoRec);break;case proto_record_1.RecordType.SafeMethodInvoke:var invoke=context+"."+protoRec.name+"("+argString+")";rhs=this._utilName+".isValueBlank("+context+") ? null : "+this._observe(invoke,protoRec);break;case proto_record_1.RecordType.InvokeClosure:rhs=context+"("+argString+")";break;case proto_record_1.RecordType.PrimitiveOp:rhs=this._utilName+"."+protoRec.name+"("+argString+")";break;case proto_record_1.RecordType.CollectionLiteral:rhs=this._utilName+"."+protoRec.name+"("+argString+")";break;case proto_record_1.RecordType.Interpolate:rhs=this._genInterpolation(protoRec);break;case proto_record_1.RecordType.KeyedRead:rhs=this._observe(context+"["+getLocalName(protoRec.args[0])+"]",protoRec);break;case proto_record_1.RecordType.KeyedWrite:rhs=context+"["+getLocalName(protoRec.args[0])+"] = "+getLocalName(protoRec.args[1]);break;case proto_record_1.RecordType.Chain:rhs=""+getLocalName(protoRec.args[protoRec.args.length-1]);break;default:throw new exceptions_1.BaseException("Unknown operation "+protoRec.mode)}return getLocalName(protoRec.selfIndex)+" = "+rhs+";"},CodegenLogicUtil.prototype._observe=function(exp,rec){return this._changeDetection===constants_1.ChangeDetectionStrategy.OnPushObserve?"this.observeValue("+exp+", "+rec.selfIndex+")":exp},CodegenLogicUtil.prototype.genPropertyBindingTargets=function(propertyBindingTargets,genDebugInfo){var _this=this,bs=propertyBindingTargets.map(function(b){if(lang_1.isBlank(b))return"null";var debug=genDebugInfo?codegen_facade_1.codify(b.debug):"null";return _this._utilName+".bindingTarget("+codegen_facade_1.codify(b.mode)+", "+b.elementIndex+", "+codegen_facade_1.codify(b.name)+", "+codegen_facade_1.codify(b.unit)+", "+debug+")"});return"["+bs.join(", ")+"]"},CodegenLogicUtil.prototype.genDirectiveIndices=function(directiveRecords){var _this=this,bs=directiveRecords.map(function(b){return _this._utilName+".directiveIndex("+b.directiveIndex.elementIndex+", "+b.directiveIndex.directiveIndex+")"});return"["+bs.join(", ")+"]"},CodegenLogicUtil.prototype._genInterpolation=function(protoRec){for(var iVals=[],i=0;i<protoRec.args.length;++i)iVals.push(codegen_facade_1.codify(protoRec.fixedArgs[i])),iVals.push(this._utilName+".s("+this._names.getLocalName(protoRec.args[i])+")");return iVals.push(codegen_facade_1.codify(protoRec.fixedArgs[protoRec.args.length])),codegen_facade_1.combineGeneratedStrings(iVals)},CodegenLogicUtil.prototype.genHydrateDirectives=function(directiveRecords){for(var _this=this,res=[],outputCount=0,i=0;i<directiveRecords.length;++i){var r=directiveRecords[i],dirVarName=this._names.getDirectiveName(r.directiveIndex);res.push(dirVarName+" = "+this._genReadDirective(i)+";"),lang_1.isPresent(r.outputs)&&r.outputs.forEach(function(output){var eventHandlerExpr=_this._genEventHandler(r.directiveIndex.elementIndex,output[1]),statementStart="this.outputSubscriptions["+outputCount++ +"] = "+dirVarName+"."+output[0];lang_1.IS_DART?res.push(statementStart+".listen("+eventHandlerExpr+");"):res.push(statementStart+".subscribe({next: "+eventHandlerExpr+"});")})}if(outputCount>0){var statementStart="this.outputSubscriptions";lang_1.IS_DART?res.unshift(statementStart+" = new List("+outputCount+");"):res.unshift(statementStart+" = new Array("+outputCount+");")}return res.join("\n")},CodegenLogicUtil.prototype.genDirectivesOnDestroy=function(directiveRecords){for(var res=[],i=0;i<directiveRecords.length;++i){var r=directiveRecords[i];if(r.callOnDestroy){var dirVarName=this._names.getDirectiveName(r.directiveIndex);res.push(dirVarName+".ngOnDestroy();")}}return res.join("\n")},CodegenLogicUtil.prototype._genEventHandler=function(boundElementIndex,eventName){return lang_1.IS_DART?"(event) => this.handleEvent('"+eventName+"', "+boundElementIndex+", event)":"(function(event) { return this.handleEvent('"+eventName+"', "+boundElementIndex+", event); }).bind(this)"},CodegenLogicUtil.prototype._genReadDirective=function(index){var directiveExpr="this.getDirectiveFor(directives, "+index+")";return this._changeDetection===constants_1.ChangeDetectionStrategy.OnPushObserve?"this.observeDirective("+directiveExpr+", "+index+")":directiveExpr},CodegenLogicUtil.prototype.genHydrateDetectors=function(directiveRecords){for(var res=[],i=0;i<directiveRecords.length;++i){var r=directiveRecords[i];r.isDefaultChangeDetection()||res.push(this._names.getDetectorName(r.directiveIndex)+" = this.getDetectorFor(directives, "+i+");")}return res.join("\n")},CodegenLogicUtil.prototype.genContentLifecycleCallbacks=function(directiveRecords){for(var res=[],eq=lang_1.IS_DART?"==":"===",i=directiveRecords.length-1;i>=0;--i){var dir=directiveRecords[i];dir.callAfterContentInit&&res.push("if("+this._names.getStateName()+" "+eq+" "+this._changeDetectorStateName+".NeverChecked) "+this._names.getDirectiveName(dir.directiveIndex)+".ngAfterContentInit();"),dir.callAfterContentChecked&&res.push(this._names.getDirectiveName(dir.directiveIndex)+".ngAfterContentChecked();")}return res},CodegenLogicUtil.prototype.genViewLifecycleCallbacks=function(directiveRecords){for(var res=[],eq=lang_1.IS_DART?"==":"===",i=directiveRecords.length-1;i>=0;--i){var dir=directiveRecords[i];dir.callAfterViewInit&&res.push("if("+this._names.getStateName()+" "+eq+" "+this._changeDetectorStateName+".NeverChecked) "+this._names.getDirectiveName(dir.directiveIndex)+".ngAfterViewInit();"),dir.callAfterViewChecked&&res.push(this._names.getDirectiveName(dir.directiveIndex)+".ngAfterViewChecked();")}return res},CodegenLogicUtil}();return exports.CodegenLogicUtil=CodegenLogicUtil,global.define=__define,module.exports}),$__System.registerDynamic("b6",[],!0,function($__require,exports,module){"use strict";function codify(obj){return JSON.stringify(obj)}function rawString(str){return"'"+str+"'"}function combineGeneratedStrings(vals){return vals.join(" + ")}var global=this,__define=global.define;return global.define=void 0,exports.codify=codify,exports.rawString=rawString,exports.combineGeneratedStrings=combineGeneratedStrings,global.define=__define,module.exports}),$__System.registerDynamic("72",["11","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("11"),AST=function(){function AST(){}return AST.prototype.visit=function(visitor){return null},AST.prototype.toString=function(){return"AST"},AST}();exports.AST=AST;var Quote=function(_super){function Quote(prefix,uninterpretedExpression,location){_super.call(this),this.prefix=prefix,this.uninterpretedExpression=uninterpretedExpression,this.location=location}return __extends(Quote,_super),Quote.prototype.visit=function(visitor){return visitor.visitQuote(this)},Quote.prototype.toString=function(){return"Quote"},Quote}(AST);exports.Quote=Quote;var EmptyExpr=function(_super){function EmptyExpr(){_super.apply(this,arguments)}return __extends(EmptyExpr,_super),EmptyExpr.prototype.visit=function(visitor){},EmptyExpr}(AST);exports.EmptyExpr=EmptyExpr;var ImplicitReceiver=function(_super){function ImplicitReceiver(){_super.apply(this,arguments)}return __extends(ImplicitReceiver,_super),ImplicitReceiver.prototype.visit=function(visitor){return visitor.visitImplicitReceiver(this)},ImplicitReceiver}(AST);exports.ImplicitReceiver=ImplicitReceiver;var Chain=function(_super){function Chain(expressions){_super.call(this),this.expressions=expressions}return __extends(Chain,_super),Chain.prototype.visit=function(visitor){return visitor.visitChain(this)},Chain}(AST);exports.Chain=Chain;var Conditional=function(_super){function Conditional(condition,trueExp,falseExp){_super.call(this),this.condition=condition,this.trueExp=trueExp,this.falseExp=falseExp}return __extends(Conditional,_super),Conditional.prototype.visit=function(visitor){return visitor.visitConditional(this)},Conditional}(AST);exports.Conditional=Conditional;var PropertyRead=function(_super){function PropertyRead(receiver,name,getter){_super.call(this),this.receiver=receiver,this.name=name,this.getter=getter}return __extends(PropertyRead,_super),PropertyRead.prototype.visit=function(visitor){return visitor.visitPropertyRead(this)},PropertyRead}(AST);exports.PropertyRead=PropertyRead;var PropertyWrite=function(_super){function PropertyWrite(receiver,name,setter,value){_super.call(this),this.receiver=receiver,this.name=name,this.setter=setter,this.value=value}return __extends(PropertyWrite,_super),PropertyWrite.prototype.visit=function(visitor){return visitor.visitPropertyWrite(this)},PropertyWrite}(AST);exports.PropertyWrite=PropertyWrite;var SafePropertyRead=function(_super){function SafePropertyRead(receiver,name,getter){_super.call(this),this.receiver=receiver,this.name=name,this.getter=getter}return __extends(SafePropertyRead,_super),SafePropertyRead.prototype.visit=function(visitor){return visitor.visitSafePropertyRead(this)},SafePropertyRead}(AST);exports.SafePropertyRead=SafePropertyRead;var KeyedRead=function(_super){function KeyedRead(obj,key){_super.call(this),this.obj=obj,this.key=key}return __extends(KeyedRead,_super),KeyedRead.prototype.visit=function(visitor){return visitor.visitKeyedRead(this)},KeyedRead}(AST);exports.KeyedRead=KeyedRead;var KeyedWrite=function(_super){function KeyedWrite(obj,key,value){_super.call(this),this.obj=obj,this.key=key,this.value=value}return __extends(KeyedWrite,_super),KeyedWrite.prototype.visit=function(visitor){return visitor.visitKeyedWrite(this)},KeyedWrite}(AST);exports.KeyedWrite=KeyedWrite;var BindingPipe=function(_super){function BindingPipe(exp,name,args){_super.call(this),this.exp=exp,this.name=name,this.args=args}return __extends(BindingPipe,_super),BindingPipe.prototype.visit=function(visitor){return visitor.visitPipe(this)},BindingPipe}(AST);exports.BindingPipe=BindingPipe;var LiteralPrimitive=function(_super){function LiteralPrimitive(value){_super.call(this),this.value=value}return __extends(LiteralPrimitive,_super),LiteralPrimitive.prototype.visit=function(visitor){return visitor.visitLiteralPrimitive(this)},LiteralPrimitive}(AST);exports.LiteralPrimitive=LiteralPrimitive;var LiteralArray=function(_super){function LiteralArray(expressions){_super.call(this),this.expressions=expressions}return __extends(LiteralArray,_super),LiteralArray.prototype.visit=function(visitor){return visitor.visitLiteralArray(this)},LiteralArray}(AST);exports.LiteralArray=LiteralArray;var LiteralMap=function(_super){function LiteralMap(keys,values){_super.call(this),this.keys=keys,this.values=values}return __extends(LiteralMap,_super),LiteralMap.prototype.visit=function(visitor){return visitor.visitLiteralMap(this)},LiteralMap}(AST);exports.LiteralMap=LiteralMap;var Interpolation=function(_super){function Interpolation(strings,expressions){_super.call(this),this.strings=strings,this.expressions=expressions}return __extends(Interpolation,_super),Interpolation.prototype.visit=function(visitor){return visitor.visitInterpolation(this)},Interpolation}(AST);exports.Interpolation=Interpolation;var Binary=function(_super){function Binary(operation,left,right){_super.call(this),this.operation=operation,this.left=left,this.right=right}return __extends(Binary,_super),Binary.prototype.visit=function(visitor){return visitor.visitBinary(this)},Binary}(AST);exports.Binary=Binary;var PrefixNot=function(_super){function PrefixNot(expression){_super.call(this),this.expression=expression}return __extends(PrefixNot,_super),PrefixNot.prototype.visit=function(visitor){return visitor.visitPrefixNot(this)},PrefixNot}(AST);exports.PrefixNot=PrefixNot;var MethodCall=function(_super){function MethodCall(receiver,name,fn,args){_super.call(this),this.receiver=receiver,this.name=name,this.fn=fn,this.args=args}return __extends(MethodCall,_super),MethodCall.prototype.visit=function(visitor){return visitor.visitMethodCall(this)},MethodCall}(AST);exports.MethodCall=MethodCall;var SafeMethodCall=function(_super){function SafeMethodCall(receiver,name,fn,args){_super.call(this),this.receiver=receiver,this.name=name,this.fn=fn,this.args=args}return __extends(SafeMethodCall,_super),SafeMethodCall.prototype.visit=function(visitor){return visitor.visitSafeMethodCall(this)},SafeMethodCall}(AST);exports.SafeMethodCall=SafeMethodCall;var FunctionCall=function(_super){function FunctionCall(target,args){_super.call(this),this.target=target,this.args=args}return __extends(FunctionCall,_super),FunctionCall.prototype.visit=function(visitor){return visitor.visitFunctionCall(this)},FunctionCall}(AST);exports.FunctionCall=FunctionCall;var ASTWithSource=function(_super){function ASTWithSource(ast,source,location){_super.call(this),this.ast=ast,this.source=source,this.location=location}return __extends(ASTWithSource,_super),ASTWithSource.prototype.visit=function(visitor){return this.ast.visit(visitor)},ASTWithSource.prototype.toString=function(){return this.source+" in "+this.location},ASTWithSource}(AST);exports.ASTWithSource=ASTWithSource;var TemplateBinding=function(){function TemplateBinding(key,keyIsVar,name,expression){this.key=key,this.keyIsVar=keyIsVar,this.name=name,this.expression=expression}return TemplateBinding}();exports.TemplateBinding=TemplateBinding;var RecursiveAstVisitor=function(){function RecursiveAstVisitor(){}return RecursiveAstVisitor.prototype.visitBinary=function(ast){return ast.left.visit(this),ast.right.visit(this),null},RecursiveAstVisitor.prototype.visitChain=function(ast){return this.visitAll(ast.expressions)},RecursiveAstVisitor.prototype.visitConditional=function(ast){return ast.condition.visit(this),ast.trueExp.visit(this),ast.falseExp.visit(this),null},RecursiveAstVisitor.prototype.visitPipe=function(ast){return ast.exp.visit(this),this.visitAll(ast.args),null},RecursiveAstVisitor.prototype.visitFunctionCall=function(ast){return ast.target.visit(this),this.visitAll(ast.args),null},RecursiveAstVisitor.prototype.visitImplicitReceiver=function(ast){return null},RecursiveAstVisitor.prototype.visitInterpolation=function(ast){return this.visitAll(ast.expressions)},RecursiveAstVisitor.prototype.visitKeyedRead=function(ast){return ast.obj.visit(this),ast.key.visit(this),null},RecursiveAstVisitor.prototype.visitKeyedWrite=function(ast){return ast.obj.visit(this),ast.key.visit(this),ast.value.visit(this),null},RecursiveAstVisitor.prototype.visitLiteralArray=function(ast){return this.visitAll(ast.expressions)},RecursiveAstVisitor.prototype.visitLiteralMap=function(ast){return this.visitAll(ast.values)},RecursiveAstVisitor.prototype.visitLiteralPrimitive=function(ast){return null},RecursiveAstVisitor.prototype.visitMethodCall=function(ast){return ast.receiver.visit(this),this.visitAll(ast.args)},RecursiveAstVisitor.prototype.visitPrefixNot=function(ast){return ast.expression.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyRead=function(ast){return ast.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyWrite=function(ast){return ast.receiver.visit(this),ast.value.visit(this),null},RecursiveAstVisitor.prototype.visitSafePropertyRead=function(ast){return ast.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitSafeMethodCall=function(ast){return ast.receiver.visit(this),this.visitAll(ast.args)},RecursiveAstVisitor.prototype.visitAll=function(asts){var _this=this;return asts.forEach(function(ast){return ast.visit(_this)}),null},RecursiveAstVisitor.prototype.visitQuote=function(ast){return null},RecursiveAstVisitor}();exports.RecursiveAstVisitor=RecursiveAstVisitor;var AstTransformer=function(){function AstTransformer(){}return AstTransformer.prototype.visitImplicitReceiver=function(ast){return ast},AstTransformer.prototype.visitInterpolation=function(ast){return new Interpolation(ast.strings,this.visitAll(ast.expressions))},AstTransformer.prototype.visitLiteralPrimitive=function(ast){return new LiteralPrimitive(ast.value)},AstTransformer.prototype.visitPropertyRead=function(ast){return new PropertyRead(ast.receiver.visit(this),ast.name,ast.getter)},AstTransformer.prototype.visitPropertyWrite=function(ast){return new PropertyWrite(ast.receiver.visit(this),ast.name,ast.setter,ast.value)},AstTransformer.prototype.visitSafePropertyRead=function(ast){return new SafePropertyRead(ast.receiver.visit(this),ast.name,ast.getter)},AstTransformer.prototype.visitMethodCall=function(ast){return new MethodCall(ast.receiver.visit(this),ast.name,ast.fn,this.visitAll(ast.args))},AstTransformer.prototype.visitSafeMethodCall=function(ast){return new SafeMethodCall(ast.receiver.visit(this),ast.name,ast.fn,this.visitAll(ast.args))},AstTransformer.prototype.visitFunctionCall=function(ast){return new FunctionCall(ast.target.visit(this),this.visitAll(ast.args))},AstTransformer.prototype.visitLiteralArray=function(ast){return new LiteralArray(this.visitAll(ast.expressions))},AstTransformer.prototype.visitLiteralMap=function(ast){return new LiteralMap(ast.keys,this.visitAll(ast.values))},AstTransformer.prototype.visitBinary=function(ast){return new Binary(ast.operation,ast.left.visit(this),ast.right.visit(this))},AstTransformer.prototype.visitPrefixNot=function(ast){return new PrefixNot(ast.expression.visit(this))},AstTransformer.prototype.visitConditional=function(ast){return new Conditional(ast.condition.visit(this),ast.trueExp.visit(this),ast.falseExp.visit(this))},AstTransformer.prototype.visitPipe=function(ast){return new BindingPipe(ast.exp.visit(this),ast.name,this.visitAll(ast.args))},AstTransformer.prototype.visitKeyedRead=function(ast){return new KeyedRead(ast.obj.visit(this),ast.key.visit(this))},AstTransformer.prototype.visitKeyedWrite=function(ast){return new KeyedWrite(ast.obj.visit(this),ast.key.visit(this),ast.value.visit(this))},AstTransformer.prototype.visitAll=function(asts){for(var res=collection_1.ListWrapper.createFixedSize(asts.length),i=0;i<asts.length;++i)res[i]=asts[i].visit(this);return res},AstTransformer.prototype.visitChain=function(ast){return new Chain(this.visitAll(ast.expressions))},AstTransformer.prototype.visitQuote=function(ast){return new Quote(ast.prefix,ast.uninterpretedExpression,ast.location)},AstTransformer}();exports.AstTransformer=AstTransformer}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("b8",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var EventBinding=function(){function EventBinding(eventName,elIndex,dirIndex,records){this.eventName=eventName,this.elIndex=elIndex,this.dirIndex=dirIndex,this.records=records}return EventBinding}();return exports.EventBinding=EventBinding,global.define=__define,module.exports}),$__System.registerDynamic("b9",["7","11","b7"],!0,function($__require,exports,module){"use strict";function coalesce(srcRecords){for(var dstRecords=[],excludedIdxs=[],indexMap=new collection_1.Map,skipDepth=0,skipSources=collection_1.ListWrapper.createFixedSize(srcRecords.length),protoIndex=0;protoIndex<srcRecords.length;protoIndex++){var skipRecord=skipSources[protoIndex];lang_1.isPresent(skipRecord)&&(skipDepth--,skipRecord.fixedArgs[0]=dstRecords.length);var src=srcRecords[protoIndex],dst=_cloneAndUpdateIndexes(src,dstRecords,indexMap);if(dst.isSkipRecord())dstRecords.push(dst),skipDepth++,skipSources[dst.fixedArgs[0]]=dst;else{var record=_mayBeAddRecord(dst,dstRecords,excludedIdxs,skipDepth>0);indexMap.set(src.selfIndex,record.selfIndex)}}return _optimizeSkips(dstRecords)}function _optimizeSkips(srcRecords){for(var dstRecords=[],skipSources=collection_1.ListWrapper.createFixedSize(srcRecords.length),indexMap=new collection_1.Map,protoIndex=0;protoIndex<srcRecords.length;protoIndex++){var skipRecord=skipSources[protoIndex];lang_1.isPresent(skipRecord)&&(skipRecord.fixedArgs[0]=dstRecords.length);var src=srcRecords[protoIndex];if(src.isSkipRecord()){
if(src.isConditionalSkipRecord()&&src.fixedArgs[0]===protoIndex+2&&protoIndex<srcRecords.length-1&&srcRecords[protoIndex+1].mode===proto_record_1.RecordType.SkipRecords&&(src.mode=src.mode===proto_record_1.RecordType.SkipRecordsIf?proto_record_1.RecordType.SkipRecordsIfNot:proto_record_1.RecordType.SkipRecordsIf,src.fixedArgs[0]=srcRecords[protoIndex+1].fixedArgs[0],protoIndex++),src.fixedArgs[0]>protoIndex+1){var dst=_cloneAndUpdateIndexes(src,dstRecords,indexMap);dstRecords.push(dst),skipSources[dst.fixedArgs[0]]=dst}}else{var dst=_cloneAndUpdateIndexes(src,dstRecords,indexMap);dstRecords.push(dst),indexMap.set(src.selfIndex,dst.selfIndex)}}return dstRecords}function _mayBeAddRecord(record,dstRecords,excludedIdxs,excluded){var match=_findFirstMatch(record,dstRecords,excludedIdxs);return lang_1.isPresent(match)?(record.lastInBinding?(dstRecords.push(_createSelfRecord(record,match.selfIndex,dstRecords.length+1)),match.referencedBySelf=!0):record.argumentToPureFunction&&(match.argumentToPureFunction=!0),match):(excluded&&excludedIdxs.push(record.selfIndex),dstRecords.push(record),record)}function _findFirstMatch(record,dstRecords,excludedIdxs){return dstRecords.find(function(rr){return-1==excludedIdxs.indexOf(rr.selfIndex)&&rr.mode!==proto_record_1.RecordType.DirectiveLifecycle&&_haveSameDirIndex(rr,record)&&rr.mode===record.mode&&lang_1.looseIdentical(rr.funcOrValue,record.funcOrValue)&&rr.contextIndex===record.contextIndex&&lang_1.looseIdentical(rr.name,record.name)&&collection_1.ListWrapper.equals(rr.args,record.args)})}function _cloneAndUpdateIndexes(record,dstRecords,indexMap){var args=record.args.map(function(src){return _srcToDstSelfIndex(indexMap,src)}),contextIndex=_srcToDstSelfIndex(indexMap,record.contextIndex),selfIndex=dstRecords.length+1;return new proto_record_1.ProtoRecord(record.mode,record.name,record.funcOrValue,args,record.fixedArgs,contextIndex,record.directiveIndex,selfIndex,record.bindingRecord,record.lastInBinding,record.lastInDirective,record.argumentToPureFunction,record.referencedBySelf,record.propertyBindingIndex)}function _srcToDstSelfIndex(indexMap,srcIdx){var dstIdx=indexMap.get(srcIdx);return lang_1.isPresent(dstIdx)?dstIdx:srcIdx}function _createSelfRecord(r,contextIndex,selfIndex){return new proto_record_1.ProtoRecord(proto_record_1.RecordType.Self,"self",null,[],r.fixedArgs,contextIndex,r.directiveIndex,selfIndex,r.bindingRecord,r.lastInBinding,r.lastInDirective,!1,!1,r.propertyBindingIndex)}function _haveSameDirIndex(a,b){var di1=lang_1.isBlank(a.directiveIndex)?null:a.directiveIndex.directiveIndex,ei1=lang_1.isBlank(a.directiveIndex)?null:a.directiveIndex.elementIndex,di2=lang_1.isBlank(b.directiveIndex)?null:b.directiveIndex.directiveIndex,ei2=lang_1.isBlank(b.directiveIndex)?null:b.directiveIndex.elementIndex;return di1===di2&&ei1===ei2}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),collection_1=$__require("11"),proto_record_1=$__require("b7");return exports.coalesce=coalesce,global.define=__define,module.exports}),$__System.registerDynamic("ba",["7","10","11","72","88","bb","bc","b8","b9","b7"],!0,function($__require,exports,module){"use strict";function createPropertyRecords(definition){var recordBuilder=new ProtoRecordBuilder;return collection_1.ListWrapper.forEachWithIndex(definition.bindingRecords,function(b,index){return recordBuilder.add(b,definition.variableNames,index)}),coalesce_1.coalesce(recordBuilder.records)}function createEventRecords(definition){var varNames=collection_1.ListWrapper.concat(["$event"],definition.variableNames);return definition.eventRecords.map(function(er){var records=_ConvertAstIntoProtoRecords.create(er,varNames),dirIndex=er.implicitReceiver instanceof directive_record_1.DirectiveIndex?er.implicitReceiver:null;return new event_binding_1.EventBinding(er.target.name,er.target.elementIndex,dirIndex,records)})}function _arrayFn(length){switch(length){case 0:return change_detection_util_1.ChangeDetectionUtil.arrayFn0;case 1:return change_detection_util_1.ChangeDetectionUtil.arrayFn1;case 2:return change_detection_util_1.ChangeDetectionUtil.arrayFn2;case 3:return change_detection_util_1.ChangeDetectionUtil.arrayFn3;case 4:return change_detection_util_1.ChangeDetectionUtil.arrayFn4;case 5:return change_detection_util_1.ChangeDetectionUtil.arrayFn5;case 6:return change_detection_util_1.ChangeDetectionUtil.arrayFn6;case 7:return change_detection_util_1.ChangeDetectionUtil.arrayFn7;case 8:return change_detection_util_1.ChangeDetectionUtil.arrayFn8;case 9:return change_detection_util_1.ChangeDetectionUtil.arrayFn9;default:throw new exceptions_1.BaseException("Does not support literal maps with more than 9 elements")}}function _mapPrimitiveName(keys){var stringifiedKeys=keys.map(function(k){return lang_1.isString(k)?'"'+k+'"':""+k}).join(", ");return"mapFn(["+stringifiedKeys+"])"}function _operationToPrimitiveName(operation){switch(operation){case"+":return"operation_add";case"-":return"operation_subtract";case"*":return"operation_multiply";case"/":return"operation_divide";case"%":return"operation_remainder";case"==":return"operation_equals";case"!=":return"operation_not_equals";case"===":return"operation_identical";case"!==":return"operation_not_identical";case"<":return"operation_less_then";case">":return"operation_greater_then";case"<=":return"operation_less_or_equals_then";case">=":return"operation_greater_or_equals_then";default:throw new exceptions_1.BaseException("Unsupported operation "+operation)}}function _operationToFunction(operation){switch(operation){case"+":return change_detection_util_1.ChangeDetectionUtil.operation_add;case"-":return change_detection_util_1.ChangeDetectionUtil.operation_subtract;case"*":return change_detection_util_1.ChangeDetectionUtil.operation_multiply;case"/":return change_detection_util_1.ChangeDetectionUtil.operation_divide;case"%":return change_detection_util_1.ChangeDetectionUtil.operation_remainder;case"==":return change_detection_util_1.ChangeDetectionUtil.operation_equals;case"!=":return change_detection_util_1.ChangeDetectionUtil.operation_not_equals;case"===":return change_detection_util_1.ChangeDetectionUtil.operation_identical;case"!==":return change_detection_util_1.ChangeDetectionUtil.operation_not_identical;case"<":return change_detection_util_1.ChangeDetectionUtil.operation_less_then;case">":return change_detection_util_1.ChangeDetectionUtil.operation_greater_then;case"<=":return change_detection_util_1.ChangeDetectionUtil.operation_less_or_equals_then;case">=":return change_detection_util_1.ChangeDetectionUtil.operation_greater_or_equals_then;default:throw new exceptions_1.BaseException("Unsupported operation "+operation)}}function s(v){return lang_1.isPresent(v)?""+v:""}function _interpolationFn(strings){var length=strings.length,c0=length>0?strings[0]:null,c1=length>1?strings[1]:null,c2=length>2?strings[2]:null,c3=length>3?strings[3]:null,c4=length>4?strings[4]:null,c5=length>5?strings[5]:null,c6=length>6?strings[6]:null,c7=length>7?strings[7]:null,c8=length>8?strings[8]:null,c9=length>9?strings[9]:null;switch(length-1){case 1:return function(a1){return c0+s(a1)+c1};case 2:return function(a1,a2){return c0+s(a1)+c1+s(a2)+c2};case 3:return function(a1,a2,a3){return c0+s(a1)+c1+s(a2)+c2+s(a3)+c3};case 4:return function(a1,a2,a3,a4){return c0+s(a1)+c1+s(a2)+c2+s(a3)+c3+s(a4)+c4};case 5:return function(a1,a2,a3,a4,a5){return c0+s(a1)+c1+s(a2)+c2+s(a3)+c3+s(a4)+c4+s(a5)+c5};case 6:return function(a1,a2,a3,a4,a5,a6){return c0+s(a1)+c1+s(a2)+c2+s(a3)+c3+s(a4)+c4+s(a5)+c5+s(a6)+c6};case 7:return function(a1,a2,a3,a4,a5,a6,a7){return c0+s(a1)+c1+s(a2)+c2+s(a3)+c3+s(a4)+c4+s(a5)+c5+s(a6)+c6+s(a7)+c7};case 8:return function(a1,a2,a3,a4,a5,a6,a7,a8){return c0+s(a1)+c1+s(a2)+c2+s(a3)+c3+s(a4)+c4+s(a5)+c5+s(a6)+c6+s(a7)+c7+s(a8)+c8};case 9:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9){return c0+s(a1)+c1+s(a2)+c2+s(a3)+c3+s(a4)+c4+s(a5)+c5+s(a6)+c6+s(a7)+c7+s(a8)+c8+s(a9)+c9};default:throw new exceptions_1.BaseException("Does not support more than 9 expressions")}}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),ast_1=$__require("72"),change_detection_util_1=$__require("88"),dynamic_change_detector_1=$__require("bb"),directive_record_1=$__require("bc"),event_binding_1=$__require("b8"),coalesce_1=$__require("b9"),proto_record_1=$__require("b7"),DynamicProtoChangeDetector=function(){function DynamicProtoChangeDetector(_definition){this._definition=_definition,this._propertyBindingRecords=createPropertyRecords(_definition),this._eventBindingRecords=createEventRecords(_definition),this._propertyBindingTargets=this._definition.bindingRecords.map(function(b){return b.target}),this._directiveIndices=this._definition.directiveRecords.map(function(d){return d.directiveIndex})}return DynamicProtoChangeDetector.prototype.instantiate=function(){return new dynamic_change_detector_1.DynamicChangeDetector(this._definition.id,this._propertyBindingRecords.length,this._propertyBindingTargets,this._directiveIndices,this._definition.strategy,this._propertyBindingRecords,this._eventBindingRecords,this._definition.directiveRecords,this._definition.genConfig)},DynamicProtoChangeDetector}();exports.DynamicProtoChangeDetector=DynamicProtoChangeDetector,exports.createPropertyRecords=createPropertyRecords,exports.createEventRecords=createEventRecords;var ProtoRecordBuilder=function(){function ProtoRecordBuilder(){this.records=[]}return ProtoRecordBuilder.prototype.add=function(b,variableNames,bindingIndex){var oldLast=collection_1.ListWrapper.last(this.records);lang_1.isPresent(oldLast)&&oldLast.bindingRecord.directiveRecord==b.directiveRecord&&(oldLast.lastInDirective=!1);var numberOfRecordsBefore=this.records.length;this._appendRecords(b,variableNames,bindingIndex);var newLast=collection_1.ListWrapper.last(this.records);lang_1.isPresent(newLast)&&newLast!==oldLast&&(newLast.lastInBinding=!0,newLast.lastInDirective=!0,this._setArgumentToPureFunction(numberOfRecordsBefore))},ProtoRecordBuilder.prototype._setArgumentToPureFunction=function(startIndex){for(var _this=this,i=startIndex;i<this.records.length;++i){var rec=this.records[i];rec.isPureFunction()&&rec.args.forEach(function(recordIndex){return _this.records[recordIndex-1].argumentToPureFunction=!0}),rec.mode===proto_record_1.RecordType.Pipe&&(rec.args.forEach(function(recordIndex){return _this.records[recordIndex-1].argumentToPureFunction=!0}),this.records[rec.contextIndex-1].argumentToPureFunction=!0)}},ProtoRecordBuilder.prototype._appendRecords=function(b,variableNames,bindingIndex){b.isDirectiveLifecycle()?this.records.push(new proto_record_1.ProtoRecord(proto_record_1.RecordType.DirectiveLifecycle,b.lifecycleEvent,null,[],[],-1,null,this.records.length+1,b,!1,!1,!1,!1,null)):_ConvertAstIntoProtoRecords.append(this.records,b,variableNames,bindingIndex)},ProtoRecordBuilder}();exports.ProtoRecordBuilder=ProtoRecordBuilder;var _ConvertAstIntoProtoRecords=function(){function _ConvertAstIntoProtoRecords(_records,_bindingRecord,_variableNames,_bindingIndex){this._records=_records,this._bindingRecord=_bindingRecord,this._variableNames=_variableNames,this._bindingIndex=_bindingIndex}return _ConvertAstIntoProtoRecords.append=function(records,b,variableNames,bindingIndex){var c=new _ConvertAstIntoProtoRecords(records,b,variableNames,bindingIndex);b.ast.visit(c)},_ConvertAstIntoProtoRecords.create=function(b,variableNames){var rec=[];return _ConvertAstIntoProtoRecords.append(rec,b,variableNames,null),rec[rec.length-1].lastInBinding=!0,rec},_ConvertAstIntoProtoRecords.prototype.visitImplicitReceiver=function(ast){return this._bindingRecord.implicitReceiver},_ConvertAstIntoProtoRecords.prototype.visitInterpolation=function(ast){var args=this._visitAll(ast.expressions);return this._addRecord(proto_record_1.RecordType.Interpolate,"interpolate",_interpolationFn(ast.strings),args,ast.strings,0)},_ConvertAstIntoProtoRecords.prototype.visitLiteralPrimitive=function(ast){return this._addRecord(proto_record_1.RecordType.Const,"literal",ast.value,[],null,0)},_ConvertAstIntoProtoRecords.prototype.visitPropertyRead=function(ast){var receiver=ast.receiver.visit(this);return lang_1.isPresent(this._variableNames)&&collection_1.ListWrapper.contains(this._variableNames,ast.name)&&ast.receiver instanceof ast_1.ImplicitReceiver?this._addRecord(proto_record_1.RecordType.Local,ast.name,ast.name,[],null,receiver):this._addRecord(proto_record_1.RecordType.PropertyRead,ast.name,ast.getter,[],null,receiver)},_ConvertAstIntoProtoRecords.prototype.visitPropertyWrite=function(ast){if(lang_1.isPresent(this._variableNames)&&collection_1.ListWrapper.contains(this._variableNames,ast.name)&&ast.receiver instanceof ast_1.ImplicitReceiver)throw new exceptions_1.BaseException("Cannot reassign a variable binding "+ast.name);var receiver=ast.receiver.visit(this),value=ast.value.visit(this);return this._addRecord(proto_record_1.RecordType.PropertyWrite,ast.name,ast.setter,[value],null,receiver)},_ConvertAstIntoProtoRecords.prototype.visitKeyedWrite=function(ast){var obj=ast.obj.visit(this),key=ast.key.visit(this),value=ast.value.visit(this);return this._addRecord(proto_record_1.RecordType.KeyedWrite,null,null,[key,value],null,obj)},_ConvertAstIntoProtoRecords.prototype.visitSafePropertyRead=function(ast){var receiver=ast.receiver.visit(this);return this._addRecord(proto_record_1.RecordType.SafeProperty,ast.name,ast.getter,[],null,receiver)},_ConvertAstIntoProtoRecords.prototype.visitMethodCall=function(ast){var receiver=ast.receiver.visit(this),args=this._visitAll(ast.args);if(lang_1.isPresent(this._variableNames)&&collection_1.ListWrapper.contains(this._variableNames,ast.name)){var target=this._addRecord(proto_record_1.RecordType.Local,ast.name,ast.name,[],null,receiver);return this._addRecord(proto_record_1.RecordType.InvokeClosure,"closure",null,args,null,target)}return this._addRecord(proto_record_1.RecordType.InvokeMethod,ast.name,ast.fn,args,null,receiver)},_ConvertAstIntoProtoRecords.prototype.visitSafeMethodCall=function(ast){var receiver=ast.receiver.visit(this),args=this._visitAll(ast.args);return this._addRecord(proto_record_1.RecordType.SafeMethodInvoke,ast.name,ast.fn,args,null,receiver)},_ConvertAstIntoProtoRecords.prototype.visitFunctionCall=function(ast){var target=ast.target.visit(this),args=this._visitAll(ast.args);return this._addRecord(proto_record_1.RecordType.InvokeClosure,"closure",null,args,null,target)},_ConvertAstIntoProtoRecords.prototype.visitLiteralArray=function(ast){var primitiveName="arrayFn"+ast.expressions.length;return this._addRecord(proto_record_1.RecordType.CollectionLiteral,primitiveName,_arrayFn(ast.expressions.length),this._visitAll(ast.expressions),null,0)},_ConvertAstIntoProtoRecords.prototype.visitLiteralMap=function(ast){return this._addRecord(proto_record_1.RecordType.CollectionLiteral,_mapPrimitiveName(ast.keys),change_detection_util_1.ChangeDetectionUtil.mapFn(ast.keys),this._visitAll(ast.values),null,0)},_ConvertAstIntoProtoRecords.prototype.visitBinary=function(ast){var left=ast.left.visit(this);switch(ast.operation){case"&&":var branchEnd=[null];this._addRecord(proto_record_1.RecordType.SkipRecordsIfNot,"SkipRecordsIfNot",null,[],branchEnd,left);var right=ast.right.visit(this);return branchEnd[0]=right,this._addRecord(proto_record_1.RecordType.PrimitiveOp,"cond",change_detection_util_1.ChangeDetectionUtil.cond,[left,right,left],null,0);case"||":var branchEnd=[null];this._addRecord(proto_record_1.RecordType.SkipRecordsIf,"SkipRecordsIf",null,[],branchEnd,left);var right=ast.right.visit(this);return branchEnd[0]=right,this._addRecord(proto_record_1.RecordType.PrimitiveOp,"cond",change_detection_util_1.ChangeDetectionUtil.cond,[left,left,right],null,0);default:var right=ast.right.visit(this);return this._addRecord(proto_record_1.RecordType.PrimitiveOp,_operationToPrimitiveName(ast.operation),_operationToFunction(ast.operation),[left,right],null,0)}},_ConvertAstIntoProtoRecords.prototype.visitPrefixNot=function(ast){var exp=ast.expression.visit(this);return this._addRecord(proto_record_1.RecordType.PrimitiveOp,"operation_negate",change_detection_util_1.ChangeDetectionUtil.operation_negate,[exp],null,0)},_ConvertAstIntoProtoRecords.prototype.visitConditional=function(ast){var condition=ast.condition.visit(this),startOfFalseBranch=[null],endOfFalseBranch=[null];this._addRecord(proto_record_1.RecordType.SkipRecordsIfNot,"SkipRecordsIfNot",null,[],startOfFalseBranch,condition);var whenTrue=ast.trueExp.visit(this),skip=this._addRecord(proto_record_1.RecordType.SkipRecords,"SkipRecords",null,[],endOfFalseBranch,0),whenFalse=ast.falseExp.visit(this);return startOfFalseBranch[0]=skip,endOfFalseBranch[0]=whenFalse,this._addRecord(proto_record_1.RecordType.PrimitiveOp,"cond",change_detection_util_1.ChangeDetectionUtil.cond,[condition,whenTrue,whenFalse],null,0)},_ConvertAstIntoProtoRecords.prototype.visitPipe=function(ast){var value=ast.exp.visit(this),args=this._visitAll(ast.args);return this._addRecord(proto_record_1.RecordType.Pipe,ast.name,ast.name,args,null,value)},_ConvertAstIntoProtoRecords.prototype.visitKeyedRead=function(ast){var obj=ast.obj.visit(this),key=ast.key.visit(this);return this._addRecord(proto_record_1.RecordType.KeyedRead,"keyedAccess",change_detection_util_1.ChangeDetectionUtil.keyedAccess,[key],null,obj)},_ConvertAstIntoProtoRecords.prototype.visitChain=function(ast){var _this=this,args=ast.expressions.map(function(e){return e.visit(_this)});return this._addRecord(proto_record_1.RecordType.Chain,"chain",null,args,null,0)},_ConvertAstIntoProtoRecords.prototype.visitQuote=function(ast){throw new exceptions_1.BaseException("Caught uninterpreted expression at "+ast.location+": "+ast.uninterpretedExpression+". "+("Expression prefix "+ast.prefix+" did not match a template transformer to interpret the expression."))},_ConvertAstIntoProtoRecords.prototype._visitAll=function(asts){for(var res=collection_1.ListWrapper.createFixedSize(asts.length),i=0;i<asts.length;++i)res[i]=asts[i].visit(this);return res},_ConvertAstIntoProtoRecords.prototype._addRecord=function(type,name,funcOrValue,args,fixedArgs,context){var selfIndex=this._records.length+1;return context instanceof directive_record_1.DirectiveIndex?this._records.push(new proto_record_1.ProtoRecord(type,name,funcOrValue,args,fixedArgs,-1,context,selfIndex,this._bindingRecord,!1,!1,!1,!1,this._bindingIndex)):this._records.push(new proto_record_1.ProtoRecord(type,name,funcOrValue,args,fixedArgs,context,null,selfIndex,this._bindingRecord,!1,!1,!1,!1,this._bindingIndex)),selfIndex},_ConvertAstIntoProtoRecords}();return global.define=__define,module.exports}),$__System.registerDynamic("86",["7","10","11","87","88","b7","b4","b5","b6","89","ba"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),abstract_change_detector_1=$__require("87"),change_detection_util_1=$__require("88"),proto_record_1=$__require("b7"),codegen_name_util_1=$__require("b4"),codegen_logic_util_1=$__require("b5"),codegen_facade_1=$__require("b6"),constants_1=$__require("89"),proto_change_detector_1=$__require("ba"),IS_CHANGED_LOCAL="isChanged",CHANGES_LOCAL="changes",ChangeDetectorJITGenerator=function(){function ChangeDetectorJITGenerator(definition,changeDetectionUtilVarName,abstractChangeDetectorVarName,changeDetectorStateVarName){this.changeDetectionUtilVarName=changeDetectionUtilVarName,this.abstractChangeDetectorVarName=abstractChangeDetectorVarName,this.changeDetectorStateVarName=changeDetectorStateVarName;var propertyBindingRecords=proto_change_detector_1.createPropertyRecords(definition),eventBindingRecords=proto_change_detector_1.createEventRecords(definition),propertyBindingTargets=definition.bindingRecords.map(function(b){return b.target});this.id=definition.id,this.changeDetectionStrategy=definition.strategy,this.genConfig=definition.genConfig,this.records=propertyBindingRecords,this.propertyBindingTargets=propertyBindingTargets,this.eventBindings=eventBindingRecords,this.directiveRecords=definition.directiveRecords,this._names=new codegen_name_util_1.CodegenNameUtil(this.records,this.eventBindings,this.directiveRecords,this.changeDetectionUtilVarName),this._logic=new codegen_logic_util_1.CodegenLogicUtil(this._names,this.changeDetectionUtilVarName,this.changeDetectorStateVarName,this.changeDetectionStrategy),this.typeName=codegen_name_util_1.sanitizeName("ChangeDetector_"+this.id)}return ChangeDetectorJITGenerator.prototype.generate=function(){var factorySource="\n "+this.generateSource()+"\n return function() {\n return new "+this.typeName+"();\n }\n ";return new Function(this.abstractChangeDetectorVarName,this.changeDetectionUtilVarName,this.changeDetectorStateVarName,factorySource)(abstract_change_detector_1.AbstractChangeDetector,change_detection_util_1.ChangeDetectionUtil,constants_1.ChangeDetectorState)},ChangeDetectorJITGenerator.prototype.generateSource=function(){return"\n var "+this.typeName+" = function "+this.typeName+"() {\n "+this.abstractChangeDetectorVarName+".call(\n this, "+JSON.stringify(this.id)+", "+this.records.length+",\n "+this.typeName+".gen_propertyBindingTargets, "+this.typeName+".gen_directiveIndices,\n "+codegen_facade_1.codify(this.changeDetectionStrategy)+");\n this.dehydrateDirectives(false);\n }\n\n "+this.typeName+".prototype = Object.create("+this.abstractChangeDetectorVarName+".prototype);\n\n "+this.typeName+".prototype.detectChangesInRecordsInternal = function(throwOnChange) {\n "+this._names.genInitLocals()+"\n var "+IS_CHANGED_LOCAL+" = false;\n var "+CHANGES_LOCAL+" = null;\n\n "+this._genAllRecords(this.records)+"\n }\n\n "+this._maybeGenHandleEventInternal()+"\n\n "+this._maybeGenAfterContentLifecycleCallbacks()+"\n\n "+this._maybeGenAfterViewLifecycleCallbacks()+"\n\n "+this._maybeGenHydrateDirectives()+"\n\n "+this._maybeGenDehydrateDirectives()+"\n\n "+this._genPropertyBindingTargets()+"\n\n "+this._genDirectiveIndices()+"\n "},ChangeDetectorJITGenerator.prototype._genPropertyBindingTargets=function(){var targets=this._logic.genPropertyBindingTargets(this.propertyBindingTargets,this.genConfig.genDebugInfo);return this.typeName+".gen_propertyBindingTargets = "+targets+";"},ChangeDetectorJITGenerator.prototype._genDirectiveIndices=function(){var indices=this._logic.genDirectiveIndices(this.directiveRecords);return this.typeName+".gen_directiveIndices = "+indices+";"},ChangeDetectorJITGenerator.prototype._maybeGenHandleEventInternal=function(){var _this=this;if(this.eventBindings.length>0){var handlers=this.eventBindings.map(function(eb){return _this._genEventBinding(eb)}).join("\n");return"\n "+this.typeName+".prototype.handleEventInternal = function(eventName, elIndex, locals) {\n var "+this._names.getPreventDefaultAccesor()+" = false;\n "+this._names.genInitEventLocals()+"\n "+handlers+"\n return "+this._names.getPreventDefaultAccesor()+";\n }\n "}return""},ChangeDetectorJITGenerator.prototype._genEventBinding=function(eb){var _this=this,codes=[];return this._endOfBlockIdxs=[],collection_1.ListWrapper.forEachWithIndex(eb.records,function(r,i){var code;code=r.isConditionalSkipRecord()?_this._genConditionalSkip(r,_this._names.getEventLocalName(eb,i)):r.isUnconditionalSkipRecord()?_this._genUnconditionalSkip(r):_this._genEventBindingEval(eb,r),code+=_this._genEndOfSkipBlock(i),codes.push(code)}),'\n if (eventName === "'+eb.eventName+'" && elIndex === '+eb.elIndex+") {\n "+codes.join("\n")+"\n }"},ChangeDetectorJITGenerator.prototype._genEventBindingEval=function(eb,r){if(r.lastInBinding){var evalRecord=this._logic.genEventBindingEvalValue(eb,r),markPath=this._genMarkPathToRootAsCheckOnce(r),prevDefault=this._genUpdatePreventDefault(eb,r);return evalRecord+"\n"+markPath+"\n"+prevDefault}return this._logic.genEventBindingEvalValue(eb,r)},ChangeDetectorJITGenerator.prototype._genMarkPathToRootAsCheckOnce=function(r){var br=r.bindingRecord;return br.isDefaultChangeDetection()?"":this._names.getDetectorName(br.directiveRecord.directiveIndex)+".markPathToRootAsCheckOnce();"},ChangeDetectorJITGenerator.prototype._genUpdatePreventDefault=function(eb,r){var local=this._names.getEventLocalName(eb,r.selfIndex);return"if ("+local+" === false) { "+this._names.getPreventDefaultAccesor()+" = true};"},ChangeDetectorJITGenerator.prototype._maybeGenDehydrateDirectives=function(){var destroyPipesCode=this._names.genPipeOnDestroy(),destroyDirectivesCode=this._logic.genDirectivesOnDestroy(this.directiveRecords),dehydrateFieldsCode=this._names.genDehydrateFields();return destroyPipesCode||destroyDirectivesCode||dehydrateFieldsCode?this.typeName+".prototype.dehydrateDirectives = function(destroyPipes) {\n if (destroyPipes) {\n "+destroyPipesCode+"\n "+destroyDirectivesCode+"\n }\n "+dehydrateFieldsCode+"\n }":""},ChangeDetectorJITGenerator.prototype._maybeGenHydrateDirectives=function(){var hydrateDirectivesCode=this._logic.genHydrateDirectives(this.directiveRecords),hydrateDetectorsCode=this._logic.genHydrateDetectors(this.directiveRecords);return hydrateDirectivesCode||hydrateDetectorsCode?this.typeName+".prototype.hydrateDirectives = function(directives) {\n "+hydrateDirectivesCode+"\n "+hydrateDetectorsCode+"\n }":""},ChangeDetectorJITGenerator.prototype._maybeGenAfterContentLifecycleCallbacks=function(){var notifications=this._logic.genContentLifecycleCallbacks(this.directiveRecords);if(notifications.length>0){var directiveNotifications=notifications.join("\n");return"\n "+this.typeName+".prototype.afterContentLifecycleCallbacksInternal = function() {\n "+directiveNotifications+"\n }\n "}return""},ChangeDetectorJITGenerator.prototype._maybeGenAfterViewLifecycleCallbacks=function(){var notifications=this._logic.genViewLifecycleCallbacks(this.directiveRecords);if(notifications.length>0){var directiveNotifications=notifications.join("\n");return"\n "+this.typeName+".prototype.afterViewLifecycleCallbacksInternal = function() {\n "+directiveNotifications+"\n }\n "}return""},ChangeDetectorJITGenerator.prototype._genAllRecords=function(rs){var codes=[];this._endOfBlockIdxs=[];for(var i=0;i<rs.length;i++){var code=void 0,r=rs[i];code=r.isLifeCycleRecord()?this._genDirectiveLifecycle(r):r.isPipeRecord()?this._genPipeCheck(r):r.isConditionalSkipRecord()?this._genConditionalSkip(r,this._names.getLocalName(r.contextIndex)):r.isUnconditionalSkipRecord()?this._genUnconditionalSkip(r):this._genReferenceCheck(r),code="\n "+this._maybeFirstInBinding(r)+"\n "+code+"\n "+this._maybeGenLastInDirective(r)+"\n "+this._genEndOfSkipBlock(i)+"\n ",codes.push(code)}return codes.join("\n")},ChangeDetectorJITGenerator.prototype._genConditionalSkip=function(r,condition){var maybeNegate=r.mode===proto_record_1.RecordType.SkipRecordsIf?"!":"";return this._endOfBlockIdxs.push(r.fixedArgs[0]-1),"if ("+maybeNegate+condition+") {"},ChangeDetectorJITGenerator.prototype._genUnconditionalSkip=function(r){return this._endOfBlockIdxs.pop(),this._endOfBlockIdxs.push(r.fixedArgs[0]-1),"} else {"},ChangeDetectorJITGenerator.prototype._genEndOfSkipBlock=function(protoIndex){if(!collection_1.ListWrapper.isEmpty(this._endOfBlockIdxs)){var endOfBlock=collection_1.ListWrapper.last(this._endOfBlockIdxs);if(protoIndex===endOfBlock)return this._endOfBlockIdxs.pop(),"}"}return""},ChangeDetectorJITGenerator.prototype._genDirectiveLifecycle=function(r){if("DoCheck"===r.name)return this._genOnCheck(r);if("OnInit"===r.name)return this._genOnInit(r);if("OnChanges"===r.name)return this._genOnChange(r);throw new exceptions_1.BaseException("Unknown lifecycle event '"+r.name+"'")},ChangeDetectorJITGenerator.prototype._genPipeCheck=function(r){var _this=this,context=this._names.getLocalName(r.contextIndex),argString=r.args.map(function(arg){return _this._names.getLocalName(arg)}).join(", "),oldValue=this._names.getFieldName(r.selfIndex),newValue=this._names.getLocalName(r.selfIndex),pipe=this._names.getPipeName(r.selfIndex),pipeName=r.name,init="\n if ("+pipe+" === "+this.changeDetectionUtilVarName+".uninitialized) {\n "+pipe+" = "+this._names.getPipesAccessorName()+".get('"+pipeName+"');\n }\n ",read=newValue+" = "+pipe+".pipe.transform("+context+", ["+argString+"]);",contexOrArgCheck=r.args.map(function(a){return _this._names.getChangeName(a)});contexOrArgCheck.push(this._names.getChangeName(r.contextIndex));var condition="!"+pipe+".pure || ("+contexOrArgCheck.join(" || ")+")",check="\n "+this._genThrowOnChangeCheck(oldValue,newValue)+"\n if ("+this.changeDetectionUtilVarName+".looseNotIdentical("+oldValue+", "+newValue+")) {\n "+newValue+" = "+this.changeDetectionUtilVarName+".unwrapValue("+newValue+")\n "+this._genChangeMarker(r)+"\n "+this._genUpdateDirectiveOrElement(r)+"\n "+this._genAddToChanges(r)+"\n "+oldValue+" = "+newValue+";\n }\n ",genCode=r.shouldBeChecked()?""+read+check:read;return r.isUsedByOtherRecord()?init+" if ("+condition+") { "+genCode+" } else { "+newValue+" = "+oldValue+"; }":init+" if ("+condition+") { "+genCode+" }"},ChangeDetectorJITGenerator.prototype._genReferenceCheck=function(r){var _this=this,oldValue=this._names.getFieldName(r.selfIndex),newValue=this._names.getLocalName(r.selfIndex),read="\n "+this._logic.genPropertyBindingEvalValue(r)+"\n ",check="\n "+this._genThrowOnChangeCheck(oldValue,newValue)+"\n if ("+this.changeDetectionUtilVarName+".looseNotIdentical("+oldValue+", "+newValue+")) {\n "+this._genChangeMarker(r)+"\n "+this._genUpdateDirectiveOrElement(r)+"\n "+this._genAddToChanges(r)+"\n "+oldValue+" = "+newValue+";\n }\n ",genCode=r.shouldBeChecked()?""+read+check:read;if(r.isPureFunction()){var condition=r.args.map(function(a){return _this._names.getChangeName(a)}).join(" || ");return r.isUsedByOtherRecord()?"if ("+condition+") { "+genCode+" } else { "+newValue+" = "+oldValue+"; }":"if ("+condition+") { "+genCode+" }"}return genCode},ChangeDetectorJITGenerator.prototype._genChangeMarker=function(r){return r.argumentToPureFunction?this._names.getChangeName(r.selfIndex)+" = true":""},ChangeDetectorJITGenerator.prototype._genUpdateDirectiveOrElement=function(r){if(!r.lastInBinding)return"";var newValue=this._names.getLocalName(r.selfIndex),notifyDebug=this.genConfig.logBindingUpdate?"this.logBindingUpdate("+newValue+");":"",br=r.bindingRecord;if(br.target.isDirective()){var directiveProperty=this._names.getDirectiveName(br.directiveRecord.directiveIndex)+"."+br.target.name;return"\n "+directiveProperty+" = "+newValue+";\n "+notifyDebug+"\n "+IS_CHANGED_LOCAL+" = true;\n "}return"\n this.notifyDispatcher("+newValue+");\n "+notifyDebug+"\n "},ChangeDetectorJITGenerator.prototype._genThrowOnChangeCheck=function(oldValue,newValue){return lang_1.assertionsEnabled()?"\n if (throwOnChange && !"+this.changeDetectionUtilVarName+".devModeEqual("+oldValue+", "+newValue+")) {\n this.throwOnChangeError("+oldValue+", "+newValue+");\n }\n ":""},ChangeDetectorJITGenerator.prototype._genAddToChanges=function(r){var newValue=this._names.getLocalName(r.selfIndex),oldValue=this._names.getFieldName(r.selfIndex);return r.bindingRecord.callOnChanges()?CHANGES_LOCAL+" = this.addChange("+CHANGES_LOCAL+", "+oldValue+", "+newValue+");":""},ChangeDetectorJITGenerator.prototype._maybeFirstInBinding=function(r){var prev=change_detection_util_1.ChangeDetectionUtil.protoByIndex(this.records,r.selfIndex-1),firstInBinding=lang_1.isBlank(prev)||prev.bindingRecord!==r.bindingRecord;
return firstInBinding&&!r.bindingRecord.isDirectiveLifecycle()?this._names.getPropertyBindingIndex()+" = "+r.propertyBindingIndex+";":""},ChangeDetectorJITGenerator.prototype._maybeGenLastInDirective=function(r){return r.lastInDirective?"\n "+CHANGES_LOCAL+" = null;\n "+this._genNotifyOnPushDetectors(r)+"\n "+IS_CHANGED_LOCAL+" = false;\n ":""},ChangeDetectorJITGenerator.prototype._genOnCheck=function(r){var br=r.bindingRecord;return"if (!throwOnChange) "+this._names.getDirectiveName(br.directiveRecord.directiveIndex)+".ngDoCheck();"},ChangeDetectorJITGenerator.prototype._genOnInit=function(r){var br=r.bindingRecord;return"if (!throwOnChange && "+this._names.getStateName()+" === "+this.changeDetectorStateVarName+".NeverChecked) "+this._names.getDirectiveName(br.directiveRecord.directiveIndex)+".ngOnInit();"},ChangeDetectorJITGenerator.prototype._genOnChange=function(r){var br=r.bindingRecord;return"if (!throwOnChange && "+CHANGES_LOCAL+") "+this._names.getDirectiveName(br.directiveRecord.directiveIndex)+".ngOnChanges("+CHANGES_LOCAL+");"},ChangeDetectorJITGenerator.prototype._genNotifyOnPushDetectors=function(r){var br=r.bindingRecord;if(!r.lastInDirective||br.isDefaultChangeDetection())return"";var retVal="\n if("+IS_CHANGED_LOCAL+") {\n "+this._names.getDetectorName(br.directiveRecord.directiveIndex)+".markAsCheckOnce();\n }\n ";return retVal},ChangeDetectorJITGenerator}();return exports.ChangeDetectorJITGenerator=ChangeDetectorJITGenerator,global.define=__define,module.exports}),$__System.registerDynamic("bd",["86"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var change_detection_jit_generator_1=$__require("86"),JitProtoChangeDetector=function(){function JitProtoChangeDetector(definition){this.definition=definition,this._factory=this._createFactory(definition)}return JitProtoChangeDetector.isSupported=function(){return!0},JitProtoChangeDetector.prototype.instantiate=function(){return this._factory()},JitProtoChangeDetector.prototype._createFactory=function(definition){return new change_detection_jit_generator_1.ChangeDetectorJITGenerator(definition,"util","AbstractChangeDetector","ChangeDetectorStatus").generate()},JitProtoChangeDetector}();return exports.JitProtoChangeDetector=JitProtoChangeDetector,global.define=__define,module.exports}),$__System.registerDynamic("be",["10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},exceptions_1=$__require("10"),ExpressionChangedAfterItHasBeenCheckedException=function(_super){function ExpressionChangedAfterItHasBeenCheckedException(exp,oldValue,currValue,context){_super.call(this,"Expression '"+exp+"' has changed after it was checked. "+("Previous value: '"+oldValue+"'. Current value: '"+currValue+"'"))}return __extends(ExpressionChangedAfterItHasBeenCheckedException,_super),ExpressionChangedAfterItHasBeenCheckedException}(exceptions_1.BaseException);exports.ExpressionChangedAfterItHasBeenCheckedException=ExpressionChangedAfterItHasBeenCheckedException;var ChangeDetectionError=function(_super){function ChangeDetectionError(exp,originalException,originalStack,context){_super.call(this,originalException+" in ["+exp+"]",originalException,originalStack,context),this.location=exp}return __extends(ChangeDetectionError,_super),ChangeDetectionError}(exceptions_1.WrappedException);exports.ChangeDetectionError=ChangeDetectionError;var DehydratedException=function(_super){function DehydratedException(details){_super.call(this,"Attempt to use a dehydrated detector: "+details)}return __extends(DehydratedException,_super),DehydratedException}(exceptions_1.BaseException);exports.DehydratedException=DehydratedException;var EventEvaluationError=function(_super){function EventEvaluationError(eventName,originalException,originalStack,context){_super.call(this,'Error during evaluation of "'+eventName+'"',originalException,originalStack,context)}return __extends(EventEvaluationError,_super),EventEvaluationError}(exceptions_1.WrappedException);exports.EventEvaluationError=EventEvaluationError;var EventEvaluationErrorContext=function(){function EventEvaluationErrorContext(element,componentElement,context,locals,injector){this.element=element,this.componentElement=componentElement,this.context=context,this.locals=locals,this.injector=injector}return EventEvaluationErrorContext}();return exports.EventEvaluationErrorContext=EventEvaluationErrorContext,global.define=__define,module.exports}),$__System.registerDynamic("bf",["7","10","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),Locals=function(){function Locals(parent,current){this.parent=parent,this.current=current}return Locals.prototype.contains=function(name){return this.current.has(name)?!0:lang_1.isPresent(this.parent)?this.parent.contains(name):!1},Locals.prototype.get=function(name){if(this.current.has(name))return this.current.get(name);if(lang_1.isPresent(this.parent))return this.parent.get(name);throw new exceptions_1.BaseException("Cannot find '"+name+"'")},Locals.prototype.set=function(name,value){if(!this.current.has(name))throw new exceptions_1.BaseException("Setting of new keys post-construction is not supported. Key: "+name+".");this.current.set(name,value)},Locals.prototype.clearLocalValues=function(){collection_1.MapWrapper.clearValues(this.current)},Locals}();return exports.Locals=Locals,global.define=__define,module.exports}),$__System.registerDynamic("c0",[],!0,function($__require,exports,module){"use strict";function isObservable(value){return!1}var global=this,__define=global.define;return global.define=void 0,exports.isObservable=isObservable,global.define=__define,module.exports}),$__System.registerDynamic("87",["7","11","88","c1","be","bf","89","9a","c0","9"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),collection_1=$__require("11"),change_detection_util_1=$__require("88"),change_detector_ref_1=$__require("c1"),exceptions_1=$__require("be"),locals_1=$__require("bf"),constants_1=$__require("89"),profile_1=$__require("9a"),observable_facade_1=$__require("c0"),async_1=$__require("9"),_scope_check=profile_1.wtfCreateScope("ChangeDetector#check(ascii id, bool throwOnChange)"),_Context=function(){function _Context(element,componentElement,context,locals,injector,expression){this.element=element,this.componentElement=componentElement,this.context=context,this.locals=locals,this.injector=injector,this.expression=expression}return _Context}(),AbstractChangeDetector=function(){function AbstractChangeDetector(id,numberOfPropertyProtoRecords,bindingTargets,directiveIndices,strategy){this.id=id,this.numberOfPropertyProtoRecords=numberOfPropertyProtoRecords,this.bindingTargets=bindingTargets,this.directiveIndices=directiveIndices,this.strategy=strategy,this.contentChildren=[],this.viewChildren=[],this.state=constants_1.ChangeDetectorState.NeverChecked,this.locals=null,this.mode=null,this.pipes=null,this.ref=new change_detector_ref_1.ChangeDetectorRef_(this)}return AbstractChangeDetector.prototype.addContentChild=function(cd){this.contentChildren.push(cd),cd.parent=this},AbstractChangeDetector.prototype.removeContentChild=function(cd){collection_1.ListWrapper.remove(this.contentChildren,cd)},AbstractChangeDetector.prototype.addViewChild=function(cd){this.viewChildren.push(cd),cd.parent=this},AbstractChangeDetector.prototype.removeViewChild=function(cd){collection_1.ListWrapper.remove(this.viewChildren,cd)},AbstractChangeDetector.prototype.remove=function(){this.parent.removeContentChild(this)},AbstractChangeDetector.prototype.handleEvent=function(eventName,elIndex,event){this.hydrated()||this.throwDehydratedError(this.id+" -> "+eventName);try{var locals=new Map;locals.set("$event",event);var res=!this.handleEventInternal(eventName,elIndex,new locals_1.Locals(this.locals,locals));return this.markPathToRootAsCheckOnce(),res}catch(e){var c=this.dispatcher.getDebugContext(null,elIndex,null),context=lang_1.isPresent(c)?new exceptions_1.EventEvaluationErrorContext(c.element,c.componentElement,c.context,c.locals,c.injector):null;throw new exceptions_1.EventEvaluationError(eventName,e,e.stack,context)}},AbstractChangeDetector.prototype.handleEventInternal=function(eventName,elIndex,locals){return!1},AbstractChangeDetector.prototype.detectChanges=function(){this.runDetectChanges(!1)},AbstractChangeDetector.prototype.checkNoChanges=function(){lang_1.assertionsEnabled()&&this.runDetectChanges(!0)},AbstractChangeDetector.prototype.runDetectChanges=function(throwOnChange){if(this.mode!==constants_1.ChangeDetectionStrategy.Detached&&this.mode!==constants_1.ChangeDetectionStrategy.Checked&&this.state!==constants_1.ChangeDetectorState.Errored){var s=_scope_check(this.id,throwOnChange);this.detectChangesInRecords(throwOnChange),this._detectChangesContentChildren(throwOnChange),throwOnChange||this.afterContentLifecycleCallbacks(),this._detectChangesInViewChildren(throwOnChange),throwOnChange||this.afterViewLifecycleCallbacks(),this.mode===constants_1.ChangeDetectionStrategy.CheckOnce&&(this.mode=constants_1.ChangeDetectionStrategy.Checked),this.state=constants_1.ChangeDetectorState.CheckedBefore,profile_1.wtfLeave(s)}},AbstractChangeDetector.prototype.detectChangesInRecords=function(throwOnChange){this.hydrated()||this.throwDehydratedError(this.id);try{this.detectChangesInRecordsInternal(throwOnChange)}catch(e){e instanceof exceptions_1.ExpressionChangedAfterItHasBeenCheckedException||(this.state=constants_1.ChangeDetectorState.Errored),this._throwError(e,e.stack)}},AbstractChangeDetector.prototype.detectChangesInRecordsInternal=function(throwOnChange){},AbstractChangeDetector.prototype.hydrate=function(context,locals,dispatcher,pipes){this.dispatcher=dispatcher,this.mode=change_detection_util_1.ChangeDetectionUtil.changeDetectionMode(this.strategy),this.context=context,this.strategy===constants_1.ChangeDetectionStrategy.OnPushObserve&&this.observeComponent(context),this.locals=locals,this.pipes=pipes,this.hydrateDirectives(dispatcher),this.state=constants_1.ChangeDetectorState.NeverChecked},AbstractChangeDetector.prototype.hydrateDirectives=function(dispatcher){},AbstractChangeDetector.prototype.dehydrate=function(){this.dehydrateDirectives(!0),this.strategy===constants_1.ChangeDetectionStrategy.OnPushObserve&&this._unsubsribeFromObservables(),this._unsubscribeFromOutputs(),this.dispatcher=null,this.context=null,this.locals=null,this.pipes=null},AbstractChangeDetector.prototype.dehydrateDirectives=function(destroyPipes){},AbstractChangeDetector.prototype.hydrated=function(){return lang_1.isPresent(this.context)},AbstractChangeDetector.prototype.destroyRecursive=function(){this.dispatcher.notifyOnDestroy(),this.dehydrate();for(var children=this.contentChildren,i=0;i<children.length;i++)children[i].destroyRecursive();children=this.viewChildren;for(var i=0;i<children.length;i++)children[i].destroyRecursive()},AbstractChangeDetector.prototype.afterContentLifecycleCallbacks=function(){this.dispatcher.notifyAfterContentChecked(),this.afterContentLifecycleCallbacksInternal()},AbstractChangeDetector.prototype.afterContentLifecycleCallbacksInternal=function(){},AbstractChangeDetector.prototype.afterViewLifecycleCallbacks=function(){this.dispatcher.notifyAfterViewChecked(),this.afterViewLifecycleCallbacksInternal()},AbstractChangeDetector.prototype.afterViewLifecycleCallbacksInternal=function(){},AbstractChangeDetector.prototype._detectChangesContentChildren=function(throwOnChange){for(var c=this.contentChildren,i=0;i<c.length;++i)c[i].runDetectChanges(throwOnChange)},AbstractChangeDetector.prototype._detectChangesInViewChildren=function(throwOnChange){for(var c=this.viewChildren,i=0;i<c.length;++i)c[i].runDetectChanges(throwOnChange)},AbstractChangeDetector.prototype.markAsCheckOnce=function(){this.mode=constants_1.ChangeDetectionStrategy.CheckOnce},AbstractChangeDetector.prototype.markPathToRootAsCheckOnce=function(){for(var c=this;lang_1.isPresent(c)&&c.mode!==constants_1.ChangeDetectionStrategy.Detached;)c.mode===constants_1.ChangeDetectionStrategy.Checked&&(c.mode=constants_1.ChangeDetectionStrategy.CheckOnce),c=c.parent},AbstractChangeDetector.prototype._unsubsribeFromObservables=function(){if(lang_1.isPresent(this.subscriptions))for(var i=0;i<this.subscriptions.length;++i){var s=this.subscriptions[i];lang_1.isPresent(this.subscriptions[i])&&(s.cancel(),this.subscriptions[i]=null)}},AbstractChangeDetector.prototype._unsubscribeFromOutputs=function(){if(lang_1.isPresent(this.outputSubscriptions))for(var i=0;i<this.outputSubscriptions.length;++i)async_1.ObservableWrapper.dispose(this.outputSubscriptions[i]),this.outputSubscriptions[i]=null},AbstractChangeDetector.prototype.observeValue=function(value,index){var _this=this;return observable_facade_1.isObservable(value)&&(this._createArrayToStoreObservables(),lang_1.isBlank(this.subscriptions[index])?(this.streams[index]=value.changes,this.subscriptions[index]=value.changes.listen(function(_){return _this.ref.markForCheck()})):this.streams[index]!==value.changes&&(this.subscriptions[index].cancel(),this.streams[index]=value.changes,this.subscriptions[index]=value.changes.listen(function(_){return _this.ref.markForCheck()}))),value},AbstractChangeDetector.prototype.observeDirective=function(value,index){var _this=this;if(observable_facade_1.isObservable(value)){this._createArrayToStoreObservables();var arrayIndex=this.numberOfPropertyProtoRecords+index+2;this.streams[arrayIndex]=value.changes,this.subscriptions[arrayIndex]=value.changes.listen(function(_){return _this.ref.markForCheck()})}return value},AbstractChangeDetector.prototype.observeComponent=function(value){var _this=this;if(observable_facade_1.isObservable(value)){this._createArrayToStoreObservables();var index=this.numberOfPropertyProtoRecords+1;this.streams[index]=value.changes,this.subscriptions[index]=value.changes.listen(function(_){return _this.ref.markForCheck()})}return value},AbstractChangeDetector.prototype._createArrayToStoreObservables=function(){lang_1.isBlank(this.subscriptions)&&(this.subscriptions=collection_1.ListWrapper.createFixedSize(this.numberOfPropertyProtoRecords+this.directiveIndices.length+2),this.streams=collection_1.ListWrapper.createFixedSize(this.numberOfPropertyProtoRecords+this.directiveIndices.length+2))},AbstractChangeDetector.prototype.getDirectiveFor=function(directives,index){return directives.getDirectiveFor(this.directiveIndices[index])},AbstractChangeDetector.prototype.getDetectorFor=function(directives,index){return directives.getDetectorFor(this.directiveIndices[index])},AbstractChangeDetector.prototype.notifyDispatcher=function(value){this.dispatcher.notifyOnBinding(this._currentBinding(),value)},AbstractChangeDetector.prototype.logBindingUpdate=function(value){this.dispatcher.logBindingUpdate(this._currentBinding(),value)},AbstractChangeDetector.prototype.addChange=function(changes,oldValue,newValue){return lang_1.isBlank(changes)&&(changes={}),changes[this._currentBinding().name]=change_detection_util_1.ChangeDetectionUtil.simpleChange(oldValue,newValue),changes},AbstractChangeDetector.prototype._throwError=function(exception,stack){var error;try{var c=this.dispatcher.getDebugContext(null,this._currentBinding().elementIndex,null),context=lang_1.isPresent(c)?new _Context(c.element,c.componentElement,c.context,c.locals,c.injector,this._currentBinding().debug):null;error=new exceptions_1.ChangeDetectionError(this._currentBinding().debug,exception,stack,context)}catch(e){error=new exceptions_1.ChangeDetectionError(null,exception,stack,null)}throw error},AbstractChangeDetector.prototype.throwOnChangeError=function(oldValue,newValue){throw new exceptions_1.ExpressionChangedAfterItHasBeenCheckedException(this._currentBinding().debug,oldValue,newValue,null)},AbstractChangeDetector.prototype.throwDehydratedError=function(detail){throw new exceptions_1.DehydratedException(detail)},AbstractChangeDetector.prototype._currentBinding=function(){return this.bindingTargets[this.propertyBindingIndex]},AbstractChangeDetector}();return exports.AbstractChangeDetector=AbstractChangeDetector,global.define=__define,module.exports}),$__System.registerDynamic("b7",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0,function(RecordType){RecordType[RecordType.Self=0]="Self",RecordType[RecordType.Const=1]="Const",RecordType[RecordType.PrimitiveOp=2]="PrimitiveOp",RecordType[RecordType.PropertyRead=3]="PropertyRead",RecordType[RecordType.PropertyWrite=4]="PropertyWrite",RecordType[RecordType.Local=5]="Local",RecordType[RecordType.InvokeMethod=6]="InvokeMethod",RecordType[RecordType.InvokeClosure=7]="InvokeClosure",RecordType[RecordType.KeyedRead=8]="KeyedRead",RecordType[RecordType.KeyedWrite=9]="KeyedWrite",RecordType[RecordType.Pipe=10]="Pipe",RecordType[RecordType.Interpolate=11]="Interpolate",RecordType[RecordType.SafeProperty=12]="SafeProperty",RecordType[RecordType.CollectionLiteral=13]="CollectionLiteral",RecordType[RecordType.SafeMethodInvoke=14]="SafeMethodInvoke",RecordType[RecordType.DirectiveLifecycle=15]="DirectiveLifecycle",RecordType[RecordType.Chain=16]="Chain",RecordType[RecordType.SkipRecordsIf=17]="SkipRecordsIf",RecordType[RecordType.SkipRecordsIfNot=18]="SkipRecordsIfNot",RecordType[RecordType.SkipRecords=19]="SkipRecords"}(exports.RecordType||(exports.RecordType={}));var RecordType=exports.RecordType,ProtoRecord=function(){function ProtoRecord(mode,name,funcOrValue,args,fixedArgs,contextIndex,directiveIndex,selfIndex,bindingRecord,lastInBinding,lastInDirective,argumentToPureFunction,referencedBySelf,propertyBindingIndex){this.mode=mode,this.name=name,this.funcOrValue=funcOrValue,this.args=args,this.fixedArgs=fixedArgs,this.contextIndex=contextIndex,this.directiveIndex=directiveIndex,this.selfIndex=selfIndex,this.bindingRecord=bindingRecord,this.lastInBinding=lastInBinding,this.lastInDirective=lastInDirective,this.argumentToPureFunction=argumentToPureFunction,this.referencedBySelf=referencedBySelf,this.propertyBindingIndex=propertyBindingIndex}return ProtoRecord.prototype.isPureFunction=function(){return this.mode===RecordType.Interpolate||this.mode===RecordType.CollectionLiteral},ProtoRecord.prototype.isUsedByOtherRecord=function(){return!this.lastInBinding||this.referencedBySelf},ProtoRecord.prototype.shouldBeChecked=function(){return this.argumentToPureFunction||this.lastInBinding||this.isPureFunction()||this.isPipeRecord()},ProtoRecord.prototype.isPipeRecord=function(){return this.mode===RecordType.Pipe},ProtoRecord.prototype.isConditionalSkipRecord=function(){return this.mode===RecordType.SkipRecordsIfNot||this.mode===RecordType.SkipRecordsIf},ProtoRecord.prototype.isUnconditionalSkipRecord=function(){return this.mode===RecordType.SkipRecords},ProtoRecord.prototype.isSkipRecord=function(){return this.isConditionalSkipRecord()||this.isUnconditionalSkipRecord()},ProtoRecord.prototype.isLifeCycleRecord=function(){return this.mode===RecordType.DirectiveLifecycle},ProtoRecord}();return exports.ProtoRecord=ProtoRecord,global.define=__define,module.exports}),$__System.registerDynamic("bb",["7","10","11","87","88","89","b7","82","9"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),abstract_change_detector_1=$__require("87"),change_detection_util_1=$__require("88"),constants_1=$__require("89"),proto_record_1=$__require("b7"),reflection_1=$__require("82"),async_1=$__require("9"),DynamicChangeDetector=function(_super){function DynamicChangeDetector(id,numberOfPropertyProtoRecords,propertyBindingTargets,directiveIndices,strategy,_records,_eventBindings,_directiveRecords,_genConfig){_super.call(this,id,numberOfPropertyProtoRecords,propertyBindingTargets,directiveIndices,strategy),this._records=_records,this._eventBindings=_eventBindings,this._directiveRecords=_directiveRecords,this._genConfig=_genConfig;var len=_records.length+1;this.values=collection_1.ListWrapper.createFixedSize(len),this.localPipes=collection_1.ListWrapper.createFixedSize(len),this.prevContexts=collection_1.ListWrapper.createFixedSize(len),this.changes=collection_1.ListWrapper.createFixedSize(len),this.dehydrateDirectives(!1)}return __extends(DynamicChangeDetector,_super),DynamicChangeDetector.prototype.handleEventInternal=function(eventName,elIndex,locals){var _this=this,preventDefault=!1;return this._matchingEventBindings(eventName,elIndex).forEach(function(rec){var res=_this._processEventBinding(rec,locals);res===!1&&(preventDefault=!0)}),preventDefault},DynamicChangeDetector.prototype._processEventBinding=function(eb,locals){var values=collection_1.ListWrapper.createFixedSize(eb.records.length);values[0]=this.values[0];for(var protoIdx=0;protoIdx<eb.records.length;++protoIdx){var proto=eb.records[protoIdx];if(proto.isSkipRecord())protoIdx+=this._computeSkipLength(protoIdx,proto,values);else{var res=this._calculateCurrValue(proto,values,locals);if(proto.lastInBinding)return this._markPathAsCheckOnce(proto),res;this._writeSelf(proto,res,values)}}throw new exceptions_1.BaseException("Cannot be reached")},DynamicChangeDetector.prototype._computeSkipLength=function(protoIndex,proto,values){if(proto.mode===proto_record_1.RecordType.SkipRecords)return proto.fixedArgs[0]-protoIndex-1;if(proto.mode===proto_record_1.RecordType.SkipRecordsIf){var condition=this._readContext(proto,values);return condition?proto.fixedArgs[0]-protoIndex-1:0}if(proto.mode===proto_record_1.RecordType.SkipRecordsIfNot){var condition=this._readContext(proto,values);return condition?0:proto.fixedArgs[0]-protoIndex-1}throw new exceptions_1.BaseException("Cannot be reached")},DynamicChangeDetector.prototype._markPathAsCheckOnce=function(proto){if(!proto.bindingRecord.isDefaultChangeDetection()){var dir=proto.bindingRecord.directiveRecord;this._getDetectorFor(dir.directiveIndex).markPathToRootAsCheckOnce()}},DynamicChangeDetector.prototype._matchingEventBindings=function(eventName,elIndex){return this._eventBindings.filter(function(eb){return eb.eventName==eventName&&eb.elIndex===elIndex})},DynamicChangeDetector.prototype.hydrateDirectives=function(dispatcher){var _this=this;if(this.values[0]=this.context,this.dispatcher=dispatcher,this.strategy===constants_1.ChangeDetectionStrategy.OnPushObserve)for(var i=0;i<this.directiveIndices.length;++i){var index=this.directiveIndices[i];_super.prototype.observeDirective.call(this,this._getDirectiveFor(index),i)}this.outputSubscriptions=[];for(var i=0;i<this._directiveRecords.length;++i){var r=this._directiveRecords[i];lang_1.isPresent(r.outputs)&&r.outputs.forEach(function(output){var eventHandler=_this._createEventHandler(r.directiveIndex.elementIndex,output[1]),directive=_this._getDirectiveFor(r.directiveIndex),getter=reflection_1.reflector.getter(output[0]);_this.outputSubscriptions.push(async_1.ObservableWrapper.subscribe(getter(directive),eventHandler))})}},DynamicChangeDetector.prototype._createEventHandler=function(boundElementIndex,eventName){var _this=this;return function(event){return _this.handleEvent(eventName,boundElementIndex,event)}},DynamicChangeDetector.prototype.dehydrateDirectives=function(destroyPipes){destroyPipes&&(this._destroyPipes(),this._destroyDirectives()),this.values[0]=null,collection_1.ListWrapper.fill(this.values,change_detection_util_1.ChangeDetectionUtil.uninitialized,1),collection_1.ListWrapper.fill(this.changes,!1),collection_1.ListWrapper.fill(this.localPipes,null),collection_1.ListWrapper.fill(this.prevContexts,change_detection_util_1.ChangeDetectionUtil.uninitialized)},DynamicChangeDetector.prototype._destroyPipes=function(){for(var i=0;i<this.localPipes.length;++i)lang_1.isPresent(this.localPipes[i])&&change_detection_util_1.ChangeDetectionUtil.callPipeOnDestroy(this.localPipes[i])},DynamicChangeDetector.prototype._destroyDirectives=function(){for(var i=0;i<this._directiveRecords.length;++i){var record=this._directiveRecords[i];record.callOnDestroy&&this._getDirectiveFor(record.directiveIndex).ngOnDestroy()}},DynamicChangeDetector.prototype.checkNoChanges=function(){this.runDetectChanges(!0)},DynamicChangeDetector.prototype.detectChangesInRecordsInternal=function(throwOnChange){for(var protos=this._records,changes=null,isChanged=!1,protoIdx=0;protoIdx<protos.length;++protoIdx){var proto=protos[protoIdx],bindingRecord=proto.bindingRecord,directiveRecord=bindingRecord.directiveRecord;if(this._firstInBinding(proto)&&(this.propertyBindingIndex=proto.propertyBindingIndex),proto.isLifeCycleRecord())"DoCheck"!==proto.name||throwOnChange?"OnInit"!==proto.name||throwOnChange||this.state!=constants_1.ChangeDetectorState.NeverChecked?"OnChanges"===proto.name&&lang_1.isPresent(changes)&&!throwOnChange&&this._getDirectiveFor(directiveRecord.directiveIndex).ngOnChanges(changes):this._getDirectiveFor(directiveRecord.directiveIndex).ngOnInit():this._getDirectiveFor(directiveRecord.directiveIndex).ngDoCheck();else if(proto.isSkipRecord())protoIdx+=this._computeSkipLength(protoIdx,proto,this.values);else{var change=this._check(proto,throwOnChange,this.values,this.locals);lang_1.isPresent(change)&&(this._updateDirectiveOrElement(change,bindingRecord),isChanged=!0,changes=this._addChange(bindingRecord,change,changes))}proto.lastInDirective&&(changes=null,isChanged&&!bindingRecord.isDefaultChangeDetection()&&this._getDetectorFor(directiveRecord.directiveIndex).markAsCheckOnce(),isChanged=!1)}},DynamicChangeDetector.prototype._firstInBinding=function(r){var prev=change_detection_util_1.ChangeDetectionUtil.protoByIndex(this._records,r.selfIndex-1);return lang_1.isBlank(prev)||prev.bindingRecord!==r.bindingRecord},DynamicChangeDetector.prototype.afterContentLifecycleCallbacksInternal=function(){for(var dirs=this._directiveRecords,i=dirs.length-1;i>=0;--i){var dir=dirs[i];dir.callAfterContentInit&&this.state==constants_1.ChangeDetectorState.NeverChecked&&this._getDirectiveFor(dir.directiveIndex).ngAfterContentInit(),dir.callAfterContentChecked&&this._getDirectiveFor(dir.directiveIndex).ngAfterContentChecked()}},DynamicChangeDetector.prototype.afterViewLifecycleCallbacksInternal=function(){for(var dirs=this._directiveRecords,i=dirs.length-1;i>=0;--i){var dir=dirs[i];dir.callAfterViewInit&&this.state==constants_1.ChangeDetectorState.NeverChecked&&this._getDirectiveFor(dir.directiveIndex).ngAfterViewInit(),dir.callAfterViewChecked&&this._getDirectiveFor(dir.directiveIndex).ngAfterViewChecked()}},DynamicChangeDetector.prototype._updateDirectiveOrElement=function(change,bindingRecord){if(lang_1.isBlank(bindingRecord.directiveRecord))_super.prototype.notifyDispatcher.call(this,change.currentValue);else{var directiveIndex=bindingRecord.directiveRecord.directiveIndex;bindingRecord.setter(this._getDirectiveFor(directiveIndex),change.currentValue)}this._genConfig.logBindingUpdate&&_super.prototype.logBindingUpdate.call(this,change.currentValue)},DynamicChangeDetector.prototype._addChange=function(bindingRecord,change,changes){return bindingRecord.callOnChanges()?_super.prototype.addChange.call(this,changes,change.previousValue,change.currentValue):changes},DynamicChangeDetector.prototype._getDirectiveFor=function(directiveIndex){return this.dispatcher.getDirectiveFor(directiveIndex)},DynamicChangeDetector.prototype._getDetectorFor=function(directiveIndex){return this.dispatcher.getDetectorFor(directiveIndex)},DynamicChangeDetector.prototype._check=function(proto,throwOnChange,values,locals){return proto.isPipeRecord()?this._pipeCheck(proto,throwOnChange,values):this._referenceCheck(proto,throwOnChange,values,locals)},DynamicChangeDetector.prototype._referenceCheck=function(proto,throwOnChange,values,locals){if(this._pureFuncAndArgsDidNotChange(proto))return this._setChanged(proto,!1),null;var currValue=this._calculateCurrValue(proto,values,locals);if(this.strategy===constants_1.ChangeDetectionStrategy.OnPushObserve&&_super.prototype.observeValue.call(this,currValue,proto.selfIndex),proto.shouldBeChecked()){var prevValue=this._readSelf(proto,values),detectedChange=throwOnChange?!change_detection_util_1.ChangeDetectionUtil.devModeEqual(prevValue,currValue):change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue,currValue);if(detectedChange){if(proto.lastInBinding){var change=change_detection_util_1.ChangeDetectionUtil.simpleChange(prevValue,currValue);return throwOnChange&&this.throwOnChangeError(prevValue,currValue),this._writeSelf(proto,currValue,values),this._setChanged(proto,!0),change}return this._writeSelf(proto,currValue,values),this._setChanged(proto,!0),null}return this._setChanged(proto,!1),null}return this._writeSelf(proto,currValue,values),this._setChanged(proto,!0),null},DynamicChangeDetector.prototype._calculateCurrValue=function(proto,values,locals){switch(proto.mode){case proto_record_1.RecordType.Self:return this._readContext(proto,values);case proto_record_1.RecordType.Const:return proto.funcOrValue;case proto_record_1.RecordType.PropertyRead:var context=this._readContext(proto,values);return proto.funcOrValue(context);case proto_record_1.RecordType.SafeProperty:var context=this._readContext(proto,values);return lang_1.isBlank(context)?null:proto.funcOrValue(context);case proto_record_1.RecordType.PropertyWrite:var context=this._readContext(proto,values),value=this._readArgs(proto,values)[0];return proto.funcOrValue(context,value),value;case proto_record_1.RecordType.KeyedWrite:var context=this._readContext(proto,values),key=this._readArgs(proto,values)[0],value=this._readArgs(proto,values)[1];return context[key]=value,value;case proto_record_1.RecordType.Local:return locals.get(proto.name);case proto_record_1.RecordType.InvokeMethod:var context=this._readContext(proto,values),args=this._readArgs(proto,values);return proto.funcOrValue(context,args);case proto_record_1.RecordType.SafeMethodInvoke:var context=this._readContext(proto,values);if(lang_1.isBlank(context))return null;var args=this._readArgs(proto,values);return proto.funcOrValue(context,args);case proto_record_1.RecordType.KeyedRead:var arg=this._readArgs(proto,values)[0];return this._readContext(proto,values)[arg];case proto_record_1.RecordType.Chain:var args=this._readArgs(proto,values);return args[args.length-1];case proto_record_1.RecordType.InvokeClosure:return lang_1.FunctionWrapper.apply(this._readContext(proto,values),this._readArgs(proto,values));case proto_record_1.RecordType.Interpolate:case proto_record_1.RecordType.PrimitiveOp:case proto_record_1.RecordType.CollectionLiteral:return lang_1.FunctionWrapper.apply(proto.funcOrValue,this._readArgs(proto,values));default:throw new exceptions_1.BaseException("Unknown operation "+proto.mode)}},DynamicChangeDetector.prototype._pipeCheck=function(proto,throwOnChange,values){var context=this._readContext(proto,values),selectedPipe=this._pipeFor(proto,context);if(!selectedPipe.pure||this._argsOrContextChanged(proto)){var args=this._readArgs(proto,values),currValue=selectedPipe.pipe.transform(context,args);if(proto.shouldBeChecked()){var prevValue=this._readSelf(proto,values),detectedChange=throwOnChange?!change_detection_util_1.ChangeDetectionUtil.devModeEqual(prevValue,currValue):change_detection_util_1.ChangeDetectionUtil.looseNotIdentical(prevValue,currValue);
if(detectedChange){if(currValue=change_detection_util_1.ChangeDetectionUtil.unwrapValue(currValue),proto.lastInBinding){var change=change_detection_util_1.ChangeDetectionUtil.simpleChange(prevValue,currValue);return throwOnChange&&this.throwOnChangeError(prevValue,currValue),this._writeSelf(proto,currValue,values),this._setChanged(proto,!0),change}return this._writeSelf(proto,currValue,values),this._setChanged(proto,!0),null}return this._setChanged(proto,!1),null}return this._writeSelf(proto,currValue,values),this._setChanged(proto,!0),null}},DynamicChangeDetector.prototype._pipeFor=function(proto,context){var storedPipe=this._readPipe(proto);if(lang_1.isPresent(storedPipe))return storedPipe;var pipe=this.pipes.get(proto.name);return this._writePipe(proto,pipe),pipe},DynamicChangeDetector.prototype._readContext=function(proto,values){return-1==proto.contextIndex?this._getDirectiveFor(proto.directiveIndex):values[proto.contextIndex]},DynamicChangeDetector.prototype._readSelf=function(proto,values){return values[proto.selfIndex]},DynamicChangeDetector.prototype._writeSelf=function(proto,value,values){values[proto.selfIndex]=value},DynamicChangeDetector.prototype._readPipe=function(proto){return this.localPipes[proto.selfIndex]},DynamicChangeDetector.prototype._writePipe=function(proto,value){this.localPipes[proto.selfIndex]=value},DynamicChangeDetector.prototype._setChanged=function(proto,value){proto.argumentToPureFunction&&(this.changes[proto.selfIndex]=value)},DynamicChangeDetector.prototype._pureFuncAndArgsDidNotChange=function(proto){return proto.isPureFunction()&&!this._argsChanged(proto)},DynamicChangeDetector.prototype._argsChanged=function(proto){for(var args=proto.args,i=0;i<args.length;++i)if(this.changes[args[i]])return!0;return!1},DynamicChangeDetector.prototype._argsOrContextChanged=function(proto){return this._argsChanged(proto)||this.changes[proto.contextIndex]},DynamicChangeDetector.prototype._readArgs=function(proto,values){for(var res=collection_1.ListWrapper.createFixedSize(proto.args.length),args=proto.args,i=0;i<args.length;++i)res[i]=values[args[i]];return res},DynamicChangeDetector}(abstract_change_detector_1.AbstractChangeDetector);return exports.DynamicChangeDetector=DynamicChangeDetector,global.define=__define,module.exports}),$__System.registerDynamic("c1",["89"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},constants_1=$__require("89"),ChangeDetectorRef=function(){function ChangeDetectorRef(){}return ChangeDetectorRef}();exports.ChangeDetectorRef=ChangeDetectorRef;var ChangeDetectorRef_=function(_super){function ChangeDetectorRef_(_cd){_super.call(this),this._cd=_cd}return __extends(ChangeDetectorRef_,_super),ChangeDetectorRef_.prototype.markForCheck=function(){this._cd.markPathToRootAsCheckOnce()},ChangeDetectorRef_.prototype.detach=function(){this._cd.mode=constants_1.ChangeDetectionStrategy.Detached},ChangeDetectorRef_.prototype.detectChanges=function(){this._cd.detectChanges()},ChangeDetectorRef_.prototype.checkNoChanges=function(){this._cd.checkNoChanges()},ChangeDetectorRef_.prototype.reattach=function(){this._cd.mode=constants_1.ChangeDetectionStrategy.CheckAlways,this.markForCheck()},ChangeDetectorRef_}(ChangeDetectorRef);return exports.ChangeDetectorRef_=ChangeDetectorRef_,global.define=__define,module.exports}),$__System.registerDynamic("c2",[],!0,function($__require,exports,module){"use strict";function implementsOnDestroy(pipe){return pipe.constructor.prototype.ngOnDestroy}var global=this,__define=global.define;return global.define=void 0,exports.implementsOnDestroy=implementsOnDestroy,global.define=__define,module.exports}),$__System.registerDynamic("c3",["7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),DIRECTIVE_LIFECYCLE="directiveLifecycle",BINDING="native",DIRECTIVE="directive",ELEMENT_PROPERTY="elementProperty",ELEMENT_ATTRIBUTE="elementAttribute",ELEMENT_CLASS="elementClass",ELEMENT_STYLE="elementStyle",TEXT_NODE="textNode",EVENT="event",HOST_EVENT="hostEvent",BindingTarget=function(){function BindingTarget(mode,elementIndex,name,unit,debug){this.mode=mode,this.elementIndex=elementIndex,this.name=name,this.unit=unit,this.debug=debug}return BindingTarget.prototype.isDirective=function(){return this.mode===DIRECTIVE},BindingTarget.prototype.isElementProperty=function(){return this.mode===ELEMENT_PROPERTY},BindingTarget.prototype.isElementAttribute=function(){return this.mode===ELEMENT_ATTRIBUTE},BindingTarget.prototype.isElementClass=function(){return this.mode===ELEMENT_CLASS},BindingTarget.prototype.isElementStyle=function(){return this.mode===ELEMENT_STYLE},BindingTarget.prototype.isTextNode=function(){return this.mode===TEXT_NODE},BindingTarget}();exports.BindingTarget=BindingTarget;var BindingRecord=function(){function BindingRecord(mode,target,implicitReceiver,ast,setter,lifecycleEvent,directiveRecord){this.mode=mode,this.target=target,this.implicitReceiver=implicitReceiver,this.ast=ast,this.setter=setter,this.lifecycleEvent=lifecycleEvent,this.directiveRecord=directiveRecord}return BindingRecord.prototype.isDirectiveLifecycle=function(){return this.mode===DIRECTIVE_LIFECYCLE},BindingRecord.prototype.callOnChanges=function(){return lang_1.isPresent(this.directiveRecord)&&this.directiveRecord.callOnChanges},BindingRecord.prototype.isDefaultChangeDetection=function(){return lang_1.isBlank(this.directiveRecord)||this.directiveRecord.isDefaultChangeDetection()},BindingRecord.createDirectiveDoCheck=function(directiveRecord){return new BindingRecord(DIRECTIVE_LIFECYCLE,null,0,null,null,"DoCheck",directiveRecord)},BindingRecord.createDirectiveOnInit=function(directiveRecord){return new BindingRecord(DIRECTIVE_LIFECYCLE,null,0,null,null,"OnInit",directiveRecord)},BindingRecord.createDirectiveOnChanges=function(directiveRecord){return new BindingRecord(DIRECTIVE_LIFECYCLE,null,0,null,null,"OnChanges",directiveRecord)},BindingRecord.createForDirective=function(ast,propertyName,setter,directiveRecord){var elementIndex=directiveRecord.directiveIndex.elementIndex,t=new BindingTarget(DIRECTIVE,elementIndex,propertyName,null,ast.toString());return new BindingRecord(DIRECTIVE,t,0,ast,setter,null,directiveRecord)},BindingRecord.createForElementProperty=function(ast,elementIndex,propertyName){var t=new BindingTarget(ELEMENT_PROPERTY,elementIndex,propertyName,null,ast.toString());return new BindingRecord(BINDING,t,0,ast,null,null,null)},BindingRecord.createForElementAttribute=function(ast,elementIndex,attributeName){var t=new BindingTarget(ELEMENT_ATTRIBUTE,elementIndex,attributeName,null,ast.toString());return new BindingRecord(BINDING,t,0,ast,null,null,null)},BindingRecord.createForElementClass=function(ast,elementIndex,className){var t=new BindingTarget(ELEMENT_CLASS,elementIndex,className,null,ast.toString());return new BindingRecord(BINDING,t,0,ast,null,null,null)},BindingRecord.createForElementStyle=function(ast,elementIndex,styleName,unit){var t=new BindingTarget(ELEMENT_STYLE,elementIndex,styleName,unit,ast.toString());return new BindingRecord(BINDING,t,0,ast,null,null,null)},BindingRecord.createForHostProperty=function(directiveIndex,ast,propertyName){var t=new BindingTarget(ELEMENT_PROPERTY,directiveIndex.elementIndex,propertyName,null,ast.toString());return new BindingRecord(BINDING,t,directiveIndex,ast,null,null,null)},BindingRecord.createForHostAttribute=function(directiveIndex,ast,attributeName){var t=new BindingTarget(ELEMENT_ATTRIBUTE,directiveIndex.elementIndex,attributeName,null,ast.toString());return new BindingRecord(BINDING,t,directiveIndex,ast,null,null,null)},BindingRecord.createForHostClass=function(directiveIndex,ast,className){var t=new BindingTarget(ELEMENT_CLASS,directiveIndex.elementIndex,className,null,ast.toString());return new BindingRecord(BINDING,t,directiveIndex,ast,null,null,null)},BindingRecord.createForHostStyle=function(directiveIndex,ast,styleName,unit){var t=new BindingTarget(ELEMENT_STYLE,directiveIndex.elementIndex,styleName,unit,ast.toString());return new BindingRecord(BINDING,t,directiveIndex,ast,null,null,null)},BindingRecord.createForTextNode=function(ast,elementIndex){var t=new BindingTarget(TEXT_NODE,elementIndex,null,null,ast.toString());return new BindingRecord(BINDING,t,0,ast,null,null,null)},BindingRecord.createForEvent=function(ast,eventName,elementIndex){var t=new BindingTarget(EVENT,elementIndex,eventName,null,ast.toString());return new BindingRecord(EVENT,t,0,ast,null,null,null)},BindingRecord.createForHostEvent=function(ast,eventName,directiveRecord){var directiveIndex=directiveRecord.directiveIndex,t=new BindingTarget(HOST_EVENT,directiveIndex.elementIndex,eventName,null,ast.toString());return new BindingRecord(HOST_EVENT,t,directiveIndex,ast,null,null,directiveRecord)},BindingRecord}();return exports.BindingRecord=BindingRecord,global.define=__define,module.exports}),$__System.registerDynamic("89",["7"],!0,function($__require,exports,module){"use strict";function isDefaultChangeDetectionStrategy(changeDetectionStrategy){return lang_1.isBlank(changeDetectionStrategy)||changeDetectionStrategy===ChangeDetectionStrategy.Default}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");!function(ChangeDetectorState){ChangeDetectorState[ChangeDetectorState.NeverChecked=0]="NeverChecked",ChangeDetectorState[ChangeDetectorState.CheckedBefore=1]="CheckedBefore",ChangeDetectorState[ChangeDetectorState.Errored=2]="Errored"}(exports.ChangeDetectorState||(exports.ChangeDetectorState={}));var ChangeDetectorState=exports.ChangeDetectorState;!function(ChangeDetectionStrategy){ChangeDetectionStrategy[ChangeDetectionStrategy.CheckOnce=0]="CheckOnce",ChangeDetectionStrategy[ChangeDetectionStrategy.Checked=1]="Checked",ChangeDetectionStrategy[ChangeDetectionStrategy.CheckAlways=2]="CheckAlways",ChangeDetectionStrategy[ChangeDetectionStrategy.Detached=3]="Detached",ChangeDetectionStrategy[ChangeDetectionStrategy.OnPush=4]="OnPush",ChangeDetectionStrategy[ChangeDetectionStrategy.Default=5]="Default",ChangeDetectionStrategy[ChangeDetectionStrategy.OnPushObserve=6]="OnPushObserve"}(exports.ChangeDetectionStrategy||(exports.ChangeDetectionStrategy={}));var ChangeDetectionStrategy=exports.ChangeDetectionStrategy;return exports.CHANGE_DETECTION_STRATEGY_VALUES=[ChangeDetectionStrategy.CheckOnce,ChangeDetectionStrategy.Checked,ChangeDetectionStrategy.CheckAlways,ChangeDetectionStrategy.Detached,ChangeDetectionStrategy.OnPush,ChangeDetectionStrategy.Default,ChangeDetectionStrategy.OnPushObserve],exports.CHANGE_DETECTOR_STATE_VALUES=[ChangeDetectorState.NeverChecked,ChangeDetectorState.CheckedBefore,ChangeDetectorState.Errored],exports.isDefaultChangeDetectionStrategy=isDefaultChangeDetectionStrategy,global.define=__define,module.exports}),$__System.registerDynamic("bc",["7","89"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),constants_1=$__require("89"),DirectiveIndex=function(){function DirectiveIndex(elementIndex,directiveIndex){this.elementIndex=elementIndex,this.directiveIndex=directiveIndex}return Object.defineProperty(DirectiveIndex.prototype,"name",{get:function(){return this.elementIndex+"_"+this.directiveIndex},enumerable:!0,configurable:!0}),DirectiveIndex}();exports.DirectiveIndex=DirectiveIndex;var DirectiveRecord=function(){function DirectiveRecord(_a){var _b=void 0===_a?{}:_a,directiveIndex=_b.directiveIndex,callAfterContentInit=_b.callAfterContentInit,callAfterContentChecked=_b.callAfterContentChecked,callAfterViewInit=_b.callAfterViewInit,callAfterViewChecked=_b.callAfterViewChecked,callOnChanges=_b.callOnChanges,callDoCheck=_b.callDoCheck,callOnInit=_b.callOnInit,callOnDestroy=_b.callOnDestroy,changeDetection=_b.changeDetection,outputs=_b.outputs;this.directiveIndex=directiveIndex,this.callAfterContentInit=lang_1.normalizeBool(callAfterContentInit),this.callAfterContentChecked=lang_1.normalizeBool(callAfterContentChecked),this.callOnChanges=lang_1.normalizeBool(callOnChanges),this.callAfterViewInit=lang_1.normalizeBool(callAfterViewInit),this.callAfterViewChecked=lang_1.normalizeBool(callAfterViewChecked),this.callDoCheck=lang_1.normalizeBool(callDoCheck),this.callOnInit=lang_1.normalizeBool(callOnInit),this.callOnDestroy=lang_1.normalizeBool(callOnDestroy),this.changeDetection=changeDetection,this.outputs=outputs}return DirectiveRecord.prototype.isDefaultChangeDetection=function(){return constants_1.isDefaultChangeDetectionStrategy(this.changeDetection)},DirectiveRecord}();return exports.DirectiveRecord=DirectiveRecord,global.define=__define,module.exports}),$__System.registerDynamic("88",["7","10","11","89","c2","c3","bc"],!0,function($__require,exports,module){"use strict";function _simpleChange(previousValue,currentValue){var index=_simpleChangesIndex++%20,s=_simpleChanges[index];return s.previousValue=previousValue,s.currentValue=currentValue,s}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),constants_1=$__require("89"),pipe_lifecycle_reflector_1=$__require("c2"),binding_record_1=$__require("c3"),directive_record_1=$__require("bc"),WrappedValue=function(){function WrappedValue(wrapped){this.wrapped=wrapped}return WrappedValue.wrap=function(value){var w=_wrappedValues[_wrappedIndex++%5];return w.wrapped=value,w},WrappedValue}();exports.WrappedValue=WrappedValue;var _wrappedValues=[new WrappedValue(null),new WrappedValue(null),new WrappedValue(null),new WrappedValue(null),new WrappedValue(null)],_wrappedIndex=0,SimpleChange=function(){function SimpleChange(previousValue,currentValue){this.previousValue=previousValue,this.currentValue=currentValue}return SimpleChange.prototype.isFirstChange=function(){return this.previousValue===ChangeDetectionUtil.uninitialized},SimpleChange}();exports.SimpleChange=SimpleChange;var _simpleChangesIndex=0,_simpleChanges=[new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null),new SimpleChange(null,null)],ChangeDetectionUtil=function(){function ChangeDetectionUtil(){}return ChangeDetectionUtil.arrayFn0=function(){return[]},ChangeDetectionUtil.arrayFn1=function(a1){return[a1]},ChangeDetectionUtil.arrayFn2=function(a1,a2){return[a1,a2]},ChangeDetectionUtil.arrayFn3=function(a1,a2,a3){return[a1,a2,a3]},ChangeDetectionUtil.arrayFn4=function(a1,a2,a3,a4){return[a1,a2,a3,a4]},ChangeDetectionUtil.arrayFn5=function(a1,a2,a3,a4,a5){return[a1,a2,a3,a4,a5]},ChangeDetectionUtil.arrayFn6=function(a1,a2,a3,a4,a5,a6){return[a1,a2,a3,a4,a5,a6]},ChangeDetectionUtil.arrayFn7=function(a1,a2,a3,a4,a5,a6,a7){return[a1,a2,a3,a4,a5,a6,a7]},ChangeDetectionUtil.arrayFn8=function(a1,a2,a3,a4,a5,a6,a7,a8){return[a1,a2,a3,a4,a5,a6,a7,a8]},ChangeDetectionUtil.arrayFn9=function(a1,a2,a3,a4,a5,a6,a7,a8,a9){return[a1,a2,a3,a4,a5,a6,a7,a8,a9]},ChangeDetectionUtil.operation_negate=function(value){return!value},ChangeDetectionUtil.operation_add=function(left,right){return left+right},ChangeDetectionUtil.operation_subtract=function(left,right){return left-right},ChangeDetectionUtil.operation_multiply=function(left,right){return left*right},ChangeDetectionUtil.operation_divide=function(left,right){return left/right},ChangeDetectionUtil.operation_remainder=function(left,right){return left%right},ChangeDetectionUtil.operation_equals=function(left,right){return left==right},ChangeDetectionUtil.operation_not_equals=function(left,right){return left!=right},ChangeDetectionUtil.operation_identical=function(left,right){return left===right},ChangeDetectionUtil.operation_not_identical=function(left,right){return left!==right},ChangeDetectionUtil.operation_less_then=function(left,right){return right>left},ChangeDetectionUtil.operation_greater_then=function(left,right){return left>right},ChangeDetectionUtil.operation_less_or_equals_then=function(left,right){return right>=left},ChangeDetectionUtil.operation_greater_or_equals_then=function(left,right){return left>=right},ChangeDetectionUtil.cond=function(cond,trueVal,falseVal){return cond?trueVal:falseVal},ChangeDetectionUtil.mapFn=function(keys){function buildMap(values){for(var res=collection_1.StringMapWrapper.create(),i=0;i<keys.length;++i)collection_1.StringMapWrapper.set(res,keys[i],values[i]);return res}switch(keys.length){case 0:return function(){return[]};case 1:return function(a1){return buildMap([a1])};case 2:return function(a1,a2){return buildMap([a1,a2])};case 3:return function(a1,a2,a3){return buildMap([a1,a2,a3])};case 4:return function(a1,a2,a3,a4){return buildMap([a1,a2,a3,a4])};case 5:return function(a1,a2,a3,a4,a5){return buildMap([a1,a2,a3,a4,a5])};case 6:return function(a1,a2,a3,a4,a5,a6){return buildMap([a1,a2,a3,a4,a5,a6])};case 7:return function(a1,a2,a3,a4,a5,a6,a7){return buildMap([a1,a2,a3,a4,a5,a6,a7])};case 8:return function(a1,a2,a3,a4,a5,a6,a7,a8){return buildMap([a1,a2,a3,a4,a5,a6,a7,a8])};case 9:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9){return buildMap([a1,a2,a3,a4,a5,a6,a7,a8,a9])};default:throw new exceptions_1.BaseException("Does not support literal maps with more than 9 elements")}},ChangeDetectionUtil.keyedAccess=function(obj,args){return obj[args[0]]},ChangeDetectionUtil.unwrapValue=function(value){return value instanceof WrappedValue?value.wrapped:value},ChangeDetectionUtil.changeDetectionMode=function(strategy){return constants_1.isDefaultChangeDetectionStrategy(strategy)?constants_1.ChangeDetectionStrategy.CheckAlways:constants_1.ChangeDetectionStrategy.CheckOnce},ChangeDetectionUtil.simpleChange=function(previousValue,currentValue){return _simpleChange(previousValue,currentValue)},ChangeDetectionUtil.isValueBlank=function(value){return lang_1.isBlank(value)},ChangeDetectionUtil.s=function(value){return lang_1.isPresent(value)?""+value:""},ChangeDetectionUtil.protoByIndex=function(protos,selfIndex){return 1>selfIndex?null:protos[selfIndex-1]},ChangeDetectionUtil.callPipeOnDestroy=function(selectedPipe){pipe_lifecycle_reflector_1.implementsOnDestroy(selectedPipe.pipe)&&selectedPipe.pipe.ngOnDestroy()},ChangeDetectionUtil.bindingTarget=function(mode,elementIndex,name,unit,debug){return new binding_record_1.BindingTarget(mode,elementIndex,name,unit,debug)},ChangeDetectionUtil.directiveIndex=function(elementIndex,directiveIndex){return new directive_record_1.DirectiveIndex(elementIndex,directiveIndex)},ChangeDetectionUtil.looseNotIdentical=function(a,b){return!lang_1.looseIdentical(a,b)},ChangeDetectionUtil.devModeEqual=function(a,b){return collection_1.isListLikeIterable(a)&&collection_1.isListLikeIterable(b)?collection_1.areIterablesEqual(a,b,ChangeDetectionUtil.devModeEqual):collection_1.isListLikeIterable(a)||lang_1.isPrimitive(a)||collection_1.isListLikeIterable(b)||lang_1.isPrimitive(b)?lang_1.looseIdentical(a,b):!0},ChangeDetectionUtil.uninitialized=lang_1.CONST_EXPR(new Object),ChangeDetectionUtil}();return exports.ChangeDetectionUtil=ChangeDetectionUtil,global.define=__define,module.exports}),$__System.registerDynamic("6c",["ad","ae","af","b0","7","72","b1","b3","bf","be","aa","89","ba","bd","c3","bc","bb","c1","88"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var iterable_differs_1=$__require("ad"),default_iterable_differ_1=$__require("ae"),keyvalue_differs_1=$__require("af"),default_keyvalue_differ_1=$__require("b0"),lang_1=$__require("7"),ast_1=$__require("72");exports.ASTWithSource=ast_1.ASTWithSource,exports.AST=ast_1.AST,exports.AstTransformer=ast_1.AstTransformer,exports.PropertyRead=ast_1.PropertyRead,exports.LiteralArray=ast_1.LiteralArray,exports.ImplicitReceiver=ast_1.ImplicitReceiver;var lexer_1=$__require("b1");exports.Lexer=lexer_1.Lexer;var parser_1=$__require("b3");exports.Parser=parser_1.Parser;var locals_1=$__require("bf");exports.Locals=locals_1.Locals;var exceptions_1=$__require("be");exports.DehydratedException=exceptions_1.DehydratedException,exports.ExpressionChangedAfterItHasBeenCheckedException=exceptions_1.ExpressionChangedAfterItHasBeenCheckedException,exports.ChangeDetectionError=exceptions_1.ChangeDetectionError;var interfaces_1=$__require("aa");exports.ChangeDetectorDefinition=interfaces_1.ChangeDetectorDefinition,exports.DebugContext=interfaces_1.DebugContext,exports.ChangeDetectorGenConfig=interfaces_1.ChangeDetectorGenConfig;var constants_1=$__require("89");exports.ChangeDetectionStrategy=constants_1.ChangeDetectionStrategy,exports.CHANGE_DETECTION_STRATEGY_VALUES=constants_1.CHANGE_DETECTION_STRATEGY_VALUES;var proto_change_detector_1=$__require("ba");exports.DynamicProtoChangeDetector=proto_change_detector_1.DynamicProtoChangeDetector;var jit_proto_change_detector_1=$__require("bd");exports.JitProtoChangeDetector=jit_proto_change_detector_1.JitProtoChangeDetector;var binding_record_1=$__require("c3");exports.BindingRecord=binding_record_1.BindingRecord,exports.BindingTarget=binding_record_1.BindingTarget;var directive_record_1=$__require("bc");exports.DirectiveIndex=directive_record_1.DirectiveIndex,exports.DirectiveRecord=directive_record_1.DirectiveRecord;var dynamic_change_detector_1=$__require("bb");exports.DynamicChangeDetector=dynamic_change_detector_1.DynamicChangeDetector;var change_detector_ref_1=$__require("c1");exports.ChangeDetectorRef=change_detector_ref_1.ChangeDetectorRef;var iterable_differs_2=$__require("ad");exports.IterableDiffers=iterable_differs_2.IterableDiffers;var keyvalue_differs_2=$__require("af");exports.KeyValueDiffers=keyvalue_differs_2.KeyValueDiffers;var change_detection_util_1=$__require("88");return exports.WrappedValue=change_detection_util_1.WrappedValue,exports.SimpleChange=change_detection_util_1.SimpleChange,exports.keyValDiff=lang_1.CONST_EXPR([lang_1.CONST_EXPR(new default_keyvalue_differ_1.DefaultKeyValueDifferFactory)]),exports.iterableDiff=lang_1.CONST_EXPR([lang_1.CONST_EXPR(new default_iterable_differ_1.DefaultIterableDifferFactory)]),exports.defaultIterableDiffers=lang_1.CONST_EXPR(new iterable_differs_1.IterableDiffers(exports.iterableDiff)),exports.defaultKeyValueDiffers=lang_1.CONST_EXPR(new keyvalue_differs_1.KeyValueDiffers(exports.keyValDiff)),global.define=__define,module.exports}),$__System.registerDynamic("2c",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var PromiseWrapper=function(){function PromiseWrapper(){}return PromiseWrapper.resolve=function(obj){return Promise.resolve(obj)},PromiseWrapper.reject=function(obj,_){return Promise.reject(obj)},PromiseWrapper.catchError=function(promise,onError){return promise["catch"](onError)},PromiseWrapper.all=function(promises){return 0==promises.length?Promise.resolve([]):Promise.all(promises)},PromiseWrapper.then=function(promise,success,rejection){return promise.then(success,rejection)},PromiseWrapper.wrap=function(computation){return new Promise(function(res,rej){try{res(computation())}catch(e){rej(e)}})},PromiseWrapper.scheduleMicrotask=function(computation){PromiseWrapper.then(PromiseWrapper.resolve(null),computation,function(_){})},PromiseWrapper.isPromise=function(obj){return obj instanceof Promise},PromiseWrapper.completer=function(){var resolve,reject,p=new Promise(function(res,rej){resolve=res,reject=rej});return{promise:p,resolve:resolve,reject:reject}},PromiseWrapper}();return exports.PromiseWrapper=PromiseWrapper,global.define=__define,module.exports}),$__System.registerDynamic("c4",["c5","c6"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},Subscription_1=$__require("c5"),Subscriber_1=$__require("c6"),SubjectSubscription=function(_super){function SubjectSubscription(subject,observer){_super.call(this),this.subject=subject,this.observer=observer,this.isUnsubscribed=!1}return __extends(SubjectSubscription,_super),SubjectSubscription.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var subject=this.subject,observers=subject.observers;if(this.subject=void 0,observers&&0!==observers.length&&!subject.isUnsubscribed){this.observer instanceof Subscriber_1.Subscriber&&this.observer.unsubscribe();var subscriberIndex=observers.indexOf(this.observer);-1!==subscriberIndex&&observers.splice(subscriberIndex,1)}}},SubjectSubscription}(Subscription_1.Subscription);return exports.SubjectSubscription=SubjectSubscription,global.define=__define,module.exports}),$__System.registerDynamic("c7",["c8","c6","c5","c4","c9"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},Observable_1=$__require("c8"),Subscriber_1=$__require("c6"),Subscription_1=$__require("c5"),SubjectSubscription_1=$__require("c4"),rxSubscriber_1=$__require("c9"),subscriptionAdd=Subscription_1.Subscription.prototype.add,subscriptionRemove=Subscription_1.Subscription.prototype.remove,subscriptionUnsubscribe=Subscription_1.Subscription.prototype.unsubscribe,subscriberNext=Subscriber_1.Subscriber.prototype.next,subscriberError=Subscriber_1.Subscriber.prototype.error,subscriberComplete=Subscriber_1.Subscriber.prototype.complete,_subscriberNext=Subscriber_1.Subscriber.prototype._next,_subscriberError=Subscriber_1.Subscriber.prototype._error,_subscriberComplete=Subscriber_1.Subscriber.prototype._complete,Subject=function(_super){function Subject(){_super.apply(this,arguments),this.observers=[],this.isUnsubscribed=!1,this.dispatching=!1,this.errorSignal=!1,this.completeSignal=!1}return __extends(Subject,_super),Subject.prototype[rxSubscriber_1.rxSubscriber]=function(){return this},Subject.create=function(source,destination){return new BidirectionalSubject(source,destination)},Subject.prototype.lift=function(operator){var subject=new BidirectionalSubject(this,this.destination||this);return subject.operator=operator,subject},Subject.prototype._subscribe=function(subscriber){if(!subscriber.isUnsubscribed){if(this.errorSignal)return void subscriber.error(this.errorInstance);if(this.completeSignal)return void subscriber.complete();if(this.isUnsubscribed)throw new Error("Cannot subscribe to a disposed Subject.");return this.observers.push(subscriber),new SubjectSubscription_1.SubjectSubscription(this,subscriber)}},Subject.prototype.add=function(subscription){subscriptionAdd.call(this,subscription)},Subject.prototype.remove=function(subscription){subscriptionRemove.call(this,subscription)},Subject.prototype.unsubscribe=function(){this.observers=void 0,subscriptionUnsubscribe.call(this)},Subject.prototype.next=function(value){this.isUnsubscribed||(this.dispatching=!0,this._next(value),this.dispatching=!1,this.errorSignal?this.error(this.errorInstance):this.completeSignal&&this.complete())},Subject.prototype.error=function(err){this.isUnsubscribed||this.completeSignal||(this.errorSignal=!0,this.errorInstance=err,this.dispatching||(this._error(err),this.unsubscribe()))},Subject.prototype.complete=function(){this.isUnsubscribed||this.errorSignal||(this.completeSignal=!0,this.dispatching||(this._complete(),this.unsubscribe()))},Subject.prototype._next=function(value){for(var index=-1,observers=this.observers.slice(0),len=observers.length;++index<len;)observers[index].next(value)},Subject.prototype._error=function(err){var index=-1,observers=this.observers,len=observers.length;for(this.observers=void 0,this.isUnsubscribed=!0;++index<len;)observers[index].error(err);this.isUnsubscribed=!1},Subject.prototype._complete=function(){var index=-1,observers=this.observers,len=observers.length;for(this.observers=void 0,this.isUnsubscribed=!0;++index<len;)observers[index].complete();this.isUnsubscribed=!1},Subject}(Observable_1.Observable);exports.Subject=Subject;var BidirectionalSubject=function(_super){function BidirectionalSubject(source,destination){_super.call(this),this.source=source,this.destination=destination}return __extends(BidirectionalSubject,_super),BidirectionalSubject.prototype._subscribe=function(subscriber){var operator=this.operator;return this.source._subscribe.call(this.source,operator?operator.call(subscriber):subscriber)},BidirectionalSubject.prototype.next=function(value){subscriberNext.call(this,value)},BidirectionalSubject.prototype.error=function(err){subscriberError.call(this,err)},BidirectionalSubject.prototype.complete=function(){subscriberComplete.call(this)},BidirectionalSubject.prototype._next=function(value){_subscriberNext.call(this,value)},BidirectionalSubject.prototype._error=function(err){_subscriberError.call(this,err)},BidirectionalSubject.prototype._complete=function(){_subscriberComplete.call(this)},BidirectionalSubject}(Subject);return global.define=__define,module.exports}),$__System.registerDynamic("ca",["c5"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},Subscription_1=$__require("c5"),QueueAction=function(_super){function QueueAction(scheduler,work){_super.call(this),this.scheduler=scheduler,this.work=work}return __extends(QueueAction,_super),QueueAction.prototype.schedule=function(state){if(this.isUnsubscribed)return this;this.state=state;var scheduler=this.scheduler;return scheduler.actions.push(this),scheduler.flush(),this},QueueAction.prototype.execute=function(){if(this.isUnsubscribed)throw new Error("How did did we execute a canceled Action?");this.work(this.state)},QueueAction.prototype.unsubscribe=function(){var scheduler=this.scheduler,actions=scheduler.actions,index=actions.indexOf(this);this.work=void 0,this.state=void 0,this.scheduler=void 0,-1!==index&&actions.splice(index,1),_super.prototype.unsubscribe.call(this)},QueueAction}(Subscription_1.Subscription);return exports.QueueAction=QueueAction,global.define=__define,module.exports}),$__System.registerDynamic("cb",["ca"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},QueueAction_1=$__require("ca"),FutureAction=function(_super){function FutureAction(scheduler,work){_super.call(this,scheduler,work),this.scheduler=scheduler,this.work=work}return __extends(FutureAction,_super),FutureAction.prototype.schedule=function(state,delay){var _this=this;if(void 0===delay&&(delay=0),this.isUnsubscribed)return this;this.delay=delay,this.state=state;var id=this.id;null!=id&&(this.id=void 0,clearTimeout(id));var scheduler=this.scheduler;return this.id=setTimeout(function(){_this.id=void 0,scheduler.actions.push(_this),scheduler.flush()},this.delay),this},FutureAction.prototype.unsubscribe=function(){
var id=this.id;null!=id&&(this.id=void 0,clearTimeout(id)),_super.prototype.unsubscribe.call(this)},FutureAction}(QueueAction_1.QueueAction);return exports.FutureAction=FutureAction,global.define=__define,module.exports}),$__System.registerDynamic("cc",["ca","cb"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var QueueAction_1=$__require("ca"),FutureAction_1=$__require("cb"),QueueScheduler=function(){function QueueScheduler(){this.actions=[],this.active=!1,this.scheduled=!1}return QueueScheduler.prototype.now=function(){return Date.now()},QueueScheduler.prototype.flush=function(){if(!this.active&&!this.scheduled){this.active=!0;for(var actions=this.actions,action=void 0;action=actions.shift();)action.execute();this.active=!1}},QueueScheduler.prototype.schedule=function(work,delay,state){return void 0===delay&&(delay=0),0>=delay?this.scheduleNow(work,state):this.scheduleLater(work,delay,state)},QueueScheduler.prototype.scheduleNow=function(work,state){return new QueueAction_1.QueueAction(this,work).schedule(state)},QueueScheduler.prototype.scheduleLater=function(work,delay,state){return new FutureAction_1.FutureAction(this,work).schedule(state,delay)},QueueScheduler}();return exports.QueueScheduler=QueueScheduler,global.define=__define,module.exports}),$__System.registerDynamic("cd",["cc"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var QueueScheduler_1=$__require("cc");return exports.queue=new QueueScheduler_1.QueueScheduler,global.define=__define,module.exports}),$__System.registerDynamic("ce",["c8","c5","cd"],!0,function($__require,exports,module){function dispatchNext(_a){var value=_a.value,subscriber=_a.subscriber;subscriber.next(value),subscriber.complete()}function dispatchError(_a){var err=_a.err,subscriber=_a.subscriber;subscriber.error(err)}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},Observable_1=$__require("c8"),Subscription_1=$__require("c5"),queue_1=$__require("cd"),PromiseObservable=function(_super){function PromiseObservable(promise,scheduler){void 0===scheduler&&(scheduler=queue_1.queue),_super.call(this),this.promise=promise,this.scheduler=scheduler,this._isScalar=!1}return __extends(PromiseObservable,_super),PromiseObservable.create=function(promise,scheduler){return void 0===scheduler&&(scheduler=queue_1.queue),new PromiseObservable(promise,scheduler)},PromiseObservable.prototype._subscribe=function(subscriber){var _this=this,scheduler=this.scheduler,promise=this.promise;if(scheduler!==queue_1.queue){var subscription=new Subscription_1.Subscription;if(this._isScalar){var value=this.value;subscription.add(scheduler.schedule(dispatchNext,0,{value:value,subscriber:subscriber}))}else promise.then(function(value){_this._isScalar=!0,_this.value=value,subscription.add(scheduler.schedule(dispatchNext,0,{value:value,subscriber:subscriber}))},function(err){return subscription.add(scheduler.schedule(dispatchError,0,{err:err,subscriber:subscriber}))}).then(null,function(err){scheduler.schedule(function(){throw err})});return subscription}this._isScalar?(subscriber.next(this.value),subscriber.complete()):promise.then(function(value){_this._isScalar=!0,_this.value=value,subscriber.next(value),subscriber.complete()},function(err){return subscriber.error(err)}).then(null,function(err){setTimeout(function(){throw err})})},PromiseObservable}(Observable_1.Observable);return exports.PromiseObservable=PromiseObservable,global.define=__define,module.exports}),$__System.registerDynamic("cf",["d0"],!0,function($__require,exports,module){function toPromise(PromiseCtor){var _this=this;if(PromiseCtor||(root_1.root.Rx&&root_1.root.Rx.config&&root_1.root.Rx.config.Promise?PromiseCtor=root_1.root.Rx.config.Promise:root_1.root.Promise&&(PromiseCtor=root_1.root.Promise)),!PromiseCtor)throw new Error("no Promise impl found");return new PromiseCtor(function(resolve,reject){var value;_this.subscribe(function(x){return value=x},function(err){return reject(err)},function(){return resolve(value)})})}var global=this,__define=global.define;global.define=void 0;var root_1=$__require("d0");return exports.toPromise=toPromise,global.define=__define,module.exports}),$__System.registerDynamic("d1",[],!0,function($__require,exports,module){function throwError(e){throw e}var global=this,__define=global.define;return global.define=void 0,exports.throwError=throwError,global.define=__define,module.exports}),$__System.registerDynamic("d2",[],!0,function($__require,exports,module){function tryOrOnError(target){function tryCatcher(){try{tryCatcher.target.apply(this,arguments)}catch(e){this.error(e)}}return tryCatcher.target=target,tryCatcher}var global=this,__define=global.define;return global.define=void 0,exports.tryOrOnError=tryOrOnError,global.define=__define,module.exports}),$__System.registerDynamic("d3",[],!0,function($__require,exports,module){function noop(){}var global=this,__define=global.define;return global.define=void 0,exports.noop=noop,global.define=__define,module.exports}),$__System.registerDynamic("c5",["d3"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var noop_1=$__require("d3"),Subscription=function(){function Subscription(_unsubscribe){this.isUnsubscribed=!1,_unsubscribe&&(this._unsubscribe=_unsubscribe)}return Subscription.prototype._unsubscribe=function(){noop_1.noop()},Subscription.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var unsubscribe=this._unsubscribe,subscriptions=this._subscriptions;if(this._subscriptions=void 0,unsubscribe&&unsubscribe.call(this),null!=subscriptions)for(var index=-1,len=subscriptions.length;++index<len;)subscriptions[index].unsubscribe()}},Subscription.prototype.add=function(subscription){if(subscription&&subscription!==this&&subscription!==Subscription.EMPTY){var sub=subscription;switch(typeof subscription){case"function":sub=new Subscription(subscription);case"object":if(sub.isUnsubscribed||"function"!=typeof sub.unsubscribe)break;if(this.isUnsubscribed)sub.unsubscribe();else{var subscriptions=this._subscriptions||(this._subscriptions=[]);subscriptions.push(sub)}break;default:throw new Error("Unrecognized subscription "+subscription+" added to Subscription.")}}},Subscription.prototype.remove=function(subscription){if(null!=subscription&&subscription!==this&&subscription!==Subscription.EMPTY){var subscriptions=this._subscriptions;if(subscriptions){var subscriptionIndex=subscriptions.indexOf(subscription);-1!==subscriptionIndex&&subscriptions.splice(subscriptionIndex,1)}}},Subscription.EMPTY=function(empty){return empty.isUnsubscribed=!0,empty}(new Subscription),Subscription}();return exports.Subscription=Subscription,global.define=__define,module.exports}),$__System.registerDynamic("c6",["d3","d1","d2","c5","c9"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},noop_1=$__require("d3"),throwError_1=$__require("d1"),tryOrOnError_1=$__require("d2"),Subscription_1=$__require("c5"),rxSubscriber_1=$__require("c9"),Subscriber=function(_super){function Subscriber(destination){if(_super.call(this),this.destination=destination,this._isUnsubscribed=!1,this.destination){var subscription=destination._subscription;subscription?this._subscription=subscription:destination instanceof Subscriber&&(this._subscription=destination)}}return __extends(Subscriber,_super),Subscriber.prototype[rxSubscriber_1.rxSubscriber]=function(){return this},Object.defineProperty(Subscriber.prototype,"isUnsubscribed",{get:function(){var subscription=this._subscription;return subscription?this._isUnsubscribed||subscription.isUnsubscribed:this._isUnsubscribed},set:function(value){var subscription=this._subscription;subscription?subscription.isUnsubscribed=Boolean(value):this._isUnsubscribed=Boolean(value)},enumerable:!0,configurable:!0}),Subscriber.create=function(next,error,complete){var subscriber=new Subscriber;return subscriber._next="function"==typeof next&&tryOrOnError_1.tryOrOnError(next)||noop_1.noop,subscriber._error="function"==typeof error&&error||throwError_1.throwError,subscriber._complete="function"==typeof complete&&complete||noop_1.noop,subscriber},Subscriber.prototype.add=function(sub){var _subscription=this._subscription;_subscription?_subscription.add(sub):_super.prototype.add.call(this,sub)},Subscriber.prototype.remove=function(sub){this._subscription?this._subscription.remove(sub):_super.prototype.remove.call(this,sub)},Subscriber.prototype.unsubscribe=function(){this._isUnsubscribed||(this._subscription?this._isUnsubscribed=!0:_super.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(value){var destination=this.destination;destination.next&&destination.next(value)},Subscriber.prototype._error=function(err){var destination=this.destination;destination.error&&destination.error(err)},Subscriber.prototype._complete=function(){var destination=this.destination;destination.complete&&destination.complete()},Subscriber.prototype.next=function(value){this.isUnsubscribed||this._next(value)},Subscriber.prototype.error=function(err){this.isUnsubscribed||(this._error(err),this.unsubscribe())},Subscriber.prototype.complete=function(){this.isUnsubscribed||(this._complete(),this.unsubscribe())},Subscriber}(Subscription_1.Subscription);return exports.Subscriber=Subscriber,global.define=__define,module.exports}),$__System.registerDynamic("d0",[],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var objectTypes={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};exports.root=objectTypes[typeof self]&&self||objectTypes[typeof window]&&window;var freeGlobal=(objectTypes[typeof exports]&&exports&&!exports.nodeType&&exports,objectTypes[typeof module]&&module&&!module.nodeType&&module,objectTypes[typeof global]&&global);return!freeGlobal||freeGlobal.global!==freeGlobal&&freeGlobal.window!==freeGlobal||(exports.root=freeGlobal),global.define=__define,module.exports}),$__System.registerDynamic("d4",["d0"],!0,function($__require,exports,module){function polyfillSymbol(root){var Symbol=ensureSymbol(root);return ensureIterator(Symbol,root),ensureObservable(Symbol),ensureFor(Symbol),Symbol}function ensureFor(Symbol){Symbol["for"]||(Symbol["for"]=symbolForPolyfill)}function ensureSymbol(root){return root.Symbol||(root.Symbol=function(description){return"@@Symbol("+description+"):"+id++}),root.Symbol}function symbolForPolyfill(key){return"@@"+key}function ensureIterator(Symbol,root){if(!Symbol.iterator)if("function"==typeof Symbol["for"])Symbol.iterator=Symbol["for"]("iterator");else if(root.Set&&"function"==typeof(new root.Set)["@@iterator"])Symbol.iterator="@@iterator";else if(root.Map)for(var keys=Object.getOwnPropertyNames(root.Map.prototype),i=0;i<keys.length;++i){var key=keys[i];if("entries"!==key&&"size"!==key&&root.Map.prototype[key]===root.Map.prototype.entries){Symbol.iterator=key;break}}else Symbol.iterator="@@iterator"}function ensureObservable(Symbol){Symbol.observable||("function"==typeof Symbol["for"]?Symbol.observable=Symbol["for"]("observable"):Symbol.observable="@@observable")}var global=this,__define=global.define;global.define=void 0;var root_1=$__require("d0");exports.polyfillSymbol=polyfillSymbol,exports.ensureFor=ensureFor;var id=0;return exports.ensureSymbol=ensureSymbol,exports.symbolForPolyfill=symbolForPolyfill,exports.ensureIterator=ensureIterator,exports.ensureObservable=ensureObservable,exports.SymbolShim=polyfillSymbol(root_1.root),global.define=__define,module.exports}),$__System.registerDynamic("c9",["d4"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var SymbolShim_1=$__require("d4");return exports.rxSubscriber=SymbolShim_1.SymbolShim["for"]("rxSubscriber"),global.define=__define,module.exports}),$__System.registerDynamic("c8",["c6","d0","d4","c9"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var Subscriber_1=$__require("c6"),root_1=$__require("d0"),SymbolShim_1=$__require("d4"),rxSubscriber_1=$__require("c9"),Observable=function(){function Observable(subscribe){this._isScalar=!1,subscribe&&(this._subscribe=subscribe)}return Observable.prototype.lift=function(operator){var observable=new Observable;return observable.source=this,observable.operator=operator,observable},Observable.prototype[SymbolShim_1.SymbolShim.observable]=function(){return this},Observable.prototype.subscribe=function(observerOrNext,error,complete){var subscriber;if(observerOrNext&&"object"==typeof observerOrNext)subscriber=observerOrNext instanceof Subscriber_1.Subscriber?observerOrNext:observerOrNext[rxSubscriber_1.rxSubscriber]?observerOrNext[rxSubscriber_1.rxSubscriber]():new Subscriber_1.Subscriber(observerOrNext);else{var next=observerOrNext;subscriber=Subscriber_1.Subscriber.create(next,error,complete)}return subscriber.add(this._subscribe(subscriber)),subscriber},Observable.prototype.forEach=function(next,thisArg,PromiseCtor){if(PromiseCtor||(root_1.root.Rx&&root_1.root.Rx.config&&root_1.root.Rx.config.Promise?PromiseCtor=root_1.root.Rx.config.Promise:root_1.root.Promise&&(PromiseCtor=root_1.root.Promise)),!PromiseCtor)throw new Error("no Promise impl found");var nextHandler;thisArg?(nextHandler=function nextHandlerFn(value){var _a=nextHandlerFn,thisArg=_a.thisArg,next=_a.next;return next.call(thisArg,value)},nextHandler.thisArg=thisArg,nextHandler.next=next):nextHandler=next;var promiseCallback=function promiseCallbackFn(resolve,reject){var _a=promiseCallbackFn,source=_a.source,nextHandler=_a.nextHandler;source.subscribe(nextHandler,reject,resolve)};return promiseCallback.source=this,promiseCallback.nextHandler=nextHandler,new PromiseCtor(promiseCallback)},Observable.prototype._subscribe=function(subscriber){return this.source._subscribe(this.operator.call(subscriber))},Observable.create=function(subscribe){return new Observable(subscribe)},Observable}();return exports.Observable=Observable,global.define=__define,module.exports}),$__System.registerDynamic("9",["7","2c","c7","ce","cf","c8"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("7"),promise_1=$__require("2c");exports.PromiseWrapper=promise_1.PromiseWrapper,exports.Promise=promise_1.Promise;var Subject_1=$__require("c7"),fromPromise_1=$__require("ce"),toPromise_1=$__require("cf"),Observable_1=$__require("c8");exports.Observable=Observable_1.Observable;var Subject_2=$__require("c7");exports.Subject=Subject_2.Subject;var TimerWrapper=function(){function TimerWrapper(){}return TimerWrapper.setTimeout=function(fn,millis){return lang_1.global.setTimeout(fn,millis)},TimerWrapper.clearTimeout=function(id){lang_1.global.clearTimeout(id)},TimerWrapper.setInterval=function(fn,millis){return lang_1.global.setInterval(fn,millis)},TimerWrapper.clearInterval=function(id){lang_1.global.clearInterval(id)},TimerWrapper}();exports.TimerWrapper=TimerWrapper;var ObservableWrapper=function(){function ObservableWrapper(){}return ObservableWrapper.subscribe=function(emitter,onNext,onError,onComplete){return void 0===onComplete&&(onComplete=function(){}),onError="function"==typeof onError&&onError||lang_1.noop,onComplete="function"==typeof onComplete&&onComplete||lang_1.noop,emitter.subscribe({next:onNext,error:onError,complete:onComplete})},ObservableWrapper.isObservable=function(obs){return!!obs.subscribe},ObservableWrapper.hasSubscribers=function(obs){return obs.observers.length>0},ObservableWrapper.dispose=function(subscription){subscription.unsubscribe()},ObservableWrapper.callNext=function(emitter,value){emitter.next(value)},ObservableWrapper.callEmit=function(emitter,value){emitter.emit(value)},ObservableWrapper.callError=function(emitter,error){emitter.error(error)},ObservableWrapper.callComplete=function(emitter){emitter.complete()},ObservableWrapper.fromPromise=function(promise){return fromPromise_1.PromiseObservable.create(promise)},ObservableWrapper.toPromise=function(obj){return toPromise_1.toPromise.call(obj)},ObservableWrapper}();exports.ObservableWrapper=ObservableWrapper;var EventEmitter=function(_super){function EventEmitter(isAsync){void 0===isAsync&&(isAsync=!0),_super.call(this),this._isAsync=isAsync}return __extends(EventEmitter,_super),EventEmitter.prototype.emit=function(value){_super.prototype.next.call(this,value)},EventEmitter.prototype.next=function(value){_super.prototype.next.call(this,value)},EventEmitter.prototype.subscribe=function(generatorOrNext,error,complete){var schedulerFn,errorFn=function(err){return null},completeFn=function(){return null};return generatorOrNext&&"object"==typeof generatorOrNext?(schedulerFn=this._isAsync?function(value){setTimeout(function(){return generatorOrNext.next(value)})}:function(value){generatorOrNext.next(value)},generatorOrNext.error&&(errorFn=this._isAsync?function(err){setTimeout(function(){return generatorOrNext.error(err)})}:function(err){generatorOrNext.error(err)}),generatorOrNext.complete&&(completeFn=this._isAsync?function(){setTimeout(function(){return generatorOrNext.complete()})}:function(){generatorOrNext.complete()})):(schedulerFn=this._isAsync?function(value){setTimeout(function(){return generatorOrNext(value)})}:function(value){generatorOrNext(value)},error&&(errorFn=this._isAsync?function(err){setTimeout(function(){return error(err)})}:function(err){error(err)}),complete&&(completeFn=this._isAsync?function(){setTimeout(function(){return complete()})}:function(){complete()})),_super.prototype.subscribe.call(this,schedulerFn,errorFn,completeFn)},EventEmitter}(Subject_1.Subject);return exports.EventEmitter=EventEmitter,global.define=__define,module.exports}),$__System.registerDynamic("a0",["11","7","9"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var collection_1=$__require("11"),lang_1=$__require("7"),async_1=$__require("9"),QueryList=function(){function QueryList(){this._results=[],this._emitter=new async_1.EventEmitter}return Object.defineProperty(QueryList.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"first",{get:function(){return collection_1.ListWrapper.first(this._results)},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"last",{get:function(){return collection_1.ListWrapper.last(this._results)},enumerable:!0,configurable:!0}),QueryList.prototype.map=function(fn){return this._results.map(fn)},QueryList.prototype.filter=function(fn){return this._results.filter(fn)},QueryList.prototype.reduce=function(fn,init){return this._results.reduce(fn,init)},QueryList.prototype.toArray=function(){return collection_1.ListWrapper.clone(this._results)},QueryList.prototype[lang_1.getSymbolIterator()]=function(){return this._results[lang_1.getSymbolIterator()]()},QueryList.prototype.toString=function(){return this._results.toString()},QueryList.prototype.reset=function(res){this._results=res},QueryList.prototype.notifyOnChanges=function(){this._emitter.emit(this)},QueryList}();return exports.QueryList=QueryList,global.define=__define,module.exports}),$__System.registerDynamic("a5",["d5","3c"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},provider_1=$__require("d5"),di_1=$__require("3c"),PipeProvider=function(_super){function PipeProvider(name,pure,key,resolvedFactories,multiBinding){_super.call(this,key,resolvedFactories,multiBinding),this.name=name,this.pure=pure}return __extends(PipeProvider,_super),PipeProvider.createFromType=function(type,metadata){var provider=new di_1.Provider(type,{useClass:type}),rb=provider_1.resolveProvider(provider);return new PipeProvider(metadata.name,metadata.pure,rb.key,rb.resolvedFactories,rb.multiProvider)},PipeProvider}(provider_1.ResolvedProvider_);return exports.PipeProvider=PipeProvider,global.define=__define,module.exports}),$__System.registerDynamic("8c",["7","10","11","3c","d5","d6","a6","8b","a1","a3","9d","a2","7e","6c","a0","82","a5"],!0,function($__require,exports,module){"use strict";function setProvidersVisibility(providers,visibility,result){for(var i=0;i<providers.length;i++)result.set(providers[i].key.id,visibility)}var global=this,__define=global.define;global.define=void 0;var _staticKeys,__extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),di_1=$__require("3c"),provider_1=$__require("d5"),injector_1=$__require("d6"),provider_2=$__require("d5"),di_2=$__require("a6"),view_type_1=$__require("8b"),element_ref_1=$__require("a1"),view_container_ref_1=$__require("a3"),element_ref_2=$__require("a1"),api_1=$__require("9d"),template_ref_1=$__require("a2"),directives_1=$__require("7e"),change_detection_1=$__require("6c"),query_list_1=$__require("a0"),reflection_1=$__require("82"),pipe_provider_1=$__require("a5"),view_container_ref_2=$__require("a3"),StaticKeys=function(){function StaticKeys(){this.templateRefId=di_1.Key.get(template_ref_1.TemplateRef).id,this.viewContainerId=di_1.Key.get(view_container_ref_1.ViewContainerRef).id,this.changeDetectorRefId=di_1.Key.get(change_detection_1.ChangeDetectorRef).id,this.elementRefId=di_1.Key.get(element_ref_2.ElementRef).id,this.rendererId=di_1.Key.get(api_1.Renderer).id}return StaticKeys.instance=function(){return lang_1.isBlank(_staticKeys)&&(_staticKeys=new StaticKeys),_staticKeys},StaticKeys}();exports.StaticKeys=StaticKeys;var DirectiveDependency=function(_super){function DirectiveDependency(key,optional,lowerBoundVisibility,upperBoundVisibility,properties,attributeName,queryDecorator){_super.call(this,key,optional,lowerBoundVisibility,upperBoundVisibility,properties),this.attributeName=attributeName,this.queryDecorator=queryDecorator,this._verify()}return __extends(DirectiveDependency,_super),DirectiveDependency.prototype._verify=function(){var count=0;if(lang_1.isPresent(this.queryDecorator)&&count++,lang_1.isPresent(this.attributeName)&&count++,count>1)throw new exceptions_1.BaseException("A directive injectable can contain only one of the following @Attribute or @Query.")},DirectiveDependency.createFrom=function(d){return new DirectiveDependency(d.key,d.optional,d.lowerBoundVisibility,d.upperBoundVisibility,d.properties,DirectiveDependency._attributeName(d.properties),DirectiveDependency._query(d.properties))},DirectiveDependency._attributeName=function(properties){var p=properties.find(function(p){return p instanceof di_2.AttributeMetadata});return lang_1.isPresent(p)?p.attributeName:null},DirectiveDependency._query=function(properties){return properties.find(function(p){return p instanceof di_2.QueryMetadata})},DirectiveDependency}(di_1.Dependency);exports.DirectiveDependency=DirectiveDependency;var DirectiveProvider=function(_super){function DirectiveProvider(key,factory,deps,isComponent,providers,viewProviders,queries){_super.call(this,key,[new provider_2.ResolvedFactory(factory,deps)],!1),this.isComponent=isComponent,this.providers=providers,this.viewProviders=viewProviders,this.queries=queries}return __extends(DirectiveProvider,_super),Object.defineProperty(DirectiveProvider.prototype,"displayName",{get:function(){return this.key.displayName},enumerable:!0,configurable:!0}),DirectiveProvider.createFromType=function(type,meta){var provider=new di_1.Provider(type,{useClass:type});lang_1.isBlank(meta)&&(meta=new directives_1.DirectiveMetadata);var rb=provider_2.resolveProvider(provider),rf=rb.resolvedFactories[0],deps=rf.dependencies.map(DirectiveDependency.createFrom),isComponent=meta instanceof directives_1.ComponentMetadata,resolvedProviders=lang_1.isPresent(meta.providers)?di_1.Injector.resolve(meta.providers):null,resolvedViewProviders=meta instanceof directives_1.ComponentMetadata&&lang_1.isPresent(meta.viewProviders)?di_1.Injector.resolve(meta.viewProviders):null,queries=[];return lang_1.isPresent(meta.queries)&&collection_1.StringMapWrapper.forEach(meta.queries,function(meta,fieldName){var setter=reflection_1.reflector.setter(fieldName);queries.push(new QueryMetadataWithSetter(setter,meta))}),deps.forEach(function(d){lang_1.isPresent(d.queryDecorator)&&queries.push(new QueryMetadataWithSetter(null,d.queryDecorator))}),new DirectiveProvider(rb.key,rf.factory,deps,isComponent,resolvedProviders,resolvedViewProviders,queries)},DirectiveProvider}(provider_2.ResolvedProvider_);exports.DirectiveProvider=DirectiveProvider;var QueryMetadataWithSetter=function(){function QueryMetadataWithSetter(setter,metadata){this.setter=setter,this.metadata=metadata}return QueryMetadataWithSetter}();exports.QueryMetadataWithSetter=QueryMetadataWithSetter;var AppProtoElement=function(){function AppProtoElement(firstProviderIsComponent,index,attributes,pwvs,protoQueryRefs,directiveVariableBindings){this.firstProviderIsComponent=firstProviderIsComponent,this.index=index,this.attributes=attributes,this.protoQueryRefs=protoQueryRefs,this.directiveVariableBindings=directiveVariableBindings;var length=pwvs.length;length>0?this.protoInjector=new injector_1.ProtoInjector(pwvs):(this.protoInjector=null,this.protoQueryRefs=[])}return AppProtoElement.create=function(metadataCache,index,attributes,directiveTypes,directiveVariableBindings){for(var componentDirProvider=null,mergedProvidersMap=new Map,providerVisibilityMap=new Map,providers=collection_1.ListWrapper.createGrowableSize(directiveTypes.length),protoQueryRefs=[],i=0;i<directiveTypes.length;i++){var dirProvider=metadataCache.getResolvedDirectiveMetadata(directiveTypes[i]);providers[i]=new injector_1.ProviderWithVisibility(dirProvider,dirProvider.isComponent?injector_1.Visibility.PublicAndPrivate:injector_1.Visibility.Public),dirProvider.isComponent?componentDirProvider=dirProvider:lang_1.isPresent(dirProvider.providers)&&(provider_1.mergeResolvedProviders(dirProvider.providers,mergedProvidersMap),setProvidersVisibility(dirProvider.providers,injector_1.Visibility.Public,providerVisibilityMap)),lang_1.isPresent(dirProvider.viewProviders)&&(provider_1.mergeResolvedProviders(dirProvider.viewProviders,mergedProvidersMap),setProvidersVisibility(dirProvider.viewProviders,injector_1.Visibility.Private,providerVisibilityMap));for(var queryIdx=0;queryIdx<dirProvider.queries.length;queryIdx++){var q=dirProvider.queries[queryIdx];protoQueryRefs.push(new ProtoQueryRef(i,q.setter,q.metadata))}}return lang_1.isPresent(componentDirProvider)&&lang_1.isPresent(componentDirProvider.providers)&&(provider_1.mergeResolvedProviders(componentDirProvider.providers,mergedProvidersMap),setProvidersVisibility(componentDirProvider.providers,injector_1.Visibility.Public,providerVisibilityMap)),mergedProvidersMap.forEach(function(provider,_){providers.push(new injector_1.ProviderWithVisibility(provider,providerVisibilityMap.get(provider.key.id)))}),new AppProtoElement(lang_1.isPresent(componentDirProvider),index,attributes,providers,protoQueryRefs,directiveVariableBindings)},AppProtoElement.prototype.getProviderAtIndex=function(index){return this.protoInjector.getProviderAtIndex(index)},AppProtoElement}();exports.AppProtoElement=AppProtoElement;var _Context=function(){function _Context(element,componentElement,injector){this.element=element,this.componentElement=componentElement,this.injector=injector}return _Context}(),InjectorWithHostBoundary=function(){function InjectorWithHostBoundary(injector,hostInjectorBoundary){this.injector=injector,this.hostInjectorBoundary=hostInjectorBoundary}return InjectorWithHostBoundary}();exports.InjectorWithHostBoundary=InjectorWithHostBoundary;var AppElement=function(){function AppElement(proto,parentView,parent,nativeElement,embeddedViewFactory){var _this=this;this.proto=proto,this.parentView=parentView,this.parent=parent,this.nativeElement=nativeElement,this.embeddedViewFactory=embeddedViewFactory,this.nestedViews=null,this.componentView=null,this.ref=new element_ref_1.ElementRef_(this);var parentInjector=lang_1.isPresent(parent)?parent._injector:parentView.parentInjector;if(lang_1.isPresent(this.proto.protoInjector)){var isBoundary;isBoundary=lang_1.isPresent(parent)&&lang_1.isPresent(parent.proto.protoInjector)?!1:parentView.hostInjectorBoundary,this._queryStrategy=this._buildQueryStrategy(),this._injector=new di_1.Injector(this.proto.protoInjector,parentInjector,isBoundary,this,function(){return _this._debugContext()});var injectorStrategy=this._injector.internalStrategy;this._strategy=injectorStrategy instanceof injector_1.InjectorInlineStrategy?new ElementDirectiveInlineStrategy(injectorStrategy,this):new ElementDirectiveDynamicStrategy(injectorStrategy,this),this._strategy.init()}else this._queryStrategy=null,this._injector=parentInjector,this._strategy=null}return AppElement.getViewParentInjector=function(parentViewType,containerAppElement,imperativelyCreatedProviders,rootInjector){var parentInjector,hostInjectorBoundary;switch(parentViewType){case view_type_1.ViewType.COMPONENT:parentInjector=containerAppElement._injector,hostInjectorBoundary=!0;break;case view_type_1.ViewType.EMBEDDED:parentInjector=lang_1.isPresent(containerAppElement.proto.protoInjector)?containerAppElement._injector.parent:containerAppElement._injector,hostInjectorBoundary=containerAppElement._injector.hostBoundary;break;case view_type_1.ViewType.HOST:if(lang_1.isPresent(containerAppElement))if(parentInjector=lang_1.isPresent(containerAppElement.proto.protoInjector)?containerAppElement._injector.parent:containerAppElement._injector,lang_1.isPresent(imperativelyCreatedProviders)){var imperativeProvidersWithVisibility=imperativelyCreatedProviders.map(function(p){return new injector_1.ProviderWithVisibility(p,injector_1.Visibility.Public)});parentInjector=new di_1.Injector(new injector_1.ProtoInjector(imperativeProvidersWithVisibility),parentInjector,!0,null,null),hostInjectorBoundary=!1}else hostInjectorBoundary=containerAppElement._injector.hostBoundary;else parentInjector=rootInjector,hostInjectorBoundary=!0}return new InjectorWithHostBoundary(parentInjector,hostInjectorBoundary)},AppElement.prototype.attachComponentView=function(componentView){this.componentView=componentView},AppElement.prototype._debugContext=function(){var c=this.parentView.getDebugContext(this,null,null);return lang_1.isPresent(c)?new _Context(c.element,c.componentElement,c.injector):null},AppElement.prototype.hasVariableBinding=function(name){var vb=this.proto.directiveVariableBindings;return lang_1.isPresent(vb)&&collection_1.StringMapWrapper.contains(vb,name)},AppElement.prototype.getVariableBinding=function(name){var index=this.proto.directiveVariableBindings[name];return lang_1.isPresent(index)?this.getDirectiveAtIndex(index):this.getElementRef()},AppElement.prototype.get=function(token){
return this._injector.get(token)},AppElement.prototype.hasDirective=function(type){return lang_1.isPresent(this._injector.getOptional(type))},AppElement.prototype.getComponent=function(){return lang_1.isPresent(this._strategy)?this._strategy.getComponent():null},AppElement.prototype.getInjector=function(){return this._injector},AppElement.prototype.getElementRef=function(){return this.ref},AppElement.prototype.getViewContainerRef=function(){return new view_container_ref_2.ViewContainerRef_(this)},AppElement.prototype.getTemplateRef=function(){return lang_1.isPresent(this.embeddedViewFactory)?new template_ref_1.TemplateRef_(this.ref):null},AppElement.prototype.getDependency=function(injector,provider,dep){if(provider instanceof DirectiveProvider){var dirDep=dep;if(lang_1.isPresent(dirDep.attributeName))return this._buildAttribute(dirDep);if(lang_1.isPresent(dirDep.queryDecorator))return this._queryStrategy.findQuery(dirDep.queryDecorator).list;if(dirDep.key.id===StaticKeys.instance().changeDetectorRefId)return this.proto.firstProviderIsComponent?new _ComponentViewChangeDetectorRef(this):this.parentView.changeDetector.ref;if(dirDep.key.id===StaticKeys.instance().elementRefId)return this.getElementRef();if(dirDep.key.id===StaticKeys.instance().viewContainerId)return this.getViewContainerRef();if(dirDep.key.id===StaticKeys.instance().templateRefId){var tr=this.getTemplateRef();if(lang_1.isBlank(tr)&&!dirDep.optional)throw new di_1.NoProviderError(null,dirDep.key);return tr}if(dirDep.key.id===StaticKeys.instance().rendererId)return this.parentView.renderer}else if(provider instanceof pipe_provider_1.PipeProvider&&dep.key.id===StaticKeys.instance().changeDetectorRefId)return this.proto.firstProviderIsComponent?new _ComponentViewChangeDetectorRef(this):this.parentView.changeDetector;return injector_1.UNDEFINED},AppElement.prototype._buildAttribute=function(dep){var attributes=this.proto.attributes;return lang_1.isPresent(attributes)&&collection_1.StringMapWrapper.contains(attributes,dep.attributeName)?attributes[dep.attributeName]:null},AppElement.prototype.addDirectivesMatchingQuery=function(query,list){var templateRef=this.getTemplateRef();query.selector===template_ref_1.TemplateRef&&lang_1.isPresent(templateRef)&&list.push(templateRef),null!=this._strategy&&this._strategy.addDirectivesMatchingQuery(query,list)},AppElement.prototype._buildQueryStrategy=function(){return 0===this.proto.protoQueryRefs.length?_emptyQueryStrategy:this.proto.protoQueryRefs.length<=InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES?new InlineQueryStrategy(this):new DynamicQueryStrategy(this)},AppElement.prototype.getDirectiveAtIndex=function(index){return this._injector.getAt(index)},AppElement.prototype.ngAfterViewChecked=function(){lang_1.isPresent(this._queryStrategy)&&this._queryStrategy.updateViewQueries()},AppElement.prototype.ngAfterContentChecked=function(){lang_1.isPresent(this._queryStrategy)&&this._queryStrategy.updateContentQueries()},AppElement.prototype.traverseAndSetQueriesAsDirty=function(){for(var inj=this;lang_1.isPresent(inj);)inj._setQueriesAsDirty(),inj=lang_1.isBlank(inj.parent)&&inj.parentView.proto.type===view_type_1.ViewType.EMBEDDED?inj.parentView.containerAppElement:inj.parent},AppElement.prototype._setQueriesAsDirty=function(){lang_1.isPresent(this._queryStrategy)&&this._queryStrategy.setContentQueriesAsDirty(),this.parentView.proto.type===view_type_1.ViewType.COMPONENT&&this.parentView.containerAppElement._queryStrategy.setViewQueriesAsDirty()},AppElement}();exports.AppElement=AppElement;var _EmptyQueryStrategy=function(){function _EmptyQueryStrategy(){}return _EmptyQueryStrategy.prototype.setContentQueriesAsDirty=function(){},_EmptyQueryStrategy.prototype.setViewQueriesAsDirty=function(){},_EmptyQueryStrategy.prototype.updateContentQueries=function(){},_EmptyQueryStrategy.prototype.updateViewQueries=function(){},_EmptyQueryStrategy.prototype.findQuery=function(query){throw new exceptions_1.BaseException("Cannot find query for directive "+query+".")},_EmptyQueryStrategy}(),_emptyQueryStrategy=new _EmptyQueryStrategy,InlineQueryStrategy=function(){function InlineQueryStrategy(ei){var protoRefs=ei.proto.protoQueryRefs;protoRefs.length>0&&(this.query0=new QueryRef(protoRefs[0],ei)),protoRefs.length>1&&(this.query1=new QueryRef(protoRefs[1],ei)),protoRefs.length>2&&(this.query2=new QueryRef(protoRefs[2],ei))}return InlineQueryStrategy.prototype.setContentQueriesAsDirty=function(){lang_1.isPresent(this.query0)&&!this.query0.isViewQuery&&(this.query0.dirty=!0),lang_1.isPresent(this.query1)&&!this.query1.isViewQuery&&(this.query1.dirty=!0),lang_1.isPresent(this.query2)&&!this.query2.isViewQuery&&(this.query2.dirty=!0)},InlineQueryStrategy.prototype.setViewQueriesAsDirty=function(){lang_1.isPresent(this.query0)&&this.query0.isViewQuery&&(this.query0.dirty=!0),lang_1.isPresent(this.query1)&&this.query1.isViewQuery&&(this.query1.dirty=!0),lang_1.isPresent(this.query2)&&this.query2.isViewQuery&&(this.query2.dirty=!0)},InlineQueryStrategy.prototype.updateContentQueries=function(){lang_1.isPresent(this.query0)&&!this.query0.isViewQuery&&this.query0.update(),lang_1.isPresent(this.query1)&&!this.query1.isViewQuery&&this.query1.update(),lang_1.isPresent(this.query2)&&!this.query2.isViewQuery&&this.query2.update()},InlineQueryStrategy.prototype.updateViewQueries=function(){lang_1.isPresent(this.query0)&&this.query0.isViewQuery&&this.query0.update(),lang_1.isPresent(this.query1)&&this.query1.isViewQuery&&this.query1.update(),lang_1.isPresent(this.query2)&&this.query2.isViewQuery&&this.query2.update()},InlineQueryStrategy.prototype.findQuery=function(query){if(lang_1.isPresent(this.query0)&&this.query0.protoQueryRef.query===query)return this.query0;if(lang_1.isPresent(this.query1)&&this.query1.protoQueryRef.query===query)return this.query1;if(lang_1.isPresent(this.query2)&&this.query2.protoQueryRef.query===query)return this.query2;throw new exceptions_1.BaseException("Cannot find query for directive "+query+".")},InlineQueryStrategy.NUMBER_OF_SUPPORTED_QUERIES=3,InlineQueryStrategy}(),DynamicQueryStrategy=function(){function DynamicQueryStrategy(ei){this.queries=ei.proto.protoQueryRefs.map(function(p){return new QueryRef(p,ei)})}return DynamicQueryStrategy.prototype.setContentQueriesAsDirty=function(){for(var i=0;i<this.queries.length;++i){var q=this.queries[i];q.isViewQuery||(q.dirty=!0)}},DynamicQueryStrategy.prototype.setViewQueriesAsDirty=function(){for(var i=0;i<this.queries.length;++i){var q=this.queries[i];q.isViewQuery&&(q.dirty=!0)}},DynamicQueryStrategy.prototype.updateContentQueries=function(){for(var i=0;i<this.queries.length;++i){var q=this.queries[i];q.isViewQuery||q.update()}},DynamicQueryStrategy.prototype.updateViewQueries=function(){for(var i=0;i<this.queries.length;++i){var q=this.queries[i];q.isViewQuery&&q.update()}},DynamicQueryStrategy.prototype.findQuery=function(query){for(var i=0;i<this.queries.length;++i){var q=this.queries[i];if(q.protoQueryRef.query===query)return q}throw new exceptions_1.BaseException("Cannot find query for directive "+query+".")},DynamicQueryStrategy}(),ElementDirectiveInlineStrategy=function(){function ElementDirectiveInlineStrategy(injectorStrategy,_ei){this.injectorStrategy=injectorStrategy,this._ei=_ei}return ElementDirectiveInlineStrategy.prototype.init=function(){var i=this.injectorStrategy,p=i.protoStrategy;i.resetConstructionCounter(),p.provider0 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId0)&&i.obj0===injector_1.UNDEFINED&&(i.obj0=i.instantiateProvider(p.provider0,p.visibility0)),p.provider1 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId1)&&i.obj1===injector_1.UNDEFINED&&(i.obj1=i.instantiateProvider(p.provider1,p.visibility1)),p.provider2 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId2)&&i.obj2===injector_1.UNDEFINED&&(i.obj2=i.instantiateProvider(p.provider2,p.visibility2)),p.provider3 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId3)&&i.obj3===injector_1.UNDEFINED&&(i.obj3=i.instantiateProvider(p.provider3,p.visibility3)),p.provider4 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId4)&&i.obj4===injector_1.UNDEFINED&&(i.obj4=i.instantiateProvider(p.provider4,p.visibility4)),p.provider5 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId5)&&i.obj5===injector_1.UNDEFINED&&(i.obj5=i.instantiateProvider(p.provider5,p.visibility5)),p.provider6 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId6)&&i.obj6===injector_1.UNDEFINED&&(i.obj6=i.instantiateProvider(p.provider6,p.visibility6)),p.provider7 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId7)&&i.obj7===injector_1.UNDEFINED&&(i.obj7=i.instantiateProvider(p.provider7,p.visibility7)),p.provider8 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId8)&&i.obj8===injector_1.UNDEFINED&&(i.obj8=i.instantiateProvider(p.provider8,p.visibility8)),p.provider9 instanceof DirectiveProvider&&lang_1.isPresent(p.keyId9)&&i.obj9===injector_1.UNDEFINED&&(i.obj9=i.instantiateProvider(p.provider9,p.visibility9))},ElementDirectiveInlineStrategy.prototype.getComponent=function(){return this.injectorStrategy.obj0},ElementDirectiveInlineStrategy.prototype.isComponentKey=function(key){return this._ei.proto.firstProviderIsComponent&&lang_1.isPresent(key)&&key.id===this.injectorStrategy.protoStrategy.keyId0},ElementDirectiveInlineStrategy.prototype.addDirectivesMatchingQuery=function(query,list){var i=this.injectorStrategy,p=i.protoStrategy;lang_1.isPresent(p.provider0)&&p.provider0.key.token===query.selector&&(i.obj0===injector_1.UNDEFINED&&(i.obj0=i.instantiateProvider(p.provider0,p.visibility0)),list.push(i.obj0)),lang_1.isPresent(p.provider1)&&p.provider1.key.token===query.selector&&(i.obj1===injector_1.UNDEFINED&&(i.obj1=i.instantiateProvider(p.provider1,p.visibility1)),list.push(i.obj1)),lang_1.isPresent(p.provider2)&&p.provider2.key.token===query.selector&&(i.obj2===injector_1.UNDEFINED&&(i.obj2=i.instantiateProvider(p.provider2,p.visibility2)),list.push(i.obj2)),lang_1.isPresent(p.provider3)&&p.provider3.key.token===query.selector&&(i.obj3===injector_1.UNDEFINED&&(i.obj3=i.instantiateProvider(p.provider3,p.visibility3)),list.push(i.obj3)),lang_1.isPresent(p.provider4)&&p.provider4.key.token===query.selector&&(i.obj4===injector_1.UNDEFINED&&(i.obj4=i.instantiateProvider(p.provider4,p.visibility4)),list.push(i.obj4)),lang_1.isPresent(p.provider5)&&p.provider5.key.token===query.selector&&(i.obj5===injector_1.UNDEFINED&&(i.obj5=i.instantiateProvider(p.provider5,p.visibility5)),list.push(i.obj5)),lang_1.isPresent(p.provider6)&&p.provider6.key.token===query.selector&&(i.obj6===injector_1.UNDEFINED&&(i.obj6=i.instantiateProvider(p.provider6,p.visibility6)),list.push(i.obj6)),lang_1.isPresent(p.provider7)&&p.provider7.key.token===query.selector&&(i.obj7===injector_1.UNDEFINED&&(i.obj7=i.instantiateProvider(p.provider7,p.visibility7)),list.push(i.obj7)),lang_1.isPresent(p.provider8)&&p.provider8.key.token===query.selector&&(i.obj8===injector_1.UNDEFINED&&(i.obj8=i.instantiateProvider(p.provider8,p.visibility8)),list.push(i.obj8)),lang_1.isPresent(p.provider9)&&p.provider9.key.token===query.selector&&(i.obj9===injector_1.UNDEFINED&&(i.obj9=i.instantiateProvider(p.provider9,p.visibility9)),list.push(i.obj9))},ElementDirectiveInlineStrategy}(),ElementDirectiveDynamicStrategy=function(){function ElementDirectiveDynamicStrategy(injectorStrategy,_ei){this.injectorStrategy=injectorStrategy,this._ei=_ei}return ElementDirectiveDynamicStrategy.prototype.init=function(){var inj=this.injectorStrategy,p=inj.protoStrategy;inj.resetConstructionCounter();for(var i=0;i<p.keyIds.length;i++)p.providers[i]instanceof DirectiveProvider&&lang_1.isPresent(p.keyIds[i])&&inj.objs[i]===injector_1.UNDEFINED&&(inj.objs[i]=inj.instantiateProvider(p.providers[i],p.visibilities[i]))},ElementDirectiveDynamicStrategy.prototype.getComponent=function(){return this.injectorStrategy.objs[0]},ElementDirectiveDynamicStrategy.prototype.isComponentKey=function(key){var p=this.injectorStrategy.protoStrategy;return this._ei.proto.firstProviderIsComponent&&lang_1.isPresent(key)&&key.id===p.keyIds[0]},ElementDirectiveDynamicStrategy.prototype.addDirectivesMatchingQuery=function(query,list){for(var ist=this.injectorStrategy,p=ist.protoStrategy,i=0;i<p.providers.length;i++)p.providers[i].key.token===query.selector&&(ist.objs[i]===injector_1.UNDEFINED&&(ist.objs[i]=ist.instantiateProvider(p.providers[i],p.visibilities[i])),list.push(ist.objs[i]))},ElementDirectiveDynamicStrategy}(),ProtoQueryRef=function(){function ProtoQueryRef(dirIndex,setter,query){this.dirIndex=dirIndex,this.setter=setter,this.query=query}return Object.defineProperty(ProtoQueryRef.prototype,"usesPropertySyntax",{get:function(){return lang_1.isPresent(this.setter)},enumerable:!0,configurable:!0}),ProtoQueryRef}();exports.ProtoQueryRef=ProtoQueryRef;var QueryRef=function(){function QueryRef(protoQueryRef,originator){this.protoQueryRef=protoQueryRef,this.originator=originator,this.list=new query_list_1.QueryList,this.dirty=!0}return Object.defineProperty(QueryRef.prototype,"isViewQuery",{get:function(){return this.protoQueryRef.query.isViewQuery},enumerable:!0,configurable:!0}),QueryRef.prototype.update=function(){if(this.dirty){if(this._update(),this.dirty=!1,this.protoQueryRef.usesPropertySyntax){var dir=this.originator.getDirectiveAtIndex(this.protoQueryRef.dirIndex);this.protoQueryRef.query.first?this.protoQueryRef.setter(dir,this.list.length>0?this.list.first:null):this.protoQueryRef.setter(dir,this.list)}this.list.notifyOnChanges()}},QueryRef.prototype._update=function(){var aggregator=[];if(this.protoQueryRef.query.isViewQuery){var nestedView=this.originator.componentView;lang_1.isPresent(nestedView)&&this._visitView(nestedView,aggregator)}else this._visit(this.originator,aggregator);this.list.reset(aggregator)},QueryRef.prototype._visit=function(inj,aggregator){for(var view=inj.parentView,startIdx=inj.proto.index,i=startIdx;i<view.appElements.length;i++){var curInj=view.appElements[i];if(i>startIdx&&(lang_1.isBlank(curInj.parent)||curInj.parent.proto.index<startIdx))break;(this.protoQueryRef.query.descendants||curInj.parent==this.originator||curInj==this.originator)&&(this._visitInjector(curInj,aggregator),this._visitViewContainerViews(curInj.nestedViews,aggregator))}},QueryRef.prototype._visitInjector=function(inj,aggregator){this.protoQueryRef.query.isVarBindingQuery?this._aggregateVariableBinding(inj,aggregator):this._aggregateDirective(inj,aggregator)},QueryRef.prototype._visitViewContainerViews=function(views,aggregator){if(lang_1.isPresent(views))for(var j=0;j<views.length;j++)this._visitView(views[j],aggregator)},QueryRef.prototype._visitView=function(view,aggregator){for(var i=0;i<view.appElements.length;i++){var inj=view.appElements[i];this._visitInjector(inj,aggregator),this._visitViewContainerViews(inj.nestedViews,aggregator)}},QueryRef.prototype._aggregateVariableBinding=function(inj,aggregator){for(var vb=this.protoQueryRef.query.varBindings,i=0;i<vb.length;++i)inj.hasVariableBinding(vb[i])&&aggregator.push(inj.getVariableBinding(vb[i]))},QueryRef.prototype._aggregateDirective=function(inj,aggregator){inj.addDirectivesMatchingQuery(this.protoQueryRef.query,aggregator)},QueryRef}();exports.QueryRef=QueryRef;var _ComponentViewChangeDetectorRef=function(_super){function _ComponentViewChangeDetectorRef(_appElement){_super.call(this),this._appElement=_appElement}return __extends(_ComponentViewChangeDetectorRef,_super),_ComponentViewChangeDetectorRef.prototype.markForCheck=function(){this._appElement.componentView.changeDetector.ref.markForCheck()},_ComponentViewChangeDetectorRef.prototype.detach=function(){this._appElement.componentView.changeDetector.ref.detach()},_ComponentViewChangeDetectorRef.prototype.detectChanges=function(){this._appElement.componentView.changeDetector.ref.detectChanges()},_ComponentViewChangeDetectorRef.prototype.checkNoChanges=function(){this._appElement.componentView.changeDetector.ref.checkNoChanges()},_ComponentViewChangeDetectorRef.prototype.reattach=function(){this._appElement.componentView.changeDetector.ref.reattach()},_ComponentViewChangeDetectorRef}(change_detection_1.ChangeDetectorRef);return global.define=__define,module.exports}),$__System.registerDynamic("9d",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var RenderComponentType=function(){function RenderComponentType(id,encapsulation,styles){this.id=id,this.encapsulation=encapsulation,this.styles=styles}return RenderComponentType}();exports.RenderComponentType=RenderComponentType;var RenderDebugInfo=function(){function RenderDebugInfo(injector,component,providerTokens,locals){this.injector=injector,this.component=component,this.providerTokens=providerTokens,this.locals=locals}return RenderDebugInfo}();exports.RenderDebugInfo=RenderDebugInfo;var Renderer=function(){function Renderer(){}return Renderer}();exports.Renderer=Renderer;var RootRenderer=function(){function RootRenderer(){}return RootRenderer}();return exports.RootRenderer=RootRenderer,global.define=__define,module.exports}),$__System.registerDynamic("d7",["7"],!0,function($__require,exports,module){"use strict";function detectWTF(){var wtf=lang_1.global.wtf;return wtf&&(trace=wtf.trace)?(events=trace.events,!0):!1}function createScope(signature,flags){return void 0===flags&&(flags=null),events.createScope(signature,flags)}function leave(scope,returnValue){return trace.leaveScope(scope,returnValue),returnValue}function startTimeRange(rangeType,action){return trace.beginTimeRange(rangeType,action)}function endTimeRange(range){trace.endTimeRange(range)}var global=this,__define=global.define;global.define=void 0;var trace,events,lang_1=$__require("7");return exports.detectWTF=detectWTF,exports.createScope=createScope,exports.leave=leave,exports.startTimeRange=startTimeRange,exports.endTimeRange=endTimeRange,global.define=__define,module.exports}),$__System.registerDynamic("9a",["d7"],!0,function($__require,exports,module){"use strict";function noopScope(arg0,arg1){return null}var global=this,__define=global.define;global.define=void 0;var impl=$__require("d7");return exports.wtfEnabled=impl.detectWTF(),exports.wtfCreateScope=exports.wtfEnabled?impl.createScope:function(signature,flags){return noopScope},exports.wtfLeave=exports.wtfEnabled?impl.leave:function(s,r){return r},exports.wtfStartTimeRange=exports.wtfEnabled?impl.startTimeRange:function(rangeType,action){return null},exports.wtfEndTimeRange=exports.wtfEnabled?impl.endTimeRange:function(r){return null},global.define=__define,module.exports}),$__System.registerDynamic("94",["7"],!0,function($__require,exports,module){"use strict";function extractAnnotation(annotation){return lang_1.isFunction(annotation)&&annotation.hasOwnProperty("annotation")&&(annotation=annotation.annotation),annotation}function applyParams(fnOrArray,key){if(fnOrArray===Object||fnOrArray===String||fnOrArray===Function||fnOrArray===Number||fnOrArray===Array)throw new Error("Can not use native "+lang_1.stringify(fnOrArray)+" as constructor");if(lang_1.isFunction(fnOrArray))return fnOrArray;if(fnOrArray instanceof Array){var annotations=fnOrArray,fn=fnOrArray[fnOrArray.length-1];if(!lang_1.isFunction(fn))throw new Error("Last position of Class method array must be Function in key "+key+" was '"+lang_1.stringify(fn)+"'");var annoLength=annotations.length-1;if(annoLength!=fn.length)throw new Error("Number of annotations ("+annoLength+") does not match number of arguments ("+fn.length+") in the function: "+lang_1.stringify(fn));for(var paramsAnnotations=[],i=0,ii=annotations.length-1;ii>i;i++){var paramAnnotations=[];paramsAnnotations.push(paramAnnotations);var annotation=annotations[i];if(annotation instanceof Array)for(var j=0;j<annotation.length;j++)paramAnnotations.push(extractAnnotation(annotation[j]));else lang_1.isFunction(annotation)?paramAnnotations.push(extractAnnotation(annotation)):paramAnnotations.push(annotation)}return Reflect.defineMetadata("parameters",paramsAnnotations,fn),fn}throw new Error("Only Function or Array is supported in Class definition for key '"+key+"' is '"+lang_1.stringify(fnOrArray)+"'")}function Class(clsDef){var constructor=applyParams(clsDef.hasOwnProperty("constructor")?clsDef.constructor:void 0,"constructor"),proto=constructor.prototype;if(clsDef.hasOwnProperty("extends")){if(!lang_1.isFunction(clsDef["extends"]))throw new Error("Class definition 'extends' property must be a constructor function was: "+lang_1.stringify(clsDef["extends"]));constructor.prototype=proto=Object.create(clsDef["extends"].prototype)}for(var key in clsDef)"extends"!=key&&"prototype"!=key&&clsDef.hasOwnProperty(key)&&(proto[key]=applyParams(clsDef[key],key));return this&&this.annotations instanceof Array&&Reflect.defineMetadata("annotations",this.annotations,constructor),constructor.name||(constructor.overriddenName="class"+_nextClassId++),constructor}function makeDecorator(annotationCls,chainFn){function DecoratorFactory(objOrType){var annotationInstance=new annotationCls(objOrType);if(this instanceof annotationCls)return annotationInstance;var chainAnnotation=lang_1.isFunction(this)&&this.annotations instanceof Array?this.annotations:[];chainAnnotation.push(annotationInstance);var TypeDecorator=function(cls){var annotations=Reflect.getOwnMetadata("annotations",cls);return annotations=annotations||[],annotations.push(annotationInstance),Reflect.defineMetadata("annotations",annotations,cls),cls};return TypeDecorator.annotations=chainAnnotation,TypeDecorator.Class=Class,chainFn&&chainFn(TypeDecorator),TypeDecorator}return void 0===chainFn&&(chainFn=null),DecoratorFactory.prototype=Object.create(annotationCls.prototype),DecoratorFactory}function makeParamDecorator(annotationCls){function ParamDecoratorFactory(){function ParamDecorator(cls,unusedKey,index){var parameters=Reflect.getMetadata("parameters",cls);for(parameters=parameters||[];parameters.length<=index;)parameters.push(null);parameters[index]=parameters[index]||[];var annotationsForParam=parameters[index];return annotationsForParam.push(annotationInstance),Reflect.defineMetadata("parameters",parameters,cls),cls}for(var args=[],_i=0;_i<arguments.length;_i++)args[_i-0]=arguments[_i];var annotationInstance=Object.create(annotationCls.prototype);return annotationCls.apply(annotationInstance,args),this instanceof annotationCls?annotationInstance:(ParamDecorator.annotation=annotationInstance,ParamDecorator)}return ParamDecoratorFactory.prototype=Object.create(annotationCls.prototype),ParamDecoratorFactory}function makePropDecorator(decoratorCls){function PropDecoratorFactory(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i-0]=arguments[_i];var decoratorInstance=Object.create(decoratorCls.prototype);return decoratorCls.apply(decoratorInstance,args),this instanceof decoratorCls?decoratorInstance:function(target,name){var meta=Reflect.getOwnMetadata("propMetadata",target.constructor);meta=meta||{},meta[name]=meta[name]||[],meta[name].unshift(decoratorInstance),Reflect.defineMetadata("propMetadata",meta,target.constructor)}}return PropDecoratorFactory.prototype=Object.create(decoratorCls.prototype),PropDecoratorFactory}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),_nextClassId=0;exports.Class=Class;var Reflect=lang_1.global.Reflect;if(!Reflect||!Reflect.getMetadata)throw"reflect-metadata shim is required when using class decorators";return exports.makeDecorator=makeDecorator,exports.makeParamDecorator=makeParamDecorator,exports.makePropDecorator=makePropDecorator,global.define=__define,module.exports}),$__System.registerDynamic("b2",["ab","94"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var metadata_1=$__require("ab"),decorators_1=$__require("94");return exports.Inject=decorators_1.makeParamDecorator(metadata_1.InjectMetadata),exports.Optional=decorators_1.makeParamDecorator(metadata_1.OptionalMetadata),exports.Injectable=decorators_1.makeDecorator(metadata_1.InjectableMetadata),exports.Self=decorators_1.makeParamDecorator(metadata_1.SelfMetadata),exports.Host=decorators_1.makeParamDecorator(metadata_1.HostMetadata),exports.SkipSelf=decorators_1.makeParamDecorator(metadata_1.SkipSelfMetadata),global.define=__define,module.exports}),$__System.registerDynamic("d8",[],!0,function($__require,exports,module){function cleanUpNextTick(){draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue()}function drainQueue(){if(!draining){var timeout=setTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,clearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var global=this,__define=global.define;global.define=void 0;var currentQueue,process=module.exports={},queue=[],draining=!1,queueIndex=-1;return process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||setTimeout(drainQueue,0)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0},global.define=__define,module.exports}),$__System.registerDynamic("d9",["d8"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("d8"),global.define=__define,module.exports}),$__System.registerDynamic("da",["d9"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__System._nodeRequire?process:$__require("d9"),global.define=__define,module.exports}),$__System.registerDynamic("4",["da"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,module.exports=$__require("da"),global.define=__define,module.exports}),$__System.registerDynamic("d6",["11","d5","db","7","10","dc","ab","4"],!0,function($__require,exports,module){var global=this,__define=global.define;return global.define=void 0,function(process){"use strict";function canSee(src,dst){return src===dst||dst===Visibility.PublicAndPrivate||src===Visibility.PublicAndPrivate}function _mapProviders(injector,fn){for(var res=[],i=0;i<injector._proto.numberOfProviders;++i)res.push(fn(injector._proto.getProviderAtIndex(i)));return res}var collection_1=$__require("11"),provider_1=$__require("d5"),exceptions_1=$__require("db"),lang_1=$__require("7"),exceptions_2=$__require("10"),key_1=$__require("dc"),metadata_1=$__require("ab"),_MAX_CONSTRUCTION_COUNTER=10;exports.UNDEFINED=lang_1.CONST_EXPR(new Object),function(Visibility){Visibility[Visibility.Public=0]="Public",Visibility[Visibility.Private=1]="Private",Visibility[Visibility.PublicAndPrivate=2]="PublicAndPrivate"}(exports.Visibility||(exports.Visibility={}));var Visibility=exports.Visibility,ProtoInjectorInlineStrategy=function(){function ProtoInjectorInlineStrategy(protoEI,bwv){this.provider0=null,this.provider1=null,this.provider2=null,this.provider3=null,this.provider4=null,this.provider5=null,this.provider6=null,this.provider7=null,this.provider8=null,this.provider9=null,this.keyId0=null,this.keyId1=null,this.keyId2=null,this.keyId3=null,this.keyId4=null,this.keyId5=null,this.keyId6=null,this.keyId7=null,this.keyId8=null,this.keyId9=null,this.visibility0=null,this.visibility1=null,this.visibility2=null,this.visibility3=null,this.visibility4=null,this.visibility5=null,this.visibility6=null,this.visibility7=null,this.visibility8=null,this.visibility9=null;var length=bwv.length;length>0&&(this.provider0=bwv[0].provider,this.keyId0=bwv[0].getKeyId(),this.visibility0=bwv[0].visibility),length>1&&(this.provider1=bwv[1].provider,this.keyId1=bwv[1].getKeyId(),this.visibility1=bwv[1].visibility),length>2&&(this.provider2=bwv[2].provider,this.keyId2=bwv[2].getKeyId(),this.visibility2=bwv[2].visibility),length>3&&(this.provider3=bwv[3].provider,this.keyId3=bwv[3].getKeyId(),this.visibility3=bwv[3].visibility),length>4&&(this.provider4=bwv[4].provider,this.keyId4=bwv[4].getKeyId(),this.visibility4=bwv[4].visibility),length>5&&(this.provider5=bwv[5].provider,this.keyId5=bwv[5].getKeyId(),this.visibility5=bwv[5].visibility),length>6&&(this.provider6=bwv[6].provider,this.keyId6=bwv[6].getKeyId(),this.visibility6=bwv[6].visibility),length>7&&(this.provider7=bwv[7].provider,this.keyId7=bwv[7].getKeyId(),this.visibility7=bwv[7].visibility),length>8&&(this.provider8=bwv[8].provider,this.keyId8=bwv[8].getKeyId(),this.visibility8=bwv[8].visibility),length>9&&(this.provider9=bwv[9].provider,this.keyId9=bwv[9].getKeyId(),this.visibility9=bwv[9].visibility)}return ProtoInjectorInlineStrategy.prototype.getProviderAtIndex=function(index){if(0==index)return this.provider0;if(1==index)return this.provider1;if(2==index)return this.provider2;if(3==index)return this.provider3;if(4==index)return this.provider4;if(5==index)return this.provider5;if(6==index)return this.provider6;if(7==index)return this.provider7;if(8==index)return this.provider8;if(9==index)return this.provider9;throw new exceptions_1.OutOfBoundsError(index)},ProtoInjectorInlineStrategy.prototype.createInjectorStrategy=function(injector){return new InjectorInlineStrategy(injector,this)},ProtoInjectorInlineStrategy}();exports.ProtoInjectorInlineStrategy=ProtoInjectorInlineStrategy;var ProtoInjectorDynamicStrategy=function(){function ProtoInjectorDynamicStrategy(protoInj,bwv){var len=bwv.length;this.providers=collection_1.ListWrapper.createFixedSize(len),this.keyIds=collection_1.ListWrapper.createFixedSize(len),this.visibilities=collection_1.ListWrapper.createFixedSize(len);for(var i=0;len>i;i++)this.providers[i]=bwv[i].provider,this.keyIds[i]=bwv[i].getKeyId(),this.visibilities[i]=bwv[i].visibility}return ProtoInjectorDynamicStrategy.prototype.getProviderAtIndex=function(index){if(0>index||index>=this.providers.length)throw new exceptions_1.OutOfBoundsError(index);return this.providers[index]},ProtoInjectorDynamicStrategy.prototype.createInjectorStrategy=function(ei){return new InjectorDynamicStrategy(this,ei)},ProtoInjectorDynamicStrategy}();exports.ProtoInjectorDynamicStrategy=ProtoInjectorDynamicStrategy;var ProtoInjector=function(){function ProtoInjector(bwv){this.numberOfProviders=bwv.length,this._strategy=bwv.length>_MAX_CONSTRUCTION_COUNTER?new ProtoInjectorDynamicStrategy(this,bwv):new ProtoInjectorInlineStrategy(this,bwv)}return ProtoInjector.fromResolvedProviders=function(providers){var bd=providers.map(function(b){return new ProviderWithVisibility(b,Visibility.Public)});return new ProtoInjector(bd)},ProtoInjector.prototype.getProviderAtIndex=function(index){return this._strategy.getProviderAtIndex(index)},ProtoInjector}();exports.ProtoInjector=ProtoInjector;var InjectorInlineStrategy=function(){function InjectorInlineStrategy(injector,protoStrategy){this.injector=injector,this.protoStrategy=protoStrategy,this.obj0=exports.UNDEFINED,this.obj1=exports.UNDEFINED,this.obj2=exports.UNDEFINED,this.obj3=exports.UNDEFINED,this.obj4=exports.UNDEFINED,this.obj5=exports.UNDEFINED,this.obj6=exports.UNDEFINED,this.obj7=exports.UNDEFINED,this.obj8=exports.UNDEFINED,this.obj9=exports.UNDEFINED}return InjectorInlineStrategy.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0;
},InjectorInlineStrategy.prototype.instantiateProvider=function(provider,visibility){return this.injector._new(provider,visibility)},InjectorInlineStrategy.prototype.getObjByKeyId=function(keyId,visibility){var p=this.protoStrategy,inj=this.injector;return p.keyId0===keyId&&canSee(p.visibility0,visibility)?(this.obj0===exports.UNDEFINED&&(this.obj0=inj._new(p.provider0,p.visibility0)),this.obj0):p.keyId1===keyId&&canSee(p.visibility1,visibility)?(this.obj1===exports.UNDEFINED&&(this.obj1=inj._new(p.provider1,p.visibility1)),this.obj1):p.keyId2===keyId&&canSee(p.visibility2,visibility)?(this.obj2===exports.UNDEFINED&&(this.obj2=inj._new(p.provider2,p.visibility2)),this.obj2):p.keyId3===keyId&&canSee(p.visibility3,visibility)?(this.obj3===exports.UNDEFINED&&(this.obj3=inj._new(p.provider3,p.visibility3)),this.obj3):p.keyId4===keyId&&canSee(p.visibility4,visibility)?(this.obj4===exports.UNDEFINED&&(this.obj4=inj._new(p.provider4,p.visibility4)),this.obj4):p.keyId5===keyId&&canSee(p.visibility5,visibility)?(this.obj5===exports.UNDEFINED&&(this.obj5=inj._new(p.provider5,p.visibility5)),this.obj5):p.keyId6===keyId&&canSee(p.visibility6,visibility)?(this.obj6===exports.UNDEFINED&&(this.obj6=inj._new(p.provider6,p.visibility6)),this.obj6):p.keyId7===keyId&&canSee(p.visibility7,visibility)?(this.obj7===exports.UNDEFINED&&(this.obj7=inj._new(p.provider7,p.visibility7)),this.obj7):p.keyId8===keyId&&canSee(p.visibility8,visibility)?(this.obj8===exports.UNDEFINED&&(this.obj8=inj._new(p.provider8,p.visibility8)),this.obj8):p.keyId9===keyId&&canSee(p.visibility9,visibility)?(this.obj9===exports.UNDEFINED&&(this.obj9=inj._new(p.provider9,p.visibility9)),this.obj9):exports.UNDEFINED},InjectorInlineStrategy.prototype.getObjAtIndex=function(index){if(0==index)return this.obj0;if(1==index)return this.obj1;if(2==index)return this.obj2;if(3==index)return this.obj3;if(4==index)return this.obj4;if(5==index)return this.obj5;if(6==index)return this.obj6;if(7==index)return this.obj7;if(8==index)return this.obj8;if(9==index)return this.obj9;throw new exceptions_1.OutOfBoundsError(index)},InjectorInlineStrategy.prototype.getMaxNumberOfObjects=function(){return _MAX_CONSTRUCTION_COUNTER},InjectorInlineStrategy}();exports.InjectorInlineStrategy=InjectorInlineStrategy;var InjectorDynamicStrategy=function(){function InjectorDynamicStrategy(protoStrategy,injector){this.protoStrategy=protoStrategy,this.injector=injector,this.objs=collection_1.ListWrapper.createFixedSize(protoStrategy.providers.length),collection_1.ListWrapper.fill(this.objs,exports.UNDEFINED)}return InjectorDynamicStrategy.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},InjectorDynamicStrategy.prototype.instantiateProvider=function(provider,visibility){return this.injector._new(provider,visibility)},InjectorDynamicStrategy.prototype.getObjByKeyId=function(keyId,visibility){for(var p=this.protoStrategy,i=0;i<p.keyIds.length;i++)if(p.keyIds[i]===keyId&&canSee(p.visibilities[i],visibility))return this.objs[i]===exports.UNDEFINED&&(this.objs[i]=this.injector._new(p.providers[i],p.visibilities[i])),this.objs[i];return exports.UNDEFINED},InjectorDynamicStrategy.prototype.getObjAtIndex=function(index){if(0>index||index>=this.objs.length)throw new exceptions_1.OutOfBoundsError(index);return this.objs[index]},InjectorDynamicStrategy.prototype.getMaxNumberOfObjects=function(){return this.objs.length},InjectorDynamicStrategy}();exports.InjectorDynamicStrategy=InjectorDynamicStrategy;var ProviderWithVisibility=function(){function ProviderWithVisibility(provider,visibility){this.provider=provider,this.visibility=visibility}return ProviderWithVisibility.prototype.getKeyId=function(){return this.provider.key.id},ProviderWithVisibility}();exports.ProviderWithVisibility=ProviderWithVisibility;var Injector=function(){function Injector(_proto,_parent,_isHostBoundary,_depProvider,_debugContext){void 0===_parent&&(_parent=null),void 0===_isHostBoundary&&(_isHostBoundary=!1),void 0===_depProvider&&(_depProvider=null),void 0===_debugContext&&(_debugContext=null),this._isHostBoundary=_isHostBoundary,this._depProvider=_depProvider,this._debugContext=_debugContext,this._constructionCounter=0,this._proto=_proto,this._parent=_parent,this._strategy=_proto._strategy.createInjectorStrategy(this)}return Injector.resolve=function(providers){return provider_1.resolveProviders(providers)},Injector.resolveAndCreate=function(providers){var resolvedProviders=Injector.resolve(providers);return Injector.fromResolvedProviders(resolvedProviders)},Injector.fromResolvedProviders=function(providers){return new Injector(ProtoInjector.fromResolvedProviders(providers))},Injector.fromResolvedBindings=function(providers){return Injector.fromResolvedProviders(providers)},Object.defineProperty(Injector.prototype,"hostBoundary",{get:function(){return this._isHostBoundary},enumerable:!0,configurable:!0}),Injector.prototype.debugContext=function(){return this._debugContext()},Injector.prototype.get=function(token){return this._getByKey(key_1.Key.get(token),null,null,!1,Visibility.PublicAndPrivate)},Injector.prototype.getOptional=function(token){return this._getByKey(key_1.Key.get(token),null,null,!0,Visibility.PublicAndPrivate)},Injector.prototype.getAt=function(index){return this._strategy.getObjAtIndex(index)},Object.defineProperty(Injector.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(Injector.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0}),Injector.prototype.resolveAndCreateChild=function(providers){var resolvedProviders=Injector.resolve(providers);return this.createChildFromResolved(resolvedProviders)},Injector.prototype.createChildFromResolved=function(providers){var bd=providers.map(function(b){return new ProviderWithVisibility(b,Visibility.Public)}),proto=new ProtoInjector(bd),inj=new Injector(proto);return inj._parent=this,inj},Injector.prototype.resolveAndInstantiate=function(provider){return this.instantiateResolved(Injector.resolve([provider])[0])},Injector.prototype.instantiateResolved=function(provider){return this._instantiateProvider(provider,Visibility.PublicAndPrivate)},Injector.prototype._new=function(provider,visibility){if(this._constructionCounter++>this._strategy.getMaxNumberOfObjects())throw new exceptions_1.CyclicDependencyError(this,provider.key);return this._instantiateProvider(provider,visibility)},Injector.prototype._instantiateProvider=function(provider,visibility){if(provider.multiProvider){for(var res=collection_1.ListWrapper.createFixedSize(provider.resolvedFactories.length),i=0;i<provider.resolvedFactories.length;++i)res[i]=this._instantiate(provider,provider.resolvedFactories[i],visibility);return res}return this._instantiate(provider,provider.resolvedFactories[0],visibility)},Injector.prototype._instantiate=function(provider,resolvedFactory,visibility){var d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15,d16,d17,d18,d19,factory=resolvedFactory.factory,deps=resolvedFactory.dependencies,length=deps.length;try{d0=length>0?this._getByDependency(provider,deps[0],visibility):null,d1=length>1?this._getByDependency(provider,deps[1],visibility):null,d2=length>2?this._getByDependency(provider,deps[2],visibility):null,d3=length>3?this._getByDependency(provider,deps[3],visibility):null,d4=length>4?this._getByDependency(provider,deps[4],visibility):null,d5=length>5?this._getByDependency(provider,deps[5],visibility):null,d6=length>6?this._getByDependency(provider,deps[6],visibility):null,d7=length>7?this._getByDependency(provider,deps[7],visibility):null,d8=length>8?this._getByDependency(provider,deps[8],visibility):null,d9=length>9?this._getByDependency(provider,deps[9],visibility):null,d10=length>10?this._getByDependency(provider,deps[10],visibility):null,d11=length>11?this._getByDependency(provider,deps[11],visibility):null,d12=length>12?this._getByDependency(provider,deps[12],visibility):null,d13=length>13?this._getByDependency(provider,deps[13],visibility):null,d14=length>14?this._getByDependency(provider,deps[14],visibility):null,d15=length>15?this._getByDependency(provider,deps[15],visibility):null,d16=length>16?this._getByDependency(provider,deps[16],visibility):null,d17=length>17?this._getByDependency(provider,deps[17],visibility):null,d18=length>18?this._getByDependency(provider,deps[18],visibility):null,d19=length>19?this._getByDependency(provider,deps[19],visibility):null}catch(e){throw(e instanceof exceptions_1.AbstractProviderError||e instanceof exceptions_1.InstantiationError)&&e.addKey(this,provider.key),e}var obj;try{switch(length){case 0:obj=factory();break;case 1:obj=factory(d0);break;case 2:obj=factory(d0,d1);break;case 3:obj=factory(d0,d1,d2);break;case 4:obj=factory(d0,d1,d2,d3);break;case 5:obj=factory(d0,d1,d2,d3,d4);break;case 6:obj=factory(d0,d1,d2,d3,d4,d5);break;case 7:obj=factory(d0,d1,d2,d3,d4,d5,d6);break;case 8:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7);break;case 9:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8);break;case 10:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9);break;case 11:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10);break;case 12:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11);break;case 13:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12);break;case 14:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13);break;case 15:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14);break;case 16:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15);break;case 17:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15,d16);break;case 18:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15,d16,d17);break;case 19:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15,d16,d17,d18);break;case 20:obj=factory(d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15,d16,d17,d18,d19);break;default:throw new exceptions_2.BaseException("Cannot instantiate '"+provider.key.displayName+"' because it has more than 20 dependencies")}}catch(e){throw new exceptions_1.InstantiationError(this,e,e.stack,provider.key)}return obj},Injector.prototype._getByDependency=function(provider,dep,providerVisibility){var special=lang_1.isPresent(this._depProvider)?this._depProvider.getDependency(this,provider,dep):exports.UNDEFINED;return special!==exports.UNDEFINED?special:this._getByKey(dep.key,dep.lowerBoundVisibility,dep.upperBoundVisibility,dep.optional,providerVisibility)},Injector.prototype._getByKey=function(key,lowerBoundVisibility,upperBoundVisibility,optional,providerVisibility){return key===INJECTOR_KEY?this:upperBoundVisibility instanceof metadata_1.SelfMetadata?this._getByKeySelf(key,optional,providerVisibility):upperBoundVisibility instanceof metadata_1.HostMetadata?this._getByKeyHost(key,optional,providerVisibility,lowerBoundVisibility):this._getByKeyDefault(key,optional,providerVisibility,lowerBoundVisibility)},Injector.prototype._throwOrNull=function(key,optional){if(optional)return null;throw new exceptions_1.NoProviderError(this,key)},Injector.prototype._getByKeySelf=function(key,optional,providerVisibility){var obj=this._strategy.getObjByKeyId(key.id,providerVisibility);return obj!==exports.UNDEFINED?obj:this._throwOrNull(key,optional)},Injector.prototype._getByKeyHost=function(key,optional,providerVisibility,lowerBoundVisibility){var inj=this;if(lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata){if(inj._isHostBoundary)return this._getPrivateDependency(key,optional,inj);inj=inj._parent}for(;null!=inj;){var obj=inj._strategy.getObjByKeyId(key.id,providerVisibility);if(obj!==exports.UNDEFINED)return obj;if(lang_1.isPresent(inj._parent)&&inj._isHostBoundary)return this._getPrivateDependency(key,optional,inj);inj=inj._parent}return this._throwOrNull(key,optional)},Injector.prototype._getPrivateDependency=function(key,optional,inj){var obj=inj._parent._strategy.getObjByKeyId(key.id,Visibility.Private);return obj!==exports.UNDEFINED?obj:this._throwOrNull(key,optional)},Injector.prototype._getByKeyDefault=function(key,optional,providerVisibility,lowerBoundVisibility){var inj=this;for(lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata&&(providerVisibility=inj._isHostBoundary?Visibility.PublicAndPrivate:Visibility.Public,inj=inj._parent);null!=inj;){var obj=inj._strategy.getObjByKeyId(key.id,providerVisibility);if(obj!==exports.UNDEFINED)return obj;providerVisibility=inj._isHostBoundary?Visibility.PublicAndPrivate:Visibility.Public,inj=inj._parent}return this._throwOrNull(key,optional)},Object.defineProperty(Injector.prototype,"displayName",{get:function(){return"Injector(providers: ["+_mapProviders(this,function(b){return' "'+b.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),Injector.prototype.toString=function(){return this.displayName},Injector}();exports.Injector=Injector;var INJECTOR_KEY=key_1.Key.get(Injector)}($__require("4")),global.define=__define,module.exports}),$__System.registerDynamic("ab",["7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),InjectMetadata=function(){function InjectMetadata(token){this.token=token}return InjectMetadata.prototype.toString=function(){return"@Inject("+lang_1.stringify(this.token)+")"},InjectMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object])],InjectMetadata)}();exports.InjectMetadata=InjectMetadata;var OptionalMetadata=function(){function OptionalMetadata(){}return OptionalMetadata.prototype.toString=function(){return"@Optional()"},OptionalMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],OptionalMetadata)}();exports.OptionalMetadata=OptionalMetadata;var DependencyMetadata=function(){function DependencyMetadata(){}return Object.defineProperty(DependencyMetadata.prototype,"token",{get:function(){return null},enumerable:!0,configurable:!0}),DependencyMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],DependencyMetadata)}();exports.DependencyMetadata=DependencyMetadata;var InjectableMetadata=function(){function InjectableMetadata(){}return InjectableMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],InjectableMetadata)}();exports.InjectableMetadata=InjectableMetadata;var SelfMetadata=function(){function SelfMetadata(){}return SelfMetadata.prototype.toString=function(){return"@Self()"},SelfMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],SelfMetadata)}();exports.SelfMetadata=SelfMetadata;var SkipSelfMetadata=function(){function SkipSelfMetadata(){}return SkipSelfMetadata.prototype.toString=function(){return"@SkipSelf()"},SkipSelfMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],SkipSelfMetadata)}();exports.SkipSelfMetadata=SkipSelfMetadata;var HostMetadata=function(){function HostMetadata(){}return HostMetadata.prototype.toString=function(){return"@Host()"},HostMetadata=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[])],HostMetadata)}();return exports.HostMetadata=HostMetadata,global.define=__define,module.exports}),$__System.registerDynamic("d5",["7","10","11","82","dc","ab","db","dd"],!0,function($__require,exports,module){"use strict";function bind(token){return new ProviderBuilder(token)}function provide(token,_a){var useClass=_a.useClass,useValue=_a.useValue,useExisting=_a.useExisting,useFactory=_a.useFactory,deps=_a.deps,multi=_a.multi;return new Provider(token,{useClass:useClass,useValue:useValue,useExisting:useExisting,useFactory:useFactory,deps:deps,multi:multi})}function resolveFactory(provider){var factoryFn,resolvedDeps;if(lang_1.isPresent(provider.useClass)){var useClass=forward_ref_1.resolveForwardRef(provider.useClass);factoryFn=reflection_1.reflector.factory(useClass),resolvedDeps=_dependenciesFor(useClass)}else lang_1.isPresent(provider.useExisting)?(factoryFn=function(aliasInstance){return aliasInstance},resolvedDeps=[Dependency.fromKey(key_1.Key.get(provider.useExisting))]):lang_1.isPresent(provider.useFactory)?(factoryFn=provider.useFactory,resolvedDeps=_constructDependencies(provider.useFactory,provider.dependencies)):(factoryFn=function(){return provider.useValue},resolvedDeps=_EMPTY_LIST);return new ResolvedFactory(factoryFn,resolvedDeps)}function resolveProvider(provider){return new ResolvedProvider_(key_1.Key.get(provider.token),[resolveFactory(provider)],provider.multi)}function resolveProviders(providers){var normalized=_normalizeProviders(providers,[]),resolved=normalized.map(resolveProvider);return collection_1.MapWrapper.values(mergeResolvedProviders(resolved,new Map))}function mergeResolvedProviders(providers,normalizedProvidersMap){for(var i=0;i<providers.length;i++){var provider=providers[i],existing=normalizedProvidersMap.get(provider.key.id);if(lang_1.isPresent(existing)){if(provider.multiProvider!==existing.multiProvider)throw new exceptions_2.MixingMultiProvidersWithRegularProvidersError(existing,provider);if(provider.multiProvider)for(var j=0;j<provider.resolvedFactories.length;j++)existing.resolvedFactories.push(provider.resolvedFactories[j]);else normalizedProvidersMap.set(provider.key.id,provider)}else{var resolvedProvider;resolvedProvider=provider.multiProvider?new ResolvedProvider_(provider.key,collection_1.ListWrapper.clone(provider.resolvedFactories),provider.multiProvider):provider,normalizedProvidersMap.set(provider.key.id,resolvedProvider)}}return normalizedProvidersMap}function _normalizeProviders(providers,res){return providers.forEach(function(b){if(b instanceof lang_1.Type)res.push(provide(b,{useClass:b}));else if(b instanceof Provider)res.push(b);else{if(!(b instanceof Array))throw b instanceof ProviderBuilder?new exceptions_2.InvalidProviderError(b.token):new exceptions_2.InvalidProviderError(b);_normalizeProviders(b,res)}}),res}function _constructDependencies(factoryFunction,dependencies){if(lang_1.isBlank(dependencies))return _dependenciesFor(factoryFunction);var params=dependencies.map(function(t){return[t]});return dependencies.map(function(t){return _extractToken(factoryFunction,t,params)})}function _dependenciesFor(typeOrFunc){var params=reflection_1.reflector.parameters(typeOrFunc);if(lang_1.isBlank(params))return[];if(params.some(lang_1.isBlank))throw new exceptions_2.NoAnnotationError(typeOrFunc,params);return params.map(function(p){return _extractToken(typeOrFunc,p,params)})}function _extractToken(typeOrFunc,metadata,params){var depProps=[],token=null,optional=!1;if(!lang_1.isArray(metadata))return metadata instanceof metadata_1.InjectMetadata?_createDependency(metadata.token,optional,null,null,depProps):_createDependency(metadata,optional,null,null,depProps);for(var lowerBoundVisibility=null,upperBoundVisibility=null,i=0;i<metadata.length;++i){var paramMetadata=metadata[i];paramMetadata instanceof lang_1.Type?token=paramMetadata:paramMetadata instanceof metadata_1.InjectMetadata?token=paramMetadata.token:paramMetadata instanceof metadata_1.OptionalMetadata?optional=!0:paramMetadata instanceof metadata_1.SelfMetadata?upperBoundVisibility=paramMetadata:paramMetadata instanceof metadata_1.HostMetadata?upperBoundVisibility=paramMetadata:paramMetadata instanceof metadata_1.SkipSelfMetadata?lowerBoundVisibility=paramMetadata:paramMetadata instanceof metadata_1.DependencyMetadata&&(lang_1.isPresent(paramMetadata.token)&&(token=paramMetadata.token),depProps.push(paramMetadata))}if(token=forward_ref_1.resolveForwardRef(token),lang_1.isPresent(token))return _createDependency(token,optional,lowerBoundVisibility,upperBoundVisibility,depProps);throw new exceptions_2.NoAnnotationError(typeOrFunc,params)}function _createDependency(token,optional,lowerBoundVisibility,upperBoundVisibility,depProps){return new Dependency(key_1.Key.get(token),optional,lowerBoundVisibility,upperBoundVisibility,depProps)}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),reflection_1=$__require("82"),key_1=$__require("dc"),metadata_1=$__require("ab"),exceptions_2=$__require("db"),forward_ref_1=$__require("dd"),Dependency=function(){function Dependency(key,optional,lowerBoundVisibility,upperBoundVisibility,properties){this.key=key,this.optional=optional,this.lowerBoundVisibility=lowerBoundVisibility,this.upperBoundVisibility=upperBoundVisibility,this.properties=properties}return Dependency.fromKey=function(key){return new Dependency(key,!1,null,null,[])},Dependency}();exports.Dependency=Dependency;var _EMPTY_LIST=lang_1.CONST_EXPR([]),Provider=function(){function Provider(token,_a){var useClass=_a.useClass,useValue=_a.useValue,useExisting=_a.useExisting,useFactory=_a.useFactory,deps=_a.deps,multi=_a.multi;this.token=token,this.useClass=useClass,this.useValue=useValue,this.useExisting=useExisting,this.useFactory=useFactory,this.dependencies=deps,this._multi=multi}return Object.defineProperty(Provider.prototype,"multi",{get:function(){return lang_1.normalizeBool(this._multi)},enumerable:!0,configurable:!0}),Provider=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object,Object])],Provider)}();exports.Provider=Provider;var Binding=function(_super){function Binding(token,_a){var toClass=_a.toClass,toValue=_a.toValue,toAlias=_a.toAlias,toFactory=_a.toFactory,deps=_a.deps,multi=_a.multi;_super.call(this,token,{useClass:toClass,useValue:toValue,useExisting:toAlias,useFactory:toFactory,deps:deps,multi:multi})}return __extends(Binding,_super),Object.defineProperty(Binding.prototype,"toClass",{get:function(){return this.useClass},enumerable:!0,configurable:!0}),Object.defineProperty(Binding.prototype,"toAlias",{get:function(){return this.useExisting},enumerable:!0,configurable:!0}),Object.defineProperty(Binding.prototype,"toFactory",{get:function(){return this.useFactory},enumerable:!0,configurable:!0}),Object.defineProperty(Binding.prototype,"toValue",{get:function(){return this.useValue},enumerable:!0,configurable:!0}),Binding=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[Object,Object])],Binding)}(Provider);exports.Binding=Binding;var ResolvedProvider_=function(){function ResolvedProvider_(key,resolvedFactories,multiProvider){this.key=key,this.resolvedFactories=resolvedFactories,this.multiProvider=multiProvider}return Object.defineProperty(ResolvedProvider_.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),ResolvedProvider_}();exports.ResolvedProvider_=ResolvedProvider_;var ResolvedFactory=function(){function ResolvedFactory(factory,dependencies){this.factory=factory,this.dependencies=dependencies}return ResolvedFactory}();exports.ResolvedFactory=ResolvedFactory,exports.bind=bind,exports.provide=provide;var ProviderBuilder=function(){function ProviderBuilder(token){this.token=token}return ProviderBuilder.prototype.toClass=function(type){if(!lang_1.isType(type))throw new exceptions_1.BaseException('Trying to create a class provider but "'+lang_1.stringify(type)+'" is not a class!');return new Provider(this.token,{useClass:type})},ProviderBuilder.prototype.toValue=function(value){return new Provider(this.token,{useValue:value})},ProviderBuilder.prototype.toAlias=function(aliasToken){if(lang_1.isBlank(aliasToken))throw new exceptions_1.BaseException("Can not alias "+lang_1.stringify(this.token)+" to a blank value!");return new Provider(this.token,{useExisting:aliasToken})},ProviderBuilder.prototype.toFactory=function(factory,dependencies){if(!lang_1.isFunction(factory))throw new exceptions_1.BaseException('Trying to create a factory provider but "'+lang_1.stringify(factory)+'" is not a function!');return new Provider(this.token,{useFactory:factory,deps:dependencies})},ProviderBuilder}();return exports.ProviderBuilder=ProviderBuilder,exports.resolveFactory=resolveFactory,exports.resolveProvider=resolveProvider,exports.resolveProviders=resolveProviders,exports.mergeResolvedProviders=mergeResolvedProviders,global.define=__define,module.exports}),$__System.registerDynamic("de",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var TypeLiteral=function(){function TypeLiteral(){}return Object.defineProperty(TypeLiteral.prototype,"type",{get:function(){throw new Error("Type literals are only supported in Dart")},enumerable:!0,configurable:!0}),TypeLiteral}();return exports.TypeLiteral=TypeLiteral,global.define=__define,module.exports}),$__System.registerDynamic("dd",["7"],!0,function($__require,exports,module){"use strict";function forwardRef(forwardRefFn){return forwardRefFn.__forward_ref__=forwardRef,forwardRefFn.toString=function(){return lang_1.stringify(this())},forwardRefFn}function resolveForwardRef(type){return lang_1.isFunction(type)&&type.hasOwnProperty("__forward_ref__")&&type.__forward_ref__===forwardRef?type():type}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");return exports.forwardRef=forwardRef,exports.resolveForwardRef=resolveForwardRef,global.define=__define,module.exports}),$__System.registerDynamic("dc",["7","10","de","dd"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),type_literal_1=$__require("de"),forward_ref_1=$__require("dd"),type_literal_2=$__require("de");exports.TypeLiteral=type_literal_2.TypeLiteral;var Key=function(){function Key(token,id){if(this.token=token,this.id=id,lang_1.isBlank(token))throw new exceptions_1.BaseException("Token must be defined!")}return Object.defineProperty(Key.prototype,"displayName",{get:function(){return lang_1.stringify(this.token)},enumerable:!0,configurable:!0}),Key.get=function(token){return _globalKeyRegistry.get(forward_ref_1.resolveForwardRef(token))},Object.defineProperty(Key,"numberOfKeys",{get:function(){return _globalKeyRegistry.numberOfKeys},enumerable:!0,configurable:!0}),Key}();exports.Key=Key;var KeyRegistry=function(){function KeyRegistry(){this._allKeys=new Map}return KeyRegistry.prototype.get=function(token){if(token instanceof Key)return token;var theToken=token;if(token instanceof type_literal_1.TypeLiteral&&(theToken=token.type),token=theToken,this._allKeys.has(token))return this._allKeys.get(token);var newKey=new Key(token,Key.numberOfKeys);return this._allKeys.set(token,newKey),newKey},Object.defineProperty(KeyRegistry.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),KeyRegistry}();exports.KeyRegistry=KeyRegistry;var _globalKeyRegistry=new KeyRegistry;return global.define=__define,module.exports}),$__System.registerDynamic("db",["11","7","10"],!0,function($__require,exports,module){"use strict";function findFirstClosedCycle(keys){for(var res=[],i=0;i<keys.length;++i){if(collection_1.ListWrapper.contains(res,keys[i]))return res.push(keys[i]),res;res.push(keys[i])}return res}function constructResolvingPath(keys){if(keys.length>1){var reversed=findFirstClosedCycle(collection_1.ListWrapper.reversed(keys)),tokenStrs=reversed.map(function(k){return lang_1.stringify(k.token)});return" ("+tokenStrs.join(" -> ")+")"}return""}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},collection_1=$__require("11"),lang_1=$__require("7"),exceptions_1=$__require("10"),AbstractProviderError=function(_super){function AbstractProviderError(injector,key,constructResolvingMessage){_super.call(this,"DI Exception"),this.keys=[key],this.injectors=[injector],this.constructResolvingMessage=constructResolvingMessage,this.message=this.constructResolvingMessage(this.keys)}return __extends(AbstractProviderError,_super),AbstractProviderError.prototype.addKey=function(injector,key){this.injectors.push(injector),this.keys.push(key),this.message=this.constructResolvingMessage(this.keys)},Object.defineProperty(AbstractProviderError.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),AbstractProviderError}(exceptions_1.BaseException);exports.AbstractProviderError=AbstractProviderError;var NoProviderError=function(_super){function NoProviderError(injector,key){_super.call(this,injector,key,function(keys){var first=lang_1.stringify(collection_1.ListWrapper.first(keys).token);return"No provider for "+first+"!"+constructResolvingPath(keys)})}return __extends(NoProviderError,_super),NoProviderError}(AbstractProviderError);exports.NoProviderError=NoProviderError;var CyclicDependencyError=function(_super){function CyclicDependencyError(injector,key){_super.call(this,injector,key,function(keys){return"Cannot instantiate cyclic dependency!"+constructResolvingPath(keys)})}return __extends(CyclicDependencyError,_super),CyclicDependencyError}(AbstractProviderError);exports.CyclicDependencyError=CyclicDependencyError;var InstantiationError=function(_super){function InstantiationError(injector,originalException,originalStack,key){_super.call(this,"DI Exception",originalException,originalStack,null),this.keys=[key],this.injectors=[injector]}return __extends(InstantiationError,_super),InstantiationError.prototype.addKey=function(injector,key){this.injectors.push(injector),this.keys.push(key)},Object.defineProperty(InstantiationError.prototype,"wrapperMessage",{get:function(){var first=lang_1.stringify(collection_1.ListWrapper.first(this.keys).token);return"Error during instantiation of "+first+"!"+constructResolvingPath(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(InstantiationError.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),Object.defineProperty(InstantiationError.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),InstantiationError}(exceptions_1.WrappedException);exports.InstantiationError=InstantiationError;var InvalidProviderError=function(_super){function InvalidProviderError(provider){_super.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+provider.toString())}return __extends(InvalidProviderError,_super),InvalidProviderError}(exceptions_1.BaseException);exports.InvalidProviderError=InvalidProviderError;var NoAnnotationError=function(_super){function NoAnnotationError(typeOrFunc,params){_super.call(this,NoAnnotationError._genMessage(typeOrFunc,params));
}return __extends(NoAnnotationError,_super),NoAnnotationError._genMessage=function(typeOrFunc,params){for(var signature=[],i=0,ii=params.length;ii>i;i++){var parameter=params[i];lang_1.isBlank(parameter)||0==parameter.length?signature.push("?"):signature.push(parameter.map(lang_1.stringify).join(" "))}return"Cannot resolve all parameters for '"+lang_1.stringify(typeOrFunc)+"'("+signature.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+lang_1.stringify(typeOrFunc)+"' is decorated with Injectable."},NoAnnotationError}(exceptions_1.BaseException);exports.NoAnnotationError=NoAnnotationError;var OutOfBoundsError=function(_super){function OutOfBoundsError(index){_super.call(this,"Index "+index+" is out-of-bounds.")}return __extends(OutOfBoundsError,_super),OutOfBoundsError}(exceptions_1.BaseException);exports.OutOfBoundsError=OutOfBoundsError;var MixingMultiProvidersWithRegularProvidersError=function(_super){function MixingMultiProvidersWithRegularProvidersError(provider1,provider2){_super.call(this,"Cannot mix multi providers and regular providers, got: "+provider1.toString()+" "+provider2.toString())}return __extends(MixingMultiProvidersWithRegularProvidersError,_super),MixingMultiProvidersWithRegularProvidersError}(exceptions_1.BaseException);return exports.MixingMultiProvidersWithRegularProvidersError=MixingMultiProvidersWithRegularProvidersError,global.define=__define,module.exports}),$__System.registerDynamic("df",["7"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},lang_1=$__require("7"),OpaqueToken=function(){function OpaqueToken(_desc){this._desc=_desc}return OpaqueToken.prototype.toString=function(){return"Token "+this._desc},OpaqueToken=__decorate([lang_1.CONST(),__metadata("design:paramtypes",[String])],OpaqueToken)}();return exports.OpaqueToken=OpaqueToken,global.define=__define,module.exports}),$__System.registerDynamic("3c",["ab","b2","dd","d6","d5","dc","db","df"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;global.define=void 0;var metadata_1=$__require("ab");exports.InjectMetadata=metadata_1.InjectMetadata,exports.OptionalMetadata=metadata_1.OptionalMetadata,exports.InjectableMetadata=metadata_1.InjectableMetadata,exports.SelfMetadata=metadata_1.SelfMetadata,exports.HostMetadata=metadata_1.HostMetadata,exports.SkipSelfMetadata=metadata_1.SkipSelfMetadata,exports.DependencyMetadata=metadata_1.DependencyMetadata,__export($__require("b2"));var forward_ref_1=$__require("dd");exports.forwardRef=forward_ref_1.forwardRef,exports.resolveForwardRef=forward_ref_1.resolveForwardRef;var injector_1=$__require("d6");exports.Injector=injector_1.Injector;var provider_1=$__require("d5");exports.Binding=provider_1.Binding,exports.ProviderBuilder=provider_1.ProviderBuilder,exports.ResolvedFactory=provider_1.ResolvedFactory,exports.Dependency=provider_1.Dependency,exports.bind=provider_1.bind,exports.Provider=provider_1.Provider,exports.provide=provider_1.provide;var key_1=$__require("dc");exports.Key=key_1.Key,exports.TypeLiteral=key_1.TypeLiteral;var exceptions_1=$__require("db");exports.NoProviderError=exceptions_1.NoProviderError,exports.AbstractProviderError=exceptions_1.AbstractProviderError,exports.CyclicDependencyError=exceptions_1.CyclicDependencyError,exports.InstantiationError=exceptions_1.InstantiationError,exports.InvalidProviderError=exceptions_1.InvalidProviderError,exports.NoAnnotationError=exceptions_1.NoAnnotationError,exports.OutOfBoundsError=exceptions_1.OutOfBoundsError;var opaque_token_1=$__require("df");return exports.OpaqueToken=opaque_token_1.OpaqueToken,global.define=__define,module.exports}),$__System.registerDynamic("8e",["3c","7"],!0,function($__require,exports,module){"use strict";function _appIdRandomProviderFactory(){return""+_randomChar()+_randomChar()+_randomChar()}function _randomChar(){return lang_1.StringWrapper.fromCharCode(97+lang_1.Math.floor(25*lang_1.Math.random()))}var global=this,__define=global.define;global.define=void 0;var di_1=$__require("3c"),lang_1=$__require("7");return exports.APP_COMPONENT_REF_PROMISE=lang_1.CONST_EXPR(new di_1.OpaqueToken("Promise<ComponentRef>")),exports.APP_COMPONENT=lang_1.CONST_EXPR(new di_1.OpaqueToken("AppComponent")),exports.APP_ID=lang_1.CONST_EXPR(new di_1.OpaqueToken("AppId")),exports.APP_ID_RANDOM_PROVIDER=lang_1.CONST_EXPR(new di_1.Provider(exports.APP_ID,{useFactory:_appIdRandomProviderFactory,deps:[]})),exports.PLATFORM_INITIALIZER=lang_1.CONST_EXPR(new di_1.OpaqueToken("Platform Initializer")),exports.APP_INITIALIZER=lang_1.CONST_EXPR(new di_1.OpaqueToken("Application Initializer")),exports.PACKAGE_ROOT_URL=lang_1.CONST_EXPR(new di_1.OpaqueToken("Application Packages Root URL")),global.define=__define,module.exports}),$__System.registerDynamic("8b",[],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0,function(ViewType){ViewType[ViewType.HOST=0]="HOST",ViewType[ViewType.COMPONENT=1]="COMPONENT",ViewType[ViewType.EMBEDDED=2]="EMBEDDED"}(exports.ViewType||(exports.ViewType={}));exports.ViewType;return global.define=__define,module.exports}),$__System.registerDynamic("9f",["3c","7","11","10","6b","8c","9d","9a","8e","8b"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},__param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}},di_1=$__require("3c"),lang_1=$__require("7"),collection_1=$__require("11"),exceptions_1=$__require("10"),view_1=$__require("6b"),element_1=$__require("8c"),api_1=$__require("9d"),profile_1=$__require("9a"),application_tokens_1=$__require("8e"),view_type_1=$__require("8b"),AppViewManager=function(){function AppViewManager(){}return AppViewManager}();exports.AppViewManager=AppViewManager;var AppViewManager_=function(_super){function AppViewManager_(_renderer,_appId){_super.call(this),this._renderer=_renderer,this._appId=_appId,this._nextCompTypeId=0,this._createRootHostViewScope=profile_1.wtfCreateScope("AppViewManager#createRootHostView()"),this._destroyRootHostViewScope=profile_1.wtfCreateScope("AppViewManager#destroyRootHostView()"),this._createEmbeddedViewInContainerScope=profile_1.wtfCreateScope("AppViewManager#createEmbeddedViewInContainer()"),this._createHostViewInContainerScope=profile_1.wtfCreateScope("AppViewManager#createHostViewInContainer()"),this._destroyViewInContainerScope=profile_1.wtfCreateScope("AppViewMananger#destroyViewInContainer()"),this._attachViewInContainerScope=profile_1.wtfCreateScope("AppViewMananger#attachViewInContainer()"),this._detachViewInContainerScope=profile_1.wtfCreateScope("AppViewMananger#detachViewInContainer()")}return __extends(AppViewManager_,_super),AppViewManager_.prototype.getViewContainer=function(location){return location.internalElement.getViewContainerRef()},AppViewManager_.prototype.getHostElement=function(hostViewRef){var hostView=hostViewRef.internalView;if(hostView.proto.type!==view_type_1.ViewType.HOST)throw new exceptions_1.BaseException("This operation is only allowed on host views");return hostView.appElements[0].ref},AppViewManager_.prototype.getNamedElementInComponentView=function(hostLocation,variableName){var appEl=hostLocation.internalElement,componentView=appEl.componentView;if(lang_1.isBlank(componentView))throw new exceptions_1.BaseException("There is no component directive at element "+hostLocation);for(var i=0;i<componentView.appElements.length;i++){var compAppEl=componentView.appElements[i];if(collection_1.StringMapWrapper.contains(compAppEl.proto.directiveVariableBindings,variableName))return compAppEl.ref}throw new exceptions_1.BaseException("Could not find variable "+variableName)},AppViewManager_.prototype.getComponent=function(hostLocation){return hostLocation.internalElement.getComponent()},AppViewManager_.prototype.createRootHostView=function(hostViewFactoryRef,overrideSelector,injector,projectableNodes){void 0===projectableNodes&&(projectableNodes=null);var s=this._createRootHostViewScope(),hostViewFactory=hostViewFactoryRef.internalHostViewFactory,selector=lang_1.isPresent(overrideSelector)?overrideSelector:hostViewFactory.selector,view=hostViewFactory.viewFactory(this._renderer,this,null,projectableNodes,selector,null,injector);return profile_1.wtfLeave(s,view.ref)},AppViewManager_.prototype.destroyRootHostView=function(hostViewRef){var s=this._destroyRootHostViewScope(),hostView=hostViewRef.internalView;hostView.renderer.detachView(view_1.flattenNestedViewRenderNodes(hostView.rootNodesOrAppElements)),hostView.destroy(),profile_1.wtfLeave(s)},AppViewManager_.prototype.createEmbeddedViewInContainer=function(viewContainerLocation,index,templateRef){var s=this._createEmbeddedViewInContainerScope(),contextEl=templateRef.elementRef.internalElement,view=contextEl.embeddedViewFactory(contextEl.parentView.renderer,this,contextEl,contextEl.parentView.projectableNodes,null,null,null);return this._attachViewToContainer(view,viewContainerLocation.internalElement,index),profile_1.wtfLeave(s,view.ref)},AppViewManager_.prototype.createHostViewInContainer=function(viewContainerLocation,index,hostViewFactoryRef,dynamicallyCreatedProviders,projectableNodes){var s=this._createHostViewInContainerScope(),viewContainerLocation_=viewContainerLocation,contextEl=viewContainerLocation_.internalElement,hostViewFactory=hostViewFactoryRef.internalHostViewFactory,view=hostViewFactory.viewFactory(contextEl.parentView.renderer,contextEl.parentView.viewManager,contextEl,projectableNodes,null,dynamicallyCreatedProviders,null);return this._attachViewToContainer(view,viewContainerLocation_.internalElement,index),profile_1.wtfLeave(s,view.ref)},AppViewManager_.prototype.destroyViewInContainer=function(viewContainerLocation,index){var s=this._destroyViewInContainerScope(),view=this._detachViewInContainer(viewContainerLocation.internalElement,index);view.destroy(),profile_1.wtfLeave(s)},AppViewManager_.prototype.attachViewInContainer=function(viewContainerLocation,index,viewRef){var viewRef_=viewRef,s=this._attachViewInContainerScope();return this._attachViewToContainer(viewRef_.internalView,viewContainerLocation.internalElement,index),profile_1.wtfLeave(s,viewRef_)},AppViewManager_.prototype.detachViewInContainer=function(viewContainerLocation,index){var s=this._detachViewInContainerScope(),view=this._detachViewInContainer(viewContainerLocation.internalElement,index);return profile_1.wtfLeave(s,view.ref)},AppViewManager_.prototype.onViewCreated=function(view){},AppViewManager_.prototype.onViewDestroyed=function(view){},AppViewManager_.prototype.createRenderComponentType=function(encapsulation,styles){return new api_1.RenderComponentType(this._appId+"-"+this._nextCompTypeId++,encapsulation,styles)},AppViewManager_.prototype._attachViewToContainer=function(view,vcAppElement,viewIndex){if(view.proto.type===view_type_1.ViewType.COMPONENT)throw new exceptions_1.BaseException("Component views can't be moved!");var nestedViews=vcAppElement.nestedViews;null==nestedViews&&(nestedViews=[],vcAppElement.nestedViews=nestedViews),collection_1.ListWrapper.insert(nestedViews,viewIndex,view);var refNode;if(viewIndex>0){var prevView=nestedViews[viewIndex-1];refNode=prevView.rootNodesOrAppElements.length>0?prevView.rootNodesOrAppElements[prevView.rootNodesOrAppElements.length-1]:null}else refNode=vcAppElement.nativeElement;if(lang_1.isPresent(refNode)){var refRenderNode;refRenderNode=refNode instanceof element_1.AppElement?refNode.nativeElement:refNode,view.renderer.attachViewAfter(refRenderNode,view_1.flattenNestedViewRenderNodes(view.rootNodesOrAppElements))}vcAppElement.parentView.changeDetector.addContentChild(view.changeDetector),vcAppElement.traverseAndSetQueriesAsDirty()},AppViewManager_.prototype._detachViewInContainer=function(vcAppElement,viewIndex){var view=collection_1.ListWrapper.removeAt(vcAppElement.nestedViews,viewIndex);if(view.proto.type===view_type_1.ViewType.COMPONENT)throw new exceptions_1.BaseException("Component views can't be moved!");return vcAppElement.traverseAndSetQueriesAsDirty(),view.renderer.detachView(view_1.flattenNestedViewRenderNodes(view.rootNodesOrAppElements)),view.changeDetector.remove(),view},AppViewManager_=__decorate([di_1.Injectable(),__param(1,di_1.Inject(application_tokens_1.APP_ID)),__metadata("design:paramtypes",[api_1.RootRenderer,String])],AppViewManager_)}(AppViewManager);return exports.AppViewManager_=AppViewManager_,global.define=__define,module.exports}),$__System.registerDynamic("98",["3c","5e","7","9f"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0},di_1=$__require("3c"),compiler_1=$__require("5e"),lang_1=$__require("7"),view_manager_1=$__require("9f"),ComponentRef=function(){function ComponentRef(){}return Object.defineProperty(ComponentRef.prototype,"hostView",{get:function(){return this.location.internalElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef.prototype,"hostComponent",{get:function(){return this.instance},enumerable:!0,configurable:!0}),ComponentRef}();exports.ComponentRef=ComponentRef;var ComponentRef_=function(_super){function ComponentRef_(location,instance,componentType,injector,_dispose){_super.call(this),this._dispose=_dispose,this.location=location,this.instance=instance,this.componentType=componentType,this.injector=injector}return __extends(ComponentRef_,_super),Object.defineProperty(ComponentRef_.prototype,"hostComponentType",{get:function(){return this.componentType},enumerable:!0,configurable:!0}),ComponentRef_.prototype.dispose=function(){this._dispose()},ComponentRef_}(ComponentRef);exports.ComponentRef_=ComponentRef_;var DynamicComponentLoader=function(){function DynamicComponentLoader(){}return DynamicComponentLoader}();exports.DynamicComponentLoader=DynamicComponentLoader;var DynamicComponentLoader_=function(_super){function DynamicComponentLoader_(_compiler,_viewManager){_super.call(this),this._compiler=_compiler,this._viewManager=_viewManager}return __extends(DynamicComponentLoader_,_super),DynamicComponentLoader_.prototype.loadAsRoot=function(type,overrideSelector,injector,onDispose,projectableNodes){var _this=this;return this._compiler.compileInHost(type).then(function(hostProtoViewRef){var hostViewRef=_this._viewManager.createRootHostView(hostProtoViewRef,overrideSelector,injector,projectableNodes),newLocation=_this._viewManager.getHostElement(hostViewRef),component=_this._viewManager.getComponent(newLocation),dispose=function(){lang_1.isPresent(onDispose)&&onDispose(),_this._viewManager.destroyRootHostView(hostViewRef)};return new ComponentRef_(newLocation,component,type,injector,dispose)})},DynamicComponentLoader_.prototype.loadIntoLocation=function(type,hostLocation,anchorName,providers,projectableNodes){return void 0===providers&&(providers=null),void 0===projectableNodes&&(projectableNodes=null),this.loadNextToLocation(type,this._viewManager.getNamedElementInComponentView(hostLocation,anchorName),providers,projectableNodes)},DynamicComponentLoader_.prototype.loadNextToLocation=function(type,location,providers,projectableNodes){var _this=this;return void 0===providers&&(providers=null),void 0===projectableNodes&&(projectableNodes=null),this._compiler.compileInHost(type).then(function(hostProtoViewRef){var viewContainer=_this._viewManager.getViewContainer(location),hostViewRef=viewContainer.createHostView(hostProtoViewRef,viewContainer.length,providers,projectableNodes),newLocation=_this._viewManager.getHostElement(hostViewRef),component=_this._viewManager.getComponent(newLocation),dispose=function(){var index=viewContainer.indexOf(hostViewRef);hostViewRef.destroyed||-1===index||viewContainer.remove(index)};return new ComponentRef_(newLocation,component,type,null,dispose)})},DynamicComponentLoader_=__decorate([di_1.Injectable(),__metadata("design:paramtypes",[compiler_1.Compiler,view_manager_1.AppViewManager])],DynamicComponentLoader_)}(DynamicComponentLoader);return exports.DynamicComponentLoader_=DynamicComponentLoader_,global.define=__define,module.exports}),$__System.registerDynamic("e0",["7","3c","8e","6c","6d","9f","81","7f","80","5e","98"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),di_1=$__require("3c"),application_tokens_1=$__require("8e"),change_detection_1=$__require("6c"),resolved_metadata_cache_1=$__require("6d"),view_manager_1=$__require("9f"),view_manager_2=$__require("9f"),view_resolver_1=$__require("81"),directive_resolver_1=$__require("7f"),pipe_resolver_1=$__require("80"),compiler_1=$__require("5e"),compiler_2=$__require("5e"),dynamic_component_loader_1=$__require("98"),dynamic_component_loader_2=$__require("98");return exports.APPLICATION_COMMON_PROVIDERS=lang_1.CONST_EXPR([new di_1.Provider(compiler_1.Compiler,{useClass:compiler_2.Compiler_}),application_tokens_1.APP_ID_RANDOM_PROVIDER,resolved_metadata_cache_1.ResolvedMetadataCache,new di_1.Provider(view_manager_1.AppViewManager,{useClass:view_manager_2.AppViewManager_}),view_resolver_1.ViewResolver,new di_1.Provider(change_detection_1.IterableDiffers,{useValue:change_detection_1.defaultIterableDiffers}),new di_1.Provider(change_detection_1.KeyValueDiffers,{useValue:change_detection_1.defaultKeyValueDiffers}),directive_resolver_1.DirectiveResolver,pipe_resolver_1.PipeResolver,new di_1.Provider(dynamic_component_loader_1.DynamicComponentLoader,{useClass:dynamic_component_loader_2.DynamicComponentLoader_})]),global.define=__define,module.exports}),$__System.registerDynamic("e1",["7","10","11"],!0,function($__require,exports,module){"use strict";function _mergeMaps(target,config){collection_1.StringMapWrapper.forEach(config,function(v,k){return target.set(k,v)})}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),ReflectionInfo=function(){function ReflectionInfo(annotations,parameters,factory,interfaces,propMetadata){this.annotations=annotations,this.parameters=parameters,this.factory=factory,this.interfaces=interfaces,this.propMetadata=propMetadata}return ReflectionInfo}();exports.ReflectionInfo=ReflectionInfo;var Reflector=function(){function Reflector(reflectionCapabilities){this._injectableInfo=new collection_1.Map,this._getters=new collection_1.Map,this._setters=new collection_1.Map,this._methods=new collection_1.Map,this._usedKeys=null,this.reflectionCapabilities=reflectionCapabilities}return Reflector.prototype.isReflectionEnabled=function(){return this.reflectionCapabilities.isReflectionEnabled()},Reflector.prototype.trackUsage=function(){this._usedKeys=new collection_1.Set},Reflector.prototype.listUnusedKeys=function(){var _this=this;if(null==this._usedKeys)throw new exceptions_1.BaseException("Usage tracking is disabled");var allTypes=collection_1.MapWrapper.keys(this._injectableInfo);return allTypes.filter(function(key){return!collection_1.SetWrapper.has(_this._usedKeys,key)})},Reflector.prototype.registerFunction=function(func,funcInfo){this._injectableInfo.set(func,funcInfo)},Reflector.prototype.registerType=function(type,typeInfo){this._injectableInfo.set(type,typeInfo)},Reflector.prototype.registerGetters=function(getters){_mergeMaps(this._getters,getters)},Reflector.prototype.registerSetters=function(setters){_mergeMaps(this._setters,setters)},Reflector.prototype.registerMethods=function(methods){_mergeMaps(this._methods,methods)},Reflector.prototype.factory=function(type){if(this._containsReflectionInfo(type)){var res=this._getReflectionInfo(type).factory;return lang_1.isPresent(res)?res:null}return this.reflectionCapabilities.factory(type)},Reflector.prototype.parameters=function(typeOrFunc){if(this._injectableInfo.has(typeOrFunc)){var res=this._getReflectionInfo(typeOrFunc).parameters;return lang_1.isPresent(res)?res:[]}return this.reflectionCapabilities.parameters(typeOrFunc)},Reflector.prototype.annotations=function(typeOrFunc){if(this._injectableInfo.has(typeOrFunc)){var res=this._getReflectionInfo(typeOrFunc).annotations;return lang_1.isPresent(res)?res:[]}return this.reflectionCapabilities.annotations(typeOrFunc)},Reflector.prototype.propMetadata=function(typeOrFunc){if(this._injectableInfo.has(typeOrFunc)){var res=this._getReflectionInfo(typeOrFunc).propMetadata;return lang_1.isPresent(res)?res:{}}return this.reflectionCapabilities.propMetadata(typeOrFunc)},Reflector.prototype.interfaces=function(type){if(this._injectableInfo.has(type)){var res=this._getReflectionInfo(type).interfaces;return lang_1.isPresent(res)?res:[]}return this.reflectionCapabilities.interfaces(type)},Reflector.prototype.getter=function(name){return this._getters.has(name)?this._getters.get(name):this.reflectionCapabilities.getter(name)},Reflector.prototype.setter=function(name){return this._setters.has(name)?this._setters.get(name):this.reflectionCapabilities.setter(name)},Reflector.prototype.method=function(name){return this._methods.has(name)?this._methods.get(name):this.reflectionCapabilities.method(name)},Reflector.prototype._getReflectionInfo=function(typeOrFunc){return lang_1.isPresent(this._usedKeys)&&this._usedKeys.add(typeOrFunc),this._injectableInfo.get(typeOrFunc)},Reflector.prototype._containsReflectionInfo=function(typeOrFunc){return this._injectableInfo.has(typeOrFunc)},Reflector.prototype.importUri=function(type){return this.reflectionCapabilities.importUri(type)},Reflector}();return exports.Reflector=Reflector,global.define=__define,module.exports}),$__System.registerDynamic("7",[],!0,function($__require,exports,module){"use strict";function getTypeNameForDebugging(type){return type.name}function lockMode(){_modeLocked=!0}function enableProdMode(){if(_modeLocked)throw"Cannot enable prod mode after platform setup.";_devMode=!1}function assertionsEnabled(){return _devMode}function CONST_EXPR(expr){return expr}function CONST(){return function(target){return target}}function isPresent(obj){return void 0!==obj&&null!==obj}function isBlank(obj){return void 0===obj||null===obj}function isString(obj){return"string"==typeof obj}function isFunction(obj){return"function"==typeof obj}function isType(obj){return isFunction(obj)}function isStringMap(obj){return"object"==typeof obj&&null!==obj}function isPromise(obj){return obj instanceof _global.Promise}function isArray(obj){return Array.isArray(obj)}function isNumber(obj){return"number"==typeof obj}function isDate(obj){return obj instanceof exports.Date&&!isNaN(obj.valueOf())}function noop(){}function stringify(token){if("string"==typeof token)return token;if(void 0===token||null===token)return""+token;if(token.name)return token.name;if(token.overriddenName)return token.overriddenName;var res=token.toString(),newLineIndex=res.indexOf("\n");return-1===newLineIndex?res:res.substring(0,newLineIndex)}function serializeEnum(val){return val}function deserializeEnum(val,values){return val}function looseIdentical(a,b){return a===b||"number"==typeof a&&"number"==typeof b&&isNaN(a)&&isNaN(b)}function getMapKey(value){return value}function normalizeBlank(obj){return isBlank(obj)?null:obj}function normalizeBool(obj){return isBlank(obj)?!1:obj}function isJsObject(o){return null!==o&&("function"==typeof o||"object"==typeof o)}function print(obj){console.log(obj)}function setValueOnPath(global,path,value){for(var parts=path.split("."),obj=global;parts.length>1;){var name=parts.shift();obj=obj.hasOwnProperty(name)&&isPresent(obj[name])?obj[name]:obj[name]={}}(void 0===obj||null===obj)&&(obj={}),obj[parts.shift()]=value}function getSymbolIterator(){if(isBlank(_symbolIterator))if(isPresent(Symbol)&&isPresent(Symbol.iterator))_symbolIterator=Symbol.iterator;else for(var keys=Object.getOwnPropertyNames(Map.prototype),i=0;i<keys.length;++i){var key=keys[i];"entries"!==key&&"size"!==key&&Map.prototype[key]===Map.prototype.entries&&(_symbolIterator=key)}return _symbolIterator}function evalExpression(sourceUrl,expr,declarations,vars){var fnBody=declarations+"\nreturn "+expr+"\n//# sourceURL="+sourceUrl,fnArgNames=[],fnArgValues=[];for(var argName in vars)fnArgNames.push(argName),fnArgValues.push(vars[argName]);return(new(Function.bind.apply(Function,[void 0].concat(fnArgNames.concat(fnBody))))).apply(void 0,fnArgValues)}function isPrimitive(obj){return!isJsObject(obj)}function hasConstructor(value,type){return value.constructor===type}var global=this,__define=global.define;global.define=void 0;var globalScope,__extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)};globalScope="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window,exports.IS_DART=!1;var _global=globalScope;exports.global=_global,exports.Type=Function,exports.getTypeNameForDebugging=getTypeNameForDebugging,exports.Math=_global.Math,exports.Date=_global.Date;var _devMode=!0,_modeLocked=!1;exports.lockMode=lockMode,exports.enableProdMode=enableProdMode,exports.assertionsEnabled=assertionsEnabled,_global.assert=function(condition){},exports.CONST_EXPR=CONST_EXPR,exports.CONST=CONST,exports.isPresent=isPresent,exports.isBlank=isBlank,exports.isString=isString,exports.isFunction=isFunction,exports.isType=isType,exports.isStringMap=isStringMap,exports.isPromise=isPromise,exports.isArray=isArray,exports.isNumber=isNumber,exports.isDate=isDate,exports.noop=noop,exports.stringify=stringify,exports.serializeEnum=serializeEnum,exports.deserializeEnum=deserializeEnum;var StringWrapper=function(){function StringWrapper(){}return StringWrapper.fromCharCode=function(code){return String.fromCharCode(code)},StringWrapper.charCodeAt=function(s,index){return s.charCodeAt(index)},StringWrapper.split=function(s,regExp){return s.split(regExp)},StringWrapper.equals=function(s,s2){return s===s2},StringWrapper.stripLeft=function(s,charVal){if(s&&s.length){for(var pos=0,i=0;i<s.length&&s[i]==charVal;i++)pos++;s=s.substring(pos)}return s},StringWrapper.stripRight=function(s,charVal){if(s&&s.length){for(var pos=s.length,i=s.length-1;i>=0&&s[i]==charVal;i--)pos--;s=s.substring(0,pos)}return s},StringWrapper.replace=function(s,from,replace){return s.replace(from,replace)},StringWrapper.replaceAll=function(s,from,replace){return s.replace(from,replace)},StringWrapper.slice=function(s,from,to){return void 0===from&&(from=0),void 0===to&&(to=null),s.slice(from,null===to?void 0:to)},StringWrapper.replaceAllMapped=function(s,from,cb){return s.replace(from,function(){for(var matches=[],_i=0;_i<arguments.length;_i++)matches[_i-0]=arguments[_i];return matches.splice(-2,2),cb(matches)})},StringWrapper.contains=function(s,substr){return-1!=s.indexOf(substr)},StringWrapper.compare=function(a,b){return b>a?-1:a>b?1:0},StringWrapper}();exports.StringWrapper=StringWrapper;var StringJoiner=function(){function StringJoiner(parts){void 0===parts&&(parts=[]),this.parts=parts}return StringJoiner.prototype.add=function(part){this.parts.push(part)},StringJoiner.prototype.toString=function(){return this.parts.join("")},StringJoiner}();exports.StringJoiner=StringJoiner;var NumberParseError=function(_super){function NumberParseError(message){_super.call(this),this.message=message}return __extends(NumberParseError,_super),NumberParseError.prototype.toString=function(){return this.message},NumberParseError}(Error);exports.NumberParseError=NumberParseError;var NumberWrapper=function(){function NumberWrapper(){}return NumberWrapper.toFixed=function(n,fractionDigits){return n.toFixed(fractionDigits)},NumberWrapper.equal=function(a,b){return a===b},NumberWrapper.parseIntAutoRadix=function(text){var result=parseInt(text);if(isNaN(result))throw new NumberParseError("Invalid integer literal when parsing "+text);return result},NumberWrapper.parseInt=function(text,radix){if(10==radix){if(/^(\-|\+)?[0-9]+$/.test(text))return parseInt(text,radix)}else if(16==radix){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(text))return parseInt(text,radix)}else{var result=parseInt(text,radix);if(!isNaN(result))return result}throw new NumberParseError("Invalid integer literal when parsing "+text+" in base "+radix)},NumberWrapper.parseFloat=function(text){return parseFloat(text)},Object.defineProperty(NumberWrapper,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),NumberWrapper.isNaN=function(value){return isNaN(value)},NumberWrapper.isInteger=function(value){return Number.isInteger(value)},NumberWrapper}();exports.NumberWrapper=NumberWrapper,exports.RegExp=_global.RegExp;var RegExpWrapper=function(){function RegExpWrapper(){}return RegExpWrapper.create=function(regExpStr,flags){return void 0===flags&&(flags=""),flags=flags.replace(/g/g,""),new _global.RegExp(regExpStr,flags+"g")},RegExpWrapper.firstMatch=function(regExp,input){return regExp.lastIndex=0,regExp.exec(input)},RegExpWrapper.test=function(regExp,input){return regExp.lastIndex=0,regExp.test(input)},RegExpWrapper.matcher=function(regExp,input){return regExp.lastIndex=0,{re:regExp,input:input}},RegExpWrapper}();exports.RegExpWrapper=RegExpWrapper;var RegExpMatcherWrapper=function(){function RegExpMatcherWrapper(){}return RegExpMatcherWrapper.next=function(matcher){return matcher.re.exec(matcher.input)},RegExpMatcherWrapper}();exports.RegExpMatcherWrapper=RegExpMatcherWrapper;var FunctionWrapper=function(){function FunctionWrapper(){}return FunctionWrapper.apply=function(fn,posArgs){return fn.apply(null,posArgs)},
FunctionWrapper}();exports.FunctionWrapper=FunctionWrapper,exports.looseIdentical=looseIdentical,exports.getMapKey=getMapKey,exports.normalizeBlank=normalizeBlank,exports.normalizeBool=normalizeBool,exports.isJsObject=isJsObject,exports.print=print;var Json=function(){function Json(){}return Json.parse=function(s){return _global.JSON.parse(s)},Json.stringify=function(data){return _global.JSON.stringify(data,null,2)},Json}();exports.Json=Json;var DateWrapper=function(){function DateWrapper(){}return DateWrapper.create=function(year,month,day,hour,minutes,seconds,milliseconds){return void 0===month&&(month=1),void 0===day&&(day=1),void 0===hour&&(hour=0),void 0===minutes&&(minutes=0),void 0===seconds&&(seconds=0),void 0===milliseconds&&(milliseconds=0),new exports.Date(year,month-1,day,hour,minutes,seconds,milliseconds)},DateWrapper.fromISOString=function(str){return new exports.Date(str)},DateWrapper.fromMillis=function(ms){return new exports.Date(ms)},DateWrapper.toMillis=function(date){return date.getTime()},DateWrapper.now=function(){return new exports.Date},DateWrapper.toJson=function(date){return date.toJSON()},DateWrapper}();exports.DateWrapper=DateWrapper,exports.setValueOnPath=setValueOnPath;var _symbolIterator=null;return exports.getSymbolIterator=getSymbolIterator,exports.evalExpression=evalExpression,exports.isPrimitive=isPrimitive,exports.hasConstructor=hasConstructor,global.define=__define,module.exports}),$__System.registerDynamic("11",["7"],!0,function($__require,exports,module){"use strict";function isListLikeIterable(obj){return lang_1.isJsObject(obj)?lang_1.isArray(obj)||!(obj instanceof exports.Map)&&lang_1.getSymbolIterator()in obj:!1}function areIterablesEqual(a,b,comparator){for(var iterator1=a[lang_1.getSymbolIterator()](),iterator2=b[lang_1.getSymbolIterator()]();;){var item1=iterator1.next(),item2=iterator2.next();if(item1.done&&item2.done)return!0;if(item1.done||item2.done)return!1;if(!comparator(item1.value,item2.value))return!1}}function iterateListLike(obj,fn){if(lang_1.isArray(obj))for(var i=0;i<obj.length;i++)fn(obj[i]);else for(var item,iterator=obj[lang_1.getSymbolIterator()]();!(item=iterator.next()).done;)fn(item.value)}var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7");exports.Map=lang_1.global.Map,exports.Set=lang_1.global.Set;var createMapFromPairs=function(){try{if(1===new exports.Map([[1,2]]).size)return function(pairs){return new exports.Map(pairs)}}catch(e){}return function(pairs){for(var map=new exports.Map,i=0;i<pairs.length;i++){var pair=pairs[i];map.set(pair[0],pair[1])}return map}}(),createMapFromMap=function(){try{if(new exports.Map(new exports.Map))return function(m){return new exports.Map(m)}}catch(e){}return function(m){var map=new exports.Map;return m.forEach(function(v,k){map.set(k,v)}),map}}(),_clearValues=function(){return(new exports.Map).keys().next?function(m){for(var k,keyIterator=m.keys();!(k=keyIterator.next()).done;)m.set(k.value,null)}:function(m){m.forEach(function(v,k){m.set(k,null)})}}(),_arrayFromMap=function(){try{if((new exports.Map).values().next)return function(m,getValues){return getValues?Array.from(m.values()):Array.from(m.keys())}}catch(e){}return function(m,getValues){var res=ListWrapper.createFixedSize(m.size),i=0;return m.forEach(function(v,k){res[i]=getValues?v:k,i++}),res}}(),MapWrapper=function(){function MapWrapper(){}return MapWrapper.clone=function(m){return createMapFromMap(m)},MapWrapper.createFromStringMap=function(stringMap){var result=new exports.Map;for(var prop in stringMap)result.set(prop,stringMap[prop]);return result},MapWrapper.toStringMap=function(m){var r={};return m.forEach(function(v,k){return r[k]=v}),r},MapWrapper.createFromPairs=function(pairs){return createMapFromPairs(pairs)},MapWrapper.clearValues=function(m){_clearValues(m)},MapWrapper.iterable=function(m){return m},MapWrapper.keys=function(m){return _arrayFromMap(m,!1)},MapWrapper.values=function(m){return _arrayFromMap(m,!0)},MapWrapper}();exports.MapWrapper=MapWrapper;var StringMapWrapper=function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(map,key){return map.hasOwnProperty(key)},StringMapWrapper.get=function(map,key){return map.hasOwnProperty(key)?map[key]:void 0},StringMapWrapper.set=function(map,key,value){map[key]=value},StringMapWrapper.keys=function(map){return Object.keys(map)},StringMapWrapper.isEmpty=function(map){for(var prop in map)return!1;return!0},StringMapWrapper["delete"]=function(map,key){delete map[key]},StringMapWrapper.forEach=function(map,callback){for(var prop in map)map.hasOwnProperty(prop)&&callback(map[prop],prop)},StringMapWrapper.merge=function(m1,m2){var m={};for(var attr in m1)m1.hasOwnProperty(attr)&&(m[attr]=m1[attr]);for(var attr in m2)m2.hasOwnProperty(attr)&&(m[attr]=m2[attr]);return m},StringMapWrapper.equals=function(m1,m2){var k1=Object.keys(m1),k2=Object.keys(m2);if(k1.length!=k2.length)return!1;for(var key,i=0;i<k1.length;i++)if(key=k1[i],m1[key]!==m2[key])return!1;return!0},StringMapWrapper}();exports.StringMapWrapper=StringMapWrapper;var ListWrapper=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(size){return new Array(size)},ListWrapper.createGrowableSize=function(size){return new Array(size)},ListWrapper.clone=function(array){return array.slice(0)},ListWrapper.forEachWithIndex=function(array,fn){for(var i=0;i<array.length;i++)fn(array[i],i)},ListWrapper.first=function(array){return array?array[0]:null},ListWrapper.last=function(array){return array&&0!=array.length?array[array.length-1]:null},ListWrapper.indexOf=function(array,value,startIndex){return void 0===startIndex&&(startIndex=0),array.indexOf(value,startIndex)},ListWrapper.contains=function(list,el){return-1!==list.indexOf(el)},ListWrapper.reversed=function(array){var a=ListWrapper.clone(array);return a.reverse()},ListWrapper.concat=function(a,b){return a.concat(b)},ListWrapper.insert=function(list,index,value){list.splice(index,0,value)},ListWrapper.removeAt=function(list,index){var res=list[index];return list.splice(index,1),res},ListWrapper.removeAll=function(list,items){for(var i=0;i<items.length;++i){var index=list.indexOf(items[i]);list.splice(index,1)}},ListWrapper.remove=function(list,el){var index=list.indexOf(el);return index>-1?(list.splice(index,1),!0):!1},ListWrapper.clear=function(list){list.length=0},ListWrapper.isEmpty=function(list){return 0==list.length},ListWrapper.fill=function(list,value,start,end){void 0===start&&(start=0),void 0===end&&(end=null),list.fill(value,start,null===end?list.length:end)},ListWrapper.equals=function(a,b){if(a.length!=b.length)return!1;for(var i=0;i<a.length;++i)if(a[i]!==b[i])return!1;return!0},ListWrapper.slice=function(l,from,to){return void 0===from&&(from=0),void 0===to&&(to=null),l.slice(from,null===to?void 0:to)},ListWrapper.splice=function(l,from,length){return l.splice(from,length)},ListWrapper.sort=function(l,compareFn){lang_1.isPresent(compareFn)?l.sort(compareFn):l.sort()},ListWrapper.toString=function(l){return l.toString()},ListWrapper.toJSON=function(l){return JSON.stringify(l)},ListWrapper.maximum=function(list,predicate){if(0==list.length)return null;for(var solution=null,maxValue=-(1/0),index=0;index<list.length;index++){var candidate=list[index];if(!lang_1.isBlank(candidate)){var candidateValue=predicate(candidate);candidateValue>maxValue&&(solution=candidate,maxValue=candidateValue)}}return solution},ListWrapper}();exports.ListWrapper=ListWrapper,exports.isListLikeIterable=isListLikeIterable,exports.areIterablesEqual=areIterablesEqual,exports.iterateListLike=iterateListLike;var createSetFromList=function(){var test=new exports.Set([1,2,3]);return 3===test.size?function(lst){return new exports.Set(lst)}:function(lst){var res=new exports.Set(lst);if(res.size!==lst.length)for(var i=0;i<lst.length;i++)res.add(lst[i]);return res}}(),SetWrapper=function(){function SetWrapper(){}return SetWrapper.createFromList=function(lst){return createSetFromList(lst)},SetWrapper.has=function(s,key){return s.has(key)},SetWrapper["delete"]=function(m,k){m["delete"](k)},SetWrapper}();return exports.SetWrapper=SetWrapper,global.define=__define,module.exports}),$__System.registerDynamic("97",["7","10","11"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),collection_1=$__require("11"),_ArrayLogger=function(){function _ArrayLogger(){this.res=[]}return _ArrayLogger.prototype.log=function(s){this.res.push(s)},_ArrayLogger.prototype.logError=function(s){this.res.push(s)},_ArrayLogger.prototype.logGroup=function(s){this.res.push(s)},_ArrayLogger.prototype.logGroupEnd=function(){},_ArrayLogger}(),ExceptionHandler=function(){function ExceptionHandler(_logger,_rethrowException){void 0===_rethrowException&&(_rethrowException=!0),this._logger=_logger,this._rethrowException=_rethrowException}return ExceptionHandler.exceptionToString=function(exception,stackTrace,reason){void 0===stackTrace&&(stackTrace=null),void 0===reason&&(reason=null);var l=new _ArrayLogger,e=new ExceptionHandler(l,!1);return e.call(exception,stackTrace,reason),l.res.join("\n")},ExceptionHandler.prototype.call=function(exception,stackTrace,reason){void 0===stackTrace&&(stackTrace=null),void 0===reason&&(reason=null);var originalException=this._findOriginalException(exception),originalStack=this._findOriginalStack(exception),context=this._findContext(exception);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(exception)),lang_1.isPresent(stackTrace)&&lang_1.isBlank(originalStack)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(stackTrace))),lang_1.isPresent(reason)&&this._logger.logError("REASON: "+reason),lang_1.isPresent(originalException)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(originalException)),lang_1.isPresent(originalStack)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(originalStack))),lang_1.isPresent(context)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(context)),this._logger.logGroupEnd(),this._rethrowException)throw exception},ExceptionHandler.prototype._extractMessage=function(exception){return exception instanceof exceptions_1.WrappedException?exception.wrapperMessage:exception.toString()},ExceptionHandler.prototype._longStackTrace=function(stackTrace){return collection_1.isListLikeIterable(stackTrace)?stackTrace.join("\n\n-----async gap-----\n"):stackTrace.toString()},ExceptionHandler.prototype._findContext=function(exception){try{return exception instanceof exceptions_1.WrappedException?lang_1.isPresent(exception.context)?exception.context:this._findContext(exception.originalException):null}catch(e){return null}},ExceptionHandler.prototype._findOriginalException=function(exception){if(!(exception instanceof exceptions_1.WrappedException))return null;for(var e=exception.originalException;e instanceof exceptions_1.WrappedException&&lang_1.isPresent(e.originalException);)e=e.originalException;return e},ExceptionHandler.prototype._findOriginalStack=function(exception){if(!(exception instanceof exceptions_1.WrappedException))return null;for(var e=exception,stack=exception.originalStack;e instanceof exceptions_1.WrappedException&&lang_1.isPresent(e.originalException);)e=e.originalException,e instanceof exceptions_1.WrappedException&&lang_1.isPresent(e.originalException)&&(stack=e.originalStack);return stack},ExceptionHandler}();return exports.ExceptionHandler=ExceptionHandler,global.define=__define,module.exports}),$__System.registerDynamic("10",["97"],!0,function($__require,exports,module){"use strict";function makeTypeError(message){return new TypeError(message)}function unimplemented(){throw new BaseException("unimplemented")}var global=this,__define=global.define;global.define=void 0;var __extends=this&&this.__extends||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},exception_handler_1=$__require("97"),exception_handler_2=$__require("97");exports.ExceptionHandler=exception_handler_2.ExceptionHandler;var BaseException=function(_super){function BaseException(message){void 0===message&&(message="--"),_super.call(this,message),this.message=message,this.stack=new Error(message).stack}return __extends(BaseException,_super),BaseException.prototype.toString=function(){return this.message},BaseException}(Error);exports.BaseException=BaseException;var WrappedException=function(_super){function WrappedException(_wrapperMessage,_originalException,_originalStack,_context){_super.call(this,_wrapperMessage),this._wrapperMessage=_wrapperMessage,this._originalException=_originalException,this._originalStack=_originalStack,this._context=_context,this._wrapperStack=new Error(_wrapperMessage).stack}return __extends(WrappedException,_super),Object.defineProperty(WrappedException.prototype,"wrapperMessage",{get:function(){return this._wrapperMessage},enumerable:!0,configurable:!0}),Object.defineProperty(WrappedException.prototype,"wrapperStack",{get:function(){return this._wrapperStack},enumerable:!0,configurable:!0}),Object.defineProperty(WrappedException.prototype,"originalException",{get:function(){return this._originalException},enumerable:!0,configurable:!0}),Object.defineProperty(WrappedException.prototype,"originalStack",{get:function(){return this._originalStack},enumerable:!0,configurable:!0}),Object.defineProperty(WrappedException.prototype,"context",{get:function(){return this._context},enumerable:!0,configurable:!0}),Object.defineProperty(WrappedException.prototype,"message",{get:function(){return exception_handler_1.ExceptionHandler.exceptionToString(this)},enumerable:!0,configurable:!0}),WrappedException.prototype.toString=function(){return this.message},WrappedException}(Error);return exports.WrappedException=WrappedException,exports.makeTypeError=makeTypeError,exports.unimplemented=unimplemented,global.define=__define,module.exports}),$__System.registerDynamic("92",["7","10"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var lang_1=$__require("7"),exceptions_1=$__require("10"),ReflectionCapabilities=function(){function ReflectionCapabilities(reflect){this._reflect=lang_1.isPresent(reflect)?reflect:lang_1.global.Reflect}return ReflectionCapabilities.prototype.isReflectionEnabled=function(){return!0},ReflectionCapabilities.prototype.factory=function(t){switch(t.length){case 0:return function(){return new t};case 1:return function(a1){return new t(a1)};case 2:return function(a1,a2){return new t(a1,a2)};case 3:return function(a1,a2,a3){return new t(a1,a2,a3)};case 4:return function(a1,a2,a3,a4){return new t(a1,a2,a3,a4)};case 5:return function(a1,a2,a3,a4,a5){return new t(a1,a2,a3,a4,a5)};case 6:return function(a1,a2,a3,a4,a5,a6){return new t(a1,a2,a3,a4,a5,a6)};case 7:return function(a1,a2,a3,a4,a5,a6,a7){return new t(a1,a2,a3,a4,a5,a6,a7)};case 8:return function(a1,a2,a3,a4,a5,a6,a7,a8){return new t(a1,a2,a3,a4,a5,a6,a7,a8)};case 9:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9)};case 10:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)};case 11:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11)};case 12:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12)};case 13:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13)};case 14:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14)};case 15:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15)};case 16:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16)};case 17:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17)};case 18:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18)};case 19:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19)};case 20:return function(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20){return new t(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20)}}throw new Error("Cannot create a factory for '"+lang_1.stringify(t)+"' because its constructor has more than 20 arguments")},ReflectionCapabilities.prototype._zipTypesAndAnnotations=function(paramTypes,paramAnnotations){var result;result="undefined"==typeof paramTypes?new Array(paramAnnotations.length):new Array(paramTypes.length);for(var i=0;i<result.length;i++)"undefined"==typeof paramTypes?result[i]=[]:paramTypes[i]!=Object?result[i]=[paramTypes[i]]:result[i]=[],lang_1.isPresent(paramAnnotations)&&lang_1.isPresent(paramAnnotations[i])&&(result[i]=result[i].concat(paramAnnotations[i]));return result},ReflectionCapabilities.prototype.parameters=function(typeOrFunc){if(lang_1.isPresent(typeOrFunc.parameters))return typeOrFunc.parameters;if(lang_1.isPresent(this._reflect)&&lang_1.isPresent(this._reflect.getMetadata)){var paramAnnotations=this._reflect.getMetadata("parameters",typeOrFunc),paramTypes=this._reflect.getMetadata("design:paramtypes",typeOrFunc);if(lang_1.isPresent(paramTypes)||lang_1.isPresent(paramAnnotations))return this._zipTypesAndAnnotations(paramTypes,paramAnnotations)}var parameters=new Array(typeOrFunc.length);return parameters.fill(void 0),parameters},ReflectionCapabilities.prototype.annotations=function(typeOrFunc){if(lang_1.isPresent(typeOrFunc.annotations)){var annotations=typeOrFunc.annotations;return lang_1.isFunction(annotations)&&annotations.annotations&&(annotations=annotations.annotations),annotations}if(lang_1.isPresent(this._reflect)&&lang_1.isPresent(this._reflect.getMetadata)){var annotations=this._reflect.getMetadata("annotations",typeOrFunc);if(lang_1.isPresent(annotations))return annotations}return[]},ReflectionCapabilities.prototype.propMetadata=function(typeOrFunc){if(lang_1.isPresent(typeOrFunc.propMetadata)){var propMetadata=typeOrFunc.propMetadata;return lang_1.isFunction(propMetadata)&&propMetadata.propMetadata&&(propMetadata=propMetadata.propMetadata),propMetadata}if(lang_1.isPresent(this._reflect)&&lang_1.isPresent(this._reflect.getMetadata)){var propMetadata=this._reflect.getMetadata("propMetadata",typeOrFunc);if(lang_1.isPresent(propMetadata))return propMetadata}return{}},ReflectionCapabilities.prototype.interfaces=function(type){throw new exceptions_1.BaseException("JavaScript does not support interfaces")},ReflectionCapabilities.prototype.getter=function(name){return new Function("o","return o."+name+";")},ReflectionCapabilities.prototype.setter=function(name){return new Function("o","v","return o."+name+" = v;")},ReflectionCapabilities.prototype.method=function(name){var functionBody="if (!o."+name+") throw new Error('\""+name+"\" is undefined');\n return o."+name+".apply(o, args);";return new Function("o","args",functionBody)},ReflectionCapabilities.prototype.importUri=function(type){return"./"},ReflectionCapabilities}();return exports.ReflectionCapabilities=ReflectionCapabilities,global.define=__define,module.exports}),$__System.registerDynamic("82",["e1","92"],!0,function($__require,exports,module){"use strict";var global=this,__define=global.define;global.define=void 0;var reflector_1=$__require("e1"),reflector_2=$__require("e1");exports.Reflector=reflector_2.Reflector,exports.ReflectionInfo=reflector_2.ReflectionInfo;var reflection_capabilities_1=$__require("92");return exports.reflector=new reflector_1.Reflector(new reflection_capabilities_1.ReflectionCapabilities),global.define=__define,module.exports}),$__System.registerDynamic("a",["51","93","95","3c","96","7","59","8e","9b","9c","9e","53","5c","ac","83","a4","e0","82"],!0,function($__require,exports,module){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}var global=this,__define=global.define;global.define=void 0,__export($__require("51")),__export($__require("93")),__export($__require("95")),__export($__require("3c")),__export($__require("96"));var lang_1=$__require("7");exports.enableProdMode=lang_1.enableProdMode;var application_ref_1=$__require("59");exports.platform=application_ref_1.platform,exports.createNgZone=application_ref_1.createNgZone,exports.PlatformRef=application_ref_1.PlatformRef,exports.ApplicationRef=application_ref_1.ApplicationRef;var application_tokens_1=$__require("8e");exports.APP_ID=application_tokens_1.APP_ID,exports.APP_COMPONENT=application_tokens_1.APP_COMPONENT,exports.APP_INITIALIZER=application_tokens_1.APP_INITIALIZER,exports.PACKAGE_ROOT_URL=application_tokens_1.PACKAGE_ROOT_URL,exports.PLATFORM_INITIALIZER=application_tokens_1.PLATFORM_INITIALIZER,__export($__require("9b")),__export($__require("9c")),__export($__require("9e"));var debug_node_1=$__require("53");return exports.DebugElement=debug_node_1.DebugElement,exports.DebugNode=debug_node_1.DebugNode,exports.asNativeElements=debug_node_1.asNativeElements,__export($__require("5c")),__export($__require("ac")),__export($__require("83")),__export($__require("a4")),__export($__require("e0")),__export($__require("82")),global.define=__define,module.exports}),$__System.registerDynamic("1",["2","5","91","a"],!0,function($__require,exports,module){var global=this,__define=global.define;global.define=void 0;var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(3>c?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__metadata=this&&this.__metadata||function(k,v){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(k,v):void 0};$__require("2"),$__require("5");var browser_1=$__require("91"),core_1=$__require("a"),HelloWorld=function(){function HelloWorld(){this.yourName="",console.timeEnd("bootstrap")}return HelloWorld=__decorate([core_1.Component({selector:"hello-world",templateUrl:"app/hello_world.html"}),__metadata("design:paramtypes",[])],HelloWorld)}();return exports.HelloWorld=HelloWorld,browser_1.bootstrap(HelloWorld),global.define=__define,module.exports})})(function(factory){factory()});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment