text: /*
   Copyright Google Inc. All Rights Reserved.
  
   Use of this source code is governed by an MIT-style license that can be
   found in the LICENSE file at https://angular.io/license
  */
  var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(q,l,w){if(w.get||w.set)throw new TypeError("ES3 does not support getters and setters.");q!=Array.prototype&&q!=Object.prototype&&(q[l]=w.value)};$jscomp.getGlobal=function(q){return"undefined"!=typeof window&&window===q?q:"undefined"!=typeof global?global:q};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";
  $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(q){return $jscomp.SYMBOL_PREFIX+(q||"")+$jscomp.symbolCounter_++};
  $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var q=$jscomp.global.Symbol.iterator;q||(q=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[q]&&$jscomp.defineProperty(Array.prototype,q,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(q){var l=0;return $jscomp.iteratorPrototype(function(){return l<q.length?{done:!1,value:q[l++]}:{done:!0}})};
  $jscomp.iteratorPrototype=function(q){$jscomp.initSymbolIterator();q={next:q};q[$jscomp.global.Symbol.iterator]=function(){return this};return q};$jscomp.inherits=function(q,l){function w(){}w.prototype=l.prototype;q.prototype=new w;q.prototype.constructor=q;for(var y in l)if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(l,y);R&&Object.defineProperty(q,y,R)}else q[y]=l[y]};
  $jscomp.polyfill=function(q,l,w,y){if(l){w=$jscomp.global;q=q.split(".");for(y=0;y<q.length-1;y++){var R=q[y];R in w||(w[R]={});w=w[R]}q=q[q.length-1];y=w[q];l=l(y);l!=y&&null!=l&&$jscomp.defineProperty(w,q,{configurable:!0,writable:!0,value:l})}};$jscomp.polyfill("Number.isFinite",function(q){return q?q:function(l){return"number"!==typeof l?!1:!isNaN(l)&&Infinity!==l&&-Infinity!==l}},"es6-impl","es3");
  $jscomp.polyfill("Number.isInteger",function(q){return q?q:function(l){return Number.isFinite(l)?l===Math.floor(l):!1}},"es6-impl","es3");$jscomp.makeIterator=function(q){$jscomp.initSymbolIterator();var l=q[Symbol.iterator];return l?l.call(q):$jscomp.arrayIterator(q)};$jscomp.owns=function(q,l){return Object.prototype.hasOwnProperty.call(q,l)};
  $jscomp.polyfill("WeakMap",function(q){function l(l){$jscomp.owns(l,y)||$jscomp.defineProperty(l,y,{value:{}})}function w(w){var q=Object[w];q&&(Object[w]=function(w){l(w);return q(w)})}if(function(){if(!q||!Object.seal)return!1;try{var l=Object.seal({}),w=Object.seal({}),y=new q([[l,2],[w,3]]);if(2!=y.get(l)||3!=y.get(w))return!1;y.delete(l);y.set(w,4);return!y.has(l)&&4==y.get(w)}catch(zg){return!1}}())return q;var y="$jscomp_hidden_"+Math.random().toString().substring(2);w("freeze");w("preventExtensions");
  w("seal");var R=0,E=function(l){this.id_=(R+=Math.random()+1).toString();if(l){$jscomp.initSymbol();$jscomp.initSymbolIterator();l=$jscomp.makeIterator(l);for(var w;!(w=l.next()).done;)w=w.value,this.set(w[0],w[1])}};E.prototype.set=function(w,q){l(w);if(!$jscomp.owns(w,y))throw Error("WeakMap key fail: "+w);w[y][this.id_]=q;return this};E.prototype.get=function(l){return $jscomp.owns(l,y)?l[y][this.id_]:void 0};E.prototype.has=function(l){return $jscomp.owns(l,y)&&$jscomp.owns(l[y],this.id_)};E.prototype.delete=
  function(l){return $jscomp.owns(l,y)&&$jscomp.owns(l[y],this.id_)?delete l[y][this.id_]:!1};return E},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_MAP=!1;
  $jscomp.polyfill("Map",function(q){if(!$jscomp.ASSUME_NO_NATIVE_MAP&&function(){if(!q||!q.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),w=new q($jscomp.makeIterator([[l,"s"]]));if("s"!=w.get(l)||1!=w.size||w.get({x:4})||w.set({x:4},"t")!=w||2!=w.size)return!1;var y=w.entries(),B=y.next();if(B.done||B.value[0]!=l||"s"!=B.value[1])return!1;B=y.next();return B.done||4!=B.value[0].x||"t"!=B.value[1]||!y.next().done?!1:!0}catch(Xi){return!1}}())return q;$jscomp.initSymbol();
  $jscomp.initSymbolIterator();var l=new WeakMap,w=function(l){this.data_={};this.head_=E();this.size=0;if(l){l=$jscomp.makeIterator(l);for(var w;!(w=l.next()).done;)w=w.value,this.set(w[0],w[1])}};w.prototype.set=function(l,w){var q=y(this,l);q.list||(q.list=this.data_[q.id]=[]);q.entry?q.entry.value=w:(q.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:l,value:w},q.list.push(q.entry),this.head_.previous.next=q.entry,this.head_.previous=q.entry,this.size++);return this};w.prototype.delete=
  function(l){l=y(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};w.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=E();this.size=0};w.prototype.has=function(l){return!!y(this,l).entry};w.prototype.get=function(l){return(l=y(this,l).entry)&&l.value};w.prototype.entries=function(){return R(this,function(l){return[l.key,
  l.value]})};w.prototype.keys=function(){return R(this,function(l){return l.key})};w.prototype.values=function(){return R(this,function(l){return l.value})};w.prototype.forEach=function(l,w){for(var q=this.entries(),y;!(y=q.next()).done;)y=y.value,l.call(w,y[1],y[0],this)};w.prototype[Symbol.iterator]=w.prototype.entries;var y=function(w,q){var y;y=q&&typeof q;"object"==y||"function"==y?l.has(q)?y=l.get(q):(y=""+ ++B,l.set(q,y)):y="p_"+q;var E=w.data_[y];if(E&&$jscomp.owns(w.data_,y))for(w=0;w<E.length;w++){var R=
  E[w];if(q!==q&&R.key!==R.key||q===R.key)return{id:y,list:E,index:w,entry:R}}return{id:y,list:E,index:-1,entry:void 0}},R=function(l,w){var q=l.head_;return $jscomp.iteratorPrototype(function(){if(q){for(;q.head!=l.head_;)q=q.previous;for(;q.next!=q.head;)return q=q.next,{done:!1,value:w(q)};q=null}return{done:!0,value:void 0}})},E=function(){var l={};return l.previous=l.next=l.head=l},B=0;return w},"es6-impl","es3");$jscomp.array=$jscomp.array||{};
  $jscomp.iteratorFromArray=function(q,l){$jscomp.initSymbolIterator();q instanceof String&&(q+="");var w=0,y={next:function(){if(w<q.length){var R=w++;return{value:l(R,q[R]),done:!1}}y.next=function(){return{done:!0,value:void 0}};return y.next()}};y[Symbol.iterator]=function(){return y};return y};$jscomp.polyfill("Array.prototype.keys",function(q){return q?q:function(){return $jscomp.iteratorFromArray(this,function(l){return l})}},"es6-impl","es3");
  $jscomp.polyfill("Array.prototype.values",function(q){return q?q:function(){return $jscomp.iteratorFromArray(this,function(l,w){return w})}},"es6","es3");$jscomp.polyfill("Array.from",function(q){return q?q:function(l,w,q){$jscomp.initSymbolIterator();w=null!=w?w:function(l){return l};var y=[],E=l[Symbol.iterator];if("function"==typeof E)for(l=E.call(l);!(E=l.next()).done;)y.push(w.call(q,E.value));else for(var E=l.length,B=0;B<E;B++)y.push(w.call(q,l[B]));return y}},"es6-impl","es3");
  $jscomp.polyfill("Array.prototype.fill",function(q){return q?q:function(l,w,q){var y=this.length||0;0>w&&(w=Math.max(0,y+w));if(null==q||q>y)q=y;q=Number(q);0>q&&(q=Math.max(0,y+q));for(w=Number(w||0);w<q;w++)this[w]=l;return this}},"es6-impl","es3");$jscomp.findInternal=function(q,l,w){q instanceof String&&(q=String(q));for(var y=q.length,R=0;R<y;R++){var E=q[R];if(l.call(w,E,R,q))return{i:R,v:E}}return{i:-1,v:void 0}};
  $jscomp.polyfill("Array.prototype.find",function(q){return q?q:function(l,w){return $jscomp.findInternal(this,l,w).v}},"es6-impl","es3");$jscomp.checkStringArgs=function(q,l,w){if(null==q)throw new TypeError("The 'this' value for String.prototype."+w+" must not be null or undefined");if(l instanceof RegExp)throw new TypeError("First argument to String.prototype."+w+" must not be a regular expression");return q+""};
  $jscomp.polyfill("String.prototype.startsWith",function(q){return q?q:function(l,w){var q=$jscomp.checkStringArgs(this,l,"startsWith");l+="";var R=q.length,E=l.length;w=Math.max(0,Math.min(w|0,q.length));for(var B=0;B<E&&w<R;)if(q[w++]!=l[B++])return!1;return B>=E}},"es6-impl","es3");
  $jscomp.polyfill("String.prototype.endsWith",function(q){return q?q:function(l,q){var w=$jscomp.checkStringArgs(this,l,"endsWith");l+="";void 0===q&&(q=w.length);q=Math.max(0,Math.min(q|0,w.length));for(var R=l.length;0<R&&0<q;)if(w[--q]!=l[--R])return!1;return 0>=R}},"es6-impl","es3");$jscomp.ASSUME_NO_NATIVE_SET=!1;
  $jscomp.polyfill("Set",function(q){if(!$jscomp.ASSUME_NO_NATIVE_SET&&function(){if(!q||!q.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),y=new q($jscomp.makeIterator([l]));if(!y.has(l)||1!=y.size||y.add(l)!=y||1!=y.size||y.add({x:4})!=y||2!=y.size)return!1;var R=y.entries(),E=R.next();if(E.done||E.value[0]!=l||E.value[1]!=l)return!1;E=R.next();return E.done||E.value[0]==l||4!=E.value[0].x||E.value[1]!=E.value[0]?!1:R.next().done}catch(B){return!1}}())return q;
  $jscomp.initSymbol();$jscomp.initSymbolIterator();var l=function(l){this.map_=new Map;if(l){l=$jscomp.makeIterator(l);for(var q;!(q=l.next()).done;)this.add(q.value)}this.size=this.map_.size};l.prototype.add=function(l){this.map_.set(l,l);this.size=this.map_.size;return this};l.prototype.delete=function(l){l=this.map_.delete(l);this.size=this.map_.size;return l};l.prototype.clear=function(){this.map_.clear();this.size=0};l.prototype.has=function(l){return this.map_.has(l)};l.prototype.entries=function(){return this.map_.entries()};
  l.prototype.values=function(){return this.map_.values()};l.prototype[Symbol.iterator]=l.prototype.values;l.prototype.forEach=function(l,q){var w=this;this.map_.forEach(function(y){return l.call(q,y,y,w)})};return l},"es6-impl","es3");$jscomp.polyfill("Object.assign",function(q){return q?q:function(l,q){for(var w=1;w<arguments.length;w++){var R=arguments[w];if(R)for(var E in R)$jscomp.owns(R,E)&&(l[E]=R[E])}return l}},"es6-impl","es3");
  $jscomp.polyfill("Array.prototype.entries",function(q){return q?q:function(){return $jscomp.iteratorFromArray(this,function(l,q){return[l,q]})}},"es6-impl","es3");$jscomp.polyfill("Array.prototype.findIndex",function(q){return q?q:function(l,q){return $jscomp.findInternal(this,l,q).i}},"es6-impl","es3");
  $jscomp.polyfill("String.prototype.repeat",function(q){return q?q:function(l){var q=$jscomp.checkStringArgs(this,null,"repeat");if(0>l||1342177279<l)throw new RangeError("Invalid count value");l|=0;for(var y="";l;)if(l&1&&(y+=q),l>>>=1)q+=q;return y}},"es6-impl","es3");
  (function(){function q(b){Zone.current.scheduleMicroTask("scheduleMicrotask",b)}function l(b){return void 0!==b&&null!==b}function w(b){return void 0===b||null===b}function y(b){return"function"===typeof b}function R(b){return l(b)&&y(b.then)}function E(b){if("string"===typeof b)return b;if(void 0===b||null===b)return""+b;if(b.overriddenName)return b.overriddenName;if(b.name)return b.name;b=b.toString();var a=b.indexOf("\n");return-1===a?b:b.substring(0,a)}function B(b,a){return b===a||"number"===
  typeof b&&"number"===typeof a&&isNaN(b)&&isNaN(a)}function ie(b){return null!==b&&("function"===typeof b||"object"===typeof b)}function vd(){if(w(Ue))if($jscomp.initSymbol(),$jscomp.initSymbolIterator(),l(Yi.Symbol)&&l(Symbol.iterator))$jscomp.initSymbol(),$jscomp.initSymbolIterator(),Ue=Symbol.iterator;else for(var b=Object.getOwnPropertyNames(Map.prototype),a=0;a<b.length;++a){var c=b[a];"entries"!==c&&"size"!==c&&Map.prototype[c]===Map.prototype.entries&&(Ue=c)}return Ue}function zg(b){y(b)&&b.hasOwnProperty("annotation")&&
  (b=b.annotation);return b}function Wi(b,a){if(b===Object||b===String||b===Function||b===Number||b===Array)throw Error("Can not use native "+E(b)+" as constructor");if(y(b))return b;if(b instanceof Array){var c=b.length-1,d=b[c];if(!y(d))throw Error("Last position of Class method array must be Function in key "+a+" was '"+E(d)+"'");if(c!=d.length)throw Error("Number of annotations ("+c+") does not match number of arguments ("+d.length+") in the function: "+E(d));a=[];for(var c=0,e=b.length-1;c<e;c++){var f=
  [];a.push(f);var g=b[c];if(g instanceof Array)for(var h=0;h<g.length;h++)f.push(zg(g[h]));else y(g)?f.push(zg(g)):f.push(g)}Ub.defineMetadata("parameters",a,d);return d}throw Error("Only Function or Array is supported in Class definition for key '"+a+"' is '"+E(b)+"'");}function Xi(b){var a=Wi(b.hasOwnProperty("constructor")?b.constructor:void 0,"constructor"),c=a.prototype;if(b.hasOwnProperty("extends"))if(y(b.extends))a.prototype=c=Object.create(b.extends.prototype);else throw Error("Class definition 'extends' property must be a constructor function was: "+
  E(b.extends));for(var d in b)"extends"!=d&&"prototype"!=d&&b.hasOwnProperty(d)&&(c[d]=Wi(b[d],d));this&&this.annotations instanceof Array&&Ub.defineMetadata("annotations",this.annotations,a);(b=a.name)&&"constructor"!==b||(a.overriddenName="class"+Oo++);return a}function Ve(b,a,c,d){function e(a){if(!Ub||!Ub.getMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof e)return f.call(this,a),this;var c=new e(a);a=y(this)&&this.annotations instanceof Array?this.annotations:
  [];a.push(c);var b=function(a){var b=Ub.getOwnMetadata("annotations",a)||[];b.push(c);Ub.defineMetadata("annotations",b,a);return a};b.annotations=a;b.Class=Xi;d&&d(b);return b}void 0===d&&(d=null);var f=Ag([a]);c&&(e.prototype=Object.create(c.prototype));e.prototype.toString=function(){return"@"+b};return e.annotationCls=e}function Ag(b){return function(){for(var a=this,c=[],d=0;d<arguments.length;d++)c[d-0]=arguments[d];b.forEach(function(b,d){d=c[d];if(Array.isArray(b)){var e=d&&void 0!==d?d:b[1];
  a[b[0]]=e}else for(var f in b)e=d&&void 0!==d[f]?d[f]:b[f],a[f]=e})}}function Zc(b,a,c){function d(){function a(a,c,b){for(c=Ub.getMetadata("parameters",a)||[];c.length<=b;)c.push(null);c[b]=c[b]||[];c[b].push(m);Ub.defineMetadata("parameters",c,a);return a}for(var c=[],b=0;b<arguments.length;b++)c[b-0]=arguments[b];if(this instanceof d)return e.apply(this,c),this;var m=new (d.bind.apply(d,[void 0].concat(c)));a.annotation=m;return a}var e=Ag(a);c&&(d.prototype=Object.create(c.prototype));d.prototype.toString=
  function(){return"@"+b};return d.annotationCls=d}function We(b,a,c){function d(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];if(this instanceof d)return e.apply(this,a),this;var b=new (d.bind.apply(d,[void 0].concat(a)));return function(a,c){var d=Ub.getOwnMetadata("propMetadata",a.constructor)||{};d[c]=d[c]||[];d[c].unshift(b);Ub.defineMetadata("propMetadata",d,a.constructor)}}var e=Ag(a);c&&(d.prototype=Object.create(c.prototype));d.prototype.toString=function(){return"@"+b};return d.annotationCls=
  d}function Ia(b){b.__forward_ref__=Ia;b.toString=function(){return E(this())};return b}function pb(b){return y(b)&&b.hasOwnProperty("__forward_ref__")&&b.__forward_ref__===Ia?b():b}function ha(){throw Error("unimplemented");}function Zi(b,a){if(l(b))for(var c=0;c<b.length;c++){var d=b[c];Array.isArray(d)?Zi(d,a):a.push(d)}return a}function wd(b){return ie(b)?Array.isArray(b)||!(b instanceof Sa)&&vd()in b:!1}function Po(b,a){if(Array.isArray(b))for(var c=0;c<b.length;c++)a(b[c]);else for(b=b[vd()]();!(c=
  b.next()).done;)a(c.value)}function Qo(b){for(var a=[],c=0;c<b.length;++c){if(ma.contains(a,b[c])){a.push(b[c]);break}a.push(b[c])}return a}function Bg(b){return 1<b.length?" ("+Qo(ma.reversed(b)).map(function(a){return E(a.token)}).join(" -\x3e ")+")":""}function Cg(b){return b?b.map(function(a){var c=a.type.annotationCls;return new (c.bind.apply(c,[void 0].concat(a.args?a.args:[])))}):[]}function Dg(b,a){db.forEach(a,function(a,d){return b.set(d,a)})}function Ro(b){var a,c;l(b.useClass)?(c=pb(b.useClass),
  a=Xe.factory(c),c=$i(c)):l(b.useExisting)?(a=function(a){return a},c=[aj.fromKey(xc.get(b.useExisting))]):l(b.useFactory)?(a=b.useFactory,c=So(b.useFactory,b.deps)):(a=function(){return b.useValue},c=To);return new Uo(a,c)}function Vo(b){return new bj(xc.get(b.provide),[Ro(b)],b.multi)}function Wo(b,a){for(var c=0;c<b.length;c++){var d=b[c],e=a.get(d.key.id);if(l(e)){if(d.multiProvider!==e.multiProvider)throw new Xo(e,d);if(d.multiProvider)for(var f=0;f<d.resolvedFactories.length;f++)e.resolvedFactories.push(d.resolvedFactories[f]);
  else a.set(d.key.id,d)}else e=d.multiProvider?new bj(d.key,ma.clone(d.resolvedFactories),d.multiProvider):d,a.set(d.key.id,e)}return a}function cj(b,a){b.forEach(function(c){if(c instanceof Ye)a.push({provide:c,useClass:c});else if(c&&"object"==typeof c&&void 0!==c.provide)a.push(c);else if(c instanceof Array)cj(c,a);else throw new Yo(c);});return a}function So(b,a){if(w(a))return $i(b);var c=a.map(function(a){return[a]});return a.map(function(a){return dj(b,a,c)})}function $i(b){var a=Xe.parameters(b);
  if(w(a))return[];if(a.some(w))throw new ej(b,a);return a.map(function(c){return dj(b,c,a)})}function dj(b,a,c){var d=[],e=null,f=!1;if(!Array.isArray(a))return a instanceof U?Eg(a.token,f,null,null,d):Eg(a,f,null,null,d);for(var g=null,h=null,m=0;m<a.length;++m){var r=a[m];r instanceof Ye?e=r:r instanceof U?e=r.token:r instanceof W?f=!0:r instanceof va?h=r:r instanceof yb?h=r:r instanceof Vb&&(g=r)}e=pb(e);if(l(e))return Eg(e,f,g,h,d);throw new ej(b,c);}function Eg(b,a,c,d,e){return new aj(xc.get(b),
  a,c,d,e)}function Zo(b,a){for(var c=Array(b._proto.numberOfProviders),d=0;d<b._proto.numberOfProviders;++d)c[d]=a(b._proto.getProviderAtIndex(d));return c}function Fg(){return $o.fromCharCode(97+fj.floor(25*fj.random()))}function Ze(){throw Error("Runtime compiler is not loaded");}function gj(b,a,c){b=b.previousIndex;if(null===b)return b;var d=0;c&&b<c.length&&(d=c[b]);return b+a+d}function Gg(b,a){if(wd(b)&&wd(a)){a:for(b=b[vd()](),a=a[vd()]();;){var c=b.next(),d=a.next();if(c.done&&d.done){b=!0;
  break a}if(c.done||d.done){b=!1;break a}if(!Gg(c.value,d.value)){b=!1;break a}}return b}return!wd(b)&&ie(b)&&!wd(a)&&ie(a)?!0:B(b,a)}function ap(b,a){void 0===a&&(a=null);return hj.createScope(b,a)}function bp(b,a){Hg.leaveScope(b,a);return a}function cp(b,a){return null}function ij(b){return jj(b,[])}function jj(b,a){for(var c=0;c<b.length;c++){var d=b[c];if(d instanceof Ig){if(a.push(d.nativeElement),l(d.nestedViews))for(var e=0;e<d.nestedViews.length;e++)jj(d.nestedViews[e].rootNodesOrAppElements,
  a)}else a.push(d)}return a}function P(b){return null!=b?b.toString():""}function k(b,a){return a={exports:{}},b(a,a.exports),a.exports}function dp(b){if(l(Wb)&&!Wb.destroyed)throw Error("There can be only one platform. Destroy the previous one to create a new one.");Wb=b.get(Jg);b=b.get(Kg,null);l(b)&&b.forEach(function(a){return a()});return Wb}function $e(b,a,c){void 0===c&&(c=[]);var d=new La("Platform: "+a);return function(a){void 0===a&&(a=[]);l(Wb)&&!Wb.destroyed&&Wb||(b?b(c.concat(a).concat({provide:d,
  useValue:!0})):dp(xd.resolveAndCreate(c.concat(a).concat({provide:d,useValue:!0}))));a=l(Wb)&&!Wb.destroyed?Wb:null;if(w(a))throw Error("No platform exists!");if(l(a)&&w(a.injector.get(d,null)))throw Error("A platform with a different configuration has been created. Please destroy it first.");return a}}function ep(b,a){try{var c=a();return R(c)?c.catch(function(a){b.handleError(a);throw a;}):c}catch(d){throw b.handleError(d),d;}}function kj(b,a,c){b.childNodes.forEach(function(b){b instanceof Lb&&
  (a(b)&&c.push(b),kj(b,a,c))})}function lj(b,a,c){b instanceof Lb&&b.childNodes.forEach(function(b){a(b)&&c.push(b);b instanceof Lb&&lj(b,a,c)})}function eb(b){return Lg.get(b)}function af(b){Lg.set(b.nativeNode,b)}function fp(){return gp}function hp(){return ip}function mj(b){var a={};b.forEach(function(c){db.forEach(c,function(c,b){a[b]=c})});return a}function nj(b){var a;if(b instanceof Ig){if(a=b.nativeElement,l(b.nestedViews))for(var c=b.nestedViews.length-1;0<=c;c--){var d=b.nestedViews[c];0<
  d.rootNodesOrAppElements.length&&(a=nj(d.rootNodesOrAppElements[d.rootNodesOrAppElements.length-1]))}}else a=b;return a}function ib(b){return void 0!==b&&null!==b}function zb(b){return void 0===b||null===b}function $c(b){return"string"===typeof b}function oj(b){return b instanceof je&&!isNaN(b.valueOf())}function jp(b){if("string"===typeof b)return b;if(void 0===b||null===b)return""+b;if(b.overriddenName)return b.overriddenName;if(b.name)return b.name;b=b.toString();var a=b.indexOf("\n");return-1===
  a?b:b.substring(0,a)}function kp(b,a){return 0<b.length&&a.startsWith(b)?a.substring(b.length):a}function pj(b){return/\/index.html$/g.test(b)?b.substring(0,b.length-11):b}function qj(b,a,c){var d="\x3d"+b;return-1<a.indexOf(d)?d:c.getPluralCategory(b)}function lp(b,a){"string"===typeof a&&(a=parseInt(a,10));var c=a.toString().replace(/^[^.]*\.?/,""),d=Math.floor(Math.abs(a)),e=c.length,c=parseInt(c,10),f=parseInt(a.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(b.split("-")[0].toLowerCase()){case "af":case "asa":case "az":case "bem":case "bez":case "bg":case "brx":case "ce":case "cgg":case "chr":case "ckb":case "ee":case "el":case "eo":case "es":case "eu":case "fo":case "fur":case "gsw":case "ha":case "haw":case "hu":case "jgo":case "jmc":case "ka":case "kk":case "kkj":case "kl":case "ks":case "ksb":case "ky":case "lb":case "lg":case "mas":case "mgo":case "ml":case "mn":case "nb":case "nd":case "ne":case "nn":case "nnh":case "nyn":case "om":case "or":case "os":case "ps":case "rm":case "rof":case "rwk":case "saq":case "seh":case "sn":case "so":case "sq":case "ta":case "te":case "teo":case "tk":case "tr":case "ug":case "uz":case "vo":case "vun":case "wae":case "xog":return 1===
  a?x.One:x.Other;case "agq":case "bas":case "cu":case "dav":case "dje":case "dua":case "dyo":case "ebu":case "ewo":case "guz":case "kam":case "khq":case "ki":case "kln":case "kok":case "ksf":case "lrc":case "lu":case "luo":case "luy":case "mer":case "mfe":case "mgh":case "mua":case "mzn":case "nmg":case "nus":case "qu":case "rn":case "rw":case "sbp":case "twq":case "vai":case "yav":case "yue":case "zgh":case "ak":case "ln":case "mg":case "pa":case "ti":return a===Math.floor(a)&&0<=a&&1>=a?x.One:x.Other;
  case "am":case "as":case "bn":case "fa":case "gu":case "hi":case "kn":case "mr":case "zu":return 0===d||1===a?x.One:x.Other;case "ar":return 0===a?x.Zero:1===a?x.One:2===a?x.Two:a%100===Math.floor(a%100)&&3<=a%100&&10>=a%100?x.Few:a%100===Math.floor(a%100)&&11<=a%100&&99>=a%100?x.Many:x.Other;case "ast":case "ca":case "de":case "en":case "et":case "fi":case "fy":case "gl":case "it":case "nl":case "sv":case "sw":case "ur":case "yi":return 1===d&&0===e?x.One:x.Other;case "be":return 1===a%10&&11!==
  a%100?x.One:a%10===Math.floor(a%10)&&2<=a%10&&4>=a%10&&!(12<=a%100&&14>=a%100)?x.Few:0===a%10||a%10===Math.floor(a%10)&&5<=a%10&&9>=a%10||a%100===Math.floor(a%100)&&11<=a%100&&14>=a%100?x.Many:x.Other;case "br":return 1===a%10&&11!==a%100&&71!==a%100&&91!==a%100?x.One:2===a%10&&12!==a%100&&72!==a%100&&92!==a%100?x.Two:a%10!==Math.floor(a%10)||!(3<=a%10&&4>=a%10||9===a%10)||10<=a%100&&19>=a%100||70<=a%100&&79>=a%100||90<=a%100&&99>=a%100?0!==a&&0===a%1E6?x.Many:x.Other:x.Few;case "bs":case "hr":case "sr":return 0===
  e&&1===d%10&&11!==d%100||1===c%10&&11!==c%100?x.One:0===e&&d%10===Math.floor(d%10)&&2<=d%10&&4>=d%10&&!(12<=d%100&&14>=d%100)||c%10===Math.floor(c%10)&&2<=c%10&&4>=c%10&&!(12<=c%100&&14>=c%100)?x.Few:x.Other;case "cs":case "sk":return 1===d&&0===e?x.One:d===Math.floor(d)&&2<=d&&4>=d&&0===e?x.Few:0!==e?x.Many:x.Other;case "cy":return 0===a?x.Zero:1===a?x.One:2===a?x.Two:3===a?x.Few:6===a?x.Many:x.Other;case "da":return 1===a||0!==f&&(0===d||1===d)?x.One:x.Other;case "dsb":case "hsb":return 0===e&&
  1===d%100||1===c%100?x.One:0===e&&2===d%100||2===c%100?x.Two:0===e&&d%100===Math.floor(d%100)&&3<=d%100&&4>=d%100||c%100===Math.floor(c%100)&&3<=c%100&&4>=c%100?x.Few:x.Other;case "ff":case "fr":case "hy":case "kab":return 0===d||1===d?x.One:x.Other;case "fil":return 0===e&&(1===d||2===d||3===d)||0===e&&4!==d%10&&6!==d%10&&9!==d%10||0!==e&&4!==c%10&&6!==c%10&&9!==c%10?x.One:x.Other;case "ga":return 1===a?x.One:2===a?x.Two:a===Math.floor(a)&&3<=a&&6>=a?x.Few:a===Math.floor(a)&&7<=a&&10>=a?x.Many:x.Other;
  case "gd":return 1===a||11===a?x.One:2===a||12===a?x.Two:a===Math.floor(a)&&(3<=a&&10>=a||13<=a&&19>=a)?x.Few:x.Other;case "gv":return 0===e&&1===d%10?x.One:0===e&&2===d%10?x.Two:0!==e||0!==d%100&&20!==d%100&&40!==d%100&&60!==d%100&&80!==d%100?0!==e?x.Many:x.Other:x.Few;case "he":return 1===d&&0===e?x.One:2===d&&0===e?x.Two:0!==e||0<=a&&10>=a||0!==a%10?x.Other:x.Many;case "is":return 0===f&&1===d%10&&11!==d%100||0!==f?x.One:x.Other;case "ksh":return 0===a?x.Zero:1===a?x.One:x.Other;case "kw":case "naq":case "se":case "smn":return 1===
  a?x.One:2===a?x.Two:x.Other;case "lag":return 0===a?x.Zero:0!==d&&1!==d||0===a?x.Other:x.One;case "lt":return 1!==a%10||11<=a%100&&19>=a%100?a%10===Math.floor(a%10)&&2<=a%10&&9>=a%10&&!(11<=a%100&&19>=a%100)?x.Few:0!==c?x.Many:x.Other:x.One;case "lv":case "prg":return 0===a%10||a%100===Math.floor(a%100)&&11<=a%100&&19>=a%100||2===e&&c%100===Math.floor(c%100)&&11<=c%100&&19>=c%100?x.Zero:1===a%10&&11!==a%100||2===e&&1===c%10&&11!==c%100||2!==e&&1===c%10?x.One:x.Other;case "mk":return 0===e&&1===d%
  10||1===c%10?x.One:x.Other;case "mt":return 1===a?x.One:0===a||a%100===Math.floor(a%100)&&2<=a%100&&10>=a%100?x.Few:a%100===Math.floor(a%100)&&11<=a%100&&19>=a%100?x.Many:x.Other;case "pl":return 1===d&&0===e?x.One:0===e&&d%10===Math.floor(d%10)&&2<=d%10&&4>=d%10&&!(12<=d%100&&14>=d%100)?x.Few:0===e&&1!==d&&d%10===Math.floor(d%10)&&0<=d%10&&1>=d%10||0===e&&d%10===Math.floor(d%10)&&5<=d%10&&9>=d%10||0===e&&d%100===Math.floor(d%100)&&12<=d%100&&14>=d%100?x.Many:x.Other;case "pt":return a===Math.floor(a)&&
  0<=a&&2>=a&&2!==a?x.One:x.Other;case "ro":return 1===d&&0===e?x.One:0!==e||0===a||1!==a&&a%100===Math.floor(a%100)&&1<=a%100&&19>=a%100?x.Few:x.Other;case "ru":case "uk":return 0===e&&1===d%10&&11!==d%100?x.One:0===e&&d%10===Math.floor(d%10)&&2<=d%10&&4>=d%10&&!(12<=d%100&&14>=d%100)?x.Few:0===e&&0===d%10||0===e&&d%10===Math.floor(d%10)&&5<=d%10&&9>=d%10||0===e&&d%100===Math.floor(d%100)&&11<=d%100&&14>=d%100?x.Many:x.Other;case "shi":return 0===d||1===a?x.One:a===Math.floor(a)&&2<=a&&10>=a?x.Few:
  x.Other;case "si":return 0===a||1===a||0===d&&1===c?x.One:x.Other;case "sl":return 0===e&&1===d%100?x.One:0===e&&2===d%100?x.Two:0===e&&d%100===Math.floor(d%100)&&3<=d%100&&4>=d%100||0!==e?x.Few:x.Other;case "tzm":return a===Math.floor(a)&&0<=a&&1>=a||a===Math.floor(a)&&11<=a&&99>=a?x.One:x.Other;default:return x.Other}}function rj(b,a){if(ib(b))for(var c=0;c<b.length;c++){var d=b[c];Array.isArray(d)?rj(d,a):a.push(d)}return a}function bf(b){return function(a,c){a=b(a,c);return 1==a.length?"0"+a:
  a}}function cf(b){return function(a,c){return b(a,c).split(" ")[0]}}function sj(b,a,c){return(new Intl.DateTimeFormat(a,c)).format(b).replace(/[\u200e\u200f]/g,"")}function tj(b){var a={hour:"2-digit",hour12:!1,timeZoneName:b};return function(c,b){return(c=sj(c,b,a))?c.substring(3):""}}function ke(b,a){b.hour12=a;return b}function S(b,a){var c={};c[b]=2==a?"2-digit":"numeric";return c}function Xa(b,a){var c={};c[b]=4>a?"short":"long";return c}function yc(b){var a={};b.forEach(function(c){Object.assign(a,
  c)});return a}function X(b){return function(a,c){return sj(a,c,b)}}function mp(b,a,c){var d="",e,f,g=[];if(uj[b])return uj[b](a,c);if(Mg.has(b))g=Mg.get(b);else{for(vj.exec(b);b;)(e=vj.exec(b))?(g=g.concat(np.call(e,1)),b=g.pop()):(g.push(b),b=null);Mg.set(b,g)}g.forEach(function(b){f=op[b];d+=f?f(a,c):"''"===b?"'":b.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return d}function Ng(b,a,c,d,e,f,g){void 0===f&&(f=null);void 0===g&&(g=!1);if(zb(c))return null;c=$c(c)&&yd.isNumeric(c)?+c:c;if("number"!==
  typeof c)throw new zc(b,c);var h,m,r;d!==Ac.Currency&&(h=1,m=0,r=3);if(ib(e)){b=e.match(pp);if(null===b)throw Error(e+" is not a valid digit info for number pipes");ib(b[1])&&(h=yd.parseIntAutoRadix(b[1]));ib(b[3])&&(m=yd.parseIntAutoRadix(b[3]));ib(b[5])&&(r=yd.parseIntAutoRadix(b[5]))}return qp.format(c,a,d,{minimumIntegerDigits:h,minimumFractionDigits:m,maximumFractionDigits:r,currency:f,currencyAsSymbol:g})}function ia(b){return void 0!==b&&null!==b}function Mb(b){return void 0===b||null===b}
  function rp(b){if("string"===typeof b)return b;if(void 0===b||null===b)return""+b;if(b.overriddenName)return b.overriddenName;if(b.name)return b.name;b=b.toString();var a=b.indexOf("\n");return-1===a?b:b.substring(0,a)}function wj(b,a){if(ia(b))for(var c=0;c<b.length;c++){var d=b[c];Array.isArray(d)?wj(d,a):a.push(d)}return a}function sp(b){return qb.replaceAllMapped(b,tp,function(a){return"-"+a[1].toLowerCase()})}function up(b){return qb.replaceAllMapped(b,vp,function(a){return a[1].toUpperCase()})}
  function xj(b,a,c){var d={};a.styles.forEach(function(a){Ab.forEach(a,function(a,c){var b=up(c);if("*"!=a){var e=a.toString(),f="",g;a:switch(b){case "width":case "height":case "minWidth":case "minHeight":case "maxWidth":case "maxHeight":case "left":case "top":case "bottom":case "right":case "fontSize":case "outlineWidth":case "outlineOffset":case "paddingTop":case "paddingLeft":case "paddingBottom":case "paddingRight":case "marginTop":case "marginLeft":case "marginBottom":case "marginRight":case "borderRadius":case "borderWidth":case "borderTopWidth":case "borderLeftWidth":case "borderRightWidth":case "borderBottomWidth":case "textIndent":g=
  !0;break a;default:g=!1}if(g&&0!=a&&"0"!=a)if("number"===typeof a)f="px";else{a:{g=a.toString();for(var v=0;v<g.length;v++){var k=qb.charCodeAt(g,v);if(!(k>=wp&&k<=xp||k==yp)){g=g.substring(v,g.length);break a}}g=""}if(0==g.length)throw Error("Please provide a CSS unit value for "+c+":"+a);}a=e+f}d[b]=a})});Ab.forEach(c,function(a,c){ia(d[c])||(d[c]=a)});return d}function yj(b){return function(a){!1===b(a)&&G.preventDefault(a)}}function zj(b,a,c){for(var d=0;d<a.length;d++){var e=a[d];Array.isArray(e)?
  zj(b,e,c):(e=qb.replaceAll(e,Og,b),c.push(e))}return c}function Aj(b){if(":"!=b[0])return[null,b];b=b.match(zp);return[b[1],b[2]]}function Ap(b){return eb(b)}function Bp(b){return b.reduce(function(a,c){return a[c.name]=c.token,a},{})}function df(b){b=String(b);if(b.match(Cp)||b.match(Dp))return b;G.log("WARNING: sanitizing unsafe URL value "+b+" (see http://g.co/ng/security#xss)");return"unsafe:"+b}function Ep(b){b=String(b);return b.split(",").map(function(a){return df(a.trim())}).join(", ")}function Fp(){if(Bc)return Bc;
  la=G;var b=la.createElement("template");if("content"in b)return b;b=la.createHtmlDocument();Bc=la.querySelector(b,"body");if(null==Bc){var a=la.createElement("html",b);Bc=la.createElement("body",b);la.appendChild(a,Bc);la.appendChild(b,a)}return Bc}function Cc(b){var a={},c=0;for(b=b.split(",");c<b.length;c++)a[b[c]]=!0;return a}function le(){for(var b=[],a=0;a<arguments.length;a++)b[a-0]=arguments[a];for(var a={},c=0;c<b.length;c++){var d=b[c],e;for(e in d)d.hasOwnProperty(e)&&(a[e]=!0)}return a}
  function Bj(b){return b.replace(/&/g,"\x26amp;").replace(Gp,function(a){var c=a.charCodeAt(0);a=a.charCodeAt(1);return"\x26#"+(1024*(c-55296)+(a-56320)+65536)+";"}).replace(Hp,function(a){return"\x26#"+a.charCodeAt(0)+";"}).replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;")}function Cj(b){la.attributeMap(b).forEach(function(a,c){"xmlns:ns1"!==c&&0!==c.indexOf("ns1:")||la.removeAttribute(b,c)});for(var a=0,c=la.childNodesAsList(b);a<c.length;a++){var d=c[a];la.isElementNode(d)&&Cj(d)}}function Ip(b){b=
  String(b).trim();if(!b)return"";var a=b.match(Jp);if(!(a=a&&df(a[1])===a[1])&&(a=b.match(Kp))){for(var a=b,c=!0,d=!0,e=0;e<a.length;e++){var f=a.charAt(e);"'"===f&&d?c=!c:'"'===f&&c&&(d=!d)}a=c&&d}if(a)return b;G.log("WARNING: sanitizing unsafe style value "+b+" (see http://g.co/ng/security#xss).");return"unsafe"}function Lp(){return new ef}function Mp(){return G.defaultDoc()}function Np(){return G.supportsWebAnimation()?new Op:Pg.NOOP}function D(b){return void 0!==b&&null!==b}function fb(b){return void 0===
  b||null===b}function Dj(b){return D(b)&&"function"===typeof b.then}function Qg(b,a){return b===a||"number"===typeof b&&"number"===typeof a&&isNaN(b)&&isNaN(a)}function ff(b){return fb(b)?!1:b}function Ej(b){return null!==b&&("function"===typeof b||"object"===typeof b)}function Fj(b,a){if(D(b))for(var c=0;c<b.length;c++){var d=b[c];Array.isArray(d)?Fj(d,a):a.push(d)}return a}function Pp(b){return Dj(b)?b:Qp.call(b)}function Rp(b,a){return a.map(function(a){return a(b)})}function Sp(b,a){return a.map(function(a){return a(b)})}
  function Gj(b){b=b.reduce(function(a,c){return D(c)?jb.merge(a,c):a},{});return jb.isEmpty(b)?null:b}function Tp(b){return void 0!==b.validate?function(a){return b.validate(a)}:b}function Up(b){return void 0!==b.validate?function(a){return b.validate(a)}:b}function Hj(){throw Error("unimplemented");}function Ij(b,a){if(fb(b))return""+a;Ej(a)&&(a="Object");return Jj.slice(b+": "+a,0,50)}function Kj(b,a){if(fb(b))return""+a;"string"===typeof a&&(a="'"+a+"'");Ej(a)&&(a="Object");return Jj.slice(b+": "+
  a,0,50)}function gf(b,a){a=Ob.clone(a.path);a.push(b);return a}function me(b,a){fb(b)&&ad(a,"Cannot find control with");fb(a.valueAccessor)&&ad(a,"No value accessor for form control with");b.validator=rb.compose([b.validator,a.validator]);b.asyncValidator=rb.composeAsync([b.asyncValidator,a.asyncValidator]);a.valueAccessor.writeValue(b.value);a.valueAccessor.registerOnChange(function(c){a.viewToModelUpdate(c);b.markAsDirty();b.setValue(c,{emitModelToViewChange:!1})});a.valueAccessor.registerOnTouched(function(){return b.markAsTouched()});
  b.registerOnChange(function(c,b){a.valueAccessor.writeValue(c);b&&a.viewToModelUpdate(c)});a.valueAccessor.setDisabledState&&b.registerOnDisabledChange(function(c){a.valueAccessor.setDisabledState(c)});a._rawValidators.forEach(function(a){a.registerOnValidatorChange&&a.registerOnValidatorChange(function(){return b.updateValueAndValidity()})});a._rawAsyncValidators.forEach(function(a){a.registerOnValidatorChange&&a.registerOnValidatorChange(function(){return b.updateValueAndValidity()})})}function Vp(b,
  a){a.valueAccessor.registerOnChange(function(){return Lj(a)});a.valueAccessor.registerOnTouched(function(){return Lj(a)});a._rawValidators.forEach(function(a){return a.registerOnValidatorChange(null)});a._rawAsyncValidators.forEach(function(a){return a.registerOnValidatorChange(null)});b&&b._clearChangeFns()}function Rg(b,a){fb(b)&&ad(a,"Cannot find control with");b.validator=rb.compose([b.validator,a.validator]);b.asyncValidator=rb.composeAsync([b.asyncValidator,a.asyncValidator])}function Lj(b){return ad(b,
  "There is no FormControl instance attached to form control element with")}function ad(b,a){b=1<b.path.length?"path: '"+b.path.join(" -\x3e ")+"'":b.path[0]?"name: '"+b.path+"'":"unspecified name attribute";throw Error(a+" "+b);}function Dc(b){return D(b)?rb.compose(b.map(Tp)):null}function Ec(b){return D(b)?rb.composeAsync(b.map(Up)):null}function Sg(b,a){if(!jb.contains(b,"model"))return!1;b=b.model;return b.isFirstChange()?!0:!Qg(a,b.currentValue)}function Tg(b,a){if(fb(a))return null;var c,d,e;
  a.forEach(function(a){a.constructor===Ug?c=a:a.constructor===Vg||a.constructor===Wg||a.constructor===hf||a.constructor===jf||a.constructor===Xg?(D(d)&&ad(b,"More than one built-in value accessor matches form control with"),d=a):(D(e)&&ad(b,"More than one custom value accessor matches form control with"),e=a)});if(D(e))return e;if(D(d))return d;if(D(c))return c;ad(b,"No valid value accessor for form control with");return null}function Wp(b,a,c){if(fb(a))return null;a instanceof Array||(a=a.split(c));
  return a instanceof Array&&Ob.isEmpty(a)?null:a.reduce(function(a,c){return a instanceof zd?D(a.controls[c])?a.controls[c]:null:a instanceof Yg?D(a.at(c))?a.at(c):null:null},b)}function Xp(b){return Dj(b)?Yp(b):b}function Mj(b){return Array.isArray(b)?Dc(b):b}function Nj(b){return Array.isArray(b)?Ec(b):b}function Oj(b){return!(b instanceof ne)&&!(b instanceof kf)&&!(b instanceof lf)}function p(b){return void 0!==b&&null!==b}function z(b){return void 0===b||null===b}function Xb(b){return"string"===
  typeof b}function Ad(b){return"object"===typeof b&&null!==b}function O(b){if("string"===typeof b)return b;if(void 0===b||null===b)return""+b;if(b.overriddenName)return b.overriddenName;if(b.name)return b.name;b=b.toString();var a=b.indexOf("\n");return-1===a?b:b.substring(0,a)}function Pj(b){return z(b)?null:b}function sb(b){return z(b)?!1:b}function Qj(b){return b.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function Fc(b,a,c){void 0===c&&(c=null);var d=[];a.forEach(function(a){a=a.visit(b,c);p(a)&&
  d.push(a)});return d}function Rj(b,a){if(p(b))for(var c=0;c<b.length;c++){var d=b[c];Array.isArray(d)?Rj(d,a):a.push(d)}return a}function Bd(b){if(":"!=b[0])return[null,b];var a=b.indexOf(":",1);if(-1==a)throw Error('Unsupported format "'+b+'" expecting ":namespace:name"');return[b.slice(1,a),b.slice(a+1)]}function Zg(b){return Zp[b.toLowerCase()]||$p}function Sj(b,a,c){b=new aq(b,a);return c.visitExpression(b,null)}function L(b,a){void 0===a&&(a=null);return new Gc(b,a)}function N(b,a){void 0===
  a&&(a=null);return new Tj(b,null,a)}function ka(b,a,c){void 0===a&&(a=null);void 0===c&&(c=null);return p(b)?new Uj(b,a,c):null}function ra(b,a){void 0===a&&(a=null);return new Vj(b,a)}function lc(b,a){void 0===a&&(a=null);return new Wj(b,a)}function Cd(b,a,c){void 0===c&&(c=null);return new bq(b,a,c)}function F(b,a){void 0===a&&(a=null);return new $g(b,a)}function Xj(b){return T.replaceAllMapped(b,cq,function(a){return"-"+a[1].toLowerCase()})}function mf(b,a){var c=b.indexOf(":");return-1==c?a:[b.slice(0,
  c).trim(),b.slice(c+1).trim()]}function nf(b){return T.replaceAll(b,/\W/g,"_")}function Dd(b,a,c){return Array.isArray(b)?a.visitArray(b,c):Ad(b)&&Object.getPrototypeOf(b)===dq?a.visitStringMap(b,c):z(b)||null===b||"function"!==typeof b&&"object"!==typeof b?a.visitPrimitive(b,c):a.visitOther(b,c)}function fa(b,a,c){void 0===a&&(a=null);return null==a?"asset:@angular/lib/"+b+"/index":"asset:@angular/lib/"+b+"/src/"+a}function bd(b){return p(b.value)?F(b.value):b.identifierIsInstance?N(b.identifier).instantiate([],
  ka(b.identifier,[],[mc.Const])):N(b.identifier)}function Yj(b){var a=new Map;b.forEach(function(c){a.get(c.identifier.reference)||a.set(c.identifier.reference,c)});return Ya.values(a)}function xa(b){return p(b)?b:[]}function of(b){return Ad(b)&&p(b.name)&&p(b.filePath)}function ah(b){return 9<=b&&32>=b||160==b}function Ed(b){return 48<=b&&57>=b}function pf(b){return 97<=b&&122>=b||65<=b&&90>=b}function bh(b,a){if(!z(a)){if(!Array.isArray(a))throw Error("Expected '"+b+"' to be an array of strings.");
  for(var c=0;c<a.length;c+=1)if(!Xb(a[c]))throw Error("Expected '"+b+"' to be an array of strings.");}}function Zj(b,a){if(p(a)&&(!Array.isArray(a)||2!=a.length))throw Error("Expected '"+b+"' to be an array, [start, end].");if(!z(a)){var c=a[0],d=a[1];eq.forEach(function(a){if(a.test(c)||a.test(d))throw Error("['"+c+"', '"+d+"'] contains unusable interpolation symbol.");})}}function ak(b){return 97<=b&&122>=b||65<=b&&90>=b||95==b||36==b}function fq(b){if(0==b.length)return!1;b=new bk(b);if(!ak(b.peek))return!1;
  for(b.advance();0!==b.peek;){if(!ck(b.peek))return!1;b.advance()}return!0}function ck(b){return pf(b)||Ed(b)||95==b||36==b}function gq(b){switch(b){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return b}}function dk(b){b=Qj(b.start)+"([\\s\\S]*?)"+Qj(b.end);return new RegExp(b,"g")}function ya(b,a,c){void 0===c&&(c=null);var d=[];a.forEach(function(a){(a=a.visit(b,c))&&d.push(a)});return d}function Fd(b){return'Unexpected character "'+(0===b?
  "EOF":String.fromCharCode(b))+'"'}function ek(b){return'Unknown entity "'+b+'" - use the "\x26#\x3cdecimal\x3e;" or  "\x26#x\x3chex\x3e;" syntax'}function tb(b){return!ah(b)||0===b}function fk(b){return ah(b)||62===b||47===b||39===b||34===b||61===b}function hq(b){return(97>b||122<b)&&(65>b||90<b)&&(48>b||57<b)}function iq(b){return 59==b||0==b||!(97<=b&&102>=b||65<=b&&70>=b||Ed(b))}function jq(b){return 59==b||0==b||!pf(b)}function gk(b,a,c){c=c?b.indexOf(c.start,a)==a:!1;return 123==b.charCodeAt(a)&&
  !c}function qf(b){var a,c;var d;b=kq(b.nodes).join("")+("["+b.meaning+"]");d="";for(var e=0;e<b.length;e++){var f;b:{var g=b,h=e;if(0>h||h>=g.length)throw Error("index\x3d"+h+' is out of range in "'+g+'"');f=g.charCodeAt(h);if(55296<=f&&57343>=f&&g.length>h+1&&(g=g.charCodeAt(h+1),56320<=g&&57343>=g)){f=1024*(f-55296)+g-56320+65536;break b}}127>=f?d+=String.fromCharCode(f):2047>=f?d+=String.fromCharCode(192|f>>>6,128|f&63):65535>=f?d+=String.fromCharCode(224|f>>>12,128|f>>>6&63,128|f&63):2097151>=
  f&&(d+=String.fromCharCode(240|f>>>18,128|f>>>12&63,128|f>>>6&63,128|f&63))}b=Array(d.length>>>2);for(e=0;e<b.length;e++)b[e]=0;for(e=0;e<d.length;e++)b[e>>>2]|=(d.charCodeAt(e)&255)<<8*(3-e&3);d=8*d.length;e=Array(80);a=[1732584193,4023233417,2562383102,271733878,3285377520];c=a[0];f=a[1];g=a[2];h=a[3];a=a[4];b[d>>5]|=128<<24-d%32;b[(d+64>>9<<4)+15]=d;for(d=0;d<b.length;d+=16){for(var m=[c,f,g,h,a],r=m[0],u=m[1],v=m[2],k=m[3],m=m[4],l=0;80>l;l++){var n=l,p;16>l?p=b[d+l]:(p=e[l-3]^e[l-8]^e[l-14]^
  e[l-16],p=p<<1|p>>>31);e[n]=p;n=20>l?[f&g|~f&h,1518500249]:40>l?[f^g^h,1859775393]:60>l?[f&g|f&h|g&h,2400959708]:[f^g^h,3395469782];a=[c<<5|c>>>27,n[0],a,n[1],e[l]].reduce(Gd);c=[h,g,f<<30|f>>>2,c,a];a=c[0];h=c[1];g=c[2];f=c[3];c=c[4]}a=[Gd(c,r),Gd(f,u),Gd(g,v),Gd(h,k),Gd(a,m)];c=a[0];f=a[1];g=a[2];h=a[3];a=a[4]}b=[c,f,g,h,a];d="";for(e=0;e<4*b.length;e++)d+=String.fromCharCode(b[e>>>2]>>>8*(3-e&3)&255);b=d;e="";for(d=0;d<b.length;d++)f=b.charCodeAt(d),e+=(f>>>4&15).toString(16)+(f&15).toString(16);
  b=e.toLowerCase();return b}function kq(b){return b.map(function(a){return a.visit(mq,null)})}function Gd(b,a){var c=(b&65535)+(a&65535);return(b>>16)+(a>>16)+(c>>16)<<16|c&65535}function nq(b){var a=new oq(pq,b);return function(c,b,e){return a.toI18nMessage(c,b,e)}}function qq(b,a,c,d){return(new hk(c,d)).extract(b,a)}function rq(b){return b.attrs.find(function(a){return"i18n"===a.name})||null}function ik(b){if(!b)return["",""];var a=b.indexOf("|");return-1==a?["",b]:[b.slice(0,a),b.slice(a+1)]}function sq(b){return tq}
  function jk(b){var a=b.getMessageMap(),c={};Object.keys(a).forEach(function(b){c[b]=a[b].placeholders});return c}function kk(b){var a=b.getMessageMap(),c={};Object.keys(a).forEach(function(b){c[b]=a[b].placeholderToMsgIds});return c}function lk(b){return b.map(function(a){return a.visit(uq)}).join("")}function dh(b){return vq.reduce(function(a,c){return a.replace(c[0],c[1])},b)}function K(b){return new ub({name:b.name,moduleUrl:b.moduleUrl,reference:nc.resolveIdentifier(b.name,b.moduleUrl,b.runtime)})}
  function Hd(b){return new Hc({identifier:b})}function za(b){return Hd(K(b))}function eh(b){var a=new wq;return new xq(ya(a,b),a.isExpanded,a.errors)}function yq(b,a){var c=b.cases.map(function(c){-1!=mk.indexOf(c.value)||c.value.match(/^=\d+$/)||a.push(new zq(c.valueSourceSpan,'Plural cases should be "\x3d\x3cnumber\x3e" or one of '+mk.join(", ")));var b=eh(c.expression);a.push.apply(a,b.errors);return new oc("template",[new dd("ngPluralCase",""+c.value,c.valueSourceSpan)],b.nodes,c.sourceSpan,c.sourceSpan,
  c.sourceSpan)}),d=new dd("[ngPlural]",b.switchValue,b.switchValueSourceSpan);return new oc("ng-container",[d],c,b.sourceSpan,b.sourceSpan,b.sourceSpan)}function Aq(b,a){var c=b.cases.map(function(c){var b=eh(c.expression);a.push.apply(a,b.errors);return new oc("template",[new dd("ngSwitchCase",""+c.value,c.valueSourceSpan)],b.nodes,c.sourceSpan,c.sourceSpan,c.sourceSpan)}),d=new dd("[ngSwitch]",b.switchValue,b.switchValueSourceSpan);return new oc("ng-container",[d],c,b.sourceSpan,b.sourceSpan,b.sourceSpan)}
  function nk(b,a){return new Ic({token:b.token,useClass:b.useClass,useExisting:a.useExisting,useFactory:b.useFactory,useValue:a.useValue,deps:a.deps,multi:b.multi})}function ok(b,a){var c=a.eager;return new rf(b.token,b.multiProvider,b.eager||c,a.providers,b.providerType,b.lifecycleHooks,b.sourceSpan)}function oe(b,a,c,d){void 0===d&&(d=null);z(d)&&(d=[]);p(b)&&b.forEach(function(b){if(Array.isArray(b))oe(b,a,c,d);else{var e=void 0;b instanceof Ic?e=b:b instanceof sf?e=new Ic({token:new Hc({identifier:b}),
  useClass:b}):c.push(new Id("Unknown provider type "+b,a));p(e)&&d.push(e)}});return d}function Bq(b,a,c){var d=new Map;b.forEach(function(b){var e=new Ic({token:new Hc({identifier:b.type}),useClass:b.type});pe([e],b.isComponent?sa.Component:sa.Directive,!0,a,c,d)});b.filter(function(a){return a.isComponent}).concat(b.filter(function(a){return!a.isComponent})).forEach(function(b){pe(oe(b.providers,a,c),sa.PublicService,!1,a,c,d);pe(oe(b.viewProviders,a,c),sa.PrivateService,!1,a,c,d)});return d}function pe(b,
  a,c,d,e,f){b.forEach(function(b){var g=f.get(b.token.reference);p(g)&&g.multiProvider!==b.multi&&e.push(new Id("Mixing multi and non multi provider is not possible for token "+g.token.name,d));z(g)?(g=b.token.identifier&&b.token.identifier instanceof sf?b.token.identifier.lifecycleHooks:[],g=new rf(b.token,b.multi,c||0<g.length,[b],a,g,d),f.set(b.token.reference,g)):(b.multi||ja.clear(g.providers),g.providers.push(b))})}function Cq(b){var a=new Map;p(b.viewQueries)&&b.viewQueries.forEach(function(c){return tf(a,
  c)});b.type.diDeps.forEach(function(c){p(c.viewQuery)&&tf(a,c.viewQuery)});return a}function Dq(b){var a=new Map;b.forEach(function(c){p(c.queries)&&c.queries.forEach(function(c){return tf(a,c)});c.type.diDeps.forEach(function(c){p(c.query)&&tf(a,c.query)})});return a}function tf(b,a){a.selectors.forEach(function(c){var d=b.get(c.reference);z(d)&&(d=[],b.set(c.reference,d));d.push(a)})}function fh(b){if(z(b)||0===b.length||"/"==b[0])return!1;b=b.match(Eq);return null===b||"package"==b[1]||"asset"==
  b[1]}function Fq(b,a,c){var d=[];c=T.replaceAllMapped(c,Gq,function(c){var e=p(c[1])?c[1]:c[2];if(!fh(e))return c[0];d.push(b.resolve(a,e));return""});return new Hq(c,d)}function gh(b){var a=null,c=null,d=null,e=!1,f=null;b.attrs.forEach(function(b){var g=b.name.toLowerCase();"select"==g?a=b.value:"href"==g?c=b.value:"rel"==g?d=b.value:"ngNonBindable"==b.name?e=!0:"ngProjectAs"==b.name&&0<b.value.length&&(f=b.value)});if(null===a||0===a.length)a="*";b=b.name.toLowerCase();var g=Ta.OTHER;"ng-content"==
  Bd(b)[1]?g=Ta.NG_CONTENT:"style"==b?g=Ta.STYLE:"script"==b?g=Ta.SCRIPT:"link"==b&&"stylesheet"==d&&(g=Ta.STYLESHEET);return new Iq(g,a,c,e,f)}function hh(b,a){var c=new Jd;b=Bd(b)[1];c.setElement(b);for(b=0;b<a.length;b++){var d=a[b][0],e=Bd(d)[1],f=a[b][1];c.addAttribute(e,f);"class"==d.toLowerCase()&&f.trim().split(/\s+/g).forEach(function(a){return c.addClassName(a)})}return c}function Kd(){throw Error("unimplemented");}function Jq(b){var a=[],c={},d=[],e=[];b.definitions.forEach(function(b){b instanceof
  pk?Kq(b,a).forEach(function(a){e.push(a);c[a.stateName]=a.styles}):d.push(b)});var f=d.map(function(b){return Lq(b,c,a)});b=new Mq(b.name,e,f);return new Nq(b,a)}function Kq(b,a){var c=[];b.styles.styles.forEach(function(b){Ad(b)?c.push(b):a.push(new Bb("State based animations cannot contain references to other states"))});var d=new ed(c);return b.stateNameExpr.split(/\s*,\s*/).map(function(a){return new Oq(a,d)})}function Lq(b,a,c){var d=new Pq,e=[];b.stateChangeExpr.split(/\s*,\s*/).forEach(function(a){Qq(a,
  c).forEach(function(a){e.push(a)})});b=Rq(b.steps);b=Sq(b,a,c);a=qk(b,0,d,a,c);0==c.length&&rk(a,d,c);d=a instanceof uf?a:new sk([a]);return new Tq(e,d)}function Qq(b,a){var c=[],d=b.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!p(d)||4>d.length)return a.push(new Bb("the provided "+b+" is not of a supported format")),c;b=d[1];a=d[2];d=d[3];c.push(new tk(b,d));"\x3c"!=a[0]||"*"==b&&"*"==d||c.push(new tk(d,b));return c}function Rq(b){return Array.isArray(b)?new vf(b):b}function ih(b,a,c){var d=
  [];b.styles.forEach(function(b){Xb(b)?ja.addAll(d,Uq(b,a,c)):d.push(b)});return d}function Sq(b,a,c){a=uk(b,a,c);return b instanceof Ld?new Ld(a):new vf(a)}function uk(b,a,c){if(b instanceof Md)b=b.steps;else return[b];var d=[],e;b.forEach(function(b){if(b instanceof Nd)p(e)||(e=[]),ih(b,a,c).forEach(function(a){a:{var c=e;if(Ad(a)&&0<c.length){var b=c.length-1,d=c[b];if(Ad(d)){c[b]=na.merge(d,a);break a}}c.push(a)}});else{p(e)&&(d.push(new Nd(0,e)),e=null);if(b instanceof jh){var g=b.styles;g instanceof
  Nd?g.styles=ih(g,a,c):g instanceof kh&&g.steps.forEach(function(b){b.styles=ih(b,a,c)})}else b instanceof Md&&(g=uk(b,a,c),b=b instanceof Ld?new Ld(g):new vf(g));d.push(b)}});p(e)&&d.push(new Nd(0,e));return d}function Uq(b,a,c){var d=[];":"!=b[0]?c.push(new Bb('Animation states via styles must be prefixed with a ":"')):(b=b.substring(1),a=a[b],p(a)?a.styles.forEach(function(a){Ad(a)&&d.push(a)}):c.push(new Bb('Unable to apply styles due to missing a state: "'+b+'"')));return d}function Vq(b,a,c,
  d,e){a=b.steps.length;var f=0;b.steps.forEach(function(a){return f+=p(a.offset)?1:0});0<f&&f<a&&(e.push(new Bb("Not all style() entries contain an offset for the provided keyframe()")),f=a);var g=a-1,h=0==f?1/g:0,m=[],r=0,u=!1,v=0;b.steps.forEach(function(a){var c=a.offset,b={};a.styles.forEach(function(a){na.forEach(a,function(a,c){"offset"!=c&&(b[c]=a)})});p(c)?u=u||c<v:c=r==g?1:h*r;m.push([c,b]);v=c;r++});u&&ja.sort(m,function(a,c){return a[0]<=c[0]?-1:1});b=m[0];0!=b[0]&&ja.insert(m,0,b=[0,{}]);
  var k=b[1],g=m.length-1;b=m[g];1!=b[0]&&(m.push(b=[1,{}]),g++);var l=b[1];for(b=1;b<=g;b++)e=m[b],e=e[1],na.forEach(e,function(a,c){p(k[c])||(k[c]="true")});for(b=g-1;0<=b;b--)e=m[b],e=e[1],na.forEach(e,function(a,c){p(l[c])||(l[c]=a)});return m.map(function(a){return new lh(a[0],new ed([a[1]]))})}function qk(b,a,c,d,e){var f=0,g=a;if(b instanceof Md){var h=0,m=[],r=b instanceof Ld,u;b.steps.forEach(function(b){var v=r?g:a;if(b instanceof Nd)b.styles.forEach(function(a){na.forEach(a,function(a,b){c.insertAtTime(b,
  v,a)})}),u=b.styles;else{var k=qk(b,v,c,d,e);p(u)&&(b instanceof Md?(b=new ed(u),m.push(new Od(b,[],0,0,""))):ja.addAll(k.startingStyles.styles,u),u=null);b=k.playTime;a+=b;f+=b;h=mh.max(b,h);m.push(k)}});if(p(u)){var v=new ed(u);m.push(new Od(v,[],0,0,""))}r?(b=new Zq(m),f=h,a=g+f):b=new sk(m)}else if(b instanceof jh){v=$q(b.timings,e);b=b.styles;var k;b instanceof kh?k=Vq(b,a,c,d,e):(b=new ed(b.styles),k=[new lh(1,b)]);b=new Od(new ed([]),k,v.duration,v.delay,v.easing);f=v.duration+v.delay;a+=f;
  k.forEach(function(b){return b.styles.styles.forEach(function(b){return na.forEach(b,function(b,d){return c.insertAtTime(d,a,b)})})})}else b=new Od(null,[],0,0,"");b.playTime=f;b.startTime=g;return b}function rk(b,a,c){if(b instanceof Od&&0<b.keyframes.length){var d=b.keyframes;if(1==d.length){var d=d[0],e=ar(d,b.startTime,b.playTime,a,c);b.keyframes=[e,d]}}else b instanceof uf&&b.steps.forEach(function(b){return rk(b,a,c)})}function $q(b,a){var c=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,
  d=0,e=null;if(Xb(b)){c=b.match(c);if(null===c)return a.push(new Bb('The provided timing value "'+b+'" is invalid.')),new vk(0,0,null);b=parseFloat(c[1]);"s"==c[2]&&(b*=1E3);b=mh.floor(b);var f=c[3];a=c[4];p(f)&&(d=parseFloat(f),p(a)&&"s"==a&&(d*=1E3),d=mh.floor(d));c=c[5];z(c)||(e=c)}return new vk(b,d,e)}function ar(b,a,c,d,e){var f={},g=a+c;b.styles.styles.forEach(function(c){na.forEach(c,function(c,b){if("offset"!=b){var h=d.indexOfAtOrBeforeTime(b,a),m,r,k;p(h)?(m=d.getByIndex(b,h),k=m.value,r=
  d.getByIndex(b,h+1)):k="true";p(r)&&!r.matches(g,c)&&e.push(new Bb('The animated CSS property "'+b+'" unexpectedly changes between steps "'+m.time+'ms" and "'+g+'ms" at "'+r.time+'ms"'));f[b]=k}})});return new lh(0,new ed([f]))}function wk(b,a){var c=F("void");switch(a){case "void":return b.equals(c);case "*":return F(!0);default:return b.equals(F(a))}}function br(b){if(b instanceof Od&&0<b.duration&&2==b.keyframes.length){var a=b.keyframes[1].styles.styles[0];return na.isEmpty(b.keyframes[0].styles.styles[0])&&
  na.isEmpty(a)}return!1}function cr(b,a){b=new dr(b);Fc(b,a);return new er(b.outputs,b.errors)}function xk(b,a){void 0===a&&(a=null);return Dd(b,new fr,a)}function Jc(b,a,c){if(a===c)return b;for(var d=A;a!==c&&p(a.declarationElement.view);)a=a.declarationElement.view,d=d.prop("parent");if(a!==c)throw Error("Internal error: Could not calculate a property in a parent view: "+b);b instanceof nh&&(c.fields.some(function(a){return a.name==b.name})||c.getters.some(function(a){return a.name==b.name}))&&
  (d=d.cast(c.classType));return Sj(A.name,d,b)}function oh(b,a){b=[bd(b)];a&&b.push(ga);return A.prop("parentInjector").callMethod("get",b)}function yk(b){for(var a=[],c=ra([]),d=0;d<b.length;d++){var e=b[d];e.type instanceof Kc?(0<a.length&&(c=c.callMethod(Ma.ConcatArray,[ra(a)]),a=[]),c=c.callMethod(Ma.ConcatArray,[e])):a.push(e)}0<a.length&&(c=c.callMethod(Ma.ConcatArray,[ra(a)]));return c}function ph(b,a,c,d){d.fields.push(new Cb(c.name,null));var e=a<C.pureProxies.length?C.pureProxies[a]:null;
  if(z(e))throw Error("Unsupported number of argument for pure functions: "+a);d.createMethod.addStmt(A.prop(c.name).set(N(K(e)).callFn([b])).toStmt())}function zk(b){return ja.flatten(b.values.map(function(a){return a instanceof qe?gr(a.view.declarationElement.appElement,a.view,zk(a)):a}))}function gr(b,a,c){c=c.map(function(a){return Sj(A.name,L("nestedView"),a)});return b.callMethod("mapNestedViews",[L(a.className),Cd([new Ca("nestedView",a.classType)],[new Za(ra(c))],ta)])}function qh(b,a,c,d){d.fields.push(new Cb(c,
  ka(K(C.QueryList),[ta])));b=A.prop(c);d.createMethod.addStmt(A.prop(c).set(N(K(C.QueryList),[ta]).instantiate([])).toStmt());return b}function rh(b,a){a.meta.selectors.forEach(function(c){var d=b.get(c.reference);z(d)&&(d=[],b.set(c.reference,d));d.push(a)})}function Db(b,a){var c=nc.resolveEnum(b.reference,a);b=new ub({name:b.name+"."+a,moduleUrl:b.moduleUrl,reference:c});return N(b)}function hr(b,a,c,d){b=0<a?F(b).lowerEquals(Lc.requestNodeIndex).and(Lc.requestNodeIndex.lowerEquals(F(b+a))):F(b).identical(Lc.requestNodeIndex);
  return new Aa(Lc.token.identical(bd(c.token)).and(b),[new Za(d)])}function ir(b,a,c,d,e,f){a=f.view;d?(d=ra(c),c=new Kc(ta)):(d=c[0],c=c[0].type);z(c)&&(c=ta);if(e)a.fields.push(new Cb(b,c)),a.createMethod.addStmt(A.prop(b).set(d).toStmt());else{e="_"+b;a.fields.push(new Cb(e,c));var g=new kb(a);g.resetDebugInfo(f.nodeIndex,f.sourceAst);g.addStmt(new Aa(A.prop(e).isBlank(),[A.prop(e).set(d).toStmt()]));g.addStmt(new Za(A.prop(e)));a.getters.push(new Ak(b,g.finish(),c))}return A.prop(b)}function Bk(b,
  a){if(b!==oa.Expression)throw Error("Expected an expression, but saw "+a);}function vb(b,a){return b===oa.Statement?a.toStmt():a}function Ck(b,a){Array.isArray(b)?b.forEach(function(c){return Ck(c,a)}):a.push(b)}function Dk(b,a,c){var d=[];b.forEach(function(a){c.view.bindings.push(new re(c,a));Ek.getOrCreate(c,a.target,a.name,d).addAction(a,null,null)});a.forEach(function(a){var b=c.instances.get(Hd(a.directive.type).reference);a.hostEvents.forEach(function(e){c.view.bindings.push(new re(c,e));Ek.getOrCreate(c,
  e.target,e.name,d).addAction(e,a.directive,b)})});d.forEach(function(a){return a.finishMethod()});return d}function Fk(b,a,c){na.forEach(b.directive.outputs,function(b,e){c.filter(function(a){return a.eventName==b}).forEach(function(c){c.listenToDirective(a,e)})})}function jr(b){b.forEach(function(a){return a.listenToRenderer()})}function kr(b){b.forEach(function(a){a.listener.listenToAnimation(a.output)})}function Gk(b,a,c){c=c.view.detectChangesInInputsMethod;var d=b.directive.type.lifecycleHooks;
  -1!==d.indexOf(pa.OnChanges)&&0<b.inputs.length&&c.addStmt(new Aa(ua.changes.notIdentical(ga),[a.callMethod("ngOnChanges",[ua.changes]).toStmt()]));-1!==d.indexOf(pa.OnInit)&&c.addStmt(new Aa(sh.and(Hk),[a.callMethod("ngOnInit",[]).toStmt()]));-1!==d.indexOf(pa.DoCheck)&&c.addStmt(new Aa(Hk,[a.callMethod("ngDoCheck",[]).toStmt()]))}function Ik(b,a,c){b=b.type.lifecycleHooks;var d=c.view.afterContentLifecycleCallbacksMethod;d.resetDebugInfo(c.nodeIndex,c.sourceAst);-1!==b.indexOf(pa.AfterContentInit)&&
  d.addStmt(new Aa(sh,[a.callMethod("ngAfterContentInit",[]).toStmt()]));-1!==b.indexOf(pa.AfterContentChecked)&&d.addStmt(a.callMethod("ngAfterContentChecked",[]).toStmt())}function Jk(b,a,c){b=b.type.lifecycleHooks;var d=c.view.afterViewLifecycleCallbacksMethod;d.resetDebugInfo(c.nodeIndex,c.sourceAst);-1!==b.indexOf(pa.AfterViewInit)&&d.addStmt(new Aa(sh,[a.callMethod("ngAfterViewInit",[]).toStmt()]));-1!==b.indexOf(pa.AfterViewChecked)&&d.addStmt(a.callMethod("ngAfterViewChecked",[]).toStmt())}
  function Kk(b,a,c){var d=c.view.destroyMethod;d.resetDebugInfo(c.nodeIndex,c.sourceAst);-1!==b.lifecycleHooks.indexOf(pa.OnDestroy)&&d.addStmt(a.callMethod("ngOnDestroy",[]).toStmt())}function th(b,a,c,d,e,f,g,h){e=new Lk(b,e,ua.valUnwrapper,h);d=d.visit(e,oa.Expression);d=new lr(d,e.needsValueUnwrapper,e.temporaryCount);if(!z(d.expression)){if(d.temporaryCount)for(e=0;e<d.temporaryCount;e++)g.addStmt(new wf("tmp_"+h+"_"+e,ga));b.fields.push(new Cb(c.name,null,[Fa.Private]));b.createMethod.addStmt(A.prop(c.name).set(N(K(C.UNINITIALIZED))).toStmt());
  d.needsValueUnwrapper&&(b=ua.valUnwrapper.callMethod("reset",[]).toStmt(),g.addStmt(b));g.addStmt(a.set(d.expression).toDeclStmt(null,[Fa.Final]));b=N(K(C.checkBinding)).callFn([ua.throwOnChange,c,a]);d.needsValueUnwrapper&&(b=ua.valUnwrapper.prop("hasWrappedValue").or(b));g.addStmt(new Aa(b,f.concat([A.prop(c.name).set(a).toStmt()])))}}function Mk(b,a,c,d){var e=c.view,f=c.renderNode;b.forEach(function(b){var g=e.bindings.length;e.bindings.push(new re(c,b));e.detectChangesRenderPropertiesMethod.resetDebugInfo(c.nodeIndex,
  b);var m=A.prop("_expr_"+g),g=L("currVal_"+g),r=Nk(b,m),u=Nk(b,g),v=[],k=e.detectChangesRenderPropertiesMethod;switch(b.type){case lb.Property:e.genConfig.logBindingUpdate&&v.push(Ok(f,b.name,u));v.push(A.prop("renderer").callMethod("setElementProperty",[f,F(b.name),u]).toStmt());break;case lb.Attribute:u=u.isBlank().conditional(ga,u.callMethod("toString",[]));v.push(A.prop("renderer").callMethod("setElementAttribute",[f,F(b.name),u]).toStmt());break;case lb.Class:v.push(A.prop("renderer").callMethod("setElementClass",
  [f,F(b.name),u]).toStmt());break;case lb.Style:r=u.callMethod("toString",[]);p(b.unit)&&(r=r.plus(F(b.unit)));u=u.isBlank().conditional(ga,r);v.push(A.prop("renderer").callMethod("setElementStyle",[f,F(b.name),u]).toStmt());break;case lb.Animation:var l=b.name,n=A;d&&(n=c.appElement.prop("componentView"));var k=e.animationBindingsMethod,l=n.prop("componentType").prop("animations").key(F(l)),n=F("void"),q=L("oldRenderVar");v.push(q.set(r).toDeclStmt());v.push(new Aa(q.equals(N(K(C.UNINITIALIZED))),
  [q.set(n).toStmt()]));var t=L("newRenderVar");v.push(t.set(u).toDeclStmt());v.push(new Aa(t.equals(N(K(C.UNINITIALIZED))),[t.set(n).toStmt()]));v.push(l.callFn([A,f,q,t]).toStmt());e.detachMethod.addStmt(l.callFn([A,f,r,n]).toStmt())}th(e,g,m,b.value,a,v,k,e.bindings.length)})}function Nk(b,a){var c;switch(b.securityContext){case wa.NONE:return a;case wa.HTML:c="HTML";break;case wa.STYLE:c="STYLE";break;case wa.SCRIPT:c="SCRIPT";break;case wa.URL:c="URL";break;case wa.RESOURCE_URL:c="RESOURCE_URL";
  break;default:throw Error("internal error, unexpected SecurityContext "+b.securityContext+".");}b=wb.viewUtils.prop("sanitizer");a=[N(K(C.SecurityContext)).prop(c),a];return b.callMethod("sanitize",a)}function Pk(b,a,c){if(0!==b.inputs.length){var d=c.view,e=d.detectChangesInInputsMethod;e.resetDebugInfo(c.nodeIndex,c.sourceAst);var f=-1!==b.directive.type.lifecycleHooks.indexOf(pa.OnChanges),g=b.directive.isComponent&&!Qk(b.directive.changeDetection);f&&e.addStmt(ua.changes.set(ga).toStmt());g&&
  e.addStmt(ua.changed.set(F(!1)).toStmt());b.inputs.forEach(function(b){var h=d.bindings.length;d.bindings.push(new re(c,b));e.resetDebugInfo(c.nodeIndex,b);var r=A.prop("_expr_"+h),u=L("currVal_"+h),v=[a.prop(b.directiveName).set(u).toStmt()];f&&(v.push(new Aa(ua.changes.identical(ga),[ua.changes.set(lc([],new xf(ka(K(C.SimpleChange))))).toStmt()])),v.push(ua.changes.key(F(b.directiveName)).set(N(K(C.SimpleChange)).instantiate([r,u])).toStmt()));g&&v.push(ua.changed.set(F(!0)).toStmt());d.genConfig.logBindingUpdate&&
  v.push(Ok(c.renderNode,b.directiveName,u));th(d,u,r,b.value,d.componentContext,v,e,h)});g&&e.addStmt(new Aa(ua.changed,[c.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function Ok(b,a,c){c=A.prop("renderer").callMethod("setBindingDebugInfo",[b,F("ng-reflect-"+Xj(a)),c.isBlank().conditional(ga,c.callMethod("toString",[]))]).toStmt();b=A.prop("renderer").callMethod("setBindingDebugInfo",[b,F("ng-reflect-"+Xj(a)),F("[ERROR] Exception while trying to serialize the value")]).toStmt();
  return new Rk([c],[b])}function Sk(b,a,c){c=new mr(b,c);Fc(c,a);b.pipes.forEach(function(a){var c=a.instance,b=a.view.destroyMethod;-1!==a.meta.type.lifecycleHooks.indexOf(pa.OnDestroy)&&b.addStmt(c.callMethod("ngOnDestroy",[]).toStmt())})}function Tk(b,a,c){c=new nr(b,c);Fc(c,a,b.declarationElement.isNull()?b.declarationElement:b.declarationElement.parent);return c.nestedViewCount}function Uk(b,a){b.afterNodes();or(b,a);b.nodes.forEach(function(c){c instanceof Pd&&c.hasEmbeddedView&&Uk(c.embeddedView,
  a)})}function Vk(b,a){return!b.isNull()&&"ng-container"===b.sourceAst.name&&b.view===a}function pr(b,a){var c={};na.forEach(b,function(a,b){c[b]=a});a.forEach(function(a){na.forEach(a.hostAttributes,function(a,b){var d=c[b];p(d)&&(a="class"==b||"style"==b?d+" "+a:a);c[b]=a})});return qr(c)}function rr(b){var a={};b.forEach(function(c){a[c.name]=c.value});return a}function qr(b){var a=[];na.forEach(b,function(c,b){a.push([b,c])});ja.sort(a,function(a,b){return T.compare(a[0],b[0])});return a}function or(b,
  a){var c=ga;b.genConfig.genDebugInfo&&(c=L("nodeDebugInfos_"+b.component.type.name+b.viewIndex),a.push(c.set(ra(b.nodes.map(sr),new Kc(new Uj(K(C.StaticNodeDebugInfo)),[mc.Const]))).toDeclStmt(null,[Fa.Final])));var d=L("renderType_"+b.component.type.name);0===b.viewIndex&&a.push(d.set(ga).toDeclStmt(ka(K(C.RenderComponentType))));c=tr(b,d,c);a.push(c);a.push(ur(b,c,d))}function sr(b){b=b instanceof Pd?b:null;var a=[],c=ga,d=[];p(b)&&(a=b.getProviderTokens(),p(b.component)&&(c=bd(Hd(b.component.type))),
  na.forEach(b.referenceTokens,function(a,c){d.push([c,p(a)?bd(a):ga])}));return N(K(C.StaticNodeDebugInfo)).instantiate([ra(a,new Kc(ta,[mc.Const])),c,lc(d,new xf(ta,[mc.Const]))],ka(K(C.StaticNodeDebugInfo),null,[mc.Const]))}function tr(b,a,c){var d=[new Ca(Yb.viewUtils.name,ka(K(C.ViewUtils))),new Ca(Yb.parentInjector.name,ka(K(C.Injector))),new Ca(Yb.declarationEl.name,ka(K(C.AppElement)))];a=[L(b.className),a,vr.fromValue(b.viewType),Yb.viewUtils,Yb.parentInjector,Yb.declarationEl,wr.fromValue(b.viewType===
  Na.COMPONENT?Qk(b.component.changeDetection)?Zb.CheckAlways:Zb.CheckOnce:Zb.CheckAlways)];b.genConfig.genDebugInfo&&a.push(c);c=new Eb(null,d,[Wk.callFn(a).toStmt()]);d=[new Eb("createInternal",[new Ca(Xk.name,xr)],yr(b),ka(K(C.AppElement))),new Eb("injectorGetInternal",[new Ca(Lc.token.name,ta),new Ca(Lc.requestNodeIndex.name,zr),new Ca(Lc.notFoundResult.name,ta)],Ar(b.injectorGetMethod.finish(),Lc.notFoundResult),ta),new Eb("detectChangesInternal",[new Ca(ua.throwOnChange.name,yf)],Br(b)),new Eb("dirtyParentQueriesInternal",
  [],b.dirtyParentQueriesMethod.finish()),new Eb("destroyInternal",[],b.destroyMethod.finish()),new Eb("detachInternal",[],b.detachMethod.finish())].concat(b.eventHandlerMethods);return new Yk(b.className,N(K(b.genConfig.genDebugInfo?C.DebugAppView:C.AppView),[b.viewType===Na.COMPONENT?ka(b.component.type):ta]),b.fields,b.getters,c,d.filter(function(a){return 0<a.body.length}))}function ur(b,a,c){var d=[new Ca(Yb.viewUtils.name,ka(K(C.ViewUtils))),new Ca(Yb.parentInjector.name,ka(K(C.Injector))),new Ca(Yb.declarationEl.name,
  ka(K(C.AppElement)))],e=[],f;f=b.component.template.templateUrl==b.component.type.moduleUrl?b.component.type.moduleUrl+" class "+b.component.type.name+" - inline template":b.component.template.templateUrl;0===b.viewIndex&&(e=lc(b.animations.map(function(a){return[a.name,a.fnVariable]})),e=[new Aa(c.identical(ga),[c.set(Yb.viewUtils.callMethod("createRenderComponentType",[F(f),F(b.component.template.ngContentSelectors.length),Cr.fromValue(b.component.template.encapsulation),b.styles,e])).toStmt()])]);
  return Cd(d,e.concat([new Za(L(a.name).instantiate(a.constructorMethod.params.map(function(a){return L(a.name)})))]),ka(K(C.AppView),[b.viewType===Na.COMPONENT?ka(b.component.type):ta])).toDeclStmt(b.viewFactory.name,[Fa.Final])}function yr(b){var a=ga,a=[];b.viewType===Na.COMPONENT&&(a=wb.renderer.callMethod("createViewRoot",[A.prop("declarationAppElement").prop("nativeElement")]),a=[Zk.set(a).toDeclStmt(ka(b.genConfig.renderTypes.renderNode),[Fa.Final])]);var c;c=b.viewType===Na.HOST?b.nodes[0].appElement:
  ga;return a.concat(b.createMethod.finish(),[A.callMethod("init",[yk(b.rootNodesOrAppElements),ra(b.nodes.map(function(a){return a.renderNode})),ra(b.disposables),ra(b.subscriptions)]).toStmt(),new Za(c)])}function Br(b){var a=[];if(b.animationBindingsMethod.isEmpty()&&b.detectChangesInInputsMethod.isEmpty()&&b.updateContentQueriesMethod.isEmpty()&&b.afterContentLifecycleCallbacksMethod.isEmpty()&&b.detectChangesRenderPropertiesMethod.isEmpty()&&b.updateViewQueriesMethod.isEmpty()&&b.afterViewLifecycleCallbacksMethod.isEmpty())return a;
  ja.addAll(a,b.animationBindingsMethod.finish());ja.addAll(a,b.detectChangesInInputsMethod.finish());a.push(A.callMethod("detectContentChildrenChanges",[ua.throwOnChange]).toStmt());var c=b.updateContentQueriesMethod.finish().concat(b.afterContentLifecycleCallbacksMethod.finish());0<c.length&&a.push(new Aa(new se(ua.throwOnChange),c));ja.addAll(a,b.detectChangesRenderPropertiesMethod.finish());a.push(A.callMethod("detectViewChildrenChanges",[ua.throwOnChange]).toStmt());b=b.updateViewQueriesMethod.finish().concat(b.afterViewLifecycleCallbacksMethod.finish());
  0<b.length&&a.push(new Aa(new se(ua.throwOnChange),b));b=[];c=new Dr;c.visitAllStatements(a,null);c=c.varNames;uh.has(c,ua.changed.name)&&b.push(ua.changed.set(F(!0)).toDeclStmt(yf));uh.has(c,ua.changes.name)&&b.push(ua.changes.set(ga).toDeclStmt(new xf(ka(K(C.SimpleChange)))));uh.has(c,ua.valUnwrapper.name)&&b.push(ua.valUnwrapper.set(N(K(C.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[Fa.Final]));return b.concat(a)}function Ar(b,a){return 0<b.length?b.concat([new Za(a)]):b}function $k(b,a){return new vh({type:b.type,
  isComponent:b.isComponent,selector:b.selector,exportAs:b.exportAs,changeDetection:b.changeDetection,inputs:b.inputs,outputs:b.outputs,hostListeners:b.hostListeners,hostProperties:b.hostProperties,hostAttributes:b.hostAttributes,providers:b.providers,viewProviders:b.viewProviders,queries:b.queries,viewQueries:b.viewQueries,entryComponents:b.entryComponents,template:a})}function Er(b){return b instanceof da}function Fr(b){return b instanceof Mc}function Gr(b){return b instanceof Fb}function wh(b,a,
  c,d){void 0===c&&(c=[]);void 0===d&&(d=new Set);b.forEach(function(b){if(!d.has(b.type.reference)){d.add(b.type.reference);var e=a?b.importedModules.concat(b.exportedModules):b.exportedModules;wh(e,a,c,d);c.push(b)}});return c}function Gb(b,a){void 0===a&&(a=[]);if(b)for(var c=0;c<b.length;c++){var d=pb(b[c]);Array.isArray(d)?Gb(d,a):a.push(d)}return a}function Qd(b){return of(b)||b instanceof Ye}function Pb(b){return of(b)?b.filePath:null}function Hr(b,a,c){return of(a)?Pb(a):p(c.moduleId)?(b=c.moduleId,
  a=(a=b.match(zf))&&a[Da.Scheme]||"",p(a)&&0<a.length?b:"package:"+b+""):b.importUri(a)}function al(b,a){return Dd(b,new Ir,a)}function bl(b,a,c){void 0===c&&(c=!0);if(z(b))return null;b=T.replaceAllMapped(b,Jr,function(c){return"$"==c[0]?a?"\\$":"$":"\n"==c[0]?"\\n":"\r"==c[0]?"\\r":"\\"+c[0]});return c||!Kr.test(b)?"'"+b+"'":b}function Lr(b){var a=new Mr("asset://debug/lib"),c=cl.createRoot([]);(Array.isArray(b)?b:[b]).forEach(function(b){if(b instanceof $b)b.visitStatement(a,c);else if(b instanceof
  Ja)b.visitExpression(a,c);else if(b instanceof te)b.visitType(a,c);else throw Error("Don't know how to print debug info for "+b);});return c.toSource()}function xh(b,a){b=b.concat([new Za(L(a))]);a=new Af(null,null,null,new Map);b=(new Nr).visitAllStatements(b,a);return p(b)?b.value:null}function Bf(b,a,c,d,e){d=d.createChildWihtLocalVars();for(var f=0;f<b.length;f++)d.vars.set(b[f],a[f]);b=e.visitAllStatements(c,d);return p(b)?b.value:null}function Or(b,a,c){var d={};b.getters.forEach(function(e){d[e.name]=
  {configurable:!1,get:function(){var d=new Af(a,this,b.name,a.vars);return Bf([],[],e.body,d,c)}}});b.methods.forEach(function(e){var g=e.params.map(function(a){return a.name});d[e.name]={writable:!1,configurable:!1,value:function(){for(var d=[],f=0;f<arguments.length;f++)d[f-0]=arguments[f];f=new Af(a,this,b.name,a.vars);return Bf(g,d,e.body,f,c)}}});var e=b.constructorMethod.params.map(function(a){return a.name}),f=function(){for(var d=this,g=[],f=0;f<arguments.length;f++)g[f-0]=arguments[f];f=new Af(a,
  this,b.name,a.vars);b.fields.forEach(function(a){d[a.name]=void 0});Bf(e,g,b.constructorMethod.body,f,c)},g=b.parent.visitExpression(c,a);f.prototype=Object.create(g.prototype,d);return f}function dl(b,a,c,d){return function(){for(var e=[],f=0;f<arguments.length;f++)e[f-0]=arguments[f];return Bf(b,e,a,c,d)}}function yh(b,a,c){var d=new Pr,e=cl.createRoot([c]);d.visitAllStatements(a,e);a=e.toSource();d=d.getArgs();b=a+"\nreturn "+c+"\n//# sourceURL\x3d"+b;c=[];a=[];for(var f in d)c.push(f),a.push(d[f]);
  return(new (Function.bind.apply(Function,[void 0].concat(c.concat(b))))).apply(void 0,a)}function Qr(b){return T.replaceAllMapped(b,Rr,function(a){return""})}function Sr(b,a){var c=Tr(b),d=0;return T.replaceAllMapped(c.escapedString,Ur,function(b){var e=b[2],g="",h=b[4],m="";p(b[4])&&b[4].startsWith("{"+Cf)&&(g=c.blocks[d++],h=b[4].substring(Cf.length+1),m="{");e=a(new el(e,g));return""+b[1]+e.selector+b[3]+m+e.content+h})}function Tr(b){b=T.split(b,Vr);for(var a=[],c=[],d=0,e=[],f=0;f<b.length;f++){var g=
  b[f];g==Wr&&d--;0<d?e.push(g):(0<e.length&&(c.push(e.join("")),a.push(Cf),e=[]),a.push(g));g==Xr&&d++}0<e.length&&(c.push(e.join("")),a.push(Cf));return new Yr(a.join(""),c)}function fl(b){var a="styles";b&&(a+="_"+b.type.name);return a}function gl(b){if(!b.isComponent)throw Error("Could not compile '"+b.type.name+"' because it is not a component.");}function Df(b,a){for(var c=0;c<a.length;c++)zh[a[c].toLowerCase()]=b}function Zr(b){return{useDebug:Ah(b.map(function(a){return a.useDebug})),useJit:Ah(b.map(function(a){return a.useJit})),
  defaultEncapsulation:Ah(b.map(function(a){return a.defaultEncapsulation})),providers:$r(b.map(function(a){return a.providers}))}}function Ah(b){for(var a=b.length-1;0<=a;a--)if(void 0!==b[a])return b[a]}function $r(b){var a=[];b.forEach(function(c){return c&&a.push.apply(a,c)});return a}function Rd(){throw Error("AngularJS v1.x is not loaded!");}function hl(b){var a=as.resolve(b),c=a.selector;if(!c.match(bs))throw Error("Only selectors matching element names are supported, got: "+c);c=c.replace(cs,
  function(a,c){return c.toUpperCase()});return{type:b,selector:c,inputs:il(a.inputs),outputs:il(a.outputs)}}function il(b){var a=[];if(b)for(var c=0;c<b.length;c++){var d=b[c].split(":"),e=d[0].trim(),d=(d[1]||d[0]).trim(),f=d.charAt(0).toUpperCase()+d.substr(1);a.push({prop:e,attr:d,bracketAttr:"["+d+"]",parenAttr:"("+d+")",bracketParenAttr:"[("+d+")]",onAttr:"on"+f,bindAttr:"bind"+f,bindonAttr:"bindon"+f})}return a}function ds(b){console.log(b,b.stack);throw b;}function es(b,a){function c(c,e,f){var d=
  0;return{restrict:"E",require:"?^ng2.Injector",link:{post:function(g,m,r,u,v){v=e[b.selector];if(!v)throw Error("Expecting ComponentFactory for: "+b.selector);null===u&&(u=c.get("ng2.Injector"));g=new fs(a+d++,b,m,r,g,u,f,v);g.setupInputs();g.bootstrapNg2();g.projectContent();g.setupOutputs();g.registerCleanup()}}}}c.$inject=["$injector","ng2.ComponentFactoryRefMap","$parse"];return c}function Sd(b,a,c,d){var e=arguments.length,f=3>e?a:null===d?d=Object.getOwnPropertyDescriptor(a,c):d,g;if("object"===
  typeof Reflect&&"function"===typeof Reflect.decorate)f=Reflect.decorate(b,a,c,d);else for(var h=b.length-1;0<=h;h--)if(g=b[h])f=(3>e?g(f):3<e?g(a,c,f):g(a,c))||f;return 3<e&&f&&Object.defineProperty(a,c,f),f}function Td(b,a){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(b,a)}var Yi,Nc=Yi="undefined"===typeof window?"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window,fj=Nc.Math;Nc.assert=function(b){};var $o=function(){function b(){}
  b.fromCharCode=function(a){return String.fromCharCode(a)};b.charCodeAt=function(a,c){return a.charCodeAt(c)};b.split=function(a,c){return a.split(c)};b.equals=function(a,c){return a===c};b.stripLeft=function(a,c){if(a&&a.length){for(var b=0,e=0;e<a.length&&a[e]==c;e++)b++;a=a.substring(b)}return a};b.stripRight=function(a,c){if(a&&a.length){for(var b=a.length,e=a.length-1;0<=e&&a[e]==c;e--)b--;a=a.substring(0,b)}return a};b.replace=function(a,c,b){return a.replace(c,b)};b.replaceAll=function(a,c,
  b){return a.replace(c,b)};b.slice=function(a,c,b){void 0===c&&(c=0);void 0===b&&(b=null);return a.slice(c,null===b?void 0:b)};b.replaceAllMapped=function(a,c,b){return a.replace(c,function(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];a.splice(-2,2);return b(a)})};b.contains=function(a,c){return-1!=a.indexOf(c)};b.compare=function(a,c){return a<c?-1:a>c?1:0};return b}();(function(){function b(){}b.toFixed=function(a,c){return a.toFixed(c)};b.equal=function(a,c){return a===c};b.parseIntAutoRadix=
  function(a){var c=parseInt(a);if(isNaN(c))throw Error("Invalid integer literal when parsing "+a);return c};b.parseInt=function(a,c){if(10==c){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,c)}else if(16==c){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,c)}else{var b=parseInt(a,c);if(!isNaN(b))return b}throw Error("Invalid integer literal when parsing "+a+" in base "+c);};Object.defineProperty(b,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0});b.isNumeric=function(a){return!isNaN(a-
  parseFloat(a))};b.isNaN=function(a){return isNaN(a)};b.isInteger=function(a){return Number.isInteger(a)};return b})();var Ue=null,Oo=0,Ub=Nc.Reflect,U=Zc("Inject",[["token",void 0]]),W=Zc("Optional",[]),V=Zc("Injectable",[]),va=Zc("Self",[]),Vb=Zc("SkipSelf",[]),yb=Zc("Host",[]),La=function(){function b(a){this._desc=a}b.prototype.toString=function(){return"Token "+this._desc};b.decorators=[{type:V}];b.ctorParameters=[null];return b}(),gs=new La("AnalyzeForEntryComponents"),jl=Zc("Attribute",[["attributeName",
  void 0]]),kl=function(){return function(){}}(),Ud;(function(b){b[b.OnPush=0]="OnPush";b[b.Default=1]="Default"})(Ud||(Ud={}));var Oa;(function(b){b[b.CheckOnce=0]="CheckOnce";b[b.Checked=1]="Checked";b[b.CheckAlways=2]="CheckAlways";b[b.Detached=3]="Detached";b[b.Errored=4]="Errored";b[b.Destroyed=5]="Destroyed"})(Oa||(Oa={}));var da=Ve("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),Oc=Ve("Component",{selector:void 0,inputs:void 0,
  outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:Ud.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},da),Fb=Ve("Pipe",{name:void 0,pure:!0}),Y=We("Input",[["bindingPropertyName",void 0]]),ue=We("Output",[["bindingPropertyName",void 0]]),hs=We("HostBinding",[["hostPropertyName",void 0]]),is=We("HostListener",[["eventName",
  void 0],["args",[]]]),Qb;(function(b){b[b.OnInit=0]="OnInit";b[b.OnDestroy=1]="OnDestroy";b[b.DoCheck=2]="DoCheck";b[b.OnChanges=3]="OnChanges";b[b.AfterContentInit=4]="AfterContentInit";b[b.AfterContentChecked=5]="AfterContentChecked";b[b.AfterViewInit=6]="AfterViewInit";b[b.AfterViewChecked=7]="AfterViewChecked"})(Qb||(Qb={}));var js=[Qb.OnInit,Qb.OnDestroy,Qb.DoCheck,Qb.OnChanges,Qb.AfterContentInit,Qb.AfterContentChecked,Qb.AfterViewInit,Qb.AfterViewChecked],ks=function(){return function(){}}(),
  ls=function(){return function(){}}(),ms=function(){return function(){}}(),ns=function(){return function(){}}(),os=function(){return function(){}}(),ps=function(){return function(){}}(),qs=function(){return function(){}}(),rs=function(){return function(){}}(),Mc=Ve("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),Ua;(function(b){b[b.Emulated=0]="Emulated";b[b.Native=1]="Native";b[b.None=2]="None"})(Ua||
  (Ua={}));(function(){return function(b){b=void 0===b?{}:b;var a=b.template,c=b.encapsulation,d=b.styles,e=b.styleUrls,f=b.animations,g=b.interpolation;this.templateUrl=b.templateUrl;this.template=a;this.styleUrls=e;this.styles=d;this.encapsulation=c;this.animations=f;this.interpolation=g}})();var ll=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ac=function(b){function a(a){this._nativeError=
  b.call(this,a)}ll(a,b);Object.defineProperty(a.prototype,"message",{get:function(){return this._nativeError.message},set:function(a){this._nativeError.message=a},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(a){this._nativeError.stack=a},enumerable:!0,configurable:!0});a.prototype.toString=function(){return this._nativeError.toString()};
  return a}(Error),ml=function(b){function a(a,d){b.call(this,a+" caused by: "+(d instanceof Error?d.message:d));this.originalError=d}ll(a,b);Object.defineProperty(a.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0});return a}(ac),Pc={},ss=function(){function b(){}b.prototype.get=function(a,c){void 0===c&&(c=Pc);if(c===Pc)throw Error("No provider for "+E(a)+"!");return c};return b}(),bc=function(){function b(){}
  b.prototype.get=function(a,c){return ha()};b.THROW_IF_NOT_FOUND=Pc;b.NULL=new ss;return b}(),Sa=Nc.Map,Ef=Nc.Set,ts=function(){try{if(1===(new Sa([[1,2]])).size)return function(b){return new Sa(b)}}catch(b){}return function(b){for(var a=new Sa,c=0;c<b.length;c++){var d=b[c];a.set(d[0],d[1])}return a}}(),us=function(){try{return new Sa(new Sa),function(b){return new Sa(b)}}catch(b){}return function(b){var a=new Sa;b.forEach(function(c,b){a.set(b,c)});return a}}(),vs=function(){return(new Sa).keys().next?
  function(b){for(var a=b.keys(),c;!(c=a.next()).done;)b.set(c.value,null)}:function(b){b.forEach(function(a,c){b.set(c,null)})}}(),nl=function(){try{if((new Sa).values().next)return function(b,a){return a?Array.from(b.values()):Array.from(b.keys())}}catch(b){}return function(b,a){var c=ma.createFixedSize(b.size),d=0;b.forEach(function(b,f){c[d]=a?b:f;d++});return c}}(),Ff=function(){function b(){}b.clone=function(a){return us(a)};b.createFromStringMap=function(a){var c=new Sa,b;for(b in a)c.set(b,
  a[b]);return c};b.toStringMap=function(a){var c={};a.forEach(function(a,b){return c[b]=a});return c};b.createFromPairs=function(a){return ts(a)};b.clearValues=function(a){vs(a)};b.iterable=function(a){return a};b.keys=function(a){return nl(a,!1)};b.values=function(a){return nl(a,!0)};return b}(),db=function(){function b(){}b.create=function(){return{}};b.contains=function(a,c){return a.hasOwnProperty(c)};b.get=function(a,c){return a.hasOwnProperty(c)?a[c]:void 0};b.set=function(a,c,b){a[c]=b};b.keys=
  function(a){return Object.keys(a)};b.values=function(a){return Object.keys(a).map(function(c){return a[c]})};b.isEmpty=function(a){for(var c in a)return!1;return!0};b.delete=function(a,c){delete a[c]};b.forEach=function(a,c){for(var b=0,e=Object.keys(a);b<e.length;b++){var f=e[b];c(a[f],f)}};b.merge=function(a,c){for(var b={},e=0,f=Object.keys(a);e<f.length;e++){var g=f[e];b[g]=a[g]}a=0;for(e=Object.keys(c);a<e.length;a++)g=e[a],b[g]=c[g];return b};b.equals=function(a,c){var b=Object.keys(a),e=Object.keys(c);
  if(b.length!=e.length)return!1;for(e=0;e<b.length;e++){var f=b[e];if(a[f]!==c[f])return!1}return!0};return b}(),ma=function(){function b(){}b.createFixedSize=function(a){return Array(a)};b.createGrowableSize=function(a){return Array(a)};b.clone=function(a){return a.slice(0)};b.forEachWithIndex=function(a,c){for(var b=0;b<a.length;b++)c(a[b],b)};b.first=function(a){return a?a[0]:null};b.last=function(a){return a&&0!=a.length?a[a.length-1]:null};b.indexOf=function(a,c,b){void 0===b&&(b=0);return a.indexOf(c,
  b)};b.contains=function(a,c){return-1!==a.indexOf(c)};b.reversed=function(a){return b.clone(a).reverse()};b.concat=function(a,c){return a.concat(c)};b.insert=function(a,c,b){a.splice(c,0,b)};b.removeAt=function(a,c){var b=a[c];a.splice(c,1);return b};b.removeAll=function(a,c){for(var b=0;b<c.length;++b){var e=a.indexOf(c[b]);a.splice(e,1)}};b.remove=function(a,c){c=a.indexOf(c);return-1<c?(a.splice(c,1),!0):!1};b.clear=function(a){a.length=0};b.isEmpty=function(a){return 0==a.length};b.fill=function(a,
  c,b,e){void 0===b&&(b=0);void 0===e&&(e=null);a.fill(c,b,null===e?a.length:e)};b.equals=function(a,c){if(a.length!=c.length)return!1;for(var b=0;b<a.length;++b)if(a[b]!==c[b])return!1;return!0};b.slice=function(a,c,b){void 0===c&&(c=0);void 0===b&&(b=null);return a.slice(c,null===b?void 0:b)};b.splice=function(a,c,b){return a.splice(c,b)};b.sort=function(a,c){l(c)?a.sort(c):a.sort()};b.toString=function(a){return a.toString()};b.toJSON=function(a){return JSON.stringify(a)};b.maximum=function(a,c){if(0==
  a.length)return null;for(var b=null,e=-Infinity,f=0;f<a.length;f++){var g=a[f];if(!w(g)){var h=c(g);h>e&&(b=g,e=h)}}return b};b.flatten=function(a){var c=[];Zi(a,c);return c};b.addAll=function(a,c){for(var b=0;b<c.length;b++)a.push(c[b])};return b}(),ws=function(){return 3===(new Ef([1,2,3])).size?function(b){return new Ef(b)}:function(b){var a=new Ef(b);if(a.size!==b.length)for(var c=0;c<b.length;c++)a.add(b[c]);return a}}(),xs=function(){function b(){}b.createFromList=function(a){return ws(a)};
  b.has=function(a,c){return a.has(c)};b.delete=function(a,c){a.delete(c)};return b}(),Qc=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Bh=function(b){function a(a,d,e){b.call(this,"DI Error");this.keys=[d];this.injectors=[a];this.constructResolvingMessage=e;this.message=this.constructResolvingMessage(this.keys)}Qc(a,b);a.prototype.addKey=function(a,b){this.injectors.push(a);this.keys.push(b);
  this.message=this.constructResolvingMessage(this.keys)};return a}(ac),ys=function(b){function a(a,d){b.call(this,a,d,function(a){return"No provider for "+E(ma.first(a).token)+"!"+Bg(a)})}Qc(a,b);return a}(Bh),zs=function(b){function a(a,d){b.call(this,a,d,function(a){return"Cannot instantiate cyclic dependency!"+Bg(a)})}Qc(a,b);return a}(Bh),ol=function(b){function a(a,d,e,f){b.call(this,"DI Error",d);this.keys=[f];this.injectors=[a]}Qc(a,b);a.prototype.addKey=function(a,b){this.injectors.push(a);
  this.keys.push(b)};Object.defineProperty(a.prototype,"message",{get:function(){var a=E(ma.first(this.keys).token);return this.originalError.message+": Error during instantiation of "+a+"!"+Bg(this.keys)+"."},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0});return a}(ml),Yo=function(b){function a(a){b.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+a)}Qc(a,b);return a}(ac),
  ej=function(b){function a(c,d){b.call(this,a._genMessage(c,d))}Qc(a,b);a._genMessage=function(a,b){for(var c=[],d=0,g=b.length;d<g;d++){var h=b[d];w(h)||0==h.length?c.push("?"):c.push(h.map(E).join(" "))}return"Cannot resolve all parameters for '"+E(a)+"'("+c.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+E(a)+"' is decorated with Injectable."};return a}(ac),Gf=function(b){function a(a){b.call(this,"Index "+a+" is out-of-bounds.")}
  Qc(a,b);return a}(ac),Xo=function(b){function a(a,d){b.call(this,"Cannot mix multi providers and regular providers, got: "+a.toString()+" "+d.toString())}Qc(a,b);return a}(ac),xc=function(){function b(a,c){this.token=a;this.id=c;if(w(a))throw Error("Token must be defined!");}Object.defineProperty(b.prototype,"displayName",{get:function(){return E(this.token)},enumerable:!0,configurable:!0});b.get=function(a){return pl.get(pb(a))};Object.defineProperty(b,"numberOfKeys",{get:function(){return pl.numberOfKeys},
  enumerable:!0,configurable:!0});return b}(),pl=new (function(){function b(){this._allKeys=new Map}b.prototype.get=function(a){if(a instanceof xc)return a;if(this._allKeys.has(a))return this._allKeys.get(a);var c=new xc(a,xc.numberOfKeys);this._allKeys.set(a,c);return c};Object.defineProperty(b.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0});return b}()),Ye=Function,ql=function(){function b(a){this._reflect=a||Nc.Reflect}b.prototype.isReflectionEnabled=
  function(){return!0};b.prototype.factory=function(a){var c=a.prototype;return function(){for(var b=[],e=0;e<arguments.length;e++)b[e-0]=arguments[e];e=Object.create(c);a.apply(e,b);return e}};b.prototype._zipTypesAndAnnotations=function(a,c){var b;b="undefined"===typeof a?Array(c.length):Array(a.length);for(var e=0;e<b.length;e++)b[e]="undefined"===typeof a?[]:a[e]!=Object?[a[e]]:[],l(c)&&l(c[e])&&(b[e]=b[e].concat(c[e]));return b};b.prototype.parameters=function(a){if(l(a.parameters))return a.parameters;
  if(l(a.ctorParameters)){var c=a.ctorParameters;a=c.map(function(a){return a&&a.type});c=c.map(function(a){return a&&Cg(a.decorators)});return this._zipTypesAndAnnotations(a,c)}if(l(this._reflect)&&l(this._reflect.getMetadata)){var c=this._reflect.getMetadata("parameters",a),b=this._reflect.getMetadata("design:paramtypes",a);if(l(b)||l(c))return this._zipTypesAndAnnotations(b,c)}a=Array(a.length);a.fill(void 0);return a};b.prototype.annotations=function(a){return l(a.annotations)?(a=a.annotations,
  y(a)&&a.annotations&&(a=a.annotations),a):l(a.decorators)?Cg(a.decorators):l(this._reflect)&&l(this._reflect.getMetadata)&&(a=this._reflect.getMetadata("annotations",a),l(a))?a:[]};b.prototype.propMetadata=function(a){if(l(a.propMetadata))return a=a.propMetadata,y(a)&&a.propMetadata&&(a=a.propMetadata),a;if(l(a.propDecorators)){var c=a.propDecorators,b={};Object.keys(c).forEach(function(a){b[a]=Cg(c[a])});return b}return l(this._reflect)&&l(this._reflect.getMetadata)&&(a=this._reflect.getMetadata("propMetadata",
  a),l(a))?a:{}};b.prototype.interfaces=function(a){return[]};b.prototype.hasLifecycleHook=function(a,c,b){return a instanceof Ye?!!a.prototype[b]:!1};b.prototype.getter=function(a){return new Function("o","return o."+a+";")};b.prototype.setter=function(a){return new Function("o","v","return o."+a+" \x3d v;")};b.prototype.method=function(a){return new Function("o","args","if (!o."+a+") throw new Error('\""+a+"\" is undefined');\n        return o."+a+".apply(o, args);")};b.prototype.importUri=function(a){return"object"===
  typeof a&&a.filePath?a.filePath:"./"+E(a)};b.prototype.resolveIdentifier=function(a,c,b){return b};b.prototype.resolveEnum=function(a,c){return a[c]};return b}(),fd=function(){return function(){}}(),As=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ve=function(b){function a(a){b.call(this);this._injectableInfo=new Sa;this._getters=new Sa;this._setters=new Sa;this._methods=new Sa;this._usedKeys=
  null;this.reflectionCapabilities=a}As(a,b);a.prototype.updateCapabilities=function(a){this.reflectionCapabilities=a};a.prototype.isReflectionEnabled=function(){return this.reflectionCapabilities.isReflectionEnabled()};a.prototype.trackUsage=function(){this._usedKeys=new Ef};a.prototype.listUnusedKeys=function(){var a=this;if(null==this._usedKeys)throw Error("Usage tracking is disabled");return Ff.keys(this._injectableInfo).filter(function(c){return!xs.has(a._usedKeys,c)})};a.prototype.registerFunction=
  function(a,b){this._injectableInfo.set(a,b)};a.prototype.registerType=function(a,b){this._injectableInfo.set(a,b)};a.prototype.registerGetters=function(a){Dg(this._getters,a)};a.prototype.registerSetters=function(a){Dg(this._setters,a)};a.prototype.registerMethods=function(a){Dg(this._methods,a)};a.prototype.factory=function(a){return this._containsReflectionInfo(a)?(a=this._getReflectionInfo(a).factory,l(a)?a:null):this.reflectionCapabilities.factory(a)};a.prototype.parameters=function(a){return this._injectableInfo.has(a)?
  (a=this._getReflectionInfo(a).parameters,l(a)?a:[]):this.reflectionCapabilities.parameters(a)};a.prototype.annotations=function(a){return this._injectableInfo.has(a)?(a=this._getReflectionInfo(a).annotations,l(a)?a:[]):this.reflectionCapabilities.annotations(a)};a.prototype.propMetadata=function(a){return this._injectableInfo.has(a)?(a=this._getReflectionInfo(a).propMetadata,l(a)?a:{}):this.reflectionCapabilities.propMetadata(a)};a.prototype.interfaces=function(a){return this._injectableInfo.has(a)?
  (a=this._getReflectionInfo(a).interfaces,l(a)?a:[]):this.reflectionCapabilities.interfaces(a)};a.prototype.hasLifecycleHook=function(a,b,e){return-1!==this.interfaces(a).indexOf(b)?!0:this.reflectionCapabilities.hasLifecycleHook(a,b,e)};a.prototype.getter=function(a){return this._getters.has(a)?this._getters.get(a):this.reflectionCapabilities.getter(a)};a.prototype.setter=function(a){return this._setters.has(a)?this._setters.get(a):this.reflectionCapabilities.setter(a)};a.prototype.method=function(a){return this._methods.has(a)?
  this._methods.get(a):this.reflectionCapabilities.method(a)};a.prototype._getReflectionInfo=function(a){l(this._usedKeys)&&this._usedKeys.add(a);return this._injectableInfo.get(a)};a.prototype._containsReflectionInfo=function(a){return this._injectableInfo.has(a)};a.prototype.importUri=function(a){return this.reflectionCapabilities.importUri(a)};a.prototype.resolveIdentifier=function(a,b,e){return this.reflectionCapabilities.resolveIdentifier(a,b,e)};a.prototype.resolveEnum=function(a,b){return this.reflectionCapabilities.resolveEnum(a,
  b)};return a}(fd),Xe=new ve(new ql),aj=function(){function b(a,c,b,e,f){this.key=a;this.optional=c;this.lowerBoundVisibility=b;this.upperBoundVisibility=e;this.properties=f}b.fromKey=function(a){return new b(a,!1,null,null,[])};return b}(),To=[],bj=function(){function b(a,c,b){this.key=a;this.resolvedFactories=c;this.multiProvider=b}Object.defineProperty(b.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0});return b}(),Uo=function(){return function(b,
  a){this.factory=b;this.dependencies=a}}(),Va={},Cs=function(){function b(a,c){this.keyId9=this.keyId8=this.keyId7=this.keyId6=this.keyId5=this.keyId4=this.keyId3=this.keyId2=this.keyId1=this.keyId0=this.provider9=this.provider8=this.provider7=this.provider6=this.provider5=this.provider4=this.provider3=this.provider2=this.provider1=this.provider0=null;a=c.length;0<a&&(this.provider0=c[0],this.keyId0=c[0].key.id);1<a&&(this.provider1=c[1],this.keyId1=c[1].key.id);2<a&&(this.provider2=c[2],this.keyId2=
  c[2].key.id);3<a&&(this.provider3=c[3],this.keyId3=c[3].key.id);4<a&&(this.provider4=c[4],this.keyId4=c[4].key.id);5<a&&(this.provider5=c[5],this.keyId5=c[5].key.id);6<a&&(this.provider6=c[6],this.keyId6=c[6].key.id);7<a&&(this.provider7=c[7],this.keyId7=c[7].key.id);8<a&&(this.provider8=c[8],this.keyId8=c[8].key.id);9<a&&(this.provider9=c[9],this.keyId9=c[9].key.id)}b.prototype.getProviderAtIndex=function(a){if(0==a)return this.provider0;if(1==a)return this.provider1;if(2==a)return this.provider2;
  if(3==a)return this.provider3;if(4==a)return this.provider4;if(5==a)return this.provider5;if(6==a)return this.provider6;if(7==a)return this.provider7;if(8==a)return this.provider8;if(9==a)return this.provider9;throw new Gf(a);};b.prototype.createInjectorStrategy=function(a){return new Bs(a,this)};return b}(),Es=function(){function b(a,c){this.providers=c;a=c.length;this.keyIds=ma.createFixedSize(a);for(var b=0;b<a;b++)this.keyIds[b]=c[b].key.id}b.prototype.getProviderAtIndex=function(a){if(0>a||a>=
  this.providers.length)throw new Gf(a);return this.providers[a]};b.prototype.createInjectorStrategy=function(a){return new Ds(this,a)};return b}(),rl=function(){function b(a){this.numberOfProviders=a.length;this._strategy=10<a.length?new Es(this,a):new Cs(this,a)}b.fromResolvedProviders=function(a){return new b(a)};b.prototype.getProviderAtIndex=function(a){return this._strategy.getProviderAtIndex(a)};return b}(),Bs=function(){function b(a,c){this.injector=a;this.protoStrategy=c;this.obj9=this.obj8=
  this.obj7=this.obj6=this.obj5=this.obj4=this.obj3=this.obj2=this.obj1=this.obj0=Va}b.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0};b.prototype.instantiateProvider=function(a){return this.injector._new(a)};b.prototype.getObjByKeyId=function(a){var c=this.protoStrategy,b=this.injector;return c.keyId0===a?(this.obj0===Va&&(this.obj0=b._new(c.provider0)),this.obj0):c.keyId1===a?(this.obj1===Va&&(this.obj1=b._new(c.provider1)),this.obj1):c.keyId2===a?(this.obj2===
  Va&&(this.obj2=b._new(c.provider2)),this.obj2):c.keyId3===a?(this.obj3===Va&&(this.obj3=b._new(c.provider3)),this.obj3):c.keyId4===a?(this.obj4===Va&&(this.obj4=b._new(c.provider4)),this.obj4):c.keyId5===a?(this.obj5===Va&&(this.obj5=b._new(c.provider5)),this.obj5):c.keyId6===a?(this.obj6===Va&&(this.obj6=b._new(c.provider6)),this.obj6):c.keyId7===a?(this.obj7===Va&&(this.obj7=b._new(c.provider7)),this.obj7):c.keyId8===a?(this.obj8===Va&&(this.obj8=b._new(c.provider8)),this.obj8):c.keyId9===a?(this.obj9===
  Va&&(this.obj9=b._new(c.provider9)),this.obj9):Va};b.prototype.getObjAtIndex=function(a){if(0==a)return this.obj0;if(1==a)return this.obj1;if(2==a)return this.obj2;if(3==a)return this.obj3;if(4==a)return this.obj4;if(5==a)return this.obj5;if(6==a)return this.obj6;if(7==a)return this.obj7;if(8==a)return this.obj8;if(9==a)return this.obj9;throw new Gf(a);};b.prototype.getMaxNumberOfObjects=function(){return 10};return b}(),Ds=function(){function b(a,c){this.protoStrategy=a;this.injector=c;this.objs=
  ma.createFixedSize(a.providers.length);ma.fill(this.objs,Va)}b.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0};b.prototype.instantiateProvider=function(a){return this.injector._new(a)};b.prototype.getObjByKeyId=function(a){for(var c=this.protoStrategy,b=0;b<c.keyIds.length;b++)if(c.keyIds[b]===a)return this.objs[b]===Va&&(this.objs[b]=this.injector._new(c.providers[b])),this.objs[b];return Va};b.prototype.getObjAtIndex=function(a){if(0>a||a>=this.objs.length)throw new Gf(a);
  return this.objs[a]};b.prototype.getMaxNumberOfObjects=function(){return this.objs.length};return b}(),xd=function(){function b(){}b.resolve=function(a){a=cj(a,[]).map(Vo);return Ff.values(Wo(a,new Map))};b.resolveAndCreate=function(a,c){void 0===c&&(c=null);a=b.resolve(a);return b.fromResolvedProviders(a,c)};b.fromResolvedProviders=function(a,c){void 0===c&&(c=null);return new Fs(rl.fromResolvedProviders(a),c)};Object.defineProperty(b.prototype,"parent",{get:function(){return ha()},enumerable:!0,
  configurable:!0});b.prototype.resolveAndCreateChild=function(a){return ha()};b.prototype.createChildFromResolved=function(a){return ha()};b.prototype.resolveAndInstantiate=function(a){return ha()};b.prototype.instantiateResolved=function(a){return ha()};return b}(),Fs=function(){function b(a,c){void 0===c&&(c=null);this._constructionCounter=0;this._proto=a;this._parent=c;this._strategy=a._strategy.createInjectorStrategy(this)}b.prototype.get=function(a,c){void 0===c&&(c=Pc);return this._getByKey(xc.get(a),
  null,null,c)};b.prototype.getAt=function(a){return this._strategy.getObjAtIndex(a)};Object.defineProperty(b.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0});b.prototype.resolveAndCreateChild=function(a){a=xd.resolve(a);return this.createChildFromResolved(a)};b.prototype.createChildFromResolved=function(a){a=new rl(a);a=new b(a);a._parent=
  this;return a};b.prototype.resolveAndInstantiate=function(a){return this.instantiateResolved(xd.resolve([a])[0])};b.prototype.instantiateResolved=function(a){return this._instantiateProvider(a)};b.prototype._new=function(a){if(this._constructionCounter++>this._strategy.getMaxNumberOfObjects())throw new zs(this,a.key);return this._instantiateProvider(a)};b.prototype._instantiateProvider=function(a){if(a.multiProvider){for(var c=ma.createFixedSize(a.resolvedFactories.length),b=0;b<a.resolvedFactories.length;++b)c[b]=
  this._instantiate(a,a.resolvedFactories[b]);return c}return this._instantiate(a,a.resolvedFactories[0])};b.prototype._instantiate=function(a,c){var b=c.factory;c=c.dependencies;var e=c.length,f,g,h,m,r,u,v,k,l,n,p,q,t,w,x,y,z,B,C,D;try{f=0<e?this._getByReflectiveDependency(a,c[0]):null,g=1<e?this._getByReflectiveDependency(a,c[1]):null,h=2<e?this._getByReflectiveDependency(a,c[2]):null,m=3<e?this._getByReflectiveDependency(a,c[3]):null,r=4<e?this._getByReflectiveDependency(a,c[4]):null,u=5<e?this._getByReflectiveDependency(a,
  c[5]):null,v=6<e?this._getByReflectiveDependency(a,c[6]):null,k=7<e?this._getByReflectiveDependency(a,c[7]):null,l=8<e?this._getByReflectiveDependency(a,c[8]):null,n=9<e?this._getByReflectiveDependency(a,c[9]):null,p=10<e?this._getByReflectiveDependency(a,c[10]):null,q=11<e?this._getByReflectiveDependency(a,c[11]):null,t=12<e?this._getByReflectiveDependency(a,c[12]):null,w=13<e?this._getByReflectiveDependency(a,c[13]):null,x=14<e?this._getByReflectiveDependency(a,c[14]):null,y=15<e?this._getByReflectiveDependency(a,
  c[15]):null,z=16<e?this._getByReflectiveDependency(a,c[16]):null,B=17<e?this._getByReflectiveDependency(a,c[17]):null,C=18<e?this._getByReflectiveDependency(a,c[18]):null,D=19<e?this._getByReflectiveDependency(a,c[19]):null}catch(gd){throw(gd instanceof Bh||gd instanceof ol)&&gd.addKey(this,a.key),gd;}var A;try{switch(e){case 0:A=b();break;case 1:A=b(f);break;case 2:A=b(f,g);break;case 3:A=b(f,g,h);break;case 4:A=b(f,g,h,m);break;case 5:A=b(f,g,h,m,r);break;case 6:A=b(f,g,h,m,r,u);break;case 7:A=
  b(f,g,h,m,r,u,v);break;case 8:A=b(f,g,h,m,r,u,v,k);break;case 9:A=b(f,g,h,m,r,u,v,k,l);break;case 10:A=b(f,g,h,m,r,u,v,k,l,n);break;case 11:A=b(f,g,h,m,r,u,v,k,l,n,p);break;case 12:A=b(f,g,h,m,r,u,v,k,l,n,p,q);break;case 13:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t);break;case 14:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t,w);break;case 15:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t,w,x);break;case 16:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t,w,x,y);break;case 17:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t,w,x,y,z);break;case 18:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t,w,
  x,y,z,B);break;case 19:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t,w,x,y,z,B,C);break;case 20:A=b(f,g,h,m,r,u,v,k,l,n,p,q,t,w,x,y,z,B,C,D);break;default:throw Error("Cannot instantiate '"+a.key.displayName+"' because it has more than 20 dependencies");}}catch(gd){throw new ol(this,gd,gd.stack,a.key);}return A};b.prototype._getByReflectiveDependency=function(a,c){return this._getByKey(c.key,c.lowerBoundVisibility,c.upperBoundVisibility,c.optional?null:Pc)};b.prototype._getByKey=function(a,c,b,e){return a===Hs?this:
  b instanceof va?this._getByKeySelf(a,e):this._getByKeyDefault(a,e,c)};b.prototype._throwOrNull=function(a,c){if(c!==Pc)return c;throw new ys(this,a);};b.prototype._getByKeySelf=function(a,c){var b=this._strategy.getObjByKeyId(a.id);return b!==Va?b:this._throwOrNull(a,c)};b.prototype._getByKeyDefault=function(a,c,d){for(d=d instanceof Vb?this._parent:this;d instanceof b;){var e=d._strategy.getObjByKeyId(a.id);if(e!==Va)return e;d=d._parent}return null!==d?d.get(a.token,c):this._throwOrNull(a,c)};Object.defineProperty(b.prototype,
  "displayName",{get:function(){return"ReflectiveInjector(providers: ["+Zo(this,function(a){return' "'+a.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0});b.prototype.toString=function(){return this.displayName};return b}(),Hs=xc.get(bc),ef=function(){function b(a){void 0===a&&(a=!0);this._console=console;this.rethrowError=a}b.prototype.handleError=function(a){var c=this._findOriginalError(a),b=this._findOriginalStack(a),e=this._findContext(a);this._console.error("EXCEPTION: "+
  this._extractMessage(a));c&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(c));b&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(b));e&&(this._console.error("ERROR CONTEXT:"),this._console.error(e));if(this.rethrowError)throw a;};b.prototype._extractMessage=function(a){return a instanceof Error?a.message:a.toString()};b.prototype._findContext=function(a){return a?a.context?a.context:this._findContext(a.originalError):null};b.prototype._findOriginalError=function(a){for(a=
  a.originalError;a&&a.originalError;)a=a.originalError;return a};b.prototype._findOriginalStack=function(a){if(!(a instanceof Error))return null;for(var c=a.stack;a instanceof Error&&a.originalError;)a=a.originalError,a instanceof Error&&a.stack&&(c=a.stack);return c};return b}(),Is=new La("Application Initializer"),Dh=function(){function b(a){var c=this;this._done=!1;var b=[];if(a)for(var e=0;e<a.length;e++){var f=a[e]();R(f)&&b.push(f)}this._donePromise=Promise.all(b).then(function(){c._done=!0});
  0===b.length&&(this._done=!0)}Object.defineProperty(b.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0});b.decorators=[{type:V}];b.ctorParameters=[{type:Array,decorators:[{type:U,args:[Is]},{type:W}]}];return b}(),sl=new La("AppId"),Js={provide:sl,useFactory:function(){return""+Fg()+Fg()+Fg()},deps:[]},Kg=new La("Platform Initializer"),Ks=new La("appBootstrapListener"),
  tl=new La("Application Packages Root URL"),Hf=function(){function b(){}b.prototype.log=function(a){console.log(a)};b.prototype.warn=function(a){console.warn(a)};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),Ls=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Ms=function(b){function a(a){b.call(this,"Can't compile synchronously as "+E(a)+" is still being loaded!");this.compType=
  a}Ls(a,b);return a}(ac),Ns=function(){return function(b,a){this.ngModuleFactory=b;this.componentFactories=a}}(),we=function(){function b(){}b.prototype.compileModuleSync=function(a){throw Ze();};b.prototype.compileModuleAsync=function(a){throw Ze();};b.prototype.compileModuleAndAllComponentsSync=function(a){throw Ze();};b.prototype.compileModuleAndAllComponentsAsync=function(a){throw Ze();};b.prototype.clearCache=function(){};b.prototype.clearCacheFor=function(a){};return b}(),Eh=new La("compilerOptions"),
  ul=function(){return function(){}}(),Ps=function(){function b(){}b.prototype.supports=function(a){return wd(a)};b.prototype.create=function(a,c){return new Os(c)};return b}(),Qs=function(b,a){return a},Os=function(){function b(a){this._trackByFn=a;this._identityChangesTail=this._identityChangesHead=this._removalsTail=this._removalsHead=this._movesTail=this._movesHead=this._additionsTail=this._additionsHead=this._itTail=this._itHead=this._previousItHead=this._unlinkedRecords=this._linkedRecords=this._collection=
  this._length=null;this._trackByFn=l(this._trackByFn)?this._trackByFn:Qs}Object.defineProperty(b.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0});b.prototype.forEachItem=function(a){var c;for(c=this._itHead;null!==c;c=c._next)a(c)};b.prototype.forEachOperation=function(a){for(var c=this._itHead,b=this._removalsHead,e=0,f=null;c||b;){var g=!b||
  c&&c.currentIndex<gj(b,e,f)?c:b,h=gj(g,e,f),m=g.currentIndex;if(g===b)e--,b=b._nextRemoved;else if(c=c._next,null==g.previousIndex)e++;else{f||(f=[]);var r=h-e,u=m-e;if(r!=u){for(var v=0;v<r;v++){var k=v<f.length?f[v]:f[v]=0,l=k+v;u<=l&&l<r&&(f[v]=k+1)}f[g.previousIndex]=u-r}}h!==m&&a(g,h,m)}};b.prototype.forEachPreviousItem=function(a){var c;for(c=this._previousItHead;null!==c;c=c._nextPrevious)a(c)};b.prototype.forEachAddedItem=function(a){var c;for(c=this._additionsHead;null!==c;c=c._nextAdded)a(c)};
  b.prototype.forEachMovedItem=function(a){var c;for(c=this._movesHead;null!==c;c=c._nextMoved)a(c)};b.prototype.forEachRemovedItem=function(a){var c;for(c=this._removalsHead;null!==c;c=c._nextRemoved)a(c)};b.prototype.forEachIdentityChange=function(a){var c;for(c=this._identityChangesHead;null!==c;c=c._nextIdentityChange)a(c)};b.prototype.diff=function(a){w(a)&&(a=[]);if(!wd(a))throw Error("Error trying to diff '"+a+"'");return this.check(a)?this:null};b.prototype.onDestroy=function(){};b.prototype.check=
  function(a){var c=this;this._reset();var b=this._itHead,e=!1,f,g,h;if(Array.isArray(a))for(this._length=a.length,f=0;f<this._length;f++)g=a[f],h=this._trackByFn(f,g),null!==b&&B(b.trackById,h)?(e&&(b=this._verifyReinsertion(b,g,h,f)),B(b.item,g)||this._addIdentityChange(b,g)):(b=this._mismatch(b,g,h,f),e=!0),b=b._next;else f=0,Po(a,function(a){h=c._trackByFn(f,a);null!==b&&B(b.trackById,h)?(e&&(b=c._verifyReinsertion(b,a,h,f)),B(b.item,a)||c._addIdentityChange(b,a)):(b=c._mismatch(b,a,h,f),e=!0);
  b=b._next;f++}),this._length=f;this._truncate(b);this._collection=a;return this.isDirty};Object.defineProperty(b.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0});b.prototype._reset=function(){if(this.isDirty){var a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=
  a.currentIndex;this._additionsHead=this._additionsTail=null;for(a=this._movesHead;null!==a;)a.previousIndex=a.currentIndex,a=a._nextMoved;this._identityChangesHead=this._identityChangesTail=this._removalsHead=this._removalsTail=this._movesHead=this._movesTail=null}};b.prototype._mismatch=function(a,c,b,e){var d;null===a?d=this._itTail:(d=a._prev,this._remove(a));a=null===this._linkedRecords?null:this._linkedRecords.get(b,e);null!==a?(B(a.item,c)||this._addIdentityChange(a,c),this._moveAfter(a,d,e)):
  (a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b),null!==a?(B(a.item,c)||this._addIdentityChange(a,c),this._reinsertAfter(a,d,e)):a=this._addAfter(new Rs(c,b),d,e));return a};b.prototype._verifyReinsertion=function(a,c,b,e){c=null===this._unlinkedRecords?null:this._unlinkedRecords.get(b);null!==c?a=this._reinsertAfter(c,a._prev,e):a.currentIndex!=e&&(a.currentIndex=e,this._addToMoves(a,e));return a};b.prototype._truncate=function(a){for(;null!==a;){var c=a._next;this._addToRemovals(this._unlink(a));
  a=c}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);null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)};b.prototype._reinsertAfter=function(a,c,b){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,
  f=a._nextRemoved;null===d?this._removalsHead=f:d._nextRemoved=f;null===f?this._removalsTail=d:f._prevRemoved=d;this._insertAfter(a,c,b);this._addToMoves(a,b);return a};b.prototype._moveAfter=function(a,c,b){this._unlink(a);this._insertAfter(a,c,b);this._addToMoves(a,b);return a};b.prototype._addAfter=function(a,c,b){this._insertAfter(a,c,b);this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a;return a};b.prototype._insertAfter=function(a,c,b){var d=
  null===c?this._itHead:c._next;a._next=d;a._prev=c;null===d?this._itTail=a:d._prev=a;null===c?this._itHead=a:c._next=a;null===this._linkedRecords&&(this._linkedRecords=new vl);this._linkedRecords.put(a);a.currentIndex=b;return a};b.prototype._remove=function(a){return this._addToRemovals(this._unlink(a))};b.prototype._unlink=function(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);var c=a._prev,b=a._next;null===c?this._itHead=b:c._next=b;null===b?this._itTail=c:b._prev=c;return a};b.prototype._addToMoves=
  function(a,c){if(a.previousIndex===c)return a;this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a;return a};b.prototype._addToRemovals=function(a){null===this._unlinkedRecords&&(this._unlinkedRecords=new vl);this._unlinkedRecords.put(a);a.currentIndex=null;a._nextRemoved=null;null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a);return a};b.prototype._addIdentityChange=
  function(a,c){a.item=c;this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a;return a};b.prototype.toString=function(){var a=[];this.forEachItem(function(c){return a.push(c)});var c=[];this.forEachPreviousItem(function(a){return c.push(a)});var b=[];this.forEachAddedItem(function(a){return b.push(a)});var e=[];this.forEachMovedItem(function(a){return e.push(a)});var f=[];this.forEachRemovedItem(function(a){return f.push(a)});
  var g=[];this.forEachIdentityChange(function(a){return g.push(a)});return"collection: "+a.join(", ")+"\nprevious: "+c.join(", ")+"\nadditions: "+b.join(", ")+"\nmoves: "+e.join(", ")+"\nremovals: "+f.join(", ")+"\nidentityChanges: "+g.join(", ")+"\n"};return b}(),Rs=function(){function b(a,c){this.item=a;this.trackById=c;this._nextIdentityChange=this._nextMoved=this._nextAdded=this._nextRemoved=this._prevRemoved=this._nextDup=this._prevDup=this._next=this._prev=this._nextPrevious=this.previousIndex=
  this.currentIndex=null}b.prototype.toString=function(){return this.previousIndex===this.currentIndex?E(this.item):E(this.item)+"["+E(this.previousIndex)+"-\x3e"+E(this.currentIndex)+"]"};return b}(),Ss=function(){function b(){this._tail=this._head=null}b.prototype.add=function(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)};b.prototype.get=function(a,c){var b;for(b=this._head;null!==b;b=b._nextDup)if((null===
  c||c<b.currentIndex)&&B(b.trackById,a))return b;return null};b.prototype.remove=function(a){var c=a._prevDup;a=a._nextDup;null===c?this._head=a:c._nextDup=a;null===a?this._tail=c:a._prevDup=c;return null===this._head};return b}(),vl=function(){function b(){this.map=new Map}b.prototype.put=function(a){var c=a.trackById,b=this.map.get(c);l(b)||(b=new Ss,this.map.set(c,b));b.add(a)};b.prototype.get=function(a,c){void 0===c&&(c=null);var b=this.map.get(a);return w(b)?null:b.get(a,c)};b.prototype.remove=
  function(a){var c=a.trackById;this.map.get(c).remove(a)&&this.map.delete(c);return a};Object.defineProperty(b.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0});b.prototype.clear=function(){this.map.clear()};b.prototype.toString=function(){return"_DuplicateMap("+E(this.map)+")"};return b}(),Us=function(){function b(){}b.prototype.supports=function(a){return a instanceof Map||ie(a)};b.prototype.create=function(a){return new Ts};return b}(),Ts=function(){function b(){this._records=
  new Map;this._removalsTail=this._removalsHead=this._additionsTail=this._additionsHead=this._changesTail=this._changesHead=this._previousMapHead=this._mapHead=null}Object.defineProperty(b.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0});b.prototype.forEachItem=function(a){var c;for(c=this._mapHead;null!==c;c=c._next)a(c)};b.prototype.forEachPreviousItem=function(a){var c;for(c=this._previousMapHead;null!==
  c;c=c._nextPrevious)a(c)};b.prototype.forEachChangedItem=function(a){var c;for(c=this._changesHead;null!==c;c=c._nextChanged)a(c)};b.prototype.forEachAddedItem=function(a){var c;for(c=this._additionsHead;null!==c;c=c._nextAdded)a(c)};b.prototype.forEachRemovedItem=function(a){var c;for(c=this._removalsHead;null!==c;c=c._nextRemoved)a(c)};b.prototype.diff=function(a){if(!a)a=new Map;else if(!(a instanceof Map||ie(a)))throw Error("Error trying to diff '"+a+"'");return this.check(a)?this:null};b.prototype.onDestroy=
  function(){};b.prototype.check=function(a){var c=this;this._reset();var b=this._records,e=this._mapHead,f=null,g=null,h=!1;this._forEach(a,function(a,d){var m;e&&d===e.key?(m=e,c._maybeAddToChanges(m,a)):(h=!0,null!==e&&(c._removeFromSeq(f,e),c._addToRemovals(e)),b.has(d)?(m=b.get(d),c._maybeAddToChanges(m,a)):(m=new Vs(d),b.set(d,m),m.currentValue=a,c._addToAdditions(m)));h&&(c._isInRemovals(m)&&c._removeFromRemovals(m),null==g?c._mapHead=m:g._next=m);f=e;g=m;e=e&&e._next});this._truncate(f,e);return this.isDirty};
  b.prototype._reset=function(){if(this.isDirty){var a;for(a=this._previousMapHead=this._mapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._removalsHead=this._removalsTail=this._additionsHead=this._additionsTail=this._changesHead=this._changesTail=null}};b.prototype._truncate=function(a,c){for(;null!==c;){null===a?this._mapHead=null:a._next=
  null;var b=c._next;this._addToRemovals(c);a=c;c=b}for(a=this._removalsHead;null!==a;a=a._nextRemoved)a.previousValue=a.currentValue,a.currentValue=null,this._records.delete(a.key)};b.prototype._maybeAddToChanges=function(a,c){B(c,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=c,this._addToChanges(a))};b.prototype._isInRemovals=function(a){return a===this._removalsHead||null!==a._nextRemoved||null!==a._prevRemoved};b.prototype._addToRemovals=function(a){null===this._removalsHead?this._removalsHead=
  this._removalsTail=a:(this._removalsTail._nextRemoved=a,a._prevRemoved=this._removalsTail,this._removalsTail=a)};b.prototype._removeFromSeq=function(a,c){var b=c._next;null===a?this._mapHead=b:a._next=b;c._next=null};b.prototype._removeFromRemovals=function(a){var c=a._prevRemoved,b=a._nextRemoved;null===c?this._removalsHead=b:c._nextRemoved=b;null===b?this._removalsTail=c:b._prevRemoved=c;a._prevRemoved=a._nextRemoved=null};b.prototype._addToAdditions=function(a){null===this._additionsHead?this._additionsHead=
  this._additionsTail=a:this._additionsTail=this._additionsTail._nextAdded=a};b.prototype._addToChanges=function(a){null===this._changesHead?this._changesHead=this._changesTail=a:this._changesTail=this._changesTail._nextChanged=a};b.prototype.toString=function(){var a=[],c=[],b=[],e=[],f=[],g;for(g=this._mapHead;null!==g;g=g._next)a.push(E(g));for(g=this._previousMapHead;null!==g;g=g._nextPrevious)c.push(E(g));for(g=this._changesHead;null!==g;g=g._nextChanged)b.push(E(g));for(g=this._additionsHead;null!==
  g;g=g._nextAdded)e.push(E(g));for(g=this._removalsHead;null!==g;g=g._nextRemoved)f.push(E(g));return"map: "+a.join(", ")+"\nprevious: "+c.join(", ")+"\nadditions: "+e.join(", ")+"\nchanges: "+b.join(", ")+"\nremovals: "+f.join(", ")+"\n"};b.prototype._forEach=function(a,c){a instanceof Map?a.forEach(c):db.forEach(a,c)};return b}(),Vs=function(){function b(a){this.key=a;this._nextChanged=this._prevRemoved=this._nextRemoved=this._nextAdded=this._next=this._nextPrevious=this.currentValue=this.previousValue=
  null}b.prototype.toString=function(){return B(this.previousValue,this.currentValue)?E(this.key):E(this.key)+"["+E(this.previousValue)+"-\x3e"+E(this.currentValue)+"]"};return b}(),If=function(){function b(a){this.factories=a}b.create=function(a,c){l(c)&&(c=ma.clone(c.factories),a=a.concat(c));return new b(a)};b.extend=function(a){return{provide:b,useFactory:function(c){if(w(c))throw Error("Cannot extend IterableDiffers without a parent injector");return b.create(a,c)},deps:[[b,new Vb,new W]]}};b.prototype.find=
  function(a){var c=this.factories.find(function(c){return c.supports(a)});if(l(c))return c;var c=Error,b;b=a.name?a.name:typeof a;throw new c("Cannot find a differ supporting object '"+a+"' of type '"+b+"'");};return b}(),Jf=function(){function b(a){this.factories=a}b.create=function(a,c){l(c)&&(c=ma.clone(c.factories),a=a.concat(c));return new b(a)};b.extend=function(a){return{provide:b,useFactory:function(c){if(w(c))throw Error("Cannot extend KeyValueDiffers without a parent injector");return b.create(a,
  c)},deps:[[b,new Vb,new W]]}};b.prototype.find=function(a){var c=this.factories.find(function(c){return c.supports(a)});if(l(c))return c;throw Error("Cannot find a differ supporting object '"+a+"'");};return b}(),$a={toString:function(){return"CD_INIT_VALUE"}},wl=function(){function b(a){this.wrapped=a}b.wrap=function(a){return new b(a)};return b}(),Ws=function(){function b(){this.hasWrappedValue=!1}b.prototype.unwrap=function(a){return a instanceof wl?(this.hasWrappedValue=!0,a.wrapped):a};b.prototype.reset=
  function(){this.hasWrappedValue=!1};return b}(),Xs=function(){function b(a,c){this.previousValue=a;this.currentValue=c}b.prototype.isFirstChange=function(){return this.previousValue===$a};return b}(),Fh=function(){return function(){}}(),Ys=[new Us],Zs=[new Ps],gp=new If(Zs),ip=new Jf(Ys),xl=function(){return function(b,a,c,d,e,f){this.id=b;this.templateUrl=a;this.slotCount=c;this.encapsulation=d;this.styles=e;this.animations=f}}();(function(){function b(){}Object.defineProperty(b.prototype,"injector",
  {get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"component",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"providerTokens",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"references",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"context",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,
  "source",{get:function(){return ha()},enumerable:!0,configurable:!0});return b})();var Rb=function(){return function(){}}(),Gh=function(){return function(){}}(),wa;(function(b){b[b.NONE=0]="NONE";b[b.HTML=1]="HTML";b[b.STYLE=2]="STYLE";b[b.SCRIPT=3]="SCRIPT";b[b.URL=4]="URL";b[b.RESOURCE_URL=5]="RESOURCE_URL"})(wa||(wa={}));var yl=function(){return function(){}}(),xb=function(){return function(b){this.nativeElement=b}}(),Hg,hj,zl=function(){var b=Nc.wtf;return b&&(Hg=b.trace)?(hj=Hg.events,!0):!1}(),
  Vd=zl?ap:function(b,a){return cp},hd=zl?bp:function(b,a){return a},id=function(){function b(){}Object.defineProperty(b.prototype,"element",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"injector",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"parentInjector",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"length",{get:function(){return ha()},enumerable:!0,
  configurable:!0});return b}(),$s=function(){function b(a){this._element=a;this._createComponentInContainerScope=Vd("ViewContainerRef#createComponent()");this._insertScope=Vd("ViewContainerRef#insert()");this._removeScope=Vd("ViewContainerRef#remove()");this._detachScope=Vd("ViewContainerRef#detach()")}b.prototype.get=function(a){return this._element.nestedViews[a].ref};Object.defineProperty(b.prototype,"length",{get:function(){var a=this._element.nestedViews;return l(a)?a.length:0},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0});b.prototype.createEmbeddedView=function(a,c,b){void 0===c&&(c=null);void 0===b&&(b=-1);a=a.createEmbeddedView(c);
  this.insert(a,b);return a};b.prototype.createComponent=function(a,c,b,e){void 0===c&&(c=-1);void 0===b&&(b=null);void 0===e&&(e=null);var d=this._createComponentInContainerScope();b=l(b)?b:this._element.parentInjector;a=a.create(b,e);this.insert(a.hostView,c);return hd(d,a)};b.prototype.insert=function(a,c){void 0===c&&(c=-1);var b=this._insertScope();-1==c&&(c=this.length);this._element.attachView(a.internalView,c);return hd(b,a)};b.prototype.move=function(a,c){var b=this._insertScope();if(-1!=c)return this._element.moveView(a.internalView,
  c),hd(b,a)};b.prototype.indexOf=function(a){return ma.indexOf(this._element.nestedViews,a.internalView)};b.prototype.remove=function(a){void 0===a&&(a=-1);var c=this._removeScope();-1==a&&(a=this.length-1);this._element.detachView(a).destroy();hd(c)};b.prototype.detach=function(a){void 0===a&&(a=-1);var c=this._detachScope();-1==a&&(a=this.length-1);a=this._element.detachView(a);return hd(c,a.ref)};b.prototype.clear=function(){for(var a=this.length-1;0<=a;a--)this.remove(a)};return b}(),gb;(function(b){b[b.HOST=
  0]="HOST";b[b.COMPONENT=1]="COMPONENT";b[b.EMBEDDED=2]="EMBEDDED"})(gb||(gb={}));var Ig=function(){function b(a,c,b,e){this.index=a;this.parentIndex=c;this.parentView=b;this.nativeElement=e;this.componentView=this.nestedViews=null}Object.defineProperty(b.prototype,"elementRef",{get:function(){return new xb(this.nativeElement)},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"vcRef",{get:function(){return new $s(this)},enumerable:!0,configurable:!0});b.prototype.initComponent=function(a,
  c,b){this.component=a;this.componentConstructorViewQueries=c;this.componentView=b};Object.defineProperty(b.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0});b.prototype.mapNestedViews=function(a,c){var b=[];l(this.nestedViews)&&this.nestedViews.forEach(function(d){d.clazz===a&&b.push(c(d))});
  return b};b.prototype.moveView=function(a,c){var b=this.nestedViews.indexOf(a);if(a.type===gb.COMPONENT)throw Error("Component views can't be moved!");var e=this.nestedViews;null==e&&(this.nestedViews=e=[]);ma.removeAt(e,b);ma.insert(e,c,a);c=0<c?e[c-1].lastRootNode:this.nativeElement;l(c)&&a.renderer.attachViewAfter(c,a.flatRootNodes);a.markContentChildAsMoved(this)};b.prototype.attachView=function(a,c){if(a.type===gb.COMPONENT)throw Error("Component views can't be moved!");var b=this.nestedViews;
  null==b&&(this.nestedViews=b=[]);ma.insert(b,c,a);c=0<c?b[c-1].lastRootNode:this.nativeElement;l(c)&&a.renderer.attachViewAfter(c,a.flatRootNodes);a.addToContentChildren(this)};b.prototype.detachView=function(a){a=ma.removeAt(this.nestedViews,a);if(a.type===gb.COMPONENT)throw Error("Component views can't be moved!");a.detach();a.removeFromContentChildren(this);return a};return b}(),Hh=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===
  a?Object.create(a):(c.prototype=a.prototype,new c)},Al=function(b){function a(a,d){d="Expression has changed after it was checked. Previous value: '"+a+"'. Current value: '"+d+"'.";a===$a&&(d+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?");b.call(this,d)}Hh(a,b);return a}(ac),Bl=function(b){function a(a,d){b.call(this,"Error in "+d.source,a);this.context=d}Hh(a,b);return a}(ml),at=function(b){function a(a){b.call(this,
  "Attempt to use a destroyed view: "+a)}Hh(a,b);return a}(ac),Ih=function(){function b(a,c,b){this._renderer=a;this._appId=c;this._nextCompTypeId=0;this.sanitizer=b}b.prototype.createRenderComponentType=function(a,c,b,e,f){return new xl(this._appId+"-"+this._nextCompTypeId++,a,c,b,e,f)};b.prototype.renderComponent=function(a){return this._renderer.renderComponent(a)};b.decorators=[{type:V}];b.ctorParameters=[{type:Gh},{type:void 0,decorators:[{type:U,args:[sl]}]},{type:yl}];return b}(),Cl=[],bt=function(b,
  a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ct=function(b){function a(a,d){b.call(this);this._hostElement=a;this._componentType=d}bt(a,b);Object.defineProperty(a.prototype,"location",{get:function(){return this._hostElement.elementRef},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"injector",{get:function(){return this._hostElement.injector},enumerable:!0,configurable:!0});
  Object.defineProperty(a.prototype,"instance",{get:function(){return this._hostElement.component},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"hostView",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"changeDetectorRef",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,
  configurable:!0});a.prototype.destroy=function(){this._hostElement.parentView.destroy()};a.prototype.onDestroy=function(a){this.hostView.onDestroy(a)};return a}(function(){function b(){}Object.defineProperty(b.prototype,"location",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"injector",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"instance",{get:function(){return ha()},enumerable:!0,configurable:!0});
  Object.defineProperty(b.prototype,"hostView",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"changeDetectorRef",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"componentType",{get:function(){return ha()},enumerable:!0,configurable:!0});return b}()),dt={},Jh=function(){function b(a,c,b){this.selector=a;this._viewFactory=c;this._componentType=b}Object.defineProperty(b.prototype,"componentType",{get:function(){return this._componentType},
  enumerable:!0,configurable:!0});b.prototype.create=function(a,c,b){void 0===c&&(c=null);void 0===b&&(b=null);var d=a.get(Ih);w(c)&&(c=[]);a=this._viewFactory(d,a,null).create(dt,c,b);return new ct(a,this._componentType)};return b}(),et=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ft=function(b){function a(a){b.call(this,"No component factory found for "+E(a));this.component=a}et(a,
  b);return a}(ac),gt=function(){function b(){}b.prototype.resolveComponentFactory=function(a){throw new ft(a);};return b}(),xe=function(){function b(){}b.NULL=new gt;return b}(),Dl=function(){function b(a,c){this._parent=c;this._factories=new Map;for(c=0;c<a.length;c++){var b=a[c];this._factories.set(b.componentType,b)}}b.prototype.resolveComponentFactory=function(a){var c=this._factories.get(a);c||(c=this._parent.resolveComponentFactory(a));return c};return b}(),n="undefined"!==typeof window?window:
  "undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Q=k(function(b,a){b={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};a.root=b[typeof self]&&self||b[typeof window]&&window;!(b=b[typeof n]&&n)||b.global!==b&&b.window!==b||(a.root=b)}),Kf=k(function(b,a){a.isFunction=function(a){return"function"===typeof a}}),Sb=k(function(b,a){a.isArray=Array.isArray||function(a){return a&&"number"===typeof a.length}}),ht=k(function(b,a){a.isObject=function(a){return null!=
  a&&"object"===typeof a}}),M=k(function(b,a){a.errorObject={e:{}}}),qa=k(function(b,a){function c(){try{return e.apply(this,arguments)}catch(f){return d.errorObject.e=f,d.errorObject}}var d=M,e;a.tryCatch=function(a){e=a;return c}}),Kh=k(function(b,a){var c=n&&n.__extends||function(a,c){function b(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=function(a){function b(c){a.call(this);this.errors=c;c=Error.call(this,
  c?c.length+" errors occurred during unsubscription:\n  "+c.map(function(a,c){return c+1+") "+a.toString()}).join("\n  "):"");this.name=c.name="UnsubscriptionError";this.stack=c.stack;this.message=c.message}c(b,a);return b}(Error);a.UnsubscriptionError=b}),Ba=k(function(b,a){b=function(){function a(a){this.closed=!1;a&&(this._unsubscribe=a)}a.prototype.unsubscribe=function(){var a=!1,c;if(!this.closed){this.closed=!0;var b=this._unsubscribe,g=this._subscriptions;this._subscriptions=null;if(Kf.isFunction(b)){var h=
  qa.tryCatch(b).call(this);h===M.errorObject&&(a=!0,(c=c||[]).push(M.errorObject.e))}if(Sb.isArray(g))for(var b=-1,m=g.length;++b<m;)h=g[b],ht.isObject(h)&&(h=qa.tryCatch(h.unsubscribe).call(h),h===M.errorObject&&(a=!0,c=c||[],h=M.errorObject.e,h instanceof Kh.UnsubscriptionError?c=c.concat(h.errors):c.push(h)));if(a)throw new Kh.UnsubscriptionError(c);}};a.prototype.add=function(c){if(!c||c===a.EMPTY)return a.EMPTY;if(c===this)return this;var b=c;switch(typeof c){case "function":b=new a(c);case "object":b.closed||
  "function"!==typeof b.unsubscribe||(this.closed?b.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(b));break;default:throw Error("unrecognized teardown "+c+" added to Subscription.");}return b};a.prototype.remove=function(c){if(null!=c&&c!==this&&c!==a.EMPTY){var b=this._subscriptions;b&&(c=b.indexOf(c),-1!==c&&b.splice(c,1))}};a.EMPTY=function(a){a.closed=!0;return a}(new a);return a}();a.Subscription=b}),El=k(function(b,a){a.empty={closed:!0,next:function(a){},error:function(a){throw a;
  },complete:function(){}}}),ye=k(function(b,a){b=Q.root.Symbol;a.$$rxSubscriber="function"===typeof b&&"function"===typeof b.for?b.for("rxSubscriber"):"@@rxSubscriber"}),J=k(function(b,a){var c=n&&n.__extends||function(a,c){function b(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=function(a){function b(c,e,f){a.call(this);this.syncErrorValue=null;this.isStopped=this.syncErrorThrowable=this.syncErrorThrown=
  !1;switch(arguments.length){case 0:this.destination=El.empty;break;case 1:if(!c){this.destination=El.empty;break}if("object"===typeof c){c instanceof b?(this.destination=c,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new d(this,c));break}default:this.syncErrorThrowable=!0,this.destination=new d(this,c,e,f)}}c(b,a);b.prototype[ye.$$rxSubscriber]=function(){return this};b.create=function(a,c,d){a=new b(a,c,d);a.syncErrorThrowable=!1;return a};b.prototype.next=function(a){this.isStopped||
  this._next(a)};b.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};b.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};b.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,a.prototype.unsubscribe.call(this))};b.prototype._next=function(a){this.destination.next(a)};b.prototype._error=function(a){this.destination.error(a);this.unsubscribe()};b.prototype._complete=function(){this.destination.complete();this.unsubscribe()};
  return b}(Ba.Subscription);a.Subscriber=b;var d=function(a){function b(c,b,d,e){a.call(this);this._parent=c;var g;c=this;Kf.isFunction(b)?g=b:b&&(c=b,g=b.next,d=b.error,e=b.complete,Kf.isFunction(c.unsubscribe)&&this.add(c.unsubscribe.bind(c)),c.unsubscribe=this.unsubscribe.bind(this));this._context=c;this._next=g;this._error=d;this._complete=e}c(b,a);b.prototype.next=function(a){if(!this.isStopped&&this._next){var c=this._parent;c.syncErrorThrowable?this.__tryOrSetError(c,this._next,a)&&this.unsubscribe():
  this.__tryOrUnsub(this._next,a)}};b.prototype.error=function(a){if(!this.isStopped){var c=this._parent;if(this._error)c.syncErrorThrowable?this.__tryOrSetError(c,this._error,a):this.__tryOrUnsub(this._error,a),this.unsubscribe();else if(c.syncErrorThrowable)c.syncErrorValue=a,c.syncErrorThrown=!0,this.unsubscribe();else throw this.unsubscribe(),a;}};b.prototype.complete=function(){if(!this.isStopped){var a=this._parent;this._complete&&(a.syncErrorThrowable?this.__tryOrSetError(a,this._complete):this.__tryOrUnsub(this._complete));
  this.unsubscribe()}};b.prototype.__tryOrUnsub=function(a,c){try{a.call(this._context,c)}catch(m){throw this.unsubscribe(),m;}};b.prototype.__tryOrSetError=function(a,c,b){try{c.call(this._context,b)}catch(r){return a.syncErrorValue=r,a.syncErrorThrown=!0}return!1};b.prototype._unsubscribe=function(){var a=this._parent;this._parent=this._context=null;a.unsubscribe()};return b}(b)}),it=k(function(b,a){a.toSubscriber=function(a,b,e){if(a){if(a instanceof J.Subscriber)return a;if(a[ye.$$rxSubscriber])return a[ye.$$rxSubscriber]()}return a||
  b||e?new J.Subscriber(a,b,e):new J.Subscriber}}),jd=k(function(b,a){function c(a){var c=a.Symbol;"function"===typeof c?c.observable?a=c.observable:(a=c("observable"),c.observable=a):a="@@observable";return a}a.getSymbolObservable=c;a.$$observable=c(Q.root)}),t=k(function(b,a){b=function(){function a(a){this._isScalar=!1;a&&(this._subscribe=a)}a.prototype.lift=function(c){var b=new a;b.source=this;b.operator=c;return b};a.prototype.subscribe=function(a,c,b){var d=this.operator;a=it.toSubscriber(a,
  c,b);d?d.call(a,this):a.add(this._subscribe(a));if(a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};a.prototype.forEach=function(a,c){var b=this;c||(Q.root.Rx&&Q.root.Rx.config&&Q.root.Rx.config.Promise?c=Q.root.Rx.config.Promise:Q.root.Promise&&(c=Q.root.Promise));if(!c)throw Error("no Promise impl found");return new c(function(c,d){var e=b.subscribe(function(c){if(e)try{a(c)}catch(u){d(u),e.unsubscribe()}else a(c)},d,c)})};a.prototype._subscribe=
  function(a){return this.source.subscribe(a)};a.prototype[jd.$$observable]=function(){return this};a.create=function(c){return new a(c)};return a}();a.Observable=b}),Wd=k(function(b,a){var c=n&&n.__extends||function(a,c){function b(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=function(a){function b(){var c=a.call(this,"object unsubscribed");this.name=c.name="ObjectUnsubscribedError";this.stack=c.stack;
  this.message=c.message}c(b,a);return b}(Error);a.ObjectUnsubscribedError=b}),jt=k(function(b,a){var c=n&&n.__extends||function(a,c){function b(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)};b=function(a){function b(c,b){a.call(this);this.subject=c;this.subscriber=b;this.closed=!1}c(b,a);b.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this.subject,c=a.observers;this.subject=null;!c||
  0===c.length||a.isStopped||a.closed||(a=c.indexOf(this.subscriber),-1!==a&&c.splice(a,1))}};return b}(Ba.Subscription);a.SubjectSubscription=b}),Ea=k(function(b,a){var c=n&&n.__extends||function(a,c){function b(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(b.prototype=c.prototype,new b)},d=function(a){function b(c){a.call(this,c);this.destination=c}c(b,a);return b}(J.Subscriber);a.SubjectSubscriber=d;b=function(a){function b(){a.call(this);
  this.observers=[];this.hasError=this.isStopped=this.closed=!1;this.thrownError=null}c(b,a);b.prototype[ye.$$rxSubscriber]=function(){return new d(this)};b.prototype.lift=function(a){var c=new e(this,this);c.operator=a;return c};b.prototype.next=function(a){if(this.closed)throw new Wd.ObjectUnsubscribedError;if(!this.isStopped)for(var c=this.observers,b=c.length,c=c.slice(),d=0;d<b;d++)c[d].next(a)};b.prototype.error=function(a){if(this.closed)throw new Wd.ObjectUnsubscribedError;this.hasError=!0;
  this.thrownError=a;this.isStopped=!0;for(var c=this.observers,b=c.length,c=c.slice(),d=0;d<b;d++)c[d].error(a);this.observers.length=0};b.prototype.complete=function(){if(this.closed)throw new Wd.ObjectUnsubscribedError;this.isStopped=!0;for(var a=this.observers,c=a.length,a=a.slice(),b=0;b<c;b++)a[b].complete();this.observers.length=0};b.prototype.unsubscribe=function(){this.closed=this.isStopped=!0;this.observers=null};b.prototype._subscribe=function(a){if(this.closed)throw new Wd.ObjectUnsubscribedError;
  if(this.hasError)return a.error(this.thrownError),Ba.Subscription.EMPTY;if(this.isStopped)return a.complete(),Ba.Subscription.EMPTY;this.observers.push(a);return new jt.SubjectSubscription(this,a)};b.prototype.asObservable=function(){var a=new t.Observable;a.source=this;return a};b.create=function(a,c){return new e(a,c)};return b}(t.Observable);a.Subject=b;var e=function(a){function b(c,b){a.call(this);this.destination=c;this.source=b}c(b,a);b.prototype.next=function(a){var c=this.destination;c&&
  c.next&&c.next(a)};b.prototype.error=function(a){var c=this.destination;c&&c.error&&this.destination.error(a)};b.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};b.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):Ba.Subscription.EMPTY};return b}(b);a.AnonymousSubject=e}),Fl=Ea.Subject,kt=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=
  a.prototype,new c)},Rc=function(b){function a(a){void 0===a&&(a=!1);b.call(this);this.__isAsync=a}kt(a,b);a.prototype.emit=function(a){b.prototype.next.call(this,a)};a.prototype.subscribe=function(a,d,e){var c,g=function(a){return null},h=function(){return null};a&&"object"===typeof a?(c=this.__isAsync?function(c){setTimeout(function(){return a.next(c)})}:function(c){a.next(c)},a.error&&(g=this.__isAsync?function(c){setTimeout(function(){return a.error(c)})}:function(c){a.error(c)}),a.complete&&(h=
  this.__isAsync?function(){setTimeout(function(){return a.complete()})}:function(){a.complete()})):(c=this.__isAsync?function(c){setTimeout(function(){return a(c)})}:function(c){a(c)},d&&(g=this.__isAsync?function(a){setTimeout(function(){return d(a)})}:function(a){d(a)}),e&&(h=this.__isAsync?function(){setTimeout(function(){return e()})}:function(){e()}));return b.prototype.subscribe.call(this,c,g,h)};return a}(Fl),Lf=function(){function b(a){var c=this,b=a.trace,e=a.onLeave,f=a.setMicrotask,g=a.setMacrotask,
  h=a.onError;this.onEnter=a.onEnter;this.onLeave=e;this.setMicrotask=f;this.setMacrotask=g;this.onError=h;if("undefined"==typeof Zone)throw Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();this.outer=this.inner=Zone.current;Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec));b&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec));this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(a,b,d,e,
  g,f){try{return c.onEnter(),a.invokeTask(d,e,g,f)}finally{c.onLeave()}},onInvoke:function(a,b,d,e,g,f,h){try{return c.onEnter(),a.invoke(d,e,g,f,h)}finally{c.onLeave()}},onHasTask:function(a,b,d,e){a.hasTask(d,e);b===d&&("microTask"==e.change?c.setMicrotask(e.microTask):"macroTask"==e.change&&c.setMacrotask(e.macroTask))},onHandleError:function(a,b,d,e){a.handleError(d,e);c.onError(e);return!1}})}b.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")};b.prototype.runInner=function(a){return this.inner.run(a)};
  b.prototype.runInnerGuarded=function(a){return this.inner.runGuarded(a)};b.prototype.runOuter=function(a){return this.outer.run(a)};return b}(),qc=function(){function b(a){var c=this;a=a.enableLongStackTrace;a=void 0===a?!1:a;this._hasPendingMacrotasks=this._hasPendingMicrotasks=!1;this._isStable=!0;this._nesting=0;this._onUnstable=new Rc(!1);this._onMicrotaskEmpty=new Rc(!1);this._onStable=new Rc(!1);this._onErrorEvents=new Rc(!1);this._zoneImpl=new Lf({trace:a,onEnter:function(){c._nesting++;c._isStable&&
  (c._isStable=!1,c._onUnstable.emit(null))},onLeave:function(){c._nesting--;c._checkStable()},setMicrotask:function(a){c._hasPendingMicrotasks=a;c._checkStable()},setMacrotask:function(a){c._hasPendingMacrotasks=a},onError:function(a){return c._onErrorEvents.emit(a)}})}b.isInAngularZone=function(){return Lf.isInAngularZone()};b.assertInAngularZone=function(){if(!Lf.isInAngularZone())throw Error("Expected to be in Angular Zone, but it is not!");};b.assertNotInAngularZone=function(){if(Lf.isInAngularZone())throw Error("Expected to not be in Angular Zone, but it is!");
  };b.prototype._checkStable=function(){var a=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return a._onStable.emit(null)})}finally{this._isStable=!0}}};Object.defineProperty(b.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},
  enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0});b.prototype.run=function(a){return this._zoneImpl.runInner(a)};b.prototype.runGuarded=function(a){return this._zoneImpl.runInnerGuarded(a)};b.prototype.runOutsideAngular=function(a){return this._zoneImpl.runOuter(a)};return b}(),Mf=function(){function b(a){this._ngZone=a;this._pendingCount=0;this._isZoneStable=!0;this._didWork=!1;this._callbacks=
  [];this._watchAngularEvents()}b.prototype._watchAngularEvents=function(){var a=this;this._ngZone.onUnstable.subscribe({next:function(){a._didWork=!0;a._isZoneStable=!1}});this._ngZone.runOutsideAngular(function(){a._ngZone.onStable.subscribe({next:function(){qc.assertNotInAngularZone();q(function(){a._isZoneStable=!0;a._runCallbacksIfReady()})}})})};b.prototype.increasePendingRequestCount=function(){this._pendingCount+=1;this._didWork=!0;return this._pendingCount};b.prototype.decreasePendingRequestCount=
  function(){--this._pendingCount;if(0>this._pendingCount)throw Error("pending async requests below zero");this._runCallbacksIfReady();return this._pendingCount};b.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks};b.prototype._runCallbacksIfReady=function(){var a=this;this.isStable()?q(function(){for(;0!==a._callbacks.length;)a._callbacks.pop()(a._didWork);a._didWork=!1}):this._didWork=!0};b.prototype.whenStable=function(a){this._callbacks.push(a);
  this._runCallbacksIfReady()};b.prototype.getPendingRequestCount=function(){return this._pendingCount};b.prototype.findBindings=function(a,c,b){return[]};b.prototype.findProviders=function(a,c,b){return[]};b.decorators=[{type:V}];b.ctorParameters=[{type:qc}];return b}(),Mh=function(){function b(){this._applications=new Sa;Lh.addToWindow(this)}b.prototype.registerApplication=function(a,c){this._applications.set(a,c)};b.prototype.getTestability=function(a){return this._applications.get(a)};b.prototype.getAllTestabilities=
  function(){return Ff.values(this._applications)};b.prototype.getAllRootElements=function(){return Ff.keys(this._applications)};b.prototype.findTestabilityInTree=function(a,c){void 0===c&&(c=!0);return Lh.findTestabilityInTree(this,a,c)};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),Lh=new (function(){function b(){}b.prototype.addToWindow=function(a){};b.prototype.findTestabilityInTree=function(a,c,b){return null};return b}()),Gl=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&
  (b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Wb,Jg=function(){function b(){}b.prototype.bootstrapModuleFactory=function(a){throw ha();};b.prototype.bootstrapModule=function(a,c){throw ha();};Object.defineProperty(b.prototype,"injector",{get:function(){throw ha();},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"destroyed",{get:function(){throw ha();},enumerable:!0,configurable:!0});return b}(),Hl=function(b){function a(a){b.call(this);this._injector=
  a;this._modules=[];this._destroyListeners=[];this._destroyed=!1}Gl(a,b);a.prototype.onDestroy=function(a){this._destroyListeners.push(a)};Object.defineProperty(a.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0});a.prototype.destroy=function(){if(this._destroyed)throw Error("The platform has already been destroyed!");ma.clone(this._modules).forEach(function(a){return a.destroy()});
  this._destroyListeners.forEach(function(a){return a()});this._destroyed=!0};a.prototype.bootstrapModuleFactory=function(a){return this._bootstrapModuleFactoryWithZone(a,null)};a.prototype._bootstrapModuleFactoryWithZone=function(a,b){var c=this;b||(b=new qc({enableLongStackTrace:!0}));return b.run(function(){var d=xd.resolveAndCreate([{provide:qc,useValue:b}],c.injector),e=a.create(d),h=e.injector.get(ef,null);if(!h)throw Error("No ErrorHandler. Is platform module (BrowserModule) included?");e.onDestroy(function(){return ma.remove(c._modules,
  e)});b.onError.subscribe({next:function(a){h.handleError(a)}});return ep(h,function(){return e.injector.get(Dh).donePromise.then(function(){c._moduleDoBootstrap(e);return e})})})};a.prototype.bootstrapModule=function(a,b){void 0===b&&(b=[]);return this._bootstrapModuleWithZone(a,b,null)};a.prototype._bootstrapModuleWithZone=function(a,b,e,f){var c=this;void 0===b&&(b=[]);b=this.injector.get(ul).createCompiler(b instanceof Array?b:[b]);return f?b.compileModuleAndAllComponentsAsync(a).then(function(a){var b=
  a.ngModuleFactory;f(a.componentFactories);return c._bootstrapModuleFactoryWithZone(b,e)}):b.compileModuleAsync(a).then(function(a){return c._bootstrapModuleFactoryWithZone(a,e)})};a.prototype._moduleDoBootstrap=function(a){var c=a.injector.get(Nf);if(0<a.bootstrapFactories.length)a.bootstrapFactories.forEach(function(a){return c.bootstrap(a)});else if(a.instance.ngDoBootstrap)a.instance.ngDoBootstrap(c);else throw Error("The module "+E(a.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');
  };a.decorators=[{type:V}];a.ctorParameters=[{type:bc}];return a}(Jg),Nf=function(){function b(){}Object.defineProperty(b.prototype,"componentTypes",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"components",{get:function(){return ha()},enumerable:!0,configurable:!0});return b}(),Il=function(b){function a(a,d,e,f,g,h,m,r){var c=this;b.call(this);this._zone=a;this._console=d;this._injector=e;this._exceptionHandler=f;this._componentFactoryResolver=g;this._initStatus=
  h;this._testabilityRegistry=m;this._testability=r;this._bootstrapListeners=[];this._rootComponents=[];this._rootComponentTypes=[];this._changeDetectorRefs=[];this._enforceNoNewChanges=this._runningTick=!1;this._enforceNoNewChanges=!0;this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}})}Gl(a,b);a.prototype.registerChangeDetector=function(a){this._changeDetectorRefs.push(a)};a.prototype.unregisterChangeDetector=function(a){ma.remove(this._changeDetectorRefs,a)};
  a.prototype.bootstrap=function(a){var c=this;if(!this._initStatus.done)throw Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");a=a instanceof Jh?a:this._componentFactoryResolver.resolveComponentFactory(a);this._rootComponentTypes.push(a.componentType);var b=a.create(this._injector,[],a.selector);b.onDestroy(function(){c._unloadComponent(b)});a=b.injector.get(Mf,null);l(a)&&b.injector.get(Mh).registerApplication(b.location.nativeElement,
  a);this._loadComponent(b);this._console.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");return b};a.prototype._loadComponent=function(a){this._changeDetectorRefs.push(a.changeDetectorRef);this.tick();this._rootComponents.push(a);this._injector.get(Ks,[]).concat(this._bootstrapListeners).forEach(function(c){return c(a)})};a.prototype._unloadComponent=function(a){ma.contains(this._rootComponents,a)&&(this.unregisterChangeDetector(a.changeDetectorRef),
  ma.remove(this._rootComponents,a))};a.prototype.tick=function(){if(this._runningTick)throw Error("ApplicationRef.tick is called recursively");var c=a._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(a){return a.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(a){return a.checkNoChanges()})}finally{this._runningTick=!1,hd(c)}};a.prototype.ngOnDestroy=function(){ma.clone(this._rootComponents).forEach(function(a){return a.destroy()})};
  Object.defineProperty(a.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0});a._tickScope=Vd("ApplicationRef#tick()");a.decorators=[{type:V}];a.ctorParameters=[{type:qc},{type:Hf},{type:bc},{type:ef},{type:xe},{type:Dh},{type:Mh,decorators:[{type:W}]},{type:Mf,decorators:[{type:W}]}];return a}(Nf),lt=function(b,a){function c(){this.constructor=
  b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)};(function(){function b(){}Object.defineProperty(b.prototype,"injector",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"componentFactoryResolver",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"instance",{get:function(){return ha()},enumerable:!0,configurable:!0});return b})();var mt=
  function(){function b(a,c){this._injectorClass=a;this._moduleType=c}Object.defineProperty(b.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0});b.prototype.create=function(a){a||(a=bc.NULL);a=new this._injectorClass(a);a.create();return a};return b}(),Jl={},nt=function(b){function a(a,d,e){b.call(this,d,a.get(xe,xe.NULL));this.parent=a;this.bootstrapFactories=e;this._destroyListeners=[];this._destroyed=!1}lt(a,b);a.prototype.create=function(){this.instance=
  this.createInternal()};a.prototype.get=function(a,b){void 0===b&&(b=Pc);if(a===bc||a===xe)return this;var c=this.getInternal(a,Jl);return c===Jl?this.parent.get(a,b):c};Object.defineProperty(a.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0});a.prototype.destroy=function(){if(this._destroyed)throw Error("The ng module "+E(this.instance.constructor)+
  " has already been destroyed.");this._destroyed=!0;this.destroyInternal();this._destroyListeners.forEach(function(a){return a()})};a.prototype.onDestroy=function(a){this._destroyListeners.push(a)};return a}(Dl),Kl=new Map,ot=function(){function b(){this._dirty=!0;this._results=[];this._emitter=new Rc}Object.defineProperty(b.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"length",{get:function(){return this._results.length},
  enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0});b.prototype.map=function(a){return this._results.map(a)};b.prototype.filter=function(a){return this._results.filter(a)};b.prototype.reduce=function(a,c){return this._results.reduce(a,c)};b.prototype.forEach=function(a){this._results.forEach(a)};
  b.prototype.some=function(a){return this._results.some(a)};b.prototype.toArray=function(){return this._results.slice()};b.prototype[vd()]=function(){return this._results[vd()]()};b.prototype.toString=function(){return this._results.toString()};b.prototype.reset=function(a){this._results=ma.flatten(a);this._dirty=!1};b.prototype.notifyOnChanges=function(){this._emitter.emit(this)};b.prototype.setDirty=function(){this._dirty=!0};Object.defineProperty(b.prototype,"dirty",{get:function(){return this._dirty},
  enumerable:!0,configurable:!0});return b}(),pt=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},kd=function(){function b(){}Object.defineProperty(b.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0});return b}(),qt=function(b){function a(a,d){b.call(this);this._appElement=a;this._viewFactory=d}pt(a,b);a.prototype.createEmbeddedView=function(a){var c=this._viewFactory(this._appElement.parentView.viewUtils,
  this._appElement.parentInjector,this._appElement);c.create(a||{},null,null);return c.ref};Object.defineProperty(a.prototype,"elementRef",{get:function(){return this._appElement.elementRef},enumerable:!0,configurable:!0});return a}(kd),Of=[],rt=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)};(function(b){function a(){b.apply(this,arguments)}rt(a,b);Object.defineProperty(a.prototype,
  "context",{get:function(){return ha()},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"rootNodes",{get:function(){return ha()},enumerable:!0,configurable:!0});return a})(function(){function b(){}Object.defineProperty(b.prototype,"destroyed",{get:function(){return ha()},enumerable:!0,configurable:!0});return b}());var st=function(){function b(a){this._view=this._view=a;this._originalMode=this._view.cdMode}Object.defineProperty(b.prototype,"internalView",{get:function(){return this._view},
  enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0});b.prototype.markForCheck=function(){this._view.markPathToRootAsCheckOnce()};b.prototype.detach=function(){this._view.cdMode=
  Oa.Detached};b.prototype.detectChanges=function(){this._view.detectChanges(!1);for(var a=0;a<Of.length;a++)Of[a].play();Of=[]};b.prototype.checkNoChanges=function(){this._view.detectChanges(!0)};b.prototype.reattach=function(){this._view.cdMode=this._originalMode;this.markForCheck()};b.prototype.onDestroy=function(a){this._view.disposables.push(a)};b.prototype.destroy=function(){this._view.destroy()};return b}(),tt=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&
  (b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ut=function(){return function(b,a){this.name=b;this.callback=a}}(),Nh=function(){function b(a,c,b){this._debugInfo=b;this.nativeNode=a;l(c)&&c instanceof Lb?c.addChild(this):this.parent=null;this.listeners=[]}Object.defineProperty(b.prototype,"injector",{get:function(){return l(this._debugInfo)?this._debugInfo.injector:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"componentInstance",{get:function(){return l(this._debugInfo)?
  this._debugInfo.component:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"context",{get:function(){return l(this._debugInfo)?this._debugInfo.context:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"references",{get:function(){return l(this._debugInfo)?this._debugInfo.references:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"providerTokens",{get:function(){return l(this._debugInfo)?this._debugInfo.providerTokens:null},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"source",{get:function(){return l(this._debugInfo)?this._debugInfo.source:null},enumerable:!0,configurable:!0});return b}(),Lb=function(b){function a(a,d,e){b.call(this,a,d,e);this.properties={};this.attributes={};this.classes={};this.styles={};this.childNodes=[];this.nativeElement=a}tt(a,b);a.prototype.addChild=function(a){l(a)&&(this.childNodes.push(a),a.parent=this)};a.prototype.removeChild=function(a){var c=this.childNodes.indexOf(a);-1!==c&&
  (a.parent=null,this.childNodes.splice(c,1))};a.prototype.insertChildrenAfter=function(a,b){var c=this.childNodes.indexOf(a);if(-1!==c)for(a=this.childNodes.slice(0,c+1),c=this.childNodes.slice(c+1),this.childNodes=ma.concat(ma.concat(a,b),c),a=0;a<b.length;++a)c=b[a],l(c.parent)&&c.parent.removeChild(c),c.parent=this};a.prototype.query=function(a){a=this.queryAll(a);return 0<a.length?a[0]:null};a.prototype.queryAll=function(a){var c=[];kj(this,a,c);return c};a.prototype.queryAllNodes=function(a){var c=
  [];lj(this,a,c);return c};Object.defineProperty(a.prototype,"children",{get:function(){var c=[];this.childNodes.forEach(function(b){b instanceof a&&c.push(b)});return c},enumerable:!0,configurable:!0});a.prototype.triggerEventHandler=function(a,b){this.listeners.forEach(function(c){c.name==a&&c.callback(b)})};return a}(Nh),Lg=new Map,Ll=$e(null,"core",[Hl,{provide:Jg,useExisting:Hl},{provide:ve,useFactory:function(){return Xe},deps:[]},{provide:fd,useExisting:ve},Mh,Hf]),ld=new La("LocaleId"),vt=
  new La("Translations"),Ml=new La("TranslationsFormat"),wt=function(){function b(){}b.decorators=[{type:Mc,args:[{providers:[Il,{provide:Nf,useExisting:Il},Dh,we,Js,Ih,{provide:If,useFactory:fp},{provide:Jf,useFactory:hp},{provide:ld,useValue:"en-US"}]}]}];b.ctorParameters=[];return b}(),xt=Nc.Math,Oh=function(){function b(a){var c=this;this._players=a;this._onDoneFns=[];this._onStartFns=[];this._started=this._finished=!1;this.parentPlayer=null;var b=0,e=this._players.length;0==e?q(function(){return c._onFinish()}):
  this._players.forEach(function(a){a.parentPlayer=c;a.onDone(function(){++b>=e&&c._onFinish()})})}b.prototype._onFinish=function(){this._finished||(this._finished=!0,l(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};b.prototype.init=function(){this._players.forEach(function(a){return a.init()})};b.prototype.onStart=function(a){this._onStartFns.push(a)};b.prototype.onDone=function(a){this._onDoneFns.push(a)};b.prototype.hasStarted=function(){return this._started};
  b.prototype.play=function(){l(this.parentPlayer)||this.init();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0);this._players.forEach(function(a){return a.play()})};b.prototype.pause=function(){this._players.forEach(function(a){return a.pause()})};b.prototype.restart=function(){this._players.forEach(function(a){return a.restart()})};b.prototype.finish=function(){this._onFinish();this._players.forEach(function(a){return a.finish()})};b.prototype.destroy=
  function(){this._onFinish();this._players.forEach(function(a){return a.destroy()})};b.prototype.reset=function(){this._players.forEach(function(a){return a.reset()})};b.prototype.setPosition=function(a){this._players.forEach(function(c){c.setPosition(a)})};b.prototype.getPosition=function(){var a=0;this._players.forEach(function(c){c=c.getPosition();a=xt.min(c,a)});return a};return b}(),yt=function(){return function(b,a){this.offset=b;this.styles=a}}(),Nl=function(){return function(b,a,c){this.name=
  b;this.phase=a;this.fullPropertyName=c}}();(function(){function b(){}Object.defineProperty(b.prototype,"parentPlayer",{get:function(){throw Error("NOT IMPLEMENTED: Base Class");},set:function(a){throw Error("NOT IMPLEMENTED: Base Class");},enumerable:!0,configurable:!0});return b})();var Pf=function(){function b(){var a=this;this._onDoneFns=[];this._onStartFns=[];this._started=!1;this.parentPlayer=null;q(function(){return a._onFinish()})}b.prototype._onFinish=function(){this._onDoneFns.forEach(function(a){return a()});
  this._onDoneFns=[]};b.prototype.onStart=function(a){this._onStartFns.push(a)};b.prototype.onDone=function(a){this._onDoneFns.push(a)};b.prototype.hasStarted=function(){return this._started};b.prototype.init=function(){};b.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[]);this._started=!0};b.prototype.pause=function(){};b.prototype.restart=function(){};b.prototype.finish=function(){this._onFinish()};b.prototype.destroy=function(){};
  b.prototype.reset=function(){};b.prototype.setPosition=function(a){};b.prototype.getPosition=function(){return 0};return b}(),zt=function(){function b(a){var c=this;this._players=a;this._currentIndex=0;this._onDoneFns=[];this._onStartFns=[];this._started=this._finished=!1;this.parentPlayer=null;this._players.forEach(function(a){a.parentPlayer=c});this._onNext(!1)}b.prototype._onNext=function(a){var c=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new Pf,q(function(){return c._onFinish()});
  else if(this._currentIndex>=this._players.length)this._activePlayer=new Pf,this._onFinish();else{var b=this._players[this._currentIndex++];b.onDone(function(){return c._onNext(!0)});this._activePlayer=b;a&&b.play()}};b.prototype._onFinish=function(){this._finished||(this._finished=!0,l(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(a){return a()}),this._onDoneFns=[])};b.prototype.init=function(){this._players.forEach(function(a){return a.init()})};b.prototype.onStart=function(a){this._onStartFns.push(a)};
  b.prototype.onDone=function(a){this._onDoneFns.push(a)};b.prototype.hasStarted=function(){return this._started};b.prototype.play=function(){l(this.parentPlayer)||this.init();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0);this._activePlayer.play()};b.prototype.pause=function(){this._activePlayer.pause()};b.prototype.restart=function(){0<this._players.length&&(this.reset(),this._players[0].restart())};b.prototype.reset=function(){this._players.forEach(function(a){return a.reset()})};
  b.prototype.finish=function(){this._onFinish();this._players.forEach(function(a){return a.finish()})};b.prototype.destroy=function(){this._onFinish();this._players.forEach(function(a){return a.destroy()})};b.prototype.setPosition=function(a){this._players[0].setPosition(a)};b.prototype.getPosition=function(){return this._players[0].getPosition()};return b}(),Sc=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=
  a.prototype,new c)},Ol=function(){return function(){}}(),At=function(b){function a(a,d){b.call(this);this.stateNameExpr=a;this.styles=d}Sc(a,b);return a}(Ol),Bt=function(b){function a(a,d){b.call(this);this.stateChangeExpr=a;this.steps=d}Sc(a,b);return a}(Ol),Qf=function(){return function(){}}(),Ct=function(b){function a(a){b.call(this);this.steps=a}Sc(a,b);return a}(Qf),Dt=function(b){function a(a,d){void 0===d&&(d=null);b.call(this);this.styles=a;this.offset=d}Sc(a,b);return a}(Qf),Et=function(b){function a(a,
  d){b.call(this);this.timings=a;this.styles=d}Sc(a,b);return a}(Qf),Ph=function(b){function a(){b.call(this)}Sc(a,b);Object.defineProperty(a.prototype,"steps",{get:function(){throw Error("NOT IMPLEMENTED: Base Class");},enumerable:!0,configurable:!0});return a}(Qf);(function(b){function a(a){b.call(this);this._steps=a}Sc(a,b);Object.defineProperty(a.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0});return a})(Ph);var Ft=function(b){function a(a){b.call(this);this._steps=
  a}Sc(a,b);Object.defineProperty(a.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0});return a}(Ph),Gt=function(){return function(b){this.styles=b}}(),It=function(){function b(a){this._delegate=a}b.prototype.renderComponent=function(a){return new Ht(this._delegate.renderComponent(a))};return b}(),Ht=function(){function b(a){this._delegate=a}b.prototype.selectRootElement=function(a,c){a=this._delegate.selectRootElement(a,c);c=new Lb(a,null,c);af(c);return a};b.prototype.createElement=
  function(a,c,b){var d=this._delegate.createElement(a,c,b);a=new Lb(d,eb(a),b);a.name=c;af(a);return d};b.prototype.createViewRoot=function(a){return this._delegate.createViewRoot(a)};b.prototype.createTemplateAnchor=function(a,c){var b=this._delegate.createTemplateAnchor(a,c);a=new Nh(b,eb(a),c);af(a);return b};b.prototype.createText=function(a,c,b){c=this._delegate.createText(a,c,b);a=new Nh(c,eb(a),b);af(a);return c};b.prototype.projectNodes=function(a,c){var b=eb(a);l(b)&&b instanceof Lb&&c.forEach(function(a){b.addChild(eb(a))});
  this._delegate.projectNodes(a,c)};b.prototype.attachViewAfter=function(a,c){var b=eb(a);if(l(b)){var e=b.parent;if(0<c.length&&l(e)){var f=[];c.forEach(function(a){return f.push(eb(a))});e.insertChildrenAfter(b,f)}}this._delegate.attachViewAfter(a,c)};b.prototype.detachView=function(a){a.forEach(function(a){a=eb(a);l(a)&&l(a.parent)&&a.parent.removeChild(a)});this._delegate.detachView(a)};b.prototype.destroyView=function(a,c){c.forEach(function(a){Lg.delete(eb(a).nativeNode)});this._delegate.destroyView(a,
  c)};b.prototype.listen=function(a,c,b){var d=eb(a);l(d)&&d.listeners.push(new ut(c,b));return this._delegate.listen(a,c,b)};b.prototype.listenGlobal=function(a,c,b){return this._delegate.listenGlobal(a,c,b)};b.prototype.setElementProperty=function(a,c,b){var d=eb(a);l(d)&&d instanceof Lb&&(d.properties[c]=b);this._delegate.setElementProperty(a,c,b)};b.prototype.setElementAttribute=function(a,c,b){var d=eb(a);l(d)&&d instanceof Lb&&(d.attributes[c]=b);this._delegate.setElementAttribute(a,c,b)};b.prototype.setBindingDebugInfo=
  function(a,c,b){this._delegate.setBindingDebugInfo(a,c,b)};b.prototype.setElementClass=function(a,c,b){var d=eb(a);l(d)&&d instanceof Lb&&(d.classes[c]=b);this._delegate.setElementClass(a,c,b)};b.prototype.setElementStyle=function(a,c,b){var d=eb(a);l(d)&&d instanceof Lb&&(d.styles[c]=b);this._delegate.setElementStyle(a,c,b)};b.prototype.invokeElementMethod=function(a,c,b){this._delegate.invokeElementMethod(a,c,b)};b.prototype.setText=function(a,c){this._delegate.setText(a,c)};b.prototype.animate=
  function(a,c,b,e,f,g){return this._delegate.animate(a,c,b,e,f,g)};return b}(),Jt=function(){return function(b,a,c){this.providerTokens=b;this.componentToken=a;this.refTokens=c}}(),Pl=function(){function b(a,c,b,e){this._view=a;this._nodeIndex=c;this._tplRow=b;this._tplCol=e}Object.defineProperty(b.prototype,"_staticNodeInfo",{get:function(){return l(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"context",{get:function(){return this._view.context},
  enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"component",{get:function(){var a=this._staticNodeInfo;return l(a)&&l(a.componentToken)?this.injector.get(a.componentToken):null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"componentRenderElement",{get:function(){for(var a=this._view;l(a.declarationAppElement)&&a.type!==gb.COMPONENT;)a=a.declarationAppElement.parentView;return l(a.declarationAppElement)?a.declarationAppElement.nativeElement:null},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"renderNode",{get:function(){return l(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"providerTokens",{get:function(){var a=this._staticNodeInfo;return l(a)?a.providerTokens:null},enumerable:!0,configurable:!0});
  Object.defineProperty(b.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"references",{get:function(){var a=this,c={},b=this._staticNodeInfo;l(b)&&db.forEach(b.refTokens,function(b,d){b=w(b)?a._view.allNodes?a._view.allNodes[a._nodeIndex]:null:a._view.injectorGet(b,a._nodeIndex,null);c[d]=b});return c},enumerable:!0,configurable:!0});return b}(),Kt=function(){return function(b){var a=
  b.toState,c=b.totalTime;this.fromState=b.fromState;this.toState=a;this.totalTime=c}}(),Lt=function(){function b(){this._map=new Sa;this._allPlayers=[]}Object.defineProperty(b.prototype,"length",{get:function(){return this.getAllPlayers().length},enumerable:!0,configurable:!0});b.prototype.find=function(a,c){a=this._map.get(a);if(l(a))return a[c]};b.prototype.findAllPlayersByElement=function(a){return(a=this._map.get(a))?db.values(a):[]};b.prototype.set=function(a,c,b){var d=this._map.get(a);l(d)||
  (d={});l(d[c])&&this.remove(a,c);d[c]=b;this._allPlayers.push(b);this._map.set(a,d)};b.prototype.getAllPlayers=function(){return this._allPlayers};b.prototype.remove=function(a,c){var b=this._map.get(a);if(l(b)){var e=b[c];delete b[c];c=this._allPlayers.indexOf(e);ma.removeAt(this._allPlayers,c);db.isEmpty(b)&&this._map.delete(a)}};return b}(),Mt=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,
  new c)},Rf={},Nt=function(b){function a(a,d){b.call(this);this._view=a;this._nodeIndex=d}Mt(a,b);a.prototype.get=function(a,b){void 0===b&&(b=Pc);var c=Rf;c===Rf&&(c=this._view.injectorGet(a,this._nodeIndex,Rf));c===Rf&&(c=this._view.parentInjector.get(a,b));return c};return a}(bc),Ot=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Pt=Vd("AppView#check(ascii id)"),Ql=function(){function b(a,
  c,b,e,f,g,h){this.clazz=a;this.componentType=c;this.type=b;this.viewUtils=e;this.parentInjector=f;this.declarationAppElement=g;this.cdMode=h;this.contentChildren=[];this.viewChildren=[];this.viewContainerElement=null;this.numberOfChecks=0;this.animationPlayers=new Lt;this._animationListeners=new Map;this.ref=new st(this);this.renderer=b===gb.COMPONENT||b===gb.HOST?e.renderComponent(c):g.parentView.renderer}Object.defineProperty(b.prototype,"destroyed",{get:function(){return this.cdMode===Oa.Destroyed},
  enumerable:!0,configurable:!0});b.prototype.cancelActiveAnimation=function(a,c,b){void 0===b&&(b=!1);b?this.animationPlayers.findAllPlayersByElement(a).forEach(function(a){return a.destroy()}):(a=this.animationPlayers.find(a,c),l(a)&&a.destroy())};b.prototype.queueAnimation=function(a,c,b,e,f,g){var d=this;Of.push(b);var m=new Kt({fromState:f,toState:g,totalTime:e});this.animationPlayers.set(a,c,b);b.onDone(function(){d.triggerAnimationOutput(a,c,"done",m);d.animationPlayers.remove(a,c)});b.onStart(function(){d.triggerAnimationOutput(a,
  c,"start",m)})};b.prototype.triggerAnimationOutput=function(a,c,b,e){a=this._animationListeners.get(a);if(l(a)&&a.length)for(var d=0;d<a.length;d++){var g=a[d];if(g.output.name==c&&g.output.phase==b){g.handler(e);break}}};b.prototype.registerAnimationOutput=function(a,c,b){c=new Qt(c,b);b=this._animationListeners.get(a);l(b)||this._animationListeners.set(a,b=[]);b.push(c)};b.prototype.create=function(a,c,b){this.context=a;var d;switch(this.type){case gb.COMPONENT:a=this.componentType.slotCount;if(w(c))d=
  Cl;else if(c.length<a){var f=c.length;d=ma.createFixedSize(a);for(var g=0;g<a;g++)d[g]=g<f?c[g]:Cl}else d=c;break;case gb.EMBEDDED:d=this.declarationAppElement.parentView.projectableNodes;break;case gb.HOST:d=c}this._hasExternalHostElement=l(b);this.projectableNodes=d;return this.createInternal(b)};b.prototype.createInternal=function(a){return null};b.prototype.init=function(a,c,b,e){this.rootNodesOrAppElements=a;this.allNodes=c;this.disposables=b;this.subscriptions=e;this.type===gb.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),
  this.dirtyParentQueriesInternal())};b.prototype.selectOrCreateHostElement=function(a,c,b){return l(c)?this.renderer.selectRootElement(c,b):this.renderer.createElement(null,a,b)};b.prototype.injectorGet=function(a,c,b){return this.injectorGetInternal(a,c,b)};b.prototype.injectorGetInternal=function(a,c,b){return b};b.prototype.injector=function(a){return l(a)?new Nt(this,a):this.parentInjector};b.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):
  l(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this));this._destroyRecurse()};b.prototype._destroyRecurse=function(){if(this.cdMode!==Oa.Destroyed){for(var a=this.contentChildren,c=0;c<a.length;c++)a[c]._destroyRecurse();a=this.viewChildren;for(c=0;c<a.length;c++)a[c]._destroyRecurse();this.destroyLocal();this.cdMode=Oa.Destroyed}};b.prototype.destroyLocal=function(){for(var a=this,c=this.type===gb.COMPONENT?this.declarationAppElement.nativeElement:
  null,b=0;b<this.disposables.length;b++)this.disposables[b]();for(b=0;b<this.subscriptions.length;b++)this.subscriptions[b].unsubscribe();this.destroyInternal();this.dirtyParentQueriesInternal();if(0==this.animationPlayers.length)this.renderer.destroyView(c,this.allNodes);else(new Oh(this.animationPlayers.getAllPlayers())).onDone(function(){a.renderer.destroyView(c,a.allNodes)})};b.prototype.destroyInternal=function(){};b.prototype.detachInternal=function(){};b.prototype.detach=function(){var a=this;
  this.detachInternal();if(0==this.animationPlayers.length)this.renderer.detachView(this.flatRootNodes);else(new Oh(this.animationPlayers.getAllPlayers())).onDone(function(){a.renderer.detachView(a.flatRootNodes)})};Object.defineProperty(b.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"parent",{get:function(){return l(this.declarationAppElement)?this.declarationAppElement.parentView:null},enumerable:!0,configurable:!0});
  Object.defineProperty(b.prototype,"flatRootNodes",{get:function(){return ij(this.rootNodesOrAppElements)},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"lastRootNode",{get:function(){return nj(0<this.rootNodesOrAppElements.length?this.rootNodesOrAppElements[this.rootNodesOrAppElements.length-1]:null)},enumerable:!0,configurable:!0});b.prototype.dirtyParentQueriesInternal=function(){};b.prototype.detectChanges=function(a){var c=Pt(this.clazz);this.cdMode!==Oa.Checked&&this.cdMode!==
  Oa.Errored&&(this.cdMode===Oa.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(a),this.cdMode===Oa.CheckOnce&&(this.cdMode=Oa.Checked),this.numberOfChecks++,hd(c))};b.prototype.detectChangesInternal=function(a){this.detectContentChildrenChanges(a);this.detectViewChildrenChanges(a)};b.prototype.detectContentChildrenChanges=function(a){for(var c=0;c<this.contentChildren.length;++c){var b=this.contentChildren[c];b.cdMode!==Oa.Detached&&b.detectChanges(a)}};b.prototype.detectViewChildrenChanges=
  function(a){for(var c=0;c<this.viewChildren.length;++c){var b=this.viewChildren[c];b.cdMode!==Oa.Detached&&b.detectChanges(a)}};b.prototype.markContentChildAsMoved=function(a){this.dirtyParentQueriesInternal()};b.prototype.addToContentChildren=function(a){a.parentView.contentChildren.push(this);this.viewContainerElement=a;this.dirtyParentQueriesInternal()};b.prototype.removeFromContentChildren=function(a){ma.remove(a.parentView.contentChildren,this);this.dirtyParentQueriesInternal();this.viewContainerElement=
  null};b.prototype.markAsCheckOnce=function(){this.cdMode=Oa.CheckOnce};b.prototype.markPathToRootAsCheckOnce=function(){for(var a=this;l(a)&&a.cdMode!==Oa.Detached;)a.cdMode===Oa.Checked&&(a.cdMode=Oa.CheckOnce),a=a.type===gb.COMPONENT?a.declarationAppElement:a.viewContainerElement,a=l(a)?a.parentView:null};b.prototype.eventHandler=function(a){return a};b.prototype.throwDestroyedError=function(a){throw new at(a);};return b}(),Rt=function(b){function a(a,d,e,f,g,h,m,r){b.call(this,a,d,e,f,g,h,m);this.staticNodeDebugInfos=
  r;this._currentDebugContext=null}Ot(a,b);a.prototype.create=function(a,d,e){this._resetDebug();try{return b.prototype.create.call(this,a,d,e)}catch(f){throw this._rethrowWithContext(f),f;}};a.prototype.injectorGet=function(a,d,e){this._resetDebug();try{return b.prototype.injectorGet.call(this,a,d,e)}catch(f){throw this._rethrowWithContext(f),f;}};a.prototype.detach=function(){this._resetDebug();try{b.prototype.detach.call(this)}catch(c){throw this._rethrowWithContext(c),c;}};a.prototype.destroyLocal=
  function(){this._resetDebug();try{b.prototype.destroyLocal.call(this)}catch(c){throw this._rethrowWithContext(c),c;}};a.prototype.detectChanges=function(a){this._resetDebug();try{b.prototype.detectChanges.call(this,a)}catch(d){throw this._rethrowWithContext(d),d;}};a.prototype._resetDebug=function(){this._currentDebugContext=null};a.prototype.debug=function(a,b,e){return this._currentDebugContext=new Pl(this,a,b,e)};a.prototype._rethrowWithContext=function(a){if(!(a instanceof Bl)&&(a instanceof Al||
  (this.cdMode=Oa.Errored),l(this._currentDebugContext)))throw new Bl(a,this._currentDebugContext);};a.prototype.eventHandler=function(a){var c=this,e=b.prototype.eventHandler.call(this,a);return function(a){c._resetDebug();try{return e(a)}catch(g){throw c._rethrowWithContext(g),g;}}};return a}(Ql),Qt=function(){return function(b,a){this.output=b;this.handler=a}}(),St=Oa,Tt=Qb,Ut=Ig,Vt=gb,Wt=Xe,Sf=function(){function b(){}Object.defineProperty(b.prototype,"pathname",{get:function(){return null},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0});return b}(),Qh=function(){return function(){}}(),Rl=new La("appBaseHref"),Tc;Tc="undefined"===typeof window?"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;var je=Tc.Date;Tc.assert=function(b){};var Sl=function(){function b(){}b.fromCharCode=
  function(a){return String.fromCharCode(a)};b.charCodeAt=function(a,c){return a.charCodeAt(c)};b.split=function(a,c){return a.split(c)};b.equals=function(a,c){return a===c};b.stripLeft=function(a,c){if(a&&a.length){for(var b=0,e=0;e<a.length&&a[e]==c;e++)b++;a=a.substring(b)}return a};b.stripRight=function(a,c){if(a&&a.length){for(var b=a.length,e=a.length-1;0<=e&&a[e]==c;e--)b--;a=a.substring(0,b)}return a};b.replace=function(a,c,b){return a.replace(c,b)};b.replaceAll=function(a,c,b){return a.replace(c,
  b)};b.slice=function(a,c,b){void 0===c&&(c=0);void 0===b&&(b=null);return a.slice(c,null===b?void 0:b)};b.replaceAllMapped=function(a,c,b){return a.replace(c,function(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];a.splice(-2,2);return b(a)})};b.contains=function(a,c){return-1!=a.indexOf(c)};b.compare=function(a,c){return a<c?-1:a>c?1:0};return b}(),yd=function(){function b(){}b.toFixed=function(a,c){return a.toFixed(c)};b.equal=function(a,c){return a===c};b.parseIntAutoRadix=function(a){var c=
  parseInt(a);if(isNaN(c))throw Error("Invalid integer literal when parsing "+a);return c};b.parseInt=function(a,c){if(10==c){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,c)}else if(16==c){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,c)}else{var b=parseInt(a,c);if(!isNaN(b))return b}throw Error("Invalid integer literal when parsing "+a+" in base "+c);};Object.defineProperty(b,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0});b.isNumeric=function(a){return!isNaN(a-parseFloat(a))};
  b.isNaN=function(a){return isNaN(a)};b.isInteger=function(a){return Number.isInteger(a)};return b}(),Xt=function(){function b(){}b.parse=function(a){return Tc.JSON.parse(a)};b.stringify=function(a){return Tc.JSON.stringify(a,null,2)};return b}(),Rh=function(){function b(){}b.create=function(a,c,b,e,f,g,h){void 0===c&&(c=1);void 0===b&&(b=1);void 0===e&&(e=0);void 0===f&&(f=0);void 0===g&&(g=0);void 0===h&&(h=0);return new je(a,c-1,b,e,f,g,h)};b.fromISOString=function(a){return new je(a)};b.fromMillis=
  function(a){return new je(a)};b.toMillis=function(a){return a.getTime()};b.now=function(){return new je};b.toJson=function(a){return a.toJSON()};return b}(),Tf=null,md=function(){function b(a){var c=this;this._subject=new Rc;this._platformStrategy=a;a=this._platformStrategy.getBaseHref();this._baseHref=b.stripTrailingSlash(pj(a));this._platformStrategy.onPopState(function(a){c._subject.emit({url:c.path(!0),pop:!0,type:a.type})})}b.prototype.path=function(a){void 0===a&&(a=!1);return this.normalize(this._platformStrategy.path(a))};
  b.prototype.isCurrentPathEqualTo=function(a,c){void 0===c&&(c="");return this.path()==this.normalize(a+b.normalizeQueryParams(c))};b.prototype.normalize=function(a){return b.stripTrailingSlash(kp(this._baseHref,pj(a)))};b.prototype.prepareExternalUrl=function(a){0<a.length&&!a.startsWith("/")&&(a="/"+a);return this._platformStrategy.prepareExternalUrl(a)};b.prototype.go=function(a,c){void 0===c&&(c="");this._platformStrategy.pushState(null,"",a,c)};b.prototype.replaceState=function(a,c){void 0===
  c&&(c="");this._platformStrategy.replaceState(null,"",a,c)};b.prototype.forward=function(){this._platformStrategy.forward()};b.prototype.back=function(){this._platformStrategy.back()};b.prototype.subscribe=function(a,c,b){void 0===c&&(c=null);void 0===b&&(b=null);return this._subject.subscribe({next:a,error:c,complete:b})};b.normalizeQueryParams=function(a){return 0<a.length&&"?"!=a.substring(0,1)?"?"+a:a};b.joinWithSlash=function(a,c){if(0==a.length)return c;if(0==c.length)return a;var b=0;a.endsWith("/")&&
  b++;c.startsWith("/")&&b++;return 2==b?a+c.substring(1):1==b?a+c:a+"/"+c};b.stripTrailingSlash=function(a){/\/$/g.test(a)&&(a=a.substring(0,a.length-1));return a};b.decorators=[{type:V}];b.ctorParameters=[{type:Qh}];return b}(),Yt=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)};(function(b){function a(a,d){b.call(this);this._platformLocation=a;this._baseHref="";ib(d)&&(this._baseHref=
  d)}Yt(a,b);a.prototype.onPopState=function(a){this._platformLocation.onPopState(a);this._platformLocation.onHashChange(a)};a.prototype.getBaseHref=function(){return this._baseHref};a.prototype.path=function(a){a=this._platformLocation.hash;ib(a)||(a="#");return 0<a.length?a.substring(1):a};a.prototype.prepareExternalUrl=function(a){a=md.joinWithSlash(this._baseHref,a);return 0<a.length?"#"+a:a};a.prototype.pushState=function(a,b,e,f){e=this.prepareExternalUrl(e+md.normalizeQueryParams(f));0==e.length&&
  (e=this._platformLocation.pathname);this._platformLocation.pushState(a,b,e)};a.prototype.replaceState=function(a,b,e,f){e=this.prepareExternalUrl(e+md.normalizeQueryParams(f));0==e.length&&(e=this._platformLocation.pathname);this._platformLocation.replaceState(a,b,e)};a.prototype.forward=function(){this._platformLocation.forward()};a.prototype.back=function(){this._platformLocation.back()};a.decorators=[{type:V}];a.ctorParameters=[{type:Sf},{type:void 0,decorators:[{type:W},{type:U,args:[Rl]}]}];
  return a})(Qh);var Zt=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)};(function(b){function a(a,d){b.call(this);this._platformLocation=a;zb(d)&&(d=this._platformLocation.getBaseHrefFromDOM());if(zb(d))throw Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=d}Zt(a,b);a.prototype.onPopState=function(a){this._platformLocation.onPopState(a);
  this._platformLocation.onHashChange(a)};a.prototype.getBaseHref=function(){return this._baseHref};a.prototype.prepareExternalUrl=function(a){return md.joinWithSlash(this._baseHref,a)};a.prototype.path=function(a){void 0===a&&(a=!1);var c=this._platformLocation.pathname+md.normalizeQueryParams(this._platformLocation.search),b=this._platformLocation.hash;return b&&a?""+c+b:c};a.prototype.pushState=function(a,b,e,f){e=this.prepareExternalUrl(e+md.normalizeQueryParams(f));this._platformLocation.pushState(a,
  b,e)};a.prototype.replaceState=function(a,b,e,f){e=this.prepareExternalUrl(e+md.normalizeQueryParams(f));this._platformLocation.replaceState(a,b,e)};a.prototype.forward=function(){this._platformLocation.forward()};a.prototype.back=function(){this._platformLocation.back()};a.decorators=[{type:V}];a.ctorParameters=[{type:Sf},{type:void 0,decorators:[{type:W},{type:U,args:[Rl]}]}];return a})(Qh);var $t=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=
  null===a?Object.create(a):(c.prototype=a.prototype,new c)},Uf=function(){return function(){}}(),au=function(b){function a(a){b.call(this);this._locale=a}$t(a,b);a.prototype.getPluralCategory=function(a){switch(lp(this._locale,a)){case x.Zero:return"zero";case x.One:return"one";case x.Two:return"two";case x.Few:return"few";case x.Many:return"many";default:return"other"}};a.decorators=[{type:V}];a.ctorParameters=[{type:void 0,decorators:[{type:U,args:[ld]}]}];return a}(Uf),x;(function(b){b[b.Zero=0]=
  "Zero";b[b.One=1]="One";b[b.Two=2]="Two";b[b.Few=3]="Few";b[b.Many=4]="Many";b[b.Other=5]="Other"})(x||(x={}));var cc=Tc.Map,Sh=Tc.Set;(function(){try{if(1===(new cc([[1,2]])).size)return function(b){return new cc(b)}}catch(b){}return function(b){for(var a=new cc,c=0;c<b.length;c++){var d=b[c];a.set(d[0],d[1])}return a}})();(function(){try{return new cc(new cc),function(b){return new cc(b)}}catch(b){}return function(b){var a=new cc;b.forEach(function(c,b){a.set(b,c)});return a}})();(function(){return(new cc).keys().next?
  function(b){for(var a=b.keys(),c;!(c=a.next()).done;)b.set(c.value,null)}:function(b){b.forEach(function(a,c){b.set(c,null)})}})();(function(){try{if((new cc).values().next)return function(b,a){return a?Array.from(b.values()):Array.from(b.keys())}}catch(b){}return function(b,a){var c=Vf.createFixedSize(b.size),d=0;b.forEach(function(b,f){c[d]=a?b:f;d++});return c}})();var Tl=function(){function b(){}b.create=function(){return{}};b.contains=function(a,c){return a.hasOwnProperty(c)};b.get=function(a,
  c){return a.hasOwnProperty(c)?a[c]:void 0};b.set=function(a,c,b){a[c]=b};b.keys=function(a){return Object.keys(a)};b.values=function(a){return Object.keys(a).map(function(c){return a[c]})};b.isEmpty=function(a){for(var c in a)return!1;return!0};b.delete=function(a,c){delete a[c]};b.forEach=function(a,c){for(var b=0,e=Object.keys(a);b<e.length;b++){var f=e[b];c(a[f],f)}};b.merge=function(a,c){for(var b={},e=0,f=Object.keys(a);e<f.length;e++){var g=f[e];b[g]=a[g]}a=0;for(e=Object.keys(c);a<e.length;a++)g=
  e[a],b[g]=c[g];return b};b.equals=function(a,c){var b=Object.keys(a),e=Object.keys(c);if(b.length!=e.length)return!1;for(e=0;e<b.length;e++){var f=b[e];if(a[f]!==c[f])return!1}return!0};return b}(),Vf=function(){function b(){}b.createFixedSize=function(a){return Array(a)};b.createGrowableSize=function(a){return Array(a)};b.clone=function(a){return a.slice(0)};b.forEachWithIndex=function(a,c){for(var b=0;b<a.length;b++)c(a[b],b)};b.first=function(a){return a?a[0]:null};b.last=function(a){return a&&
  0!=a.length?a[a.length-1]:null};b.indexOf=function(a,c,b){void 0===b&&(b=0);return a.indexOf(c,b)};b.contains=function(a,c){return-1!==a.indexOf(c)};b.reversed=function(a){return b.clone(a).reverse()};b.concat=function(a,c){return a.concat(c)};b.insert=function(a,c,b){a.splice(c,0,b)};b.removeAt=function(a,c){var b=a[c];a.splice(c,1);return b};b.removeAll=function(a,c){for(var b=0;b<c.length;++b){var e=a.indexOf(c[b]);a.splice(e,1)}};b.remove=function(a,c){c=a.indexOf(c);return-1<c?(a.splice(c,1),
  !0):!1};b.clear=function(a){a.length=0};b.isEmpty=function(a){return 0==a.length};b.fill=function(a,c,b,e){void 0===b&&(b=0);void 0===e&&(e=null);a.fill(c,b,null===e?a.length:e)};b.equals=function(a,c){if(a.length!=c.length)return!1;for(var b=0;b<a.length;++b)if(a[b]!==c[b])return!1;return!0};b.slice=function(a,c,b){void 0===c&&(c=0);void 0===b&&(b=null);return a.slice(c,null===b?void 0:b)};b.splice=function(a,c,b){return a.splice(c,b)};b.sort=function(a,c){ib(c)?a.sort(c):a.sort()};b.toString=function(a){return a.toString()};
  b.toJSON=function(a){return JSON.stringify(a)};b.maximum=function(a,c){if(0==a.length)return null;for(var b=null,e=-Infinity,f=0;f<a.length;f++){var g=a[f];if(!zb(g)){var h=c(g);h>e&&(b=g,e=h)}}return b};b.flatten=function(a){var c=[];rj(a,c);return c};b.addAll=function(a,c){for(var b=0;b<c.length;b++)a.push(c[b])};return b}();(function(){return 3===(new Sh([1,2,3])).size?function(b){return new Sh(b)}:function(b){var a=new Sh(b);if(a.size!==b.length)for(var c=0;c<b.length;c++)a.add(b[c]);return a}})();
  var bu=function(){function b(a,c,b,e){this._iterableDiffers=a;this._keyValueDiffers=c;this._ngEl=b;this._renderer=e;this._initialClasses=[]}Object.defineProperty(b.prototype,"klass",{set:function(a){this._applyInitialClasses(!0);this._initialClasses="string"===typeof a?a.split(/\s+/):[];this._applyInitialClasses(!1);this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"ngClass",{set:function(a){this._cleanupClasses(this._rawClass);this._keyValueDiffer=
  this._iterableDiffer=null;if(this._rawClass="string"===typeof a?a.split(/\s+/):a){a=this._rawClass;if(null===a||"function"!==typeof a&&"object"!==typeof a)a=!1;else{var c;if(!(c=Array.isArray(a))&&(c=!(a instanceof cc))){if(zb(Tf))if($jscomp.initSymbol(),$jscomp.initSymbolIterator(),ib(Tc.Symbol)&&ib(Symbol.iterator))$jscomp.initSymbol(),$jscomp.initSymbolIterator(),Tf=Symbol.iterator;else{c=Object.getOwnPropertyNames(Map.prototype);for(var b=0;b<c.length;++b){var e=c[b];"entries"!==e&&"size"!==e&&
  Map.prototype[e]===Map.prototype.entries&&(Tf=e)}}c=Tf in a}a=c}a?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null)}},enumerable:!0,configurable:!0});b.prototype.ngDoCheck=function(){if(this._iterableDiffer){var a=this._iterableDiffer.diff(this._rawClass);a&&this._applyIterableChanges(a)}else this._keyValueDiffer&&(a=this._keyValueDiffer.diff(this._rawClass))&&this._applyKeyValueChanges(a)};b.prototype._cleanupClasses=
  function(a){this._applyClasses(a,!0);this._applyInitialClasses(!1)};b.prototype._applyKeyValueChanges=function(a){var c=this;a.forEachAddedItem(function(a){return c._toggleClass(a.key,a.currentValue)});a.forEachChangedItem(function(a){return c._toggleClass(a.key,a.currentValue)});a.forEachRemovedItem(function(a){a.previousValue&&c._toggleClass(a.key,!1)})};b.prototype._applyIterableChanges=function(a){var c=this;a.forEachAddedItem(function(a){return c._toggleClass(a.item,!0)});a.forEachRemovedItem(function(a){return c._toggleClass(a.item,
  !1)})};b.prototype._applyInitialClasses=function(a){var c=this;this._initialClasses.forEach(function(b){return c._toggleClass(b,!a)})};b.prototype._applyClasses=function(a,c){var b=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(a){return b._toggleClass(a,!c)}):Object.keys(a).forEach(function(d){ib(a[d])&&b._toggleClass(d,!c)}))};b.prototype._toggleClass=function(a,b){var c=this;(a=a.trim())&&a.split(/\s+/g).forEach(function(a){c._renderer.setElementClass(c._ngEl.nativeElement,a,b)})};
  b.decorators=[{type:da,args:[{selector:"[ngClass]"}]}];b.ctorParameters=[{type:If},{type:Jf},{type:xb},{type:Rb}];b.propDecorators={klass:[{type:Y,args:["class"]}],ngClass:[{type:Y}]};return b}(),cu=function(){function b(a,b,d){this.$implicit=a;this.index=b;this.count=d}Object.defineProperty(b.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0});
  Object.defineProperty(b.prototype,"even",{get:function(){return 0===this.index%2},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0});return b}(),du=function(){function b(a,b,d,e){this._viewContainer=a;this._template=b;this._differs=d;this._cdr=e;this._differ=null}Object.defineProperty(b.prototype,"ngForTemplate",{set:function(a){a&&(this._template=a)},enumerable:!0,configurable:!0});b.prototype.ngOnChanges=function(a){if("ngForOf"in
  a&&(a=a.ngForOf.currentValue,!this._differ&&a))try{this._differ=this._differs.find(a).create(this._cdr,this.ngForTrackBy)}catch(e){var b=Error,d;d=a.name?a.name:typeof a;throw new b("Cannot find a differ supporting object '"+a+"' of type '"+d+"'. NgFor only supports binding to Iterables such as Arrays.");}};b.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this.ngForOf);a&&this._applyChanges(a)}};b.prototype._applyChanges=function(a){var b=this,d=[];a.forEachOperation(function(a,
  c,g){null==a.previousIndex?(c=b._viewContainer.createEmbeddedView(b._template,new cu(null,null,null),g),a=new Ul(a,c),d.push(a)):null==g?b._viewContainer.remove(c):(c=b._viewContainer.get(c),b._viewContainer.move(c,g),a=new Ul(a,c),d.push(a))});for(var e=0;e<d.length;e++)this._perViewChange(d[e].view,d[e].record);for(var e=0,f=this._viewContainer.length;e<f;e++){var g=this._viewContainer.get(e);g.context.index=e;g.context.count=f}a.forEachIdentityChange(function(a){b._viewContainer.get(a.currentIndex).context.$implicit=
  a.item})};b.prototype._perViewChange=function(a,b){a.context.$implicit=b.item};b.decorators=[{type:da,args:[{selector:"[ngFor][ngForOf]"}]}];b.ctorParameters=[{type:id},{type:kd},{type:If},{type:Fh}];b.propDecorators={ngForOf:[{type:Y}],ngForTrackBy:[{type:Y}],ngForTemplate:[{type:Y}]};return b}(),Ul=function(){return function(b,a){this.record=b;this.view=a}}(),eu=function(){function b(a,b){this._viewContainer=a;this._template=b;this._hasView=!1}Object.defineProperty(b.prototype,"ngIf",{set:function(a){a&&
  !this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!a&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0});b.decorators=[{type:da,args:[{selector:"[ngIf]"}]}];b.ctorParameters=[{type:id},{type:kd}];b.propDecorators={ngIf:[{type:Y}]};return b}(),ze={},Th=function(){function b(a,b){this._viewContainerRef=a;this._templateRef=b}b.prototype.create=function(){this._viewContainerRef.createEmbeddedView(this._templateRef)};b.prototype.destroy=
  function(){this._viewContainerRef.clear()};return b}(),Uh=function(){function b(){this._useDefault=!1;this._valueViews=new Map;this._activeViews=[]}Object.defineProperty(b.prototype,"ngSwitch",{set:function(a){this._emptyAllActiveViews();this._useDefault=!1;var b=this._valueViews.get(a);b||(this._useDefault=!0,b=this._valueViews.get(ze)||null);this._activateViews(b);this._switchValue=a},enumerable:!0,configurable:!0});b.prototype._onCaseValueChanged=function(a,b,d){this._deregisterView(a,d);this._registerView(b,
  d);a===this._switchValue?(d.destroy(),Vf.remove(this._activeViews,d)):b===this._switchValue&&(this._useDefault&&(this._useDefault=!1,this._emptyAllActiveViews()),d.create(),this._activeViews.push(d));0!==this._activeViews.length||this._useDefault||(this._useDefault=!0,this._activateViews(this._valueViews.get(ze)))};b.prototype._emptyAllActiveViews=function(){for(var a=this._activeViews,b=0;b<a.length;b++)a[b].destroy();this._activeViews=[]};b.prototype._activateViews=function(a){if(a){for(var b=0;b<
  a.length;b++)a[b].create();this._activeViews=a}};b.prototype._registerView=function(a,b){var c=this._valueViews.get(a);c||(c=[],this._valueViews.set(a,c));c.push(b)};b.prototype._deregisterView=function(a,b){if(a!==ze){var c=this._valueViews.get(a);1==c.length?this._valueViews.delete(a):Vf.remove(c,b)}};b.decorators=[{type:da,args:[{selector:"[ngSwitch]"}]}];b.ctorParameters=[];b.propDecorators={ngSwitch:[{type:Y}]};return b}(),fu=function(){function b(a,b,d){this._value=ze;this._switch=d;this._view=
  new Th(a,b)}Object.defineProperty(b.prototype,"ngSwitchCase",{set:function(a){this._switch._onCaseValueChanged(this._value,a,this._view);this._value=a},enumerable:!0,configurable:!0});b.decorators=[{type:da,args:[{selector:"[ngSwitchCase]"}]}];b.ctorParameters=[{type:id},{type:kd},{type:Uh,decorators:[{type:yb}]}];b.propDecorators={ngSwitchCase:[{type:Y}]};return b}(),gu=function(){function b(a,b,d){d._registerView(ze,new Th(a,b))}b.decorators=[{type:da,args:[{selector:"[ngSwitchDefault]"}]}];b.ctorParameters=
  [{type:id},{type:kd},{type:Uh,decorators:[{type:yb}]}];return b}(),Vl=function(){function b(a){this._localization=a;this._caseViews={}}Object.defineProperty(b.prototype,"ngPlural",{set:function(a){this._switchValue=a;this._updateView()},enumerable:!0,configurable:!0});b.prototype.addCase=function(a,b){this._caseViews[a]=b};b.prototype._updateView=function(){this._clearViews();var a=Object.keys(this._caseViews),a=qj(this._switchValue,a,this._localization);this._activateView(this._caseViews[a])};b.prototype._clearViews=
  function(){this._activeView&&this._activeView.destroy()};b.prototype._activateView=function(a){a&&(this._activeView=a,this._activeView.create())};b.decorators=[{type:da,args:[{selector:"[ngPlural]"}]}];b.ctorParameters=[{type:Uf}];b.propDecorators={ngPlural:[{type:Y}]};return b}(),hu=function(){function b(a,b,d,e){this.value=a;e.addCase(a,new Th(d,b))}b.decorators=[{type:da,args:[{selector:"[ngPluralCase]"}]}];b.ctorParameters=[{type:void 0,decorators:[{type:jl,args:["ngPluralCase"]}]},{type:kd},
  {type:id},{type:Vl,decorators:[{type:yb}]}];return b}(),iu=function(){function b(a,b,d){this._differs=a;this._ngEl=b;this._renderer=d}Object.defineProperty(b.prototype,"ngStyle",{set:function(a){this._ngStyle=a;!this._differ&&a&&(this._differ=this._differs.find(a).create(null))},enumerable:!0,configurable:!0});b.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this._ngStyle);a&&this._applyChanges(a)}};b.prototype._applyChanges=function(a){var b=this;a.forEachRemovedItem(function(a){return b._setStyle(a.key,
  null)});a.forEachAddedItem(function(a){return b._setStyle(a.key,a.currentValue)});a.forEachChangedItem(function(a){return b._setStyle(a.key,a.currentValue)})};b.prototype._setStyle=function(a,b){a=a.split(".");var c=a[1];this._renderer.setElementStyle(this._ngEl.nativeElement,a[0],null!==b&&void 0!==b&&c?""+b+c:b)};b.decorators=[{type:da,args:[{selector:"[ngStyle]"}]}];b.ctorParameters=[{type:Jf},{type:xb},{type:Rb}];b.propDecorators={ngStyle:[{type:Y}]};return b}(),ju=function(){function b(a){this._viewContainerRef=
  a}Object.defineProperty(b.prototype,"ngOutletContext",{set:function(a){this._context=a},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"ngTemplateOutlet",{set:function(a){this._templateRef=a},enumerable:!0,configurable:!0});b.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef));this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))};b.decorators=[{type:da,
  args:[{selector:"[ngTemplateOutlet]"}]}];b.ctorParameters=[{type:id}];b.propDecorators={ngOutletContext:[{type:Y}],ngTemplateOutlet:[{type:Y}]};return b}(),Wl=[bu,du,eu,ju,iu,Uh,fu,gu,Vl,hu],Xl=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Yl=function(b){function a(a){this._nativeError=b.call(this,a)}Xl(a,b);Object.defineProperty(a.prototype,"message",{get:function(){return this._nativeError.message},
  set:function(a){this._nativeError.message=a},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(a){this._nativeError.stack=a},enumerable:!0,configurable:!0});a.prototype.toString=function(){return this._nativeError.toString()};return a}(Error);(function(b){function a(a,d){b.call(this,a+" caused by: "+
  (d instanceof Error?d.message:d));this.originalError=d}Xl(a,b);Object.defineProperty(a.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0});return a})(Yl);var ku=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},zc=function(b){function a(a,d){b.call(this,"Invalid argument '"+d+"' for pipe '"+
  jp(a)+"'")}ku(a,b);return a}(Yl),lu=function(){function b(){}b.prototype.createSubscription=function(a,b){return a.subscribe({next:b,error:function(a){throw a;}})};b.prototype.dispose=function(a){a.unsubscribe()};b.prototype.onDestroy=function(a){a.unsubscribe()};return b}(),mu=new (function(){function b(){}b.prototype.createSubscription=function(a,b){return a.then(b,function(a){throw a;})};b.prototype.dispose=function(a){};b.prototype.onDestroy=function(a){};return b}()),nu=new lu,ou=function(){function b(a){this._strategy=
  this._obj=this._subscription=this._latestReturnedValue=this._latestValue=null;this._ref=a}b.prototype.ngOnDestroy=function(){ib(this._subscription)&&this._dispose()};b.prototype.transform=function(a){if(zb(this._obj))return ib(a)&&this._subscribe(a),this._latestReturnedValue=this._latestValue;if(a!==this._obj)return this._dispose(),this.transform(a);if(this._latestValue===this._latestReturnedValue)return this._latestReturnedValue;this._latestReturnedValue=this._latestValue;return wl.wrap(this._latestValue)};
  b.prototype._subscribe=function(a){var b=this;this._obj=a;this._strategy=this._selectStrategy(a);this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)})};b.prototype._selectStrategy=function(a){if(ib(a)&&"function"===typeof a.then)return mu;if(a.subscribe)return nu;throw new zc(b,a);};b.prototype._dispose=function(){this._strategy.dispose(this._subscription);this._obj=this._subscription=this._latestReturnedValue=this._latestValue=null};b.prototype._updateLatestValue=
  function(a,b){a===this._obj&&(this._latestValue=b,this._ref.markForCheck())};b.decorators=[{type:Fb,args:[{name:"async",pure:!1}]}];b.ctorParameters=[{type:Fh}];return b}(),Ac;(function(b){b[b.Decimal=0]="Decimal";b[b.Percent=1]="Percent";b[b.Currency=2]="Currency"})(Ac||(Ac={}));var qp=function(){function b(){}b.format=function(a,b,d,e){var c=void 0===e?{}:e;e=c.currency;var g=c.currencyAsSymbol,g=void 0===g?!1:g,c={minimumIntegerDigits:c.minimumIntegerDigits,minimumFractionDigits:c.minimumFractionDigits,
  maximumFractionDigits:c.maximumFractionDigits,style:Ac[d].toLowerCase()};d==Ac.Currency&&(c.currency=e,c.currencyDisplay=g?"symbol":"code");return(new Intl.NumberFormat(b,c)).format(a)};return b}(),vj=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,uj={yMMMdjms:X(yc([S("year",1),Xa("month",3),S("day",1),S("hour",1),S("minute",1),S("second",1)])),yMdjm:X(yc([S("year",1),S("month",1),S("day",1),S("hour",1),S("minute",1)])),yMMMMEEEEd:X(yc([S("year",
  1),Xa("month",4),Xa("weekday",4),S("day",1)])),yMMMMd:X(yc([S("year",1),Xa("month",4),S("day",1)])),yMMMd:X(yc([S("year",1),Xa("month",3),S("day",1)])),yMd:X(yc([S("year",1),S("month",1),S("day",1)])),jms:X(yc([S("hour",1),S("second",1),S("minute",1)])),jm:X(yc([S("hour",1),S("minute",1)]))},op={yyyy:X(S("year",4)),yy:X(S("year",2)),y:X(S("year",1)),MMMM:X(Xa("month",4)),MMM:X(Xa("month",3)),MM:X(S("month",2)),M:X(S("month",1)),LLLL:X(Xa("month",4)),dd:X(S("day",2)),d:X(S("day",1)),HH:bf(cf(X(ke(S("hour",
  2),!1)))),H:cf(X(ke(S("hour",1),!1))),hh:bf(cf(X(ke(S("hour",2),!0)))),h:cf(X(ke(S("hour",1),!0))),jj:X(S("hour",2)),j:X(S("hour",1)),mm:bf(X(S("minute",2))),m:X(S("minute",1)),ss:bf(X(S("second",2))),s:X(S("second",1)),sss:X(S("second",3)),EEEE:X(Xa("weekday",4)),EEE:X(Xa("weekday",3)),EE:X(Xa("weekday",2)),E:X(Xa("weekday",1)),a:function(b){return function(a,c){return b(a,c).split(" ")[1]}}(X(ke(S("hour",1),!0))),Z:tj("short"),z:tj("long"),ww:X({}),w:X({}),G:X(Xa("era",1)),GG:X(Xa("era",2)),GGG:X(Xa("era",
  3)),GGGG:X(Xa("era",4))},Mg=new Map,np=[].slice,pu=function(){function b(){}b.format=function(a,b,d){return mp(d,a,b)};return b}(),qu=function(){function b(a){this._locale=a}b.prototype.transform=function(a,c){void 0===c&&(c="mediumDate");if(zb(a))return null;if(!this.supports(a))throw new zc(b,a);yd.isNumeric(a)?a=Rh.fromMillis(parseFloat(a)):$c(a)&&(a=Rh.fromISOString(a));Tl.contains(b._ALIASES,c)&&(c=Tl.get(b._ALIASES,c));return pu.format(a,this._locale,c)};b.prototype.supports=function(a){return oj(a)||
  yd.isNumeric(a)||$c(a)&&oj(Rh.fromISOString(a))?!0:!1};b._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"};b.decorators=[{type:Fb,args:[{name:"date",pure:!0}]}];b.ctorParameters=[{type:void 0,decorators:[{type:U,args:[ld]}]}];return b}(),ru=/#/g,su=function(){function b(a){this._localization=a}b.prototype.transform=function(a,c){if(zb(a))return"";if("object"!==typeof c||null===c)throw new zc(b,c);
  var d=qj(a,Object.keys(c),this._localization);return Sl.replaceAll(c[d],ru,a.toString())};b.decorators=[{type:Fb,args:[{name:"i18nPlural",pure:!0}]}];b.ctorParameters=[{type:Uf}];return b}(),tu=function(){function b(){}b.prototype.transform=function(a,c){if(zb(a))return"";if("object"!==typeof c||null===c)throw new zc(b,c);return c.hasOwnProperty(a)?c[a]:""};b.decorators=[{type:Fb,args:[{name:"i18nSelect",pure:!0}]}];b.ctorParameters=[];return b}(),uu=function(){function b(){}b.prototype.transform=
  function(a){return Xt.stringify(a)};b.decorators=[{type:Fb,args:[{name:"json",pure:!1}]}];b.ctorParameters=[];return b}(),vu=function(){function b(){}b.prototype.transform=function(a){if(zb(a))return a;if(!$c(a))throw new zc(b,a);return a.toLowerCase()};b.decorators=[{type:Fb,args:[{name:"lowercase"}]}];b.ctorParameters=[];return b}(),pp=/^(\d+)?\.((\d+)(\-(\d+))?)?$/,wu=function(){function b(a){this._locale=a}b.prototype.transform=function(a,c){void 0===c&&(c=null);return Ng(b,this._locale,a,Ac.Decimal,
  c)};b.decorators=[{type:Fb,args:[{name:"number"}]}];b.ctorParameters=[{type:void 0,decorators:[{type:U,args:[ld]}]}];return b}(),xu=function(){function b(a){this._locale=a}b.prototype.transform=function(a,c){void 0===c&&(c=null);return Ng(b,this._locale,a,Ac.Percent,c)};b.decorators=[{type:Fb,args:[{name:"percent"}]}];b.ctorParameters=[{type:void 0,decorators:[{type:U,args:[ld]}]}];return b}(),yu=function(){function b(a){this._locale=a}b.prototype.transform=function(a,c,d,e){void 0===c&&(c="USD");
  void 0===d&&(d=!1);void 0===e&&(e=null);return Ng(b,this._locale,a,Ac.Currency,e,c,d)};b.decorators=[{type:Fb,args:[{name:"currency"}]}];b.ctorParameters=[{type:void 0,decorators:[{type:U,args:[ld]}]}];return b}(),zu=function(){function b(){}b.prototype.transform=function(a,c,d){void 0===d&&(d=null);if(zb(a))return a;if(!this.supports(a))throw new zc(b,a);return $c(a)?Sl.slice(a,c,d):Vf.slice(a,c,d)};b.prototype.supports=function(a){return $c(a)||Array.isArray(a)};b.decorators=[{type:Fb,args:[{name:"slice",
  pure:!1}]}];b.ctorParameters=[];return b}(),Au=function(){function b(){}b.prototype.transform=function(a){if(zb(a))return a;if(!$c(a))throw new zc(b,a);return a.toUpperCase()};b.decorators=[{type:Fb,args:[{name:"uppercase"}]}];b.ctorParameters=[];return b}(),Zl=[ou,Au,vu,uu,zu,wu,xu,yu,qu,su,tu],Bu=function(){function b(){}b.decorators=[{type:Mc,args:[{declarations:[Wl,Zl],exports:[Wl,Zl],providers:[{provide:Uf,useClass:au}]}]}];b.ctorParameters=[];return b}(),Cu=function(){function b(){}b.prototype.animate=
  function(a,b,d,e,f,g){return new Pf};return b}(),Pg=function(){function b(){}b.NOOP=new Cu;return b}(),mb="undefined"===typeof window?"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window,Wf=mb.Date;mb.assert=function(b){};var qb=function(){function b(){}b.fromCharCode=function(a){return String.fromCharCode(a)};b.charCodeAt=function(a,b){return a.charCodeAt(b)};b.split=function(a,b){return a.split(b)};b.equals=function(a,b){return a===b};b.stripLeft=function(a,
  b){if(a&&a.length){for(var c=0,e=0;e<a.length&&a[e]==b;e++)c++;a=a.substring(c)}return a};b.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,e=a.length-1;0<=e&&a[e]==b;e--)c--;a=a.substring(0,c)}return a};b.replace=function(a,b,d){return a.replace(b,d)};b.replaceAll=function(a,b,d){return a.replace(b,d)};b.slice=function(a,b,d){void 0===b&&(b=0);void 0===d&&(d=null);return a.slice(b,null===d?void 0:d)};b.replaceAllMapped=function(a,b,d){return a.replace(b,function(){for(var a=[],b=0;b<
  arguments.length;b++)a[b-0]=arguments[b];a.splice(-2,2);return d(a)})};b.contains=function(a,b){return-1!=a.indexOf(b)};b.compare=function(a,b){return a<b?-1:a>b?1:0};return b}();(function(){function b(){}b.toFixed=function(a,b){return a.toFixed(b)};b.equal=function(a,b){return a===b};b.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Invalid integer literal when parsing "+a);return b};b.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==
  b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw Error("Invalid integer literal when parsing "+a+" in base "+b);};Object.defineProperty(b,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0});b.isNumeric=function(a){return!isNaN(a-parseFloat(a))};b.isNaN=function(a){return isNaN(a)};b.isInteger=function(a){return Number.isInteger(a)};return b})();var $l=function(){function b(){}b.parse=function(a){return mb.JSON.parse(a)};
  b.stringify=function(a){return mb.JSON.stringify(a,null,2)};return b}(),am=function(){function b(){}b.create=function(a,b,d,e,f,g,h){void 0===b&&(b=1);void 0===d&&(d=1);void 0===e&&(e=0);void 0===f&&(f=0);void 0===g&&(g=0);void 0===h&&(h=0);return new Wf(a,b-1,d,e,f,g,h)};b.fromISOString=function(a){return new Wf(a)};b.fromMillis=function(a){return new Wf(a)};b.toMillis=function(a){return a.getTime()};b.now=function(){return new Wf};b.toJson=function(a){return a.toJSON()};return b}(),rc=mb.Map,Vh=
  mb.Set;(function(){try{if(1===(new rc([[1,2]])).size)return function(b){return new rc(b)}}catch(b){}return function(b){for(var a=new rc,c=0;c<b.length;c++){var d=b[c];a.set(d[0],d[1])}return a}})();(function(){try{return new rc(new rc),function(b){return new rc(b)}}catch(b){}return function(b){var a=new rc;b.forEach(function(b,d){a.set(d,b)});return a}})();(function(){return(new rc).keys().next?function(b){for(var a=b.keys(),c;!(c=a.next()).done;)b.set(c.value,null)}:function(b){b.forEach(function(a,
  c){b.set(c,null)})}})();(function(){try{if((new rc).values().next)return function(b,a){return a?Array.from(b.values()):Array.from(b.keys())}}catch(b){}return function(b,a){var c=Ae.createFixedSize(b.size),d=0;b.forEach(function(b,f){c[d]=a?b:f;d++});return c}})();var Ab=function(){function b(){}b.create=function(){return{}};b.contains=function(a,b){return a.hasOwnProperty(b)};b.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0};b.set=function(a,b,d){a[b]=d};b.keys=function(a){return Object.keys(a)};
  b.values=function(a){return Object.keys(a).map(function(b){return a[b]})};b.isEmpty=function(a){for(var b in a)return!1;return!0};b.delete=function(a,b){delete a[b]};b.forEach=function(a,b){for(var c=0,e=Object.keys(a);c<e.length;c++){var f=e[c];b(a[f],f)}};b.merge=function(a,b){for(var c={},e=0,f=Object.keys(a);e<f.length;e++){var g=f[e];c[g]=a[g]}a=0;for(e=Object.keys(b);a<e.length;a++)g=e[a],c[g]=b[g];return c};b.equals=function(a,b){var c=Object.keys(a),e=Object.keys(b);if(c.length!=e.length)return!1;
  for(e=0;e<c.length;e++){var f=c[e];if(a[f]!==b[f])return!1}return!0};return b}(),Ae=function(){function b(){}b.createFixedSize=function(a){return Array(a)};b.createGrowableSize=function(a){return Array(a)};b.clone=function(a){return a.slice(0)};b.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)};b.first=function(a){return a?a[0]:null};b.last=function(a){return a&&0!=a.length?a[a.length-1]:null};b.indexOf=function(a,b,d){void 0===d&&(d=0);return a.indexOf(b,d)};b.contains=function(a,
  b){return-1!==a.indexOf(b)};b.reversed=function(a){return b.clone(a).reverse()};b.concat=function(a,b){return a.concat(b)};b.insert=function(a,b,d){a.splice(b,0,d)};b.removeAt=function(a,b){var c=a[b];a.splice(b,1);return c};b.removeAll=function(a,b){for(var c=0;c<b.length;++c){var e=a.indexOf(b[c]);a.splice(e,1)}};b.remove=function(a,b){b=a.indexOf(b);return-1<b?(a.splice(b,1),!0):!1};b.clear=function(a){a.length=0};b.isEmpty=function(a){return 0==a.length};b.fill=function(a,b,d,e){void 0===d&&(d=
  0);void 0===e&&(e=null);a.fill(b,d,null===e?a.length:e)};b.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};b.slice=function(a,b,d){void 0===b&&(b=0);void 0===d&&(d=null);return a.slice(b,null===d?void 0:d)};b.splice=function(a,b,d){return a.splice(b,d)};b.sort=function(a,b){ia(b)?a.sort(b):a.sort()};b.toString=function(a){return a.toString()};b.toJSON=function(a){return JSON.stringify(a)};b.maximum=function(a,b){if(0==a.length)return null;
  for(var c=null,e=-Infinity,f=0;f<a.length;f++){var g=a[f];if(!Mb(g)){var h=b(g);h>e&&(c=g,e=h)}}return c};b.flatten=function(a){var b=[];wj(a,b);return b};b.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])};return b}();(function(){return 3===(new Vh([1,2,3])).size?function(b){return new Vh(b)}:function(b){var a=new Vh(b);if(a.size!==b.length)for(var c=0;c<b.length;c++)a.add(b[c]);return a}})();var tp=/([A-Z])/g,vp=/-([a-z])/g,G=null,Du=function(){function b(){this.resourceLoaderType=null}
  Object.defineProperty(b.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(a){this._attrToPropMap=a},enumerable:!0,configurable:!0});return b}(),Eu=function(){function b(a,b,d){this.element=a;this.keyframes=b;this.options=d;this._onDoneFns=[];this._onStartFns=[];this._started=this._initialized=this._finished=!1;this.parentPlayer=null;this._duration=d.duration}b.prototype._onFinish=function(){this._finished||(this._finished=!0,ia(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(a){return a()}),
  this._onDoneFns=[])};b.prototype.init=function(){var a=this;if(!this._initialized){this._initialized=!0;var b=this.keyframes.map(function(b){var c={};Ab.forEach(b,function(b,d){b="*"==b?G.getComputedStyle(a.element)[d]:b;c[d]=b});return c});this._player=this._triggerWebAnimation(this.element,b,this.options);this.reset();this._player.onfinish=function(){return a._onFinish()}}};b.prototype._triggerWebAnimation=function(a,b,d){return a.animate(b,d)};b.prototype.onStart=function(a){this._onStartFns.push(a)};
  b.prototype.onDone=function(a){this._onDoneFns.push(a)};b.prototype.play=function(){this.init();this.hasStarted()||(this._onStartFns.forEach(function(a){return a()}),this._onStartFns=[],this._started=!0);this._player.play()};b.prototype.pause=function(){this.init();this._player.pause()};b.prototype.finish=function(){this.init();this._onFinish();this._player.finish()};b.prototype.reset=function(){this._player.cancel()};b.prototype.restart=function(){this.reset();this.play()};b.prototype.hasStarted=
  function(){return this._started};b.prototype.destroy=function(){this.reset();this._onFinish()};Object.defineProperty(b.prototype,"totalTime",{get:function(){return this._duration},enumerable:!0,configurable:!0});b.prototype.setPosition=function(a){this._player.currentTime=a*this.totalTime};b.prototype.getPosition=function(){return this._player.currentTime/this.totalTime};return b}(),Op=function(){function b(){}b.prototype.animate=function(a,b,d,e,f,g){var c=[],m={};ia(b)&&0<b.styles.length&&(m=xj(a,
  b,{}),m.offset=0,c.push(m));d.forEach(function(b){var d=xj(a,b.styles,m);d.offset=b.offset;c.push(d)});1==c.length&&(b=c[0],b.offset=null,c=[b,b]);e={duration:e,delay:f,fill:"both"};g&&(e.easing=g);return new Eu(a,c,e)};return b}(),wp=48,xp=57,yp=46,Fu=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Gu=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&
  (b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Hu={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},bm={"\b":"Backspace","\t":"Tab","\u007f":"Delete","\u001b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cm={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\u0090":"NumLock"},Iu=function(b){function a(){b.apply(this,
  arguments)}Gu(a,b);a.prototype.parse=function(a){throw Error("parse not implemented");};a.makeCurrent=function(){var b=new a;Mb(G)&&(G=b)};a.prototype.hasProperty=function(a,b){return b in a};a.prototype.setProperty=function(a,b,e){a[b]=e};a.prototype.getProperty=function(a,b){return a[b]};a.prototype.invoke=function(a,b,e){a[b].apply(a,e)};a.prototype.logError=function(a){window.console.error?window.console.error(a):window.console.log(a)};a.prototype.log=function(a){window.console.log(a)};a.prototype.logGroup=
  function(a){window.console.group?(window.console.group(a),this.logError(a)):window.console.log(a)};a.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()};Object.defineProperty(a.prototype,"attrToPropMap",{get:function(){return Hu},enumerable:!0,configurable:!0});a.prototype.query=function(a){return document.querySelector(a)};a.prototype.querySelector=function(a,b){return a.querySelector(b)};a.prototype.querySelectorAll=function(a,b){return a.querySelectorAll(b)};a.prototype.on=
  function(a,b,e){a.addEventListener(b,e,!1)};a.prototype.onAndCancel=function(a,b,e){a.addEventListener(b,e,!1);return function(){a.removeEventListener(b,e,!1)}};a.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)};a.prototype.createMouseEvent=function(a){var b=document.createEvent("MouseEvent");b.initEvent(a,!0,!0);return b};a.prototype.createEvent=function(a){var b=document.createEvent("Event");b.initEvent(a,!0,!0);return b};a.prototype.preventDefault=function(a){a.preventDefault();a.returnValue=
  !1};a.prototype.isPrevented=function(a){return a.defaultPrevented||ia(a.returnValue)&&!a.returnValue};a.prototype.getInnerHTML=function(a){return a.innerHTML};a.prototype.getTemplateContent=function(a){return"content"in a&&a instanceof HTMLTemplateElement?a.content:null};a.prototype.getOuterHTML=function(a){return a.outerHTML};a.prototype.nodeName=function(a){return a.nodeName};a.prototype.nodeValue=function(a){return a.nodeValue};a.prototype.type=function(a){return a.type};a.prototype.content=function(a){return this.hasProperty(a,
  "content")?a.content:a};a.prototype.firstChild=function(a){return a.firstChild};a.prototype.nextSibling=function(a){return a.nextSibling};a.prototype.parentElement=function(a){return a.parentNode};a.prototype.childNodes=function(a){return a.childNodes};a.prototype.childNodesAsList=function(a){a=a.childNodes;for(var b=Ae.createFixedSize(a.length),c=0;c<a.length;c++)b[c]=a[c];return b};a.prototype.clearNodes=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)};a.prototype.appendChild=function(a,
  b){a.appendChild(b)};a.prototype.removeChild=function(a,b){a.removeChild(b)};a.prototype.replaceChild=function(a,b,e){a.replaceChild(b,e)};a.prototype.remove=function(a){a.parentNode&&a.parentNode.removeChild(a);return a};a.prototype.insertBefore=function(a,b){a.parentNode.insertBefore(b,a)};a.prototype.insertAllBefore=function(a,b){b.forEach(function(b){return a.parentNode.insertBefore(b,a)})};a.prototype.insertAfter=function(a,b){a.parentNode.insertBefore(b,a.nextSibling)};a.prototype.setInnerHTML=
  function(a,b){a.innerHTML=b};a.prototype.getText=function(a){return a.textContent};a.prototype.setText=function(a,b){a.textContent=b};a.prototype.getValue=function(a){return a.value};a.prototype.setValue=function(a,b){a.value=b};a.prototype.getChecked=function(a){return a.checked};a.prototype.setChecked=function(a,b){a.checked=b};a.prototype.createComment=function(a){return document.createComment(a)};a.prototype.createTemplate=function(a){var b=document.createElement("template");b.innerHTML=a;return b};
  a.prototype.createElement=function(a,b){void 0===b&&(b=document);return b.createElement(a)};a.prototype.createElementNS=function(a,b,e){void 0===e&&(e=document);return e.createElementNS(a,b)};a.prototype.createTextNode=function(a,b){void 0===b&&(b=document);return b.createTextNode(a)};a.prototype.createScriptTag=function(a,b,e){void 0===e&&(e=document);e=e.createElement("SCRIPT");e.setAttribute(a,b);return e};a.prototype.createStyleElement=function(a,b){void 0===b&&(b=document);b=b.createElement("style");
  this.appendChild(b,this.createTextNode(a));return b};a.prototype.createShadowRoot=function(a){return a.createShadowRoot()};a.prototype.getShadowRoot=function(a){return a.shadowRoot};a.prototype.getHost=function(a){return a.host};a.prototype.clone=function(a){return a.cloneNode(!0)};a.prototype.getElementsByClassName=function(a,b){return a.getElementsByClassName(b)};a.prototype.getElementsByTagName=function(a,b){return a.getElementsByTagName(b)};a.prototype.classList=function(a){return Array.prototype.slice.call(a.classList,
  0)};a.prototype.addClass=function(a,b){a.classList.add(b)};a.prototype.removeClass=function(a,b){a.classList.remove(b)};a.prototype.hasClass=function(a,b){return a.classList.contains(b)};a.prototype.setStyle=function(a,b,e){a.style[b]=e};a.prototype.removeStyle=function(a,b){a.style[b]=null};a.prototype.getStyle=function(a,b){return a.style[b]};a.prototype.hasStyle=function(a,b,e){void 0===e&&(e=null);a=this.getStyle(a,b)||"";return e?a==e:0<a.length};a.prototype.tagName=function(a){return a.tagName};
  a.prototype.attributeMap=function(a){var b=new Map;a=a.attributes;for(var c=0;c<a.length;c++){var f=a[c];b.set(f.name,f.value)}return b};a.prototype.hasAttribute=function(a,b){return a.hasAttribute(b)};a.prototype.hasAttributeNS=function(a,b,e){return a.hasAttributeNS(b,e)};a.prototype.getAttribute=function(a,b){return a.getAttribute(b)};a.prototype.getAttributeNS=function(a,b,e){return a.getAttributeNS(b,e)};a.prototype.setAttribute=function(a,b,e){a.setAttribute(b,e)};a.prototype.setAttributeNS=
  function(a,b,e,f){a.setAttributeNS(b,e,f)};a.prototype.removeAttribute=function(a,b){a.removeAttribute(b)};a.prototype.removeAttributeNS=function(a,b,e){a.removeAttributeNS(b,e)};a.prototype.templateAwareRoot=function(a){return this.isTemplateElement(a)?this.content(a):a};a.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")};a.prototype.defaultDoc=function(){return document};a.prototype.getBoundingClientRect=function(a){try{return a.getBoundingClientRect()}catch(d){return{top:0,
  bottom:0,left:0,right:0,width:0,height:0}}};a.prototype.getTitle=function(){return document.title};a.prototype.setTitle=function(a){document.title=a||""};a.prototype.elementMatches=function(a,b){var c=!1;a instanceof HTMLElement&&(a.matches?c=a.matches(b):a.msMatchesSelector?c=a.msMatchesSelector(b):a.webkitMatchesSelector&&(c=a.webkitMatchesSelector(b)));return c};a.prototype.isTemplateElement=function(a){return a instanceof HTMLElement&&"TEMPLATE"==a.nodeName};a.prototype.isTextNode=function(a){return a.nodeType===
  Node.TEXT_NODE};a.prototype.isCommentNode=function(a){return a.nodeType===Node.COMMENT_NODE};a.prototype.isElementNode=function(a){return a.nodeType===Node.ELEMENT_NODE};a.prototype.hasShadowRoot=function(a){return ia(a.shadowRoot)&&a instanceof HTMLElement};a.prototype.isShadowRoot=function(a){return a instanceof DocumentFragment};a.prototype.importIntoDoc=function(a){var b=a;this.isTemplateElement(a)&&(b=this.content(a));return document.importNode(b,!0)};a.prototype.adoptNode=function(a){return document.adoptNode(a)};
  a.prototype.getHref=function(a){return a.href};a.prototype.getEventKey=function(a){var b=a.key;if(Mb(b)){b=a.keyIdentifier;if(Mb(b))return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),3===a.location&&cm.hasOwnProperty(b)&&(b=cm[b]))}bm.hasOwnProperty(b)&&(b=bm[b]);return b};a.prototype.getGlobalEventTarget=function(a){if("window"==a)return window;if("document"==a)return document;if("body"==a)return document.body};a.prototype.getHistory=function(){return window.history};
  a.prototype.getLocation=function(){return window.location};a.prototype.getBaseHref=function(){var a;a:{if(Mb(Be)&&(Be=document.querySelector("base"),Mb(Be))){a=null;break a}a=Be.getAttribute("href")}if(Mb(a))return null;Mb(Xd)&&(Xd=document.createElement("a"));Xd.setAttribute("href",a);return"/"===Xd.pathname.charAt(0)?Xd.pathname:"/"+Xd.pathname};a.prototype.resetBaseElement=function(){Be=null};a.prototype.getUserAgent=function(){return window.navigator.userAgent};a.prototype.setData=function(a,
  b,e){this.setAttribute(a,"data-"+b,e)};a.prototype.getData=function(a,b){return this.getAttribute(a,"data-"+b)};a.prototype.getComputedStyle=function(a){return getComputedStyle(a)};a.prototype.setGlobalVar=function(a,b){a=a.split(".");for(var c=mb;1<a.length;)var d=a.shift(),c=c.hasOwnProperty(d)&&ia(c[d])?c[d]:c[d]={};if(void 0===c||null===c)c={};c[a.shift()]=b};a.prototype.supportsWebAnimation=function(){return"function"===typeof Element.prototype.animate};a.prototype.performanceNow=function(){return ia(window.performance)&&
  ia(window.performance.now)?window.performance.now():am.toMillis(am.now())};a.prototype.supportsCookies=function(){return!0};a.prototype.getCookie=function(a){a:{var b=document.cookie;a=encodeURIComponent(a);for(var c=0,b=b.split(";");c<b.length;c++){var f=b[c],g=f.indexOf("\x3d"),f=-1==g?[f,""]:[f.slice(0,g),f.slice(g+1)],g=f[1];if(f[0].trim()===a){a=decodeURIComponent(g);break a}}a=null}return a};a.prototype.setCookie=function(a,b){document.cookie=encodeURIComponent(a)+"\x3d"+encodeURIComponent(b)};
  return a}(function(b){function a(){var a=this;b.call(this);this._transitionEnd=this._animationPrefix=null;try{var d=this.createElement("div",this.defaultDoc());if(ia(this.getStyle(d,"animationName")))this._animationPrefix="";else for(var e=["Webkit","Moz","O","ms"],f=0;f<e.length;f++)if(ia(this.getStyle(d,e[f]+"AnimationName"))){this._animationPrefix="-"+e[f].toLowerCase()+"-";break}Ab.forEach({WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",
  transition:"transitionend"},function(b,c){ia(a.getStyle(d,c))&&(a._transitionEnd=b)})}catch(g){this._transitionEnd=this._animationPrefix=null}}Fu(a,b);a.prototype.getDistributedNodes=function(a){return a.getDistributedNodes()};a.prototype.resolveAndSetHref=function(a,b,e){a.href=null==e?b:b+"/../"+e};a.prototype.supportsDOMEvents=function(){return!0};a.prototype.supportsNativeShadowDOM=function(){return"function"===typeof this.defaultDoc().body.createShadowRoot};a.prototype.getAnimationPrefix=function(){return ia(this._animationPrefix)?
  this._animationPrefix:""};a.prototype.getTransitionEnd=function(){return ia(this._transitionEnd)?this._transitionEnd:""};a.prototype.supportsAnimation=function(){return ia(this._animationPrefix)&&ia(this._transitionEnd)};return a}(Du)),Be=null,Xd=null,Ju=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Ku=function(b){function a(){b.call(this);this._init()}Ju(a,b);a.prototype._init=function(){this._location=
  G.getLocation();this._history=G.getHistory()};Object.defineProperty(a.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0});a.prototype.getBaseHrefFromDOM=function(){return G.getBaseHref()};a.prototype.onPopState=function(a){G.getGlobalEventTarget("window").addEventListener("popstate",a,!1)};a.prototype.onHashChange=function(a){G.getGlobalEventTarget("window").addEventListener("hashchange",a,!1)};Object.defineProperty(a.prototype,"pathname",{get:function(){return this._location.pathname},
  set:function(a){this._location.pathname=a},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0});a.prototype.pushState=function(a,b,e){window.history.pushState?this._history.pushState(a,b,e):this._location.hash=e};a.prototype.replaceState=function(a,b,e){window.history.pushState?this._history.replaceState(a,
  b,e):this._location.hash=e};a.prototype.forward=function(){this._history.forward()};a.prototype.back=function(){this._history.back()};a.decorators=[{type:V}];a.ctorParameters=[];return a}(Sf),Lu=function(){function b(){}b.init=function(){Lh=new b};b.prototype.addToWindow=function(a){mb.getAngularTestability=function(b,d){void 0===d&&(d=!0);b=a.findTestabilityInTree(b,d);if(null==b)throw Error("Could not find testability for element.");return b};mb.getAllAngularTestabilities=function(){return a.getAllTestabilities()};
  mb.getAllAngularRootElements=function(){return a.getAllRootElements()};mb.frameworkStabilizers||(mb.frameworkStabilizers=Ae.createGrowableSize(0));mb.frameworkStabilizers.push(function(a){var b=mb.getAllAngularTestabilities(),c=b.length,f=!1,g=function(b){f=f||b;c--;0==c&&a(f)};b.forEach(function(a){a.whenStable(g)})})};b.prototype.findTestabilityInTree=function(a,b,d){if(null==b)return null;var c=a.getTestability(b);return ia(c)?c:d?G.isShadowRoot(b)?this.findTestabilityInTree(a,G.getHost(b),!0):
  this.findTestabilityInTree(a,G.parentElement(b),!0):null};return b}(),Mu=function(){function b(){}b.prototype.getTitle=function(){return G.getTitle()};b.prototype.setTitle=function(a){G.setTitle(a)};return b}(),Wh=new La("DocumentToken"),Xf=new La("EventManagerPlugins"),dm=function(){function b(a,b){var c=this;this._zone=b;a.forEach(function(a){return a.manager=c});this._plugins=a.slice().reverse()}b.prototype.addEventListener=function(a,b,d){return this._findPluginFor(b).addEventListener(a,b,d)};
  b.prototype.addGlobalEventListener=function(a,b,d){return this._findPluginFor(b).addGlobalEventListener(a,b,d)};b.prototype.getZone=function(){return this._zone};b.prototype._findPluginFor=function(a){for(var b=this._plugins,d=0;d<b.length;d++){var e=b[d];if(e.supports(a))return e}throw Error("No event manager plugin found for event "+a);};b.decorators=[{type:V}];b.ctorParameters=[{type:Array,decorators:[{type:U,args:[Xf]}]},{type:qc}];return b}(),Xh=function(){function b(){}b.prototype.supports=
  function(a){return!1};b.prototype.addEventListener=function(a,b,d){throw"not implemented";};b.prototype.addGlobalEventListener=function(a,b,d){throw"not implemented";};return b}(),Nu=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},em=function(){function b(){this._styles=[];this._stylesSet=new Set}b.prototype.addStyles=function(a){var b=this,d=[];a.forEach(function(a){b._stylesSet.has(a)||
  (b._stylesSet.add(a),b._styles.push(a),d.push(a))});this.onStylesAdded(d)};b.prototype.onStylesAdded=function(a){};b.prototype.getAllStyles=function(){return this._styles};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),Yh=function(b){function a(a){b.call(this);this._hostNodes=new Set;this._hostNodes.add(a.head)}Nu(a,b);a.prototype._addStylesToHost=function(a,b){for(var c=0;c<a.length;c++)G.appendChild(b,G.createStyleElement(a[c]))};a.prototype.addHost=function(a){this._addStylesToHost(this._styles,
  a);this._hostNodes.add(a)};a.prototype.removeHost=function(a){this._hostNodes.delete(a)};a.prototype.onStylesAdded=function(a){var b=this;this._hostNodes.forEach(function(c){b._addStylesToHost(a,c)})};a.decorators=[{type:V}];a.ctorParameters=[{type:void 0,decorators:[{type:U,args:[Wh]}]}];return a}(em),Ou=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},fm={xlink:"http://www.w3.org/1999/xlink",
  svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},Pu=/^template bindings=(.*)$/,Yf=function(){function b(a,b,d,e){this.document=a;this.eventManager=b;this.sharedStylesHost=d;this.animationDriver=e;this.registeredComponents=new Map}b.prototype.renderComponent=function(a){var b=this.registeredComponents.get(a.id);Mb(b)&&(b=new Qu(this,a,this.animationDriver),this.registeredComponents.set(a.id,b));return b};return b}(),Ru=function(b){function a(a,d,e,f){b.call(this,a,d,e,f)}Ou(a,
  b);a.decorators=[{type:V}];a.ctorParameters=[{type:void 0,decorators:[{type:U,args:[Wh]}]},{type:dm},{type:Yh},{type:Pg}];return a}(Yf),Qu=function(){function b(a,b,d){this._rootRenderer=a;this.componentProto=b;this._animationDriver=d;this._styles=zj(b.id,b.styles,[]);b.encapsulation!==Ua.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles);this.componentProto.encapsulation===Ua.Emulated?(this._contentAttr=qb.replaceAll(Su,Og,b.id),this._hostAttr=qb.replaceAll(Tu,Og,b.id)):this._hostAttr=
  this._contentAttr=null}b.prototype.selectRootElement=function(a,b){if("string"===typeof a){if(b=G.querySelector(this._rootRenderer.document,a),Mb(b))throw Error('The selector "'+a+'" did not match any elements');}else b=a;G.clearNodes(b);return b};b.prototype.createElement=function(a,b,d){b=Aj(b);b=ia(b[0])?G.createElementNS(fm[b[0]],b[1]):G.createElement(b[1]);ia(this._contentAttr)&&G.setAttribute(b,this._contentAttr,"");ia(a)&&G.appendChild(a,b);return b};b.prototype.createViewRoot=function(a){if(this.componentProto.encapsulation===
  Ua.Native){a=G.createShadowRoot(a);this._rootRenderer.sharedStylesHost.addHost(a);for(var b=0;b<this._styles.length;b++)G.appendChild(a,G.createStyleElement(this._styles[b]))}else ia(this._hostAttr)&&G.setAttribute(a,this._hostAttr,"");return a};b.prototype.createTemplateAnchor=function(a,b){b=G.createComment("template bindings\x3d{}");ia(a)&&G.appendChild(a,b);return b};b.prototype.createText=function(a,b,d){b=G.createTextNode(b);ia(a)&&G.appendChild(a,b);return b};b.prototype.projectNodes=function(a,
  b){if(!Mb(a))for(var c=0;c<b.length;c++)G.appendChild(a,b[c])};b.prototype.attachViewAfter=function(a,b){var c=G.parentElement(a);if(0<b.length&&ia(c))if(a=G.nextSibling(a),ia(a))for(var e=0;e<b.length;e++)G.insertBefore(a,b[e]);else for(e=0;e<b.length;e++)G.appendChild(c,b[e])};b.prototype.detachView=function(a){for(var b=0;b<a.length;b++)G.remove(a[b])};b.prototype.destroyView=function(a,b){this.componentProto.encapsulation===Ua.Native&&ia(a)&&this._rootRenderer.sharedStylesHost.removeHost(G.getShadowRoot(a))};
  b.prototype.listen=function(a,b,d){return this._rootRenderer.eventManager.addEventListener(a,b,yj(d))};b.prototype.listenGlobal=function(a,b,d){return this._rootRenderer.eventManager.addGlobalEventListener(a,b,yj(d))};b.prototype.setElementProperty=function(a,b,d){G.setProperty(a,b,d)};b.prototype.setElementAttribute=function(a,b,d){var c,f=Aj(b);ia(f[0])&&(b=f[0]+":"+f[1],c=fm[f[0]]);ia(d)?ia(c)?G.setAttributeNS(a,c,b,d):G.setAttribute(a,b,d):ia(c)?G.removeAttributeNS(a,c,f[1]):G.removeAttribute(a,
  b)};b.prototype.setBindingDebugInfo=function(a,b,d){var c=sp(b);G.isCommentNode(a)?(b=qb.replaceAll(G.getText(a),/\n/g,"").match(Pu),b=$l.parse(b[1]),b[c]=d,G.setText(a,qb.replace("template bindings\x3d{}","{}",$l.stringify(b)))):this.setElementAttribute(a,b,d)};b.prototype.setElementClass=function(a,b,d){d?G.addClass(a,b):G.removeClass(a,b)};b.prototype.setElementStyle=function(a,b,d){ia(d)?G.setStyle(a,b,rp(d)):G.removeStyle(a,b)};b.prototype.invokeElementMethod=function(a,b,d){G.invoke(a,b,d)};
  b.prototype.setText=function(a,b){G.setText(a,b)};b.prototype.animate=function(a,b,d,e,f,g){return this._animationDriver.animate(a,b,d,e,f,g)};return b}(),Og=/%COMP%/g,Tu="_nghost-%COMP%",Su="_ngcontent-%COMP%",zp=/^:([^:]+):(.+)$/,Uu={ApplicationRef:Nf,NgZone:qc},Vu=function(){return function(b,a){this.name=b;this.token=a}}(),Wu=[{provide:Gh,useFactory:function(b,a){G.setGlobalVar("ng.probe",Ap);G.setGlobalVar("ng.coreTokens",Ab.merge(Uu,Bp(a||[])));return new It(b)},deps:[Yf,[Vu,new W]]}];new W;
  var Xu=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Yu=function(b){function a(){b.apply(this,arguments)}Xu(a,b);a.prototype.supports=function(a){return!0};a.prototype.addEventListener=function(a,b,e){var c=this.manager.getZone(),d=function(a){return c.runGuarded(function(){return e(a)})};return this.manager.getZone().runOutsideAngular(function(){return G.onAndCancel(a,b,d)})};a.prototype.addGlobalEventListener=
  function(a,b,e){var c=G.getGlobalEventTarget(a),d=this.manager.getZone(),h=function(a){return d.runGuarded(function(){return e(a)})};return this.manager.getZone().runOutsideAngular(function(){return G.onAndCancel(c,b,h)})};a.decorators=[{type:V}];a.ctorParameters=[];return a}(Xh),Zu=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},$u={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},av=function(b){function a(){b.call(this)}Zu(a,b);a.prototype.supports=function(a){a=a.toLowerCase();return Ab.contains($u,a)};return a}(Xh),bv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&
  (b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},gm=new La("HammerGestureConfig"),hm=function(){function b(){this.events=[];this.overrides={}}b.prototype.buildHammer=function(a){a=new Hammer(a);a.get("pinch").set({enable:!0});a.get("rotate").set({enable:!0});for(var b in this.overrides)a.get(b).set(this.overrides[b]);return a};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),cv=function(b){function a(a){b.call(this);this._config=a}bv(a,b);a.prototype.supports=
  function(a){if(!b.prototype.supports.call(this,a)&&!this.isCustomEvent(a))return!1;if(!ia(window.Hammer))throw Error("Hammer.js is not loaded, can not bind "+a+" event");return!0};a.prototype.addEventListener=function(a,b,e){var c=this,d=this.manager.getZone();b=b.toLowerCase();return d.runOutsideAngular(function(){var g=c._config.buildHammer(a),f=function(a){d.runGuarded(function(){e(a)})};g.on(b,f);return function(){g.off(b,f)}})};a.prototype.isCustomEvent=function(a){return-1<this._config.events.indexOf(a)};
  a.decorators=[{type:V}];a.ctorParameters=[{type:hm,decorators:[{type:U,args:[gm]}]}];return a}(av),dv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},im=["alt","control","meta","shift"],ev={alt:function(b){return b.altKey},control:function(b){return b.ctrlKey},meta:function(b){return b.metaKey},shift:function(b){return b.shiftKey}},fv=function(b){function a(){b.call(this)}dv(a,b);a.prototype.supports=
  function(b){return ia(a.parseEventName(b))};a.prototype.addEventListener=function(b,d,e){var c=a.parseEventName(d),g=a.eventCallback(b,Ab.get(c,"fullKey"),e,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return G.onAndCancel(b,Ab.get(c,"domEventName"),g)})};a.parseEventName=function(b){var c=b.toLowerCase().split(".");b=c.shift();if(0===c.length||!qb.equals(b,"keydown")&&!qb.equals(b,"keyup"))return null;var e=a._normalizeKey(c.pop()),f="";im.forEach(function(a){Ae.contains(c,
  a)&&(Ae.remove(c,a),f+=a+".")});f+=e;if(0!=c.length||0===e.length)return null;e=Ab.create();Ab.set(e,"domEventName",b);Ab.set(e,"fullKey",f);return e};a.getEventFullKey=function(a){var b="",c=G.getEventKey(a),c=c.toLowerCase();qb.equals(c," ")?c="space":qb.equals(c,".")&&(c="dot");im.forEach(function(d){d!=c&&Ab.get(ev,d)(a)&&(b+=d+".")});return b+=c};a.eventCallback=function(b,d,e,f){return function(b){qb.equals(a.getEventFullKey(b),d)&&f.runGuarded(function(){return e(b)})}};a._normalizeKey=function(a){switch(a){case "esc":return"escape";
  default:return a}};a.decorators=[{type:V}];a.ctorParameters=[];return a}(Xh),Cp=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Dp=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Bc=null,la=null,jm=Cc("area,br,col,hr,img,wbr"),km=Cc("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),lm=Cc("rp,rt"),gv=le(lm,km),hv=le(km,Cc("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),
  iv=le(lm,Cc("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),mm=le(jm,hv,iv,gv),nm=Cc("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),om=Cc("srcset"),jv=Cc("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),
  kv=le(nm,om,jv),lv=function(){function b(){this.sanitizedSomething=!1;this.buf=[]}b.prototype.sanitizeChildren=function(a){for(a=a.firstChild;a;)if(la.isElementNode(a)?this.startElement(a):la.isTextNode(a)?this.chars(la.nodeValue(a)):this.sanitizedSomething=!0,la.firstChild(a))a=la.firstChild(a);else for(;a;){la.isElementNode(a)&&this.endElement(a);if(la.nextSibling(a)){a=la.nextSibling(a);break}a=la.parentElement(a)}return this.buf.join("")};b.prototype.startElement=function(a){var b=this,d=la.nodeName(a).toLowerCase();
  mm.hasOwnProperty(d)?(this.buf.push("\x3c"),this.buf.push(d),la.attributeMap(a).forEach(function(a,c){var d=c.toLowerCase();kv.hasOwnProperty(d)?(nm[d]&&(a=df(a)),om[d]&&(a=Ep(a)),b.buf.push(" "),b.buf.push(c),b.buf.push('\x3d"'),b.buf.push(Bj(a)),b.buf.push('"')):b.sanitizedSomething=!0}),this.buf.push("\x3e")):this.sanitizedSomething=!0};b.prototype.endElement=function(a){a=la.nodeName(a).toLowerCase();mm.hasOwnProperty(a)&&!jm.hasOwnProperty(a)&&(this.buf.push("\x3c/"),this.buf.push(a),this.buf.push("\x3e"))};
  b.prototype.chars=function(a){this.buf.push(Bj(a))};return b}(),Gp=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hp=/([^\#-~ |!])/g,Kp=/^([-,."'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?)\([-0-9.%, a-zA-Z]+\))$/g,Jp=/^url\(([^)]+)\)$/,Yd=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Zh=function(){return function(){}}(),mv=function(b){function a(){b.apply(this,
  arguments)}Yd(a,b);a.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case wa.NONE:return b;case wa.HTML:if(b instanceof pm)return b.changingThisBreaksApplicationSecurity;this.checkNotSafeValue(b,"HTML");a=String(b);try{var c=Fp(),d=a?String(a):"";a=5;b=d;do{if(0===a)throw Error("Failed to sanitize html because the input is unstable");a--;d=b;la.setInnerHTML(c,d);la.defaultDoc().documentMode&&Cj(c);b=la.getInnerHTML(c)}while(d!==b);for(var g=new lv,h=g.sanitizeChildren(la.getTemplateContent(c)||
  c),m=la.getTemplateContent(c)||c,c=0,r=la.childNodesAsList(m);c<r.length;c++)la.removeChild(m,r[c]);g.sanitizedSomething&&la.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss).")}catch(u){throw Bc=null,u;}return h;case wa.STYLE:if(b instanceof qm)return b.changingThisBreaksApplicationSecurity;this.checkNotSafeValue(b,"Style");return Ip(b);case wa.SCRIPT:if(b instanceof rm)return b.changingThisBreaksApplicationSecurity;this.checkNotSafeValue(b,"Script");throw Error("unsafe value used in a script context");
  case wa.URL:if(b instanceof $h||b instanceof sm)return b.changingThisBreaksApplicationSecurity;this.checkNotSafeValue(b,"URL");return df(String(b));case wa.RESOURCE_URL:if(b instanceof $h)return b.changingThisBreaksApplicationSecurity;this.checkNotSafeValue(b,"ResourceURL");throw Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw Error("Unexpected SecurityContext "+a+" (see http://g.co/ng/security#xss)");}};a.prototype.checkNotSafeValue=function(a,
  b){if(a instanceof Zd)throw Error("Required a safe "+b+", got a "+a.getTypeName()+" (see http://g.co/ng/security#xss)");};a.prototype.bypassSecurityTrustHtml=function(a){return new pm(a)};a.prototype.bypassSecurityTrustStyle=function(a){return new qm(a)};a.prototype.bypassSecurityTrustScript=function(a){return new rm(a)};a.prototype.bypassSecurityTrustUrl=function(a){return new sm(a)};a.prototype.bypassSecurityTrustResourceUrl=function(a){return new $h(a)};a.decorators=[{type:V}];a.ctorParameters=
  [];return a}(Zh),Zd=function(){function b(a){this.changingThisBreaksApplicationSecurity=a}b.prototype.toString=function(){return"SafeValue must use [property]\x3dbinding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"};return b}(),pm=function(b){function a(){b.apply(this,arguments)}Yd(a,b);a.prototype.getTypeName=function(){return"HTML"};return a}(Zd),qm=function(b){function a(){b.apply(this,arguments)}Yd(a,b);a.prototype.getTypeName=function(){return"Style"};return a}(Zd),
  rm=function(b){function a(){b.apply(this,arguments)}Yd(a,b);a.prototype.getTypeName=function(){return"Script"};return a}(Zd),sm=function(b){function a(){b.apply(this,arguments)}Yd(a,b);a.prototype.getTypeName=function(){return"URL"};return a}(Zd),$h=function(b){function a(){b.apply(this,arguments)}Yd(a,b);a.prototype.getTypeName=function(){return"ResourceURL"};return a}(Zd),tm=[{provide:Kg,useValue:function(){Iu.makeCurrent();Lu.init()},multi:!0},{provide:Sf,useClass:Ku}],nv=[{provide:yl,useExisting:Zh},
  {provide:Zh,useClass:mv}];$e(Ll,"browser",tm);var ov=function(){function b(a){if(a)throw Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.");}b.decorators=[{type:Mc,args:[{providers:[nv,{provide:ef,useFactory:Lp,deps:[]},{provide:Wh,useFactory:Mp,deps:[]},{provide:Xf,useClass:Yu,multi:!0},{provide:Xf,useClass:fv,multi:!0},{provide:Xf,useClass:cv,multi:!0},{provide:gm,useClass:hm},{provide:Yf,
  useClass:Ru},{provide:Gh,useExisting:Yf},{provide:em,useExisting:Yh},{provide:Pg,useFactory:Np},Yh,Mf,dm,Wu,Mu],exports:[Bu,wt]}]}];b.ctorParameters=[{type:b,decorators:[{type:W},{type:Vb}]}];return b}(),ai="undefined"===typeof window?"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;ai.assert=function(b){};var Jj=function(){function b(){}b.fromCharCode=function(a){return String.fromCharCode(a)};b.charCodeAt=function(a,b){return a.charCodeAt(b)};b.split=
  function(a,b){return a.split(b)};b.equals=function(a,b){return a===b};b.stripLeft=function(a,b){if(a&&a.length){for(var c=0,e=0;e<a.length&&a[e]==b;e++)c++;a=a.substring(c)}return a};b.stripRight=function(a,b){if(a&&a.length){for(var c=a.length,e=a.length-1;0<=e&&a[e]==b;e--)c--;a=a.substring(0,c)}return a};b.replace=function(a,b,d){return a.replace(b,d)};b.replaceAll=function(a,b,d){return a.replace(b,d)};b.slice=function(a,b,d){void 0===b&&(b=0);void 0===d&&(d=null);return a.slice(b,null===d?void 0:
  d)};b.replaceAllMapped=function(a,b,d){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];a.splice(-2,2);return d(a)})};b.contains=function(a,b){return-1!=a.indexOf(b)};b.compare=function(a,b){return a<b?-1:a>b?1:0};return b}();(function(){function b(){}b.toFixed=function(a,b){return a.toFixed(b)};b.equal=function(a,b){return a===b};b.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Invalid integer literal when parsing "+a);return b};
  b.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw Error("Invalid integer literal when parsing "+a+" in base "+b);};Object.defineProperty(b,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0});b.isNumeric=function(a){return!isNaN(a-parseFloat(a))};b.isNaN=function(a){return isNaN(a)};b.isInteger=function(a){return Number.isInteger(a)};
  return b})();var um=function(){function b(){}Object.defineProperty(b.prototype,"control",{get:function(){throw Error("unimplemented");},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"value",{get:function(){return D(this.control)?this.control.value:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"valid",{get:function(){return D(this.control)?this.control.valid:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"invalid",{get:function(){return D(this.control)?
  this.control.invalid:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"pending",{get:function(){return D(this.control)?this.control.pending:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"errors",{get:function(){return D(this.control)?this.control.errors:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"pristine",{get:function(){return D(this.control)?this.control.pristine:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,
  "dirty",{get:function(){return D(this.control)?this.control.dirty:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"touched",{get:function(){return D(this.control)?this.control.touched:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"untouched",{get:function(){return D(this.control)?this.control.untouched:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"disabled",{get:function(){return D(this.control)?this.control.disabled:null},
  enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"enabled",{get:function(){return D(this.control)?this.control.enabled:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"statusChanges",{get:function(){return D(this.control)?this.control.statusChanges:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"valueChanges",{get:function(){return D(this.control)?this.control.valueChanges:null},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,
  "path",{get:function(){return null},enumerable:!0,configurable:!0});b.prototype.reset=function(a){void 0===a&&(a=void 0);D(this.control)&&this.control.reset(a)};return b}(),pv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},hb=function(b){function a(){b.apply(this,arguments)}pv(a,b);Object.defineProperty(a.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0});
  Object.defineProperty(a.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0});return a}(um),dc=ai.Map,bi=ai.Set,qv=function(){try{if(1===(new dc([[1,2]])).size)return function(b){return new dc(b)}}catch(b){}return function(b){for(var a=new dc,c=0;c<b.length;c++){var d=b[c];a.set(d[0],d[1])}return a}}(),rv=function(){try{return new dc(new dc),function(b){return new dc(b)}}catch(b){}return function(b){var a=new dc;b.forEach(function(b,d){a.set(d,b)});return a}}(),sv=function(){return(new dc).keys().next?
  function(b){for(var a=b.keys(),c;!(c=a.next()).done;)b.set(c.value,null)}:function(b){b.forEach(function(a,c){b.set(c,null)})}}(),vm=function(){try{if((new dc).values().next)return function(b,a){return a?Array.from(b.values()):Array.from(b.keys())}}catch(b){}return function(b,a){var c=Ob.createFixedSize(b.size),d=0;b.forEach(function(b,f){c[d]=a?b:f;d++});return c}}(),wm=function(){function b(){}b.clone=function(a){return rv(a)};b.createFromStringMap=function(a){var b=new dc,d;for(d in a)b.set(d,
  a[d]);return b};b.toStringMap=function(a){var b={};a.forEach(function(a,c){return b[c]=a});return b};b.createFromPairs=function(a){return qv(a)};b.clearValues=function(a){sv(a)};b.iterable=function(a){return a};b.keys=function(a){return vm(a,!1)};b.values=function(a){return vm(a,!0)};return b}(),jb=function(){function b(){}b.create=function(){return{}};b.contains=function(a,b){return a.hasOwnProperty(b)};b.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0};b.set=function(a,b,d){a[b]=d};b.keys=
  function(a){return Object.keys(a)};b.values=function(a){return Object.keys(a).map(function(b){return a[b]})};b.isEmpty=function(a){for(var b in a)return!1;return!0};b.delete=function(a,b){delete a[b]};b.forEach=function(a,b){for(var c=0,e=Object.keys(a);c<e.length;c++){var f=e[c];b(a[f],f)}};b.merge=function(a,b){for(var c={},e=0,f=Object.keys(a);e<f.length;e++){var g=f[e];c[g]=a[g]}a=0;for(e=Object.keys(b);a<e.length;a++)g=e[a],c[g]=b[g];return c};b.equals=function(a,b){var c=Object.keys(a),e=Object.keys(b);
  if(c.length!=e.length)return!1;for(e=0;e<c.length;e++){var f=c[e];if(a[f]!==b[f])return!1}return!0};return b}(),Ob=function(){function b(){}b.createFixedSize=function(a){return Array(a)};b.createGrowableSize=function(a){return Array(a)};b.clone=function(a){return a.slice(0)};b.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)};b.first=function(a){return a?a[0]:null};b.last=function(a){return a&&0!=a.length?a[a.length-1]:null};b.indexOf=function(a,b,d){void 0===d&&(d=0);return a.indexOf(b,
  d)};b.contains=function(a,b){return-1!==a.indexOf(b)};b.reversed=function(a){return b.clone(a).reverse()};b.concat=function(a,b){return a.concat(b)};b.insert=function(a,b,d){a.splice(b,0,d)};b.removeAt=function(a,b){var c=a[b];a.splice(b,1);return c};b.removeAll=function(a,b){for(var c=0;c<b.length;++c){var e=a.indexOf(b[c]);a.splice(e,1)}};b.remove=function(a,b){b=a.indexOf(b);return-1<b?(a.splice(b,1),!0):!1};b.clear=function(a){a.length=0};b.isEmpty=function(a){return 0==a.length};b.fill=function(a,
  b,d,e){void 0===d&&(d=0);void 0===e&&(e=null);a.fill(b,d,null===e?a.length:e)};b.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};b.slice=function(a,b,d){void 0===b&&(b=0);void 0===d&&(d=null);return a.slice(b,null===d?void 0:d)};b.splice=function(a,b,d){return a.splice(b,d)};b.sort=function(a,b){D(b)?a.sort(b):a.sort()};b.toString=function(a){return a.toString()};b.toJSON=function(a){return JSON.stringify(a)};b.maximum=function(a,b){if(0==
  a.length)return null;for(var c=null,e=-Infinity,f=0;f<a.length;f++){var g=a[f];if(!fb(g)){var h=b(g);h>e&&(c=g,e=h)}}return c};b.flatten=function(a){var b=[];Fj(a,b);return b};b.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])};return b}();(function(){return 3===(new bi([1,2,3])).size?function(b){return new bi(b)}:function(b){var a=new bi(b);if(a.size!==b.length)for(var c=0;c<b.length;c++)a.add(b[c]);return a}})();var xm=k(function(b,a){a.toPromise=function(a){var b=this;a||(Q.root.Rx&&
  Q.root.Rx.config&&Q.root.Rx.config.Promise?a=Q.root.Rx.config.Promise:Q.root.Promise&&(a=Q.root.Promise));if(!a)throw Error("no Promise impl found");return new a(function(a,c){var d;b.subscribe(function(a){return d=a},function(a){return c(a)},function(){return a(d)})})}}),Qp=xm.toPromise,Hb=new La("NgValidators"),Uc=new La("NgAsyncValidators"),rb=function(){function b(){}b.required=function(a){return fb(a.value)||"string"===typeof a.value&&""==a.value?{required:!0}:null};b.minLength=function(a){return function(c){if(D(b.required(c)))return null;
  c=c.value;return c.length<a?{minlength:{requiredLength:a,actualLength:c.length}}:null}};b.maxLength=function(a){return function(c){if(D(b.required(c)))return null;c=c.value;return c.length>a?{maxlength:{requiredLength:a,actualLength:c.length}}:null}};b.pattern=function(a){return function(c){if(D(b.required(c)))return null;c=c.value;return(new RegExp("^"+a+"$")).test(c)?null:{pattern:{requiredPattern:"^"+a+"$",actualValue:c}}}};b.nullValidator=function(a){return null};b.compose=function(a){if(fb(a))return null;
  var b=a.filter(D);return 0==b.length?null:function(a){return Gj(Rp(a,b))}};b.composeAsync=function(a){if(fb(a))return null;var b=a.filter(D);return 0==b.length?null:function(a){a=Sp(a,b).map(Pp);return Promise.all(a).then(Gj)}};return b}(),sc=new La("NgValueAccessor"),tv={provide:sc,useExisting:Ia(function(){return Vg}),multi:!0},Vg=function(){function b(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(a){};this.onTouched=function(){}}b.prototype.writeValue=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,
  "checked",a)};b.prototype.registerOnChange=function(a){this.onChange=a};b.prototype.registerOnTouched=function(a){this.onTouched=a};b.prototype.setDisabledState=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",a)};b.decorators=[{type:da,args:[{selector:"input[type\x3dcheckbox][formControlName],input[type\x3dcheckbox][formControl],input[type\x3dcheckbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[tv]}]}];b.ctorParameters=
  [{type:Rb},{type:xb}];return b}(),uv={provide:sc,useExisting:Ia(function(){return Ug}),multi:!0},Ug=function(){function b(a,b){this._renderer=a;this._elementRef=b;this.onChange=function(a){};this.onTouched=function(){}}b.prototype.writeValue=function(a){a=fb(a)?"":a;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",a)};b.prototype.registerOnChange=function(a){this.onChange=a};b.prototype.registerOnTouched=function(a){this.onTouched=a};b.prototype.setDisabledState=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,
  "disabled",a)};b.decorators=[{type:da,args:[{selector:"input:not([type\x3dcheckbox])[formControlName],textarea[formControlName],input:not([type\x3dcheckbox])[formControl],textarea[formControl],input:not([type\x3dcheckbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[uv]}]}];b.ctorParameters=[{type:Rb},{type:xb}];return b}(),vv={provide:sc,useExisting:Ia(function(){return Wg}),multi:!0},Wg=function(){function b(a,
  b){this._renderer=a;this._elementRef=b;this.onChange=function(a){};this.onTouched=function(){}}b.prototype.writeValue=function(a){a=fb(a)?"":a;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",a)};b.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:parseFloat(b))}};b.prototype.registerOnTouched=function(a){this.onTouched=a};b.prototype.setDisabledState=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",a)};b.decorators=
  [{type:da,args:[{selector:"input[type\x3dnumber][formControlName],input[type\x3dnumber][formControl],input[type\x3dnumber][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[vv]}]}];b.ctorParameters=[{type:Rb},{type:xb}];return b}(),wv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Vc=function(b){function a(){b.apply(this,
  arguments);this.valueAccessor=this.name=this._parent=null;this._rawValidators=[];this._rawAsyncValidators=[]}wv(a,b);Object.defineProperty(a.prototype,"validator",{get:function(){return Hj()},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"asyncValidator",{get:function(){return Hj()},enumerable:!0,configurable:!0});return a}(um),xv={provide:sc,useExisting:Ia(function(){return Xg}),multi:!0},ym=function(){function b(){this._accessors=[]}b.prototype.add=function(a,b){this._accessors.push([a,
  b])};b.prototype.remove=function(a){for(var b=-1,d=0;d<this._accessors.length;++d)this._accessors[d][1]===a&&(b=d);Ob.removeAt(this._accessors,b)};b.prototype.select=function(a){var b=this;this._accessors.forEach(function(c){b._isSameGroup(c,a)&&c[1]!==a&&c[1].fireUncheck(a.value)})};b.prototype._isSameGroup=function(a,b){return a[0].control?a[0]._parent===b._control._parent&&a[1].name===b.name:!1};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),Xg=function(){function b(a,b,d,e){this._renderer=
  a;this._elementRef=b;this._registry=d;this._injector=e;this.onChange=function(){};this.onTouched=function(){}}b.prototype.ngOnInit=function(){this._control=this._injector.get(Vc);this._checkName();this._registry.add(this._control,this)};b.prototype.ngOnDestroy=function(){this._registry.remove(this)};b.prototype.writeValue=function(a){this._state=a===this.value;this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)};b.prototype.registerOnChange=function(a){var b=this;
  this._fn=a;this.onChange=function(){a(b.value);b._registry.select(b)}};b.prototype.fireUncheck=function(a){this.writeValue(a)};b.prototype.registerOnTouched=function(a){this.onTouched=a};b.prototype.setDisabledState=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",a)};b.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError();!this.name&&this.formControlName&&(this.name=this.formControlName)};b.prototype._throwNameError=
  function(){throw Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: \x3cinput type\x3d"radio" formControlName\x3d"food" name\x3d"food"\x3e\n    ');};b.decorators=[{type:da,args:[{selector:"input[type\x3dradio][formControlName],input[type\x3dradio][formControl],input[type\x3dradio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[xv]}]}];b.ctorParameters=[{type:Rb},{type:xb},{type:ym},{type:bc}];
  b.propDecorators={name:[{type:Y}],formControlName:[{type:Y}],value:[{type:Y}]};return b}(),yv={provide:sc,useExisting:Ia(function(){return hf}),multi:!0},hf=function(){function b(a,b){this._renderer=a;this._elementRef=b;this._optionMap=new Map;this._idCounter=0;this.onChange=function(a){};this.onTouched=function(){}}b.prototype.writeValue=function(a){this.value=a;a=Ij(this._getOptionId(a),a);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",a)};b.prototype.registerOnChange=
  function(a){var b=this;this.onChange=function(c){b.value=c;a(b._getOptionValue(c))}};b.prototype.registerOnTouched=function(a){this.onTouched=a};b.prototype.setDisabledState=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",a)};b.prototype._registerOption=function(){return(this._idCounter++).toString()};b.prototype._getOptionId=function(a){for(var b=0,d=wm.keys(this._optionMap);b<d.length;b++){var e=d[b];if(Qg(this._optionMap.get(e),a))return e}return null};b.prototype._getOptionValue=
  function(a){var b=this._optionMap.get(a.split(":")[0]);return D(b)?b:a};b.decorators=[{type:da,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[yv]}]}];b.ctorParameters=[{type:Rb},{type:xb}];return b}(),zv=function(){function b(a,b,d){this._element=a;this._renderer=b;this._select=d;D(this._select)&&(this.id=this._select._registerOption())}
  Object.defineProperty(b.prototype,"ngValue",{set:function(a){null!=this._select&&(this._select._optionMap.set(this.id,a),this._setElementValue(Ij(this.id,a)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"value",{set:function(a){this._setElementValue(a);D(this._select)&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0});b.prototype._setElementValue=function(a){this._renderer.setElementProperty(this._element.nativeElement,
  "value",a)};b.prototype.ngOnDestroy=function(){D(this._select)&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))};b.decorators=[{type:da,args:[{selector:"option"}]}];b.ctorParameters=[{type:xb},{type:Rb},{type:hf,decorators:[{type:W},{type:yb}]}];b.propDecorators={ngValue:[{type:Y,args:["ngValue"]}],value:[{type:Y,args:["value"]}]};return b}(),Av={provide:sc,useExisting:Ia(function(){return jf}),multi:!0},jf=function(){function b(a,b){this._renderer=a;this._elementRef=
  b;this._optionMap=new Map;this._idCounter=0;this.onChange=function(a){};this.onTouched=function(){}}b.prototype.writeValue=function(a){var b=this;this.value=a;if(null!=a){var d=a.map(function(a){return b._getOptionId(a)});this._optionMap.forEach(function(a,b){a._setSelected(-1<d.indexOf(b.toString()))})}};b.prototype.registerOnChange=function(a){var b=this;this.onChange=function(c){var d=[];if(c.hasOwnProperty("selectedOptions")){c=c.selectedOptions;for(var f=0;f<c.length;f++){var g=c.item(f),g=b._getOptionValue(g.value);
  d.push(g)}}else for(c=c.options,f=0;f<c.length;f++)g=c.item(f),g.selected&&(g=b._getOptionValue(g.value),d.push(g));a(d)}};b.prototype.registerOnTouched=function(a){this.onTouched=a};b.prototype.setDisabledState=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",a)};b.prototype._registerOption=function(a){var b=(this._idCounter++).toString();this._optionMap.set(b,a);return b};b.prototype._getOptionId=function(a){for(var b=0,d=wm.keys(this._optionMap);b<d.length;b++){var e=
  d[b];if(Qg(this._optionMap.get(e)._value,a))return e}return null};b.prototype._getOptionValue=function(a){var b=this._optionMap.get(a.split(":")[0]);return D(b)?b._value:a};b.decorators=[{type:da,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[Av]}]}];b.ctorParameters=[{type:Rb},{type:xb}];return b}(),Bv=function(){function b(a,b,d){this._element=a;this._renderer=
  b;this._select=d;D(this._select)&&(this.id=this._select._registerOption(this))}Object.defineProperty(b.prototype,"ngValue",{set:function(a){null!=this._select&&(this._value=a,this._setElementValue(Kj(this.id,a)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"value",{set:function(a){D(this._select)?(this._value=a,this._setElementValue(Kj(this.id,a)),this._select.writeValue(this._select.value)):this._setElementValue(a)},enumerable:!0,
  configurable:!0});b.prototype._setElementValue=function(a){this._renderer.setElementProperty(this._element.nativeElement,"value",a)};b.prototype._setSelected=function(a){this._renderer.setElementProperty(this._element.nativeElement,"selected",a)};b.prototype.ngOnDestroy=function(){D(this._select)&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))};b.decorators=[{type:da,args:[{selector:"option"}]}];b.ctorParameters=[{type:xb},{type:Rb},{type:jf,decorators:[{type:W},
  {type:yb}]}];b.propDecorators={ngValue:[{type:Y,args:["ngValue"]}],value:[{type:Y,args:["value"]}]};return b}(),Cv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Zf=function(b){function a(){b.apply(this,arguments)}Cv(a,b);a.prototype.ngOnInit=function(){this._checkParentType();this.formDirective.addFormGroup(this)};a.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)};
  Object.defineProperty(a.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"path",{get:function(){return gf(this.name,this._parent)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"validator",{get:function(){return Dc(this._validators)},
  enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"asyncValidator",{get:function(){return Ec(this._asyncValidators)},enumerable:!0,configurable:!0});a.prototype._checkParentType=function(){};return a}(hb),zm=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Am=function(){function b(a){this._cd=a}Object.defineProperty(b.prototype,"ngClassUntouched",{get:function(){return D(this._cd.control)?
  this._cd.control.untouched:!1},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"ngClassTouched",{get:function(){return D(this._cd.control)?this._cd.control.touched:!1},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"ngClassPristine",{get:function(){return D(this._cd.control)?this._cd.control.pristine:!1},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"ngClassDirty",{get:function(){return D(this._cd.control)?this._cd.control.dirty:!1},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"ngClassValid",{get:function(){return D(this._cd.control)?this._cd.control.valid:!1},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"ngClassInvalid",{get:function(){return D(this._cd.control)?this._cd.control.invalid:!1},enumerable:!0,configurable:!0});return b}(),Bm={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid",
  "[class.ng-invalid]":"ngClassInvalid"},Dv=function(b){function a(a){b.call(this,a)}zm(a,b);a.decorators=[{type:da,args:[{selector:"[formControlName],[ngModel],[formControl]",host:Bm}]}];a.ctorParameters=[{type:Vc,decorators:[{type:va}]}];return a}(Am),Ev=function(b){function a(a){b.call(this,a)}zm(a,b);a.decorators=[{type:da,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:Bm}]}];a.ctorParameters=[{type:hb,decorators:[{type:va}]}];return a}(Am),
  Fv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},nd=function(b){function a(a){void 0===a&&(a=!1);b.call(this);this.__isAsync=a}Fv(a,b);a.prototype.emit=function(a){b.prototype.next.call(this,a)};a.prototype.subscribe=function(a,d,e){var c,g=function(a){return null},h=function(){return null};a&&"object"===typeof a?(c=this.__isAsync?function(b){setTimeout(function(){return a.next(b)})}:
  function(b){a.next(b)},a.error&&(g=this.__isAsync?function(b){setTimeout(function(){return a.error(b)})}:function(b){a.error(b)}),a.complete&&(h=this.__isAsync?function(){setTimeout(function(){return a.complete()})}:function(){a.complete()})):(c=this.__isAsync?function(b){setTimeout(function(){return a(b)})}:function(b){a(b)},d&&(g=this.__isAsync?function(a){setTimeout(function(){return d(a)})}:function(a){d(a)}),e&&(h=this.__isAsync?function(){setTimeout(function(){return e()})}:function(){e()}));
  return b.prototype.subscribe.call(this,c,g,h)};return a}(Fl),Cm=k(function(b,a){function c(a){var b=a.value;a=a.subscriber;a.closed||(a.next(b),a.complete())}function d(a){var b=a.err;a=a.subscriber;a.closed||a.error(b)}var e=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.promise=b;this.scheduler=c}e(b,a);b.create=function(a,
  c){return new b(a,c)};b.prototype._subscribe=function(a){var b=this,g=this.promise,e=this.scheduler;if(null==e)this._isScalar?a.closed||(a.next(this.value),a.complete()):g.then(function(c){b.value=c;b._isScalar=!0;a.closed||(a.next(c),a.complete())},function(b){a.closed||a.error(b)}).then(null,function(a){Q.root.setTimeout(function(){throw a;})});else if(this._isScalar){if(!a.closed)return e.schedule(c,0,{value:this.value,subscriber:a})}else g.then(function(d){b.value=d;b._isScalar=!0;a.closed||a.add(e.schedule(c,
  0,{value:d,subscriber:a}))},function(b){a.closed||a.add(e.schedule(d,0,{err:b,subscriber:a}))}).then(null,function(a){Q.root.setTimeout(function(){throw a;})})};return b}(t.Observable);a.PromiseObservable=b}),Dm=k(function(b,a){a.fromPromise=Cm.PromiseObservable.create}),Yp=Dm.fromPromise,ci=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},di=function(){function b(a,b){this.validator=
  a;this.asyncValidator=b;this._onCollectionChange=function(){};this._pristine=!0;this._touched=!1}Object.defineProperty(b.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"invalid",{get:function(){return"INVALID"===
  this._status},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"errors",{get:function(){return this._errors},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,
  "valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0});b.prototype.setValidators=function(a){this.validator=Mj(a)};b.prototype.setAsyncValidators=function(a){this.asyncValidator=Nj(a)};b.prototype.clearValidators=function(){this.validator=null};b.prototype.clearAsyncValidators=function(){this.asyncValidator=null};b.prototype.markAsTouched=
  function(a){a=(void 0===a?{}:a).onlySelf;a=ff(a);this._touched=!0;D(this._parent)&&!a&&this._parent.markAsTouched({onlySelf:a})};b.prototype.markAsUntouched=function(a){a=(void 0===a?{}:a).onlySelf;this._touched=!1;this._forEachChild(function(a){a.markAsUntouched({onlySelf:!0})});D(this._parent)&&!a&&this._parent._updateTouched({onlySelf:a})};b.prototype.markAsDirty=function(a){a=(void 0===a?{}:a).onlySelf;a=ff(a);this._pristine=!1;D(this._parent)&&!a&&this._parent.markAsDirty({onlySelf:a})};b.prototype.markAsPristine=
  function(a){a=(void 0===a?{}:a).onlySelf;this._pristine=!0;this._forEachChild(function(a){a.markAsPristine({onlySelf:!0})});D(this._parent)&&!a&&this._parent._updatePristine({onlySelf:a})};b.prototype.markAsPending=function(a){a=(void 0===a?{}:a).onlySelf;a=ff(a);this._status="PENDING";D(this._parent)&&!a&&this._parent.markAsPending({onlySelf:a})};b.prototype.disable=function(a){var b=void 0===a?{}:a;a=b.onlySelf;b=b.emitEvent;b=D(b)?b:!0;this._status="DISABLED";this._errors=null;this._forEachChild(function(a){a.disable({onlySelf:!0})});
  this._updateValue();b&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status));this._updateAncestors(a);this._onDisabledChange(!0)};b.prototype.enable=function(a){var b=void 0===a?{}:a;a=b.onlySelf;b=b.emitEvent;this._status="VALID";this._forEachChild(function(a){a.enable({onlySelf:!0})});this.updateValueAndValidity({onlySelf:!0,emitEvent:b});this._updateAncestors(a);this._onDisabledChange(!1)};b.prototype._updateAncestors=function(a){D(this._parent)&&!a&&(this._parent.updateValueAndValidity(),
  this._parent._updatePristine(),this._parent._updateTouched())};b.prototype.setParent=function(a){this._parent=a};b.prototype.updateValueAndValidity=function(a){var b=void 0===a?{}:a;a=b.onlySelf;b=b.emitEvent;a=ff(a);b=D(b)?b:!0;this._setInitialStatus();this._updateValue();this.enabled&&(this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(b));b&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status));
  D(this._parent)&&!a&&this._parent.updateValueAndValidity({onlySelf:a,emitEvent:b})};b.prototype._updateTreeValidity=function(a){var b=(void 0===a?{emitEvent:!0}:a).emitEvent;this._forEachChild(function(a){return a._updateTreeValidity({emitEvent:b})});this.updateValueAndValidity({onlySelf:!0,emitEvent:b})};b.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"};b.prototype._runValidator=function(){return D(this.validator)?this.validator(this):null};b.prototype._runAsyncValidator=
  function(a){var b=this;D(this.asyncValidator)&&(this._status="PENDING",this._cancelExistingSubscription(),this._asyncValidationSubscription=Xp(this.asyncValidator(this)).subscribe({next:function(c){return b.setErrors(c,{emitEvent:a})}}))};b.prototype._cancelExistingSubscription=function(){D(this._asyncValidationSubscription)&&this._asyncValidationSubscription.unsubscribe()};b.prototype.setErrors=function(a,b){b=(void 0===b?{}:b).emitEvent;b=D(b)?b:!0;this._errors=a;this._updateControlsErrors(b)};
  b.prototype.get=function(a){return Wp(this,a,".")};b.prototype.getError=function(a,b){void 0===b&&(b=null);b=D(b)&&!Ob.isEmpty(b)?this.get(b):this;return D(b)&&D(b._errors)?jb.get(b._errors,a):null};b.prototype.hasError=function(a,b){void 0===b&&(b=null);return D(this.getError(a,b))};Object.defineProperty(b.prototype,"root",{get:function(){for(var a=this;D(a._parent);)a=a._parent;return a},enumerable:!0,configurable:!0});b.prototype._updateControlsErrors=function(a){this._status=this._calculateStatus();
  a&&this._statusChanges.emit(this._status);D(this._parent)&&this._parent._updateControlsErrors(a)};b.prototype._initObservables=function(){this._valueChanges=new nd;this._statusChanges=new nd};b.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":D(this._errors)?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"};b.prototype._anyControlsHaveStatus=function(a){return this._anyControls(function(b){return b.status==
  a})};b.prototype._anyControlsDirty=function(){return this._anyControls(function(a){return a.dirty})};b.prototype._anyControlsTouched=function(){return this._anyControls(function(a){return a.touched})};b.prototype._updatePristine=function(a){a=(void 0===a?{}:a).onlySelf;this._pristine=!this._anyControlsDirty();D(this._parent)&&!a&&this._parent._updatePristine({onlySelf:a})};b.prototype._updateTouched=function(a){a=(void 0===a?{}:a).onlySelf;this._touched=this._anyControlsTouched();D(this._parent)&&
  !a&&this._parent._updateTouched({onlySelf:a})};b.prototype._onDisabledChange=function(a){};b.prototype._isBoxedValue=function(a){return"object"===typeof a&&null!==a&&2===Object.keys(a).length&&"value"in a&&"disabled"in a};b.prototype._registerOnCollectionChange=function(a){this._onCollectionChange=a};return b}(),Ce=function(b){function a(a,d,e){void 0===a&&(a=null);void 0===d&&(d=null);void 0===e&&(e=null);b.call(this,Mj(d),Nj(e));this._onChange=[];this._applyFormState(a);this.updateValueAndValidity({onlySelf:!0,
  emitEvent:!1});this._initObservables()}ci(a,b);a.prototype.setValue=function(a,b){var c=this;b=void 0===b?{}:b;var d=b.onlySelf,g=b.emitEvent,h=b.emitModelToViewChange,m=b.emitViewToModelChange,h=D(h)?h:!0,m=D(m)?m:!0;this._value=a;this._onChange.length&&h&&this._onChange.forEach(function(a){return a(c._value,m)});this.updateValueAndValidity({onlySelf:d,emitEvent:g})};a.prototype.patchValue=function(a,b){void 0===b&&(b={});this.setValue(a,b)};a.prototype.reset=function(a,b){void 0===a&&(a=null);b=
  (void 0===b?{}:b).onlySelf;this._applyFormState(a);this.markAsPristine({onlySelf:b});this.markAsUntouched({onlySelf:b});this.setValue(this._value,{onlySelf:b})};a.prototype._updateValue=function(){};a.prototype._anyControls=function(a){return!1};a.prototype._allControlsDisabled=function(){return this.disabled};a.prototype.registerOnChange=function(a){this._onChange.push(a)};a.prototype._clearChangeFns=function(){this._onChange=[];this._onDisabledChange=null;this._onCollectionChange=function(){}};
  a.prototype.registerOnDisabledChange=function(a){this._onDisabledChange=a};a.prototype._forEachChild=function(a){};a.prototype._applyFormState=function(a){this._isBoxedValue(a)?(this._value=a.value,a.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=a};return a}(di),zd=function(b){function a(a,d,e){void 0===d&&(d=null);void 0===e&&(e=null);b.call(this,d,e);this.controls=a;this._initObservables();this._setUpControls();this.updateValueAndValidity({onlySelf:!0,
  emitEvent:!1})}ci(a,b);a.prototype.registerControl=function(a,b){if(this.controls[a])return this.controls[a];this.controls[a]=b;b.setParent(this);b._registerOnCollectionChange(this._onCollectionChange);return b};a.prototype.addControl=function(a,b){this.registerControl(a,b);this.updateValueAndValidity();this._onCollectionChange()};a.prototype.removeControl=function(a){this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});jb.delete(this.controls,a);this.updateValueAndValidity();
  this._onCollectionChange()};a.prototype.setControl=function(a,b){this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});jb.delete(this.controls,a);b&&this.registerControl(a,b);this.updateValueAndValidity();this._onCollectionChange()};a.prototype.contains=function(a){return this.controls.hasOwnProperty(a)&&this.controls[a].enabled};a.prototype.setValue=function(a,b){var c=this;b=(void 0===b?{}:b).onlySelf;this._checkAllValuesPresent(a);jb.forEach(a,function(a,b){c._throwIfControlMissing(b);
  c.controls[b].setValue(a,{onlySelf:!0})});this.updateValueAndValidity({onlySelf:b})};a.prototype.patchValue=function(a,b){var c=this;b=(void 0===b?{}:b).onlySelf;jb.forEach(a,function(a,b){c.controls[b]&&c.controls[b].patchValue(a,{onlySelf:!0})});this.updateValueAndValidity({onlySelf:b})};a.prototype.reset=function(a,b){void 0===a&&(a={});b=(void 0===b?{}:b).onlySelf;this._forEachChild(function(b,c){b.reset(a[c],{onlySelf:!0})});this.updateValueAndValidity({onlySelf:b});this._updatePristine({onlySelf:b});
  this._updateTouched({onlySelf:b})};a.prototype.getRawValue=function(){return this._reduceChildren({},function(a,b,e){a[e]=b.value;return a})};a.prototype._throwIfControlMissing=function(a){if(!Object.keys(this.controls).length)throw Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[a])throw Error("Cannot find form control with name: "+a+".");};a.prototype._forEachChild=
  function(a){jb.forEach(this.controls,a)};a.prototype._setUpControls=function(){var a=this;this._forEachChild(function(b){b.setParent(a);b._registerOnCollectionChange(a._onCollectionChange)})};a.prototype._updateValue=function(){this._value=this._reduceValue()};a.prototype._anyControls=function(a){var b=this,c=!1;this._forEachChild(function(d,g){c=c||b.contains(g)&&a(d)});return c};a.prototype._reduceValue=function(){var a=this;return this._reduceChildren({},function(b,c,f){if(c.enabled||a.disabled)b[f]=
  c.value;return b})};a.prototype._reduceChildren=function(a,b){var c=a;this._forEachChild(function(a,d){c=b(c,a,d)});return c};a.prototype._allControlsDisabled=function(){for(var a=0,b=Object.keys(this.controls);a<b.length;a++)if(this.controls[b[a]].enabled)return!1;return 0<Object.keys(this.controls).length||this.disabled};a.prototype._checkAllValuesPresent=function(a){this._forEachChild(function(b,c){if(void 0===a[c])throw Error("Must supply a value for form control with name: '"+c+"'.");})};return a}(di),
  Yg=function(b){function a(a,d,e){void 0===d&&(d=null);void 0===e&&(e=null);b.call(this,d,e);this.controls=a;this._initObservables();this._setUpControls();this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}ci(a,b);a.prototype.at=function(a){return this.controls[a]};a.prototype.push=function(a){this.controls.push(a);this._registerControl(a);this.updateValueAndValidity();this._onCollectionChange()};a.prototype.insert=function(a,b){Ob.insert(this.controls,a,b);this._registerControl(b);this.updateValueAndValidity();
  this._onCollectionChange()};a.prototype.removeAt=function(a){this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});Ob.removeAt(this.controls,a);this.updateValueAndValidity();this._onCollectionChange()};a.prototype.setControl=function(a,b){this.controls[a]&&this.controls[a]._registerOnCollectionChange(function(){});Ob.removeAt(this.controls,a);b&&(Ob.insert(this.controls,a,b),this._registerControl(b));this.updateValueAndValidity();this._onCollectionChange()};Object.defineProperty(a.prototype,
  "length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0});a.prototype.setValue=function(a,b){var c=this;b=(void 0===b?{}:b).onlySelf;this._checkAllValuesPresent(a);a.forEach(function(a,b){c._throwIfControlMissing(b);c.at(b).setValue(a,{onlySelf:!0})});this.updateValueAndValidity({onlySelf:b})};a.prototype.patchValue=function(a,b){var c=this;b=(void 0===b?{}:b).onlySelf;a.forEach(function(a,b){c.at(b)&&c.at(b).patchValue(a,{onlySelf:!0})});this.updateValueAndValidity({onlySelf:b})};
  a.prototype.reset=function(a,b){void 0===a&&(a=[]);b=(void 0===b?{}:b).onlySelf;this._forEachChild(function(b,c){b.reset(a[c],{onlySelf:!0})});this.updateValueAndValidity({onlySelf:b});this._updatePristine({onlySelf:b});this._updateTouched({onlySelf:b})};a.prototype.getRawValue=function(){return this.controls.map(function(a){return a.value})};a.prototype._throwIfControlMissing=function(a){if(!this.controls.length)throw Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");
  if(!this.at(a))throw Error("Cannot find form control at index "+a);};a.prototype._forEachChild=function(a){this.controls.forEach(function(b,c){a(b,c)})};a.prototype._updateValue=function(){var a=this;this._value=this.controls.filter(function(b){return b.enabled||a.disabled}).map(function(a){return a.value})};a.prototype._anyControls=function(a){return this.controls.some(function(b){return b.enabled&&a(b)})};a.prototype._setUpControls=function(){var a=this;this._forEachChild(function(b){return a._registerControl(b)})};
  a.prototype._checkAllValuesPresent=function(a){this._forEachChild(function(b,c){if(void 0===a[c])throw Error("Must supply a value for form control at index: "+c+".");})};a.prototype._allControlsDisabled=function(){for(var a=0,b=this.controls;a<b.length;a++)if(b[a].enabled)return!1;return 0<this.controls.length||this.disabled};a.prototype._registerControl=function(a){a.setParent(this);a._registerOnCollectionChange(this._onCollectionChange)};return a}(di),Gv=function(b,a){function c(){this.constructor=
  b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Hv={provide:hb,useExisting:Ia(function(){return ei})},De=Promise.resolve(null),ei=function(b){function a(a,d){b.call(this);this._submitted=!1;this.ngSubmit=new nd;this.form=new zd({},Dc(a),Ec(d))}Gv(a,b);Object.defineProperty(a.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"formDirective",{get:function(){return this},
  enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0});a.prototype.addControl=function(a){var b=this;De.then(function(){var c=b._findContainer(a.path);a._control=c.registerControl(a.name,a.control);
  me(a.control,a);a.control.updateValueAndValidity({emitEvent:!1})})};a.prototype.getControl=function(a){return this.form.get(a.path)};a.prototype.removeControl=function(a){var b=this;De.then(function(){var c=b._findContainer(a.path);D(c)&&c.removeControl(a.name)})};a.prototype.addFormGroup=function(a){var b=this;De.then(function(){var c=b._findContainer(a.path),d=new zd({});Rg(d,a);c.registerControl(a.name,d);d.updateValueAndValidity({emitEvent:!1})})};a.prototype.removeFormGroup=function(a){var b=
  this;De.then(function(){var c=b._findContainer(a.path);D(c)&&c.removeControl(a.name)})};a.prototype.getFormGroup=function(a){return this.form.get(a.path)};a.prototype.updateModel=function(a,b){var c=this;De.then(function(){c.form.get(a.path).setValue(b)})};a.prototype.setValue=function(a){this.control.setValue(a)};a.prototype.onSubmit=function(){this._submitted=!0;this.ngSubmit.emit(null);return!1};a.prototype.onReset=function(){this.resetForm()};a.prototype.resetForm=function(a){void 0===a&&(a=void 0);
  this.form.reset(a);this._submitted=!1};a.prototype._findContainer=function(a){a.pop();return Ob.isEmpty(a)?this.form:this.form.get(a)};a.decorators=[{type:da,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Hv],host:{"(submit)":"onSubmit()","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}];a.ctorParameters=[{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]}];return a}(hb),
  $f=function(){function b(){}b.modelParentException=function(){throw Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n      \x3cinput formControlName\x3d"firstName"\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.myGroup \x3d new FormGroup({\n       firstName: new FormControl()\n    });\n\n      Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n      Example:\n\n      \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n       \x3cinput formControlName\x3d"firstName"\x3e\n       \x3cinput [(ngModel)]\x3d"showMoreControls" [ngModelOptions]\x3d"{standalone: true}"\x3e\n    \x3c/div\x3e\n  ');
  };b.formGroupNameException=function(){throw Error('\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n       \x3cdiv formGroupName\x3d"person"\x3e\n          \x3cinput formControlName\x3d"firstName"\x3e\n       \x3c/div\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.myGroup \x3d new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });\n\n      Option 2:  Update ngModel\'s parent be ngModelGroup (template-driven strategy):\n\n      \n    \x3cform\x3e\n       \x3cdiv ngModelGroup\x3d"person"\x3e\n          \x3cinput [(ngModel)]\x3d"person.name" name\x3d"firstName"\x3e\n       \x3c/div\x3e\n    \x3c/form\x3e');
  };b.missingNameException=function(){throw Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: \x3cinput [(ngModel)]\x3d"person.firstName" name\x3d"first"\x3e\n      Example 2: \x3cinput [(ngModel)]\x3d"person.firstName" [ngModelOptions]\x3d"{standalone: true}"\x3e');};b.modelGroupParentException=function(){throw Error('\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n       \x3cdiv formGroupName\x3d"person"\x3e\n          \x3cinput formControlName\x3d"firstName"\x3e\n       \x3c/div\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.myGroup \x3d new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      \n    \x3cform\x3e\n       \x3cdiv ngModelGroup\x3d"person"\x3e\n          \x3cinput [(ngModel)]\x3d"person.name" name\x3d"firstName"\x3e\n       \x3c/div\x3e\n    \x3c/form\x3e');
  };return b}(),Iv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Jv={provide:hb,useExisting:Ia(function(){return fi})},fi=function(b){function a(a,d,e){b.call(this);this._parent=a;this._validators=d;this._asyncValidators=e}Iv(a,b);a.prototype._checkParentType=function(){this._parent instanceof a||this._parent instanceof ei||$f.modelGroupParentException()};a.decorators=[{type:da,args:[{selector:"[ngModelGroup]",
  providers:[Jv],exportAs:"ngModelGroup"}]}];a.ctorParameters=[{type:hb,decorators:[{type:yb},{type:Vb}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]}];a.propDecorators={name:[{type:Y,args:["ngModelGroup"]}]};return a}(Zf),Kv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Mv={provide:Vc,useExisting:Ia(function(){return Lv})},
  Em=Promise.resolve(null),Lv=function(b){function a(a,d,e,f){b.call(this);this._control=new Ce;this._registered=!1;this.update=new nd;this._parent=a;this._rawValidators=d||[];this._rawAsyncValidators=e||[];this.valueAccessor=Tg(this,f)}Kv(a,b);a.prototype.ngOnChanges=function(a){this._checkForErrors();this._registered||this._setUpControl();"isDisabled"in a&&this._updateDisabled(a);Sg(a,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)};a.prototype.ngOnDestroy=function(){this.formDirective&&
  this.formDirective.removeControl(this)};Object.defineProperty(a.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"path",{get:function(){return this._parent?gf(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"validator",{get:function(){return Dc(this._rawValidators)},
  enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"asyncValidator",{get:function(){return Ec(this._rawAsyncValidators)},enumerable:!0,configurable:!0});a.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};a.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this);this._registered=!0};a.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone};a.prototype._setUpStandalone=
  function(){me(this._control,this);this._control.updateValueAndValidity({emitEvent:!1})};a.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType();this._checkName()};a.prototype._checkParentType=function(){!(this._parent instanceof fi)&&this._parent instanceof Zf?$f.formGroupNameException():this._parent instanceof fi||this._parent instanceof ei||$f.modelParentException()};a.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name);this._isStandalone()||
  this.name||$f.missingNameException()};a.prototype._updateValue=function(a){var b=this;Em.then(function(){b.control.setValue(a,{emitViewToModelChange:!1})})};a.prototype._updateDisabled=function(a){var b=this;a=a.isDisabled.currentValue;var c=null!=a&&0!=a;Em.then(function(){c&&!b.control.disabled?b.control.disable():!c&&b.control.disabled&&b.control.enable()})};a.decorators=[{type:da,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Mv],exportAs:"ngModel"}]}];a.ctorParameters=
  [{type:hb,decorators:[{type:W},{type:yb}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[sc]}]}];a.propDecorators={name:[{type:Y}],isDisabled:[{type:Y,args:["disabled"]}],model:[{type:Y,args:["ngModel"]}],options:[{type:Y,args:["ngModelOptions"]}],update:[{type:ue,args:["ngModelChange"]}]};return a}(Vc),od=function(){function b(){}b.controlParentException=function(){throw Error('formControlName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n      \x3cinput formControlName\x3d"firstName"\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.myGroup \x3d new FormGroup({\n       firstName: new FormControl()\n    });');
  };b.ngModelGroupException=function(){throw Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n       \x3cdiv formGroupName\x3d"person"\x3e\n          \x3cinput formControlName\x3d"firstName"\x3e\n       \x3c/div\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.myGroup \x3d new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        \n    \x3cform\x3e\n       \x3cdiv ngModelGroup\x3d"person"\x3e\n          \x3cinput [(ngModel)]\x3d"person.name" name\x3d"firstName"\x3e\n       \x3c/div\x3e\n    \x3c/form\x3e');
  };b.missingFormException=function(){throw Error('formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n      \x3cinput formControlName\x3d"firstName"\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.myGroup \x3d new FormGroup({\n       firstName: new FormControl()\n    });');};b.groupParentException=function(){throw Error('formGroupName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n       \x3cdiv formGroupName\x3d"person"\x3e\n          \x3cinput formControlName\x3d"firstName"\x3e\n       \x3c/div\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.myGroup \x3d new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });');
  };b.arrayParentException=function(){throw Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    \x3cdiv [formGroup]\x3d"myGroup"\x3e\n      \x3cdiv formArrayName\x3d"cities"\x3e\n        \x3cdiv *ngFor\x3d"let city of cityArray.controls; let i\x3dindex"\x3e\n          \x3cinput [formControlName]\x3d"i"\x3e\n        \x3c/div\x3e\n      \x3c/div\x3e\n    \x3c/div\x3e\n\n    In your class:\n\n    this.cityArray \x3d new FormArray([new FormControl(\'SF\')]);\n    this.myGroup \x3d new FormGroup({\n      cities: this.cityArray\n    });');
  };b.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form \x3d new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")};
  return b}(),Nv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Ov={provide:Vc,useExisting:Ia(function(){return Fm})},Fm=function(b){function a(a,d,e){b.call(this);this.update=new nd;this._rawValidators=a||[];this._rawAsyncValidators=d||[];this.valueAccessor=Tg(this,e)}Nv(a,b);Object.defineProperty(a.prototype,"isDisabled",{set:function(a){od.disabledAttrWarning()},enumerable:!0,configurable:!0});
  a.prototype.ngOnChanges=function(a){this._isControlChanged(a)&&(me(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1}));Sg(a,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)};Object.defineProperty(a.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"validator",{get:function(){return Dc(this._rawValidators)},enumerable:!0,configurable:!0});
  Object.defineProperty(a.prototype,"asyncValidator",{get:function(){return Ec(this._rawAsyncValidators)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0});a.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};a.prototype._isControlChanged=function(a){return jb.contains(a,"form")};a.decorators=[{type:da,args:[{selector:"[formControl]",providers:[Ov],exportAs:"ngForm"}]}];a.ctorParameters=
  [{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[sc]}]}];a.propDecorators={form:[{type:Y,args:["formControl"]}],model:[{type:Y,args:["ngModel"]}],update:[{type:ue,args:["ngModelChange"]}],isDisabled:[{type:Y,args:["disabled"]}]};return a}(Vc),Pv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):
  (c.prototype=a.prototype,new c)},Qv={provide:hb,useExisting:Ia(function(){return kf})},kf=function(b){function a(a,d){b.call(this);this._validators=a;this._asyncValidators=d;this._submitted=!1;this.directives=[];this.form=null;this.ngSubmit=new nd}Pv(a,b);a.prototype.ngOnChanges=function(a){this._checkFormPresent();jb.contains(a,"form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())};Object.defineProperty(a.prototype,"submitted",{get:function(){return this._submitted},
  enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0});a.prototype.addControl=function(a){var b=this.form.get(a.path);me(b,a);b.updateValueAndValidity({emitEvent:!1});this.directives.push(a);return b};a.prototype.getControl=
  function(a){return this.form.get(a.path)};a.prototype.removeControl=function(a){Ob.remove(this.directives,a)};a.prototype.addFormGroup=function(a){var b=this.form.get(a.path);Rg(b,a);b.updateValueAndValidity({emitEvent:!1})};a.prototype.removeFormGroup=function(a){};a.prototype.getFormGroup=function(a){return this.form.get(a.path)};a.prototype.addFormArray=function(a){var b=this.form.get(a.path);Rg(b,a);b.updateValueAndValidity({emitEvent:!1})};a.prototype.removeFormArray=function(a){};a.prototype.getFormArray=
  function(a){return this.form.get(a.path)};a.prototype.updateModel=function(a,b){this.form.get(a.path).setValue(b)};a.prototype.onSubmit=function(){this._submitted=!0;this.ngSubmit.emit(null);return!1};a.prototype.onReset=function(){this.resetForm()};a.prototype.resetForm=function(a){void 0===a&&(a=void 0);this.form.reset(a);this._submitted=!1};a.prototype._updateDomValue=function(){var a=this;this.directives.forEach(function(b){var c=a.form.get(b.path);b._control!==c&&(Vp(b._control,b),c&&me(c,b),
  b._control=c)});this.form._updateTreeValidity({emitEvent:!1})};a.prototype._updateRegistrations=function(){var a=this;this.form._registerOnCollectionChange(function(){return a._updateDomValue()});this._oldForm&&this._oldForm._registerOnCollectionChange(function(){});this._oldForm=this.form};a.prototype._updateValidators=function(){var a=Dc(this._validators);this.form.validator=rb.compose([this.form.validator,a]);a=Ec(this._asyncValidators);this.form.asyncValidator=rb.composeAsync([this.form.asyncValidator,
  a])};a.prototype._checkFormPresent=function(){fb(this.form)&&od.missingFormException()};a.decorators=[{type:da,args:[{selector:"[formGroup]",providers:[Qv],host:{"(submit)":"onSubmit()","(reset)":"onReset()"},exportAs:"ngForm"}]}];a.ctorParameters=[{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]}];a.propDecorators={form:[{type:Y,args:["formGroup"]}],ngSubmit:[{type:ue}]};return a}(hb),Gm=function(b,a){function c(){this.constructor=
  b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Rv={provide:hb,useExisting:Ia(function(){return ne})},ne=function(b){function a(a,d,e){b.call(this);this._parent=a;this._validators=d;this._asyncValidators=e}Gm(a,b);a.prototype._checkParentType=function(){Oj(this._parent)&&od.groupParentException()};a.decorators=[{type:da,args:[{selector:"[formGroupName]",providers:[Rv]}]}];a.ctorParameters=[{type:hb,decorators:[{type:W},{type:yb},
  {type:Vb}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]}];a.propDecorators={name:[{type:Y,args:["formGroupName"]}]};return a}(Zf),Sv={provide:hb,useExisting:Ia(function(){return lf})},lf=function(b){function a(a,d,e){b.call(this);this._parent=a;this._validators=d;this._asyncValidators=e}Gm(a,b);a.prototype.ngOnInit=function(){this._checkParentType();this.formDirective.addFormArray(this)};a.prototype.ngOnDestroy=function(){this.formDirective&&
  this.formDirective.removeFormArray(this)};Object.defineProperty(a.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"path",{get:function(){return gf(this.name,this._parent)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"validator",
  {get:function(){return Dc(this._validators)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"asyncValidator",{get:function(){return Ec(this._asyncValidators)},enumerable:!0,configurable:!0});a.prototype._checkParentType=function(){Oj(this._parent)&&od.arrayParentException()};a.decorators=[{type:da,args:[{selector:"[formArrayName]",providers:[Sv]}]}];a.ctorParameters=[{type:hb,decorators:[{type:W},{type:yb},{type:Vb}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},
  {type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]}];a.propDecorators={name:[{type:Y,args:["formArrayName"]}]};return a}(hb),Tv=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Uv={provide:Vc,useExisting:Ia(function(){return Hm})},Hm=function(b){function a(a,d,e,f){b.call(this);this._added=!1;this.update=new nd;this._parent=a;this._rawValidators=d||[];this._rawAsyncValidators=
  e||[];this.valueAccessor=Tg(this,f)}Tv(a,b);Object.defineProperty(a.prototype,"isDisabled",{set:function(a){od.disabledAttrWarning()},enumerable:!0,configurable:!0});a.prototype.ngOnChanges=function(a){this._added||this._setUpControl();Sg(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))};a.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)};a.prototype.viewToModelUpdate=function(a){this.viewModel=a;this.update.emit(a)};
  Object.defineProperty(a.prototype,"path",{get:function(){return gf(this.name,this._parent)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"validator",{get:function(){return Dc(this._rawValidators)},enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"asyncValidator",{get:function(){return Ec(this._rawAsyncValidators)},
  enumerable:!0,configurable:!0});Object.defineProperty(a.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0});a.prototype._checkParentType=function(){!(this._parent instanceof ne)&&this._parent instanceof Zf?od.ngModelGroupException():this._parent instanceof ne||this._parent instanceof kf||this._parent instanceof lf||od.controlParentException()};a.prototype._setUpControl=function(){this._checkParentType();this._control=this.formDirective.addControl(this);this.control.disabled&&
  this.valueAccessor.setDisabledState(!0);this._added=!0};a.decorators=[{type:da,args:[{selector:"[formControlName]",providers:[Uv]}]}];a.ctorParameters=[{type:hb,decorators:[{type:W},{type:yb},{type:Vb}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Hb]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[Uc]}]},{type:Array,decorators:[{type:W},{type:va},{type:U,args:[sc]}]}];a.propDecorators={name:[{type:Y,args:["formControlName"]}],model:[{type:Y,args:["ngModel"]}],update:[{type:ue,
  args:["ngModelChange"]}],isDisabled:[{type:Y,args:["disabled"]}]};return a}(Vc),Vv={provide:Hb,useExisting:Ia(function(){return Im}),multi:!0},Im=function(){function b(){}Object.defineProperty(b.prototype,"required",{get:function(){return this._required},set:function(a){this._required=D(a)&&"false"!==""+a;this._onChange&&this._onChange()},enumerable:!0,configurable:!0});b.prototype.validate=function(a){return this.required?rb.required(a):null};b.prototype.registerOnValidatorChange=function(a){this._onChange=
  a};b.decorators=[{type:da,args:[{selector:"[required][formControlName],[required][formControl],[required][ngModel]",providers:[Vv],host:{"[attr.required]":'required? "" : null'}}]}];b.ctorParameters=[];b.propDecorators={required:[{type:Y}]};return b}(),Wv={provide:Hb,useExisting:Ia(function(){return Jm}),multi:!0},Jm=function(){function b(){}b.prototype._createValidator=function(){this._validator=rb.minLength(parseInt(this.minlength,10))};b.prototype.ngOnChanges=function(a){a.minlength&&(this._createValidator(),
  this._onChange&&this._onChange())};b.prototype.validate=function(a){return D(this.minlength)?this._validator(a):null};b.prototype.registerOnValidatorChange=function(a){this._onChange=a};b.decorators=[{type:da,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Wv],host:{"[attr.minlength]":"minlength? minlength : null"}}]}];b.ctorParameters=[];b.propDecorators={minlength:[{type:Y}]};return b}(),Xv={provide:Hb,useExisting:Ia(function(){return Km}),
  multi:!0},Km=function(){function b(){}b.prototype._createValidator=function(){this._validator=rb.maxLength(parseInt(this.maxlength,10))};b.prototype.ngOnChanges=function(a){a.maxlength&&(this._createValidator(),this._onChange&&this._onChange())};b.prototype.validate=function(a){return D(this.maxlength)?this._validator(a):null};b.prototype.registerOnValidatorChange=function(a){this._onChange=a};b.decorators=[{type:da,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",
  providers:[Xv],host:{"[attr.maxlength]":"maxlength? maxlength : null"}}]}];b.ctorParameters=[];b.propDecorators={maxlength:[{type:Y}]};return b}(),Yv={provide:Hb,useExisting:Ia(function(){return Lm}),multi:!0},Lm=function(){function b(){}b.prototype._createValidator=function(){this._validator=rb.pattern(this.pattern)};b.prototype.ngOnChanges=function(a){a.pattern&&(this._createValidator(),this._onChange&&this._onChange())};b.prototype.validate=function(a){return D(this.pattern)?this._validator(a):
  null};b.prototype.registerOnValidatorChange=function(a){this._onChange=a};b.decorators=[{type:da,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Yv],host:{"[attr.pattern]":"pattern? pattern : null"}}]}];b.ctorParameters=[];b.propDecorators={pattern:[{type:Y}]};return b}(),Zv=function(){function b(){}b.prototype.group=function(a,b){void 0===b&&(b=null);a=this._reduceControls(a);var c=D(b)?jb.get(b,"validator"):null;b=D(b)?jb.get(b,"asyncValidator"):
  null;return new zd(a,c,b)};b.prototype.control=function(a,b,d){void 0===b&&(b=null);void 0===d&&(d=null);return new Ce(a,b,d)};b.prototype.array=function(a,b,d){var c=this;void 0===b&&(b=null);void 0===d&&(d=null);a=a.map(function(a){return c._createControl(a)});return new Yg(a,b,d)};b.prototype._reduceControls=function(a){var b=this,d={};jb.forEach(a,function(a,c){d[c]=b._createControl(a)});return d};b.prototype._createControl=function(a){return a instanceof Ce||a instanceof zd||a instanceof Yg?
  a:Array.isArray(a)?this.control(a[0],1<a.length?a[1]:null,2<a.length?a[2]:null):this.control(a)};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),Mm=[zv,Bv,Ug,Wg,Vg,hf,jf,Xg,Dv,Ev,Im,Jm,Km,Lm],Nm=[Fm,kf,Hm,ne,lf],$v=function(){function b(){}b.decorators=[{type:Mc,args:[{declarations:Mm,exports:Mm}]}];b.ctorParameters=[];return b}(),aw=function(){function b(){}b.decorators=[{type:Mc,args:[{declarations:[Nm],providers:[Zv,ym],exports:[$v,Nm]}]}];b.ctorParameters=[];return b}(),ag="undefined"===
  typeof window?"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;ag.assert=function(b){};var dq=Object.getPrototypeOf({}),T=function(){function b(){}b.fromCharCode=function(a){return String.fromCharCode(a)};b.charCodeAt=function(a,b){return a.charCodeAt(b)};b.split=function(a,b){return a.split(b)};b.equals=function(a,b){return a===b};b.stripLeft=function(a,b){if(a&&a.length){for(var c=0,e=0;e<a.length&&a[e]==b;e++)c++;a=a.substring(c)}return a};b.stripRight=
  function(a,b){if(a&&a.length){for(var c=a.length,e=a.length-1;0<=e&&a[e]==b;e--)c--;a=a.substring(0,c)}return a};b.replace=function(a,b,d){return a.replace(b,d)};b.replaceAll=function(a,b,d){return a.replace(b,d)};b.slice=function(a,b,d){void 0===b&&(b=0);void 0===d&&(d=null);return a.slice(b,null===d?void 0:d)};b.replaceAllMapped=function(a,b,d){return a.replace(b,function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];a.splice(-2,2);return d(a)})};b.contains=function(a,b){return-1!=
  a.indexOf(b)};b.compare=function(a,b){return a<b?-1:a>b?1:0};return b}(),bw=function(){function b(a){void 0===a&&(a=[]);this.parts=a}b.prototype.add=function(a){this.parts.push(a)};b.prototype.toString=function(){return this.parts.join("")};return b}(),Om=function(){function b(){}b.toFixed=function(a,b){return a.toFixed(b)};b.equal=function(a,b){return a===b};b.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Invalid integer literal when parsing "+a);return b};b.parseInt=function(a,
  b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw Error("Invalid integer literal when parsing "+a+" in base "+b);};Object.defineProperty(b,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0});b.isNumeric=function(a){return!isNaN(a-parseFloat(a))};b.isNaN=function(a){return isNaN(a)};b.isInteger=function(a){return Number.isInteger(a)};return b}(),
  Pm=function(){function b(a,b,d){this.value=a;this.ngContentIndex=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitText(this,b)};return b}(),cw=function(){function b(a,b,d){this.value=a;this.ngContentIndex=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitBoundText(this,b)};return b}(),Qm=function(){function b(a,b,d){this.name=a;this.value=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitAttr(this,b)};return b}(),Rm=function(){function b(a,b,d,e,f,
  g){this.name=a;this.type=b;this.securityContext=d;this.value=e;this.unit=f;this.sourceSpan=g}b.prototype.visit=function(a,b){return a.visitElementProperty(this,b)};return b}(),dw=function(){function b(a,b,d,e){this.name=a;this.target=b;this.handler=d;this.sourceSpan=e}b.prototype.visit=function(a,b){return a.visitEvent(this,b)};Object.defineProperty(b.prototype,"fullName",{get:function(){return p(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0});return b}(),Sm=function(){function b(a,
  b,d){this.name=a;this.value=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitReference(this,b)};return b}(),Tm=function(){function b(a,b,d){this.name=a;this.value=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitVariable(this,b)};return b}(),Um=function(){function b(a,b,d,e,f,g,h,m,r,u,v){this.name=a;this.attrs=b;this.inputs=d;this.outputs=e;this.references=f;this.directives=g;this.providers=h;this.hasViewContainer=m;this.children=r;this.ngContentIndex=u;this.sourceSpan=
  v}b.prototype.visit=function(a,b){return a.visitElement(this,b)};return b}(),Vm=function(){function b(a,b,d,e,f,g,h,m,r,u){this.attrs=a;this.outputs=b;this.references=d;this.variables=e;this.directives=f;this.providers=g;this.hasViewContainer=h;this.children=m;this.ngContentIndex=r;this.sourceSpan=u}b.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)};return b}(),ew=function(){function b(a,b,d,e){this.directiveName=a;this.templateName=b;this.value=d;this.sourceSpan=e}b.prototype.visit=
  function(a,b){return a.visitDirectiveProperty(this,b)};return b}(),fw=function(){function b(a,b,d,e,f){this.directive=a;this.inputs=b;this.hostProperties=d;this.hostEvents=e;this.sourceSpan=f}b.prototype.visit=function(a,b){return a.visitDirective(this,b)};return b}(),rf=function(){function b(a,b,d,e,f,g,h){this.token=a;this.multiProvider=b;this.eager=d;this.providers=e;this.providerType=f;this.lifecycleHooks=g;this.sourceSpan=h}b.prototype.visit=function(a,b){return null};return b}(),sa;(function(b){b[b.PublicService=
  0]="PublicService";b[b.PrivateService=1]="PrivateService";b[b.Component=2]="Component";b[b.Directive=3]="Directive";b[b.Builtin=4]="Builtin"})(sa||(sa={}));var gw=function(){function b(a,b,d){this.index=a;this.ngContentIndex=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitNgContent(this,b)};return b}(),lb;(function(b){b[b.Property=0]="Property";b[b.Attribute=1]="Attribute";b[b.Class=2]="Class";b[b.Style=3]="Style";b[b.Animation=4]="Animation"})(lb||(lb={}));var ec=ag.Map,gi=ag.Set,
  hw=function(){try{if(1===(new ec([[1,2]])).size)return function(b){return new ec(b)}}catch(b){}return function(b){for(var a=new ec,c=0;c<b.length;c++){var d=b[c];a.set(d[0],d[1])}return a}}(),iw=function(){try{return new ec(new ec),function(b){return new ec(b)}}catch(b){}return function(b){var a=new ec;b.forEach(function(b,d){a.set(d,b)});return a}}(),jw=function(){return(new ec).keys().next?function(b){for(var a=b.keys(),c;!(c=a.next()).done;)b.set(c.value,null)}:function(b){b.forEach(function(a,
  c){b.set(c,null)})}}(),Wm=function(){try{if((new ec).values().next)return function(b,a){return a?Array.from(b.values()):Array.from(b.keys())}}catch(b){}return function(b,a){var c=ja.createFixedSize(b.size),d=0;b.forEach(function(b,f){c[d]=a?b:f;d++});return c}}(),Ya=function(){function b(){}b.clone=function(a){return iw(a)};b.createFromStringMap=function(a){var b=new ec,d;for(d in a)b.set(d,a[d]);return b};b.toStringMap=function(a){var b={};a.forEach(function(a,c){return b[c]=a});return b};b.createFromPairs=
  function(a){return hw(a)};b.clearValues=function(a){jw(a)};b.iterable=function(a){return a};b.keys=function(a){return Wm(a,!1)};b.values=function(a){return Wm(a,!0)};return b}(),na=function(){function b(){}b.create=function(){return{}};b.contains=function(a,b){return a.hasOwnProperty(b)};b.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0};b.set=function(a,b,d){a[b]=d};b.keys=function(a){return Object.keys(a)};b.values=function(a){return Object.keys(a).map(function(b){return a[b]})};b.isEmpty=
  function(a){for(var b in a)return!1;return!0};b.delete=function(a,b){delete a[b]};b.forEach=function(a,b){for(var c=0,e=Object.keys(a);c<e.length;c++){var f=e[c];b(a[f],f)}};b.merge=function(a,b){for(var c={},e=0,f=Object.keys(a);e<f.length;e++){var g=f[e];c[g]=a[g]}a=0;for(e=Object.keys(b);a<e.length;a++)g=e[a],c[g]=b[g];return c};b.equals=function(a,b){var c=Object.keys(a),e=Object.keys(b);if(c.length!=e.length)return!1;for(e=0;e<c.length;e++){var f=c[e];if(a[f]!==b[f])return!1}return!0};return b}(),
  ja=function(){function b(){}b.createFixedSize=function(a){return Array(a)};b.createGrowableSize=function(a){return Array(a)};b.clone=function(a){return a.slice(0)};b.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)};b.first=function(a){return a?a[0]:null};b.last=function(a){return a&&0!=a.length?a[a.length-1]:null};b.indexOf=function(a,b,d){void 0===d&&(d=0);return a.indexOf(b,d)};b.contains=function(a,b){return-1!==a.indexOf(b)};b.reversed=function(a){return b.clone(a).reverse()};
  b.concat=function(a,b){return a.concat(b)};b.insert=function(a,b,d){a.splice(b,0,d)};b.removeAt=function(a,b){var c=a[b];a.splice(b,1);return c};b.removeAll=function(a,b){for(var c=0;c<b.length;++c){var e=a.indexOf(b[c]);a.splice(e,1)}};b.remove=function(a,b){b=a.indexOf(b);return-1<b?(a.splice(b,1),!0):!1};b.clear=function(a){a.length=0};b.isEmpty=function(a){return 0==a.length};b.fill=function(a,b,d,e){void 0===d&&(d=0);void 0===e&&(e=null);a.fill(b,d,null===e?a.length:e)};b.equals=function(a,b){if(a.length!=
  b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};b.slice=function(a,b,d){void 0===b&&(b=0);void 0===d&&(d=null);return a.slice(b,null===d?void 0:d)};b.splice=function(a,b,d){return a.splice(b,d)};b.sort=function(a,b){p(b)?a.sort(b):a.sort()};b.toString=function(a){return a.toString()};b.toJSON=function(a){return JSON.stringify(a)};b.maximum=function(a,b){if(0==a.length)return null;for(var c=null,e=-Infinity,f=0;f<a.length;f++){var g=a[f];if(!z(g)){var h=b(g);h>e&&(c=
  g,e=h)}}return c};b.flatten=function(a){var b=[];Rj(a,b);return b};b.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])};return b}(),kw=function(){return 3===(new gi([1,2,3])).size?function(b){return new gi(b)}:function(b){var a=new gi(b);if(a.size!==b.length)for(var c=0;c<b.length;c++)a.add(b[c]);return a}}(),uh=function(){function b(){}b.createFromList=function(a){return kw(a)};b.has=function(a,b){return a.has(b)};b.delete=function(a,b){a.delete(b)};return b}(),fc;(function(b){b[b.RAW_TEXT=
  0]="RAW_TEXT";b[b.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT";b[b.PARSABLE_DATA=2]="PARSABLE_DATA"})(fc||(fc={}));var lw={Aacute:"\u00c1",aacute:"\u00e1",Acirc:"\u00c2",acirc:"\u00e2",acute:"\u00b4",AElig:"\u00c6",aelig:"\u00e6",Agrave:"\u00c0",agrave:"\u00e0",alefsym:"\u2135",Alpha:"\u0391",alpha:"\u03b1",amp:"\x26",and:"\u2227",ang:"\u2220",apos:"'",Aring:"\u00c5",aring:"\u00e5",asymp:"\u2248",Atilde:"\u00c3",atilde:"\u00e3",Auml:"\u00c4",auml:"\u00e4",bdquo:"\u201e",Beta:"\u0392",beta:"\u03b2",
  brvbar:"\u00a6",bull:"\u2022",cap:"\u2229",Ccedil:"\u00c7",ccedil:"\u00e7",cedil:"\u00b8",cent:"\u00a2",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",clubs:"\u2663",cong:"\u2245",copy:"\u00a9",crarr:"\u21b5",cup:"\u222a",curren:"\u00a4",dagger:"\u2020",Dagger:"\u2021",darr:"\u2193",dArr:"\u21d3",deg:"\u00b0",Delta:"\u0394",delta:"\u03b4",diams:"\u2666",divide:"\u00f7",Eacute:"\u00c9",eacute:"\u00e9",Ecirc:"\u00ca",ecirc:"\u00ea",Egrave:"\u00c8",egrave:"\u00e8",empty:"\u2205",emsp:"\u2003",ensp:"\u2002",
  Epsilon:"\u0395",epsilon:"\u03b5",equiv:"\u2261",Eta:"\u0397",eta:"\u03b7",ETH:"\u00d0",eth:"\u00f0",Euml:"\u00cb",euml:"\u00eb",euro:"\u20ac",exist:"\u2203",fnof:"\u0192",forall:"\u2200",frac12:"\u00bd",frac14:"\u00bc",frac34:"\u00be",frasl:"\u2044",Gamma:"\u0393",gamma:"\u03b3",ge:"\u2265",gt:"\x3e",harr:"\u2194",hArr:"\u21d4",hearts:"\u2665",hellip:"\u2026",Iacute:"\u00cd",iacute:"\u00ed",Icirc:"\u00ce",icirc:"\u00ee",iexcl:"\u00a1",Igrave:"\u00cc",igrave:"\u00ec",image:"\u2111",infin:"\u221e",
  "int":"\u222b",Iota:"\u0399",iota:"\u03b9",iquest:"\u00bf",isin:"\u2208",Iuml:"\u00cf",iuml:"\u00ef",Kappa:"\u039a",kappa:"\u03ba",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",laquo:"\u00ab",larr:"\u2190",lArr:"\u21d0",lceil:"\u2308",ldquo:"\u201c",le:"\u2264",lfloor:"\u230a",lowast:"\u2217",loz:"\u25ca",lrm:"\u200e",lsaquo:"\u2039",lsquo:"\u2018",lt:"\x3c",macr:"\u00af",mdash:"\u2014",micro:"\u00b5",middot:"\u00b7",minus:"\u2212",Mu:"\u039c",mu:"\u03bc",nabla:"\u2207",nbsp:"\u00a0",ndash:"\u2013",
  ne:"\u2260",ni:"\u220b",not:"\u00ac",notin:"\u2209",nsub:"\u2284",Ntilde:"\u00d1",ntilde:"\u00f1",Nu:"\u039d",nu:"\u03bd",Oacute:"\u00d3",oacute:"\u00f3",Ocirc:"\u00d4",ocirc:"\u00f4",OElig:"\u0152",oelig:"\u0153",Ograve:"\u00d2",ograve:"\u00f2",oline:"\u203e",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",oplus:"\u2295",or:"\u2228",ordf:"\u00aa",ordm:"\u00ba",Oslash:"\u00d8",oslash:"\u00f8",Otilde:"\u00d5",otilde:"\u00f5",otimes:"\u2297",Ouml:"\u00d6",ouml:"\u00f6",para:"\u00b6",
  permil:"\u2030",perp:"\u22a5",Phi:"\u03a6",phi:"\u03c6",Pi:"\u03a0",pi:"\u03c0",piv:"\u03d6",plusmn:"\u00b1",pound:"\u00a3",prime:"\u2032",Prime:"\u2033",prod:"\u220f",prop:"\u221d",Psi:"\u03a8",psi:"\u03c8",quot:'"',radic:"\u221a",rang:"\u27e9",raquo:"\u00bb",rarr:"\u2192",rArr:"\u21d2",rceil:"\u2309",rdquo:"\u201d",real:"\u211c",reg:"\u00ae",rfloor:"\u230b",Rho:"\u03a1",rho:"\u03c1",rlm:"\u200f",rsaquo:"\u203a",rsquo:"\u2019",sbquo:"\u201a",Scaron:"\u0160",scaron:"\u0161",sdot:"\u22c5",sect:"\u00a7",
  shy:"\u00ad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sim:"\u223c",spades:"\u2660",sub:"\u2282",sube:"\u2286",sum:"\u2211",sup:"\u2283",sup1:"\u00b9",sup2:"\u00b2",sup3:"\u00b3",supe:"\u2287",szlig:"\u00df",Tau:"\u03a4",tau:"\u03c4",there4:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thinsp:"\u2009",THORN:"\u00de",thorn:"\u00fe",tilde:"\u02dc",times:"\u00d7",trade:"\u2122",Uacute:"\u00da",uacute:"\u00fa",uarr:"\u2191",uArr:"\u21d1",Ucirc:"\u00db",ucirc:"\u00fb",Ugrave:"\u00d9",ugrave:"\u00f9",
  uml:"\u00a8",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",Uuml:"\u00dc",uuml:"\u00fc",weierp:"\u2118",Xi:"\u039e",xi:"\u03be",Yacute:"\u00dd",yacute:"\u00fd",yen:"\u00a5",yuml:"\u00ff",Yuml:"\u0178",Zeta:"\u0396",zeta:"\u03b6",zwj:"\u200d",zwnj:"\u200c"},Z=function(){function b(a){var b=this,d=void 0===a?{}:a;a=d.closedByChildren;var e=d.requiredParents,f=d.implicitNamespacePrefix,g=d.contentType,g=void 0===g?fc.PARSABLE_DATA:g,h=d.closedByParent,h=void 0===h?!1:h,m=d.isVoid,m=void 0===m?!1:m,
  d=d.ignoreFirstLf,d=void 0===d?!1:d;this.closedByChildren={};this.canSelfClose=this.closedByParent=!1;a&&0<a.length&&a.forEach(function(a){return b.closedByChildren[a]=!0});this.isVoid=m;this.closedByParent=h||m;e&&0<e.length&&(this.requiredParents={},this.parentToAdd=e[0],e.forEach(function(a){return b.requiredParents[a]=!0}));this.implicitNamespacePrefix=f;this.contentType=g;this.ignoreFirstLf=d}b.prototype.requireExtraParent=function(a){if(!this.requiredParents)return!1;if(!a)return!0;a=a.toLowerCase();
  return 1!=this.requiredParents[a]&&"template"!=a};b.prototype.isClosedByChild=function(a){return this.isVoid||a.toLowerCase()in this.closedByChildren};return b}(),Zp={base:new Z({isVoid:!0}),meta:new Z({isVoid:!0}),area:new Z({isVoid:!0}),embed:new Z({isVoid:!0}),link:new Z({isVoid:!0}),img:new Z({isVoid:!0}),input:new Z({isVoid:!0}),param:new Z({isVoid:!0}),hr:new Z({isVoid:!0}),br:new Z({isVoid:!0}),source:new Z({isVoid:!0}),track:new Z({isVoid:!0}),wbr:new Z({isVoid:!0}),p:new Z({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".split(" "),
  closedByParent:!0}),thead:new Z({closedByChildren:["tbody","tfoot"]}),tbody:new Z({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Z({closedByChildren:["tbody"],closedByParent:!0}),tr:new Z({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new Z({closedByChildren:["td","th"],closedByParent:!0}),th:new Z({closedByChildren:["td","th"],closedByParent:!0}),col:new Z({requiredParents:["colgroup"],isVoid:!0}),svg:new Z({implicitNamespacePrefix:"svg"}),
  math:new Z({implicitNamespacePrefix:"math"}),li:new Z({closedByChildren:["li"],closedByParent:!0}),dt:new Z({closedByChildren:["dt","dd"]}),dd:new Z({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Z({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Z({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Z({closedByChildren:["optgroup"],
  closedByParent:!0}),option:new Z({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Z({ignoreFirstLf:!0}),listing:new Z({ignoreFirstLf:!0}),style:new Z({contentType:fc.RAW_TEXT}),script:new Z({contentType:fc.RAW_TEXT}),title:new Z({contentType:fc.ESCAPABLE_RAW_TEXT}),textarea:new Z({contentType:fc.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},$p=new Z,Xm=/(\:not\()|([-\w]+)|(?:\.([-\w]+))|(?:\[([-\w*]+)(?:=([^\]]*))?\])|(\))|(\s*,\s*)/g,Jd=function(){function b(){this.element=null;this.classNames=
  [];this.attrs=[];this.notSelectors=[]}b.parse=function(a){var c=[],d=function(a,b){0<b.notSelectors.length&&z(b.element)&&ja.isEmpty(b.classNames)&&ja.isEmpty(b.attrs)&&(b.element="*");a.push(b)},e=new b,f,g=e,h=!1;for(Xm.lastIndex=0;p(f=Xm.exec(a));){if(p(f[1])){if(h)throw Error("Nesting :not is not allowed in a selector");h=!0;g=new b;e.notSelectors.push(g)}p(f[2])&&g.setElement(f[2]);p(f[3])&&g.addClassName(f[3]);p(f[4])&&g.addAttribute(f[4],f[5]);p(f[6])&&(h=!1,g=e);if(p(f[7])){if(h)throw Error("Multiple selectors in :not are not supported");
  d(c,e);e=g=new b}}d(c,e);return c};b.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length};b.prototype.hasElementSelector=function(){return!!this.element};b.prototype.setElement=function(a){void 0===a&&(a=null);this.element=a};b.prototype.getMatchingElementTemplate=function(){for(var a=this.element||"div",b=0<this.classNames.length?' class\x3d"'+this.classNames.join(" ")+'"':"",d="",e=0;e<this.attrs.length;e+=
  2)d+=" "+this.attrs[e]+(""!==this.attrs[e+1]?'\x3d"'+this.attrs[e+1]+'"':"");return Zg(a).isVoid?"\x3c"+a+b+d+"/\x3e":"\x3c"+a+b+d+"\x3e\x3c/"+a+"\x3e"};b.prototype.addAttribute=function(a,b){void 0===b&&(b="");this.attrs.push(a);b=p(b)?b.toLowerCase():"";this.attrs.push(b)};b.prototype.addClassName=function(a){this.classNames.push(a.toLowerCase())};b.prototype.toString=function(){var a="";p(this.element)&&(a+=this.element);if(p(this.classNames))for(var b=0;b<this.classNames.length;b++)a+="."+this.classNames[b];
  if(p(this.attrs))for(b=0;b<this.attrs.length;){var d=this.attrs[b++],e=this.attrs[b++],a=a+("["+d);0<e.length&&(a+="\x3d"+e);a+="]"}this.notSelectors.forEach(function(b){return a+=":not("+b+")"});return a};return b}(),bg=function(){function b(){this._elementMap=new Map;this._elementPartialMap=new Map;this._classMap=new Map;this._classPartialMap=new Map;this._attrValueMap=new Map;this._attrValuePartialMap=new Map;this._listContexts=[]}b.createNotMatcher=function(a){var c=new b;c.addSelectables(a,null);
  return c};b.prototype.addSelectables=function(a,b){var c=null;1<a.length&&(c=new mw(a),this._listContexts.push(c));for(var e=0;e<a.length;e++)this._addSelectable(a[e],b,c)};b.prototype._addSelectable=function(a,b,d){var c=this,f=a.element,g=a.classNames,h=a.attrs;a=new nw(a,b,d);p(f)&&((d=0===h.length&&0===g.length)?this._addTerminal(c._elementMap,f,a):c=this._addPartial(c._elementPartialMap,f));if(p(g))for(f=0;f<g.length;f++)d=0===h.length&&f===g.length-1,b=g[f],d?this._addTerminal(c._classMap,b,
  a):c=this._addPartial(c._classPartialMap,b);if(p(h))for(f=0;f<h.length;)if(d=f===h.length-2,g=h[f++],b=h[f++],d){d=c._attrValueMap;var m=d.get(g);z(m)&&(m=new Map,d.set(g,m));this._addTerminal(m,b,a)}else c=c._attrValuePartialMap,d=c.get(g),z(d)&&(d=new Map,c.set(g,d)),c=this._addPartial(d,b)};b.prototype._addTerminal=function(a,b,d){var c=a.get(b);z(c)&&(c=[],a.set(b,c));c.push(d)};b.prototype._addPartial=function(a,c){var d=a.get(c);z(d)&&(d=new b,a.set(c,d));return d};b.prototype.match=function(a,
  b){for(var c=!1,e=a.element,f=a.classNames,g=a.attrs,h=0;h<this._listContexts.length;h++)this._listContexts[h].alreadyMatched=!1;c=this._matchTerminal(this._elementMap,e,a,b)||c;c=this._matchPartial(this._elementPartialMap,e,a,b)||c;if(p(f))for(e=0;e<f.length;e++)h=f[e],c=this._matchTerminal(this._classMap,h,a,b)||c,c=this._matchPartial(this._classPartialMap,h,a,b)||c;if(p(g))for(e=0;e<g.length;){var h=g[e++],f=g[e++],m=this._attrValueMap.get(h);T.equals(f,"")||(c=this._matchTerminal(m,"",a,b)||c);
  c=this._matchTerminal(m,f,a,b)||c;h=this._attrValuePartialMap.get(h);T.equals(f,"")||(c=this._matchPartial(h,"",a,b)||c);c=this._matchPartial(h,f,a,b)||c}return c};b.prototype._matchTerminal=function(a,b,d,e){if(z(a)||z(b))return!1;b=a.get(b);a=a.get("*");p(a)&&(b=b.concat(a));if(z(b))return!1;for(var c=!1,g=0;g<b.length;g++)a=b[g],c=a.finalize(d,e)||c;return c};b.prototype._matchPartial=function(a,b,d,e){if(z(a)||z(b))return!1;a=a.get(b);return z(a)?!1:a.match(d,e)};return b}(),mw=function(){return function(b){this.selectors=
  b;this.alreadyMatched=!1}}(),nw=function(){function b(a,b,d){this.selector=a;this.cbContext=b;this.listContext=d;this.notSelectors=a.notSelectors}b.prototype.finalize=function(a,b){var c=!0;0<this.notSelectors.length&&(z(this.listContext)||!this.listContext.alreadyMatched)&&(c=!bg.createNotMatcher(this.notSelectors).match(a,null));c&&p(b)&&(z(this.listContext)||!this.listContext.alreadyMatched)&&(p(this.listContext)&&(this.listContext.alreadyMatched=!0),b(this.selector,this.cbContext));return c};
  return b}(),ea=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},mc;(function(b){b[b.Const=0]="Const"})(mc||(mc={}));var te=function(){function b(a){void 0===a&&(a=null);this.modifiers=a;z(a)&&(this.modifiers=[])}b.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)};return b}(),nb;(function(b){b[b.Dynamic=0]="Dynamic";b[b.Bool=1]="Bool";b[b.String=2]="String";b[b.Int=
  3]="Int";b[b.Number=4]="Number";b[b.Function=5]="Function"})(nb||(nb={}));var $d=function(b){function a(a,d){void 0===d&&(d=null);b.call(this,d);this.name=a}ea(a,b);a.prototype.visitType=function(a,b){return a.visitBuiltintType(this,b)};return a}(te),Uj=function(b){function a(a,d,e){void 0===d&&(d=null);void 0===e&&(e=null);b.call(this,e);this.value=a;this.typeParams=d}ea(a,b);a.prototype.visitType=function(a,b){return a.visitExternalType(this,b)};return a}(te),Kc=function(b){function a(a,d){void 0===
  d&&(d=null);b.call(this,d);this.of=a}ea(a,b);a.prototype.visitType=function(a,b){return a.visitArrayType(this,b)};return a}(te),xf=function(b){function a(a,d){void 0===d&&(d=null);b.call(this,d);this.valueType=a}ea(a,b);a.prototype.visitType=function(a,b){return a.visitMapType(this,b)};return a}(te),ta=new $d(nb.Dynamic),yf=new $d(nb.Bool);new $d(nb.Int);var zr=new $d(nb.Number),xr=new $d(nb.String),ow=new $d(nb.Function),H;(function(b){b[b.Equals=0]="Equals";b[b.NotEquals=1]="NotEquals";b[b.Identical=
  2]="Identical";b[b.NotIdentical=3]="NotIdentical";b[b.Minus=4]="Minus";b[b.Plus=5]="Plus";b[b.Divide=6]="Divide";b[b.Multiply=7]="Multiply";b[b.Modulo=8]="Modulo";b[b.And=9]="And";b[b.Or=10]="Or";b[b.Lower=11]="Lower";b[b.LowerEquals=12]="LowerEquals";b[b.Bigger=13]="Bigger";b[b.BiggerEquals=14]="BiggerEquals"})(H||(H={}));var Ja=function(){function b(a){this.type=a}b.prototype.prop=function(a){return new nh(this,a)};b.prototype.key=function(a,b){void 0===b&&(b=null);return new Ym(this,a,b)};b.prototype.callMethod=
  function(a,b){return new Zm(this,a,b)};b.prototype.callFn=function(a){return new $m(this,a)};b.prototype.instantiate=function(a,b){void 0===b&&(b=null);return new an(this,a,b)};b.prototype.conditional=function(a,b){void 0===b&&(b=null);return new bn(this,a,b)};b.prototype.equals=function(a){return new Wa(H.Equals,this,a)};b.prototype.notEquals=function(a){return new Wa(H.NotEquals,this,a)};b.prototype.identical=function(a){return new Wa(H.Identical,this,a)};b.prototype.notIdentical=function(a){return new Wa(H.NotIdentical,
  this,a)};b.prototype.minus=function(a){return new Wa(H.Minus,this,a)};b.prototype.plus=function(a){return new Wa(H.Plus,this,a)};b.prototype.divide=function(a){return new Wa(H.Divide,this,a)};b.prototype.multiply=function(a){return new Wa(H.Multiply,this,a)};b.prototype.modulo=function(a){return new Wa(H.Modulo,this,a)};b.prototype.and=function(a){return new Wa(H.And,this,a)};b.prototype.or=function(a){return new Wa(H.Or,this,a)};b.prototype.lower=function(a){return new Wa(H.Lower,this,a)};b.prototype.lowerEquals=
  function(a){return new Wa(H.LowerEquals,this,a)};b.prototype.bigger=function(a){return new Wa(H.Bigger,this,a)};b.prototype.biggerEquals=function(a){return new Wa(H.BiggerEquals,this,a)};b.prototype.isBlank=function(){return this.equals(ga)};b.prototype.cast=function(a){return new cn(this,a)};b.prototype.toStmt=function(){return new hi(this)};return b}(),Pa;(function(b){b[b.This=0]="This";b[b.Super=1]="Super";b[b.CatchError=2]="CatchError";b[b.CatchStack=3]="CatchStack"})(Pa||(Pa={}));var Gc=function(b){function a(a,
  d){void 0===d&&(d=null);b.call(this,d);Xb(a)?(this.name=a,this.builtin=null):(this.name=null,this.builtin=a)}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitReadVarExpr(this,b)};a.prototype.set=function(a){return new dn(this.name,a)};return a}(Ja),dn=function(b){function a(a,d,e){void 0===e&&(e=null);b.call(this,p(e)?e:d.type);this.name=a;this.value=d}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitWriteVarExpr(this,b)};a.prototype.toDeclStmt=function(a,b){void 0===
  a&&(a=null);void 0===b&&(b=null);return new wf(this.name,this.value,a,b)};return a}(Ja),en=function(b){function a(a,d,e,f){void 0===f&&(f=null);b.call(this,p(f)?f:e.type);this.receiver=a;this.index=d;this.value=e}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitWriteKeyExpr(this,b)};return a}(Ja),fn=function(b){function a(a,d,e,f){void 0===f&&(f=null);b.call(this,p(f)?f:e.type);this.receiver=a;this.name=d;this.value=e}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitWritePropExpr(this,
  b)};return a}(Ja),Ma;(function(b){b[b.ConcatArray=0]="ConcatArray";b[b.SubscribeObservable=1]="SubscribeObservable";b[b.Bind=2]="Bind"})(Ma||(Ma={}));var Zm=function(b){function a(a,d,e,f){void 0===f&&(f=null);b.call(this,f);this.receiver=a;this.args=e;Xb(d)?(this.name=d,this.builtin=null):(this.name=null,this.builtin=d)}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitInvokeMethodExpr(this,b)};return a}(Ja),$m=function(b){function a(a,d,e){void 0===e&&(e=null);b.call(this,e);this.fn=
  a;this.args=d}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitInvokeFunctionExpr(this,b)};return a}(Ja),an=function(b){function a(a,d,e){b.call(this,e);this.classExpr=a;this.args=d}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitInstantiateExpr(this,b)};return a}(Ja),$g=function(b){function a(a,d){void 0===d&&(d=null);b.call(this,d);this.value=a}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitLiteralExpr(this,b)};return a}(Ja),Tj=function(b){function a(a,
  d,e){void 0===d&&(d=null);void 0===e&&(e=null);b.call(this,d);this.value=a;this.typeParams=e}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitExternalExpr(this,b)};return a}(Ja),bn=function(b){function a(a,d,e,f){void 0===e&&(e=null);void 0===f&&(f=null);b.call(this,p(f)?f:d.type);this.condition=a;this.falseCase=e;this.trueCase=d}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitConditionalExpr(this,b)};return a}(Ja),se=function(b){function a(a){b.call(this,yf);this.condition=
  a}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitNotExpr(this,b)};return a}(Ja),cn=function(b){function a(a,d){b.call(this,d);this.value=a}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitCastExpr(this,b)};return a}(Ja),Ca=function(){return function(b,a){void 0===a&&(a=null);this.name=b;this.type=a}}(),bq=function(b){function a(a,d,e){void 0===e&&(e=null);b.call(this,e);this.params=a;this.statements=d}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitFunctionExpr(this,
  b)};a.prototype.toDeclStmt=function(a,b){void 0===b&&(b=null);return new pw(a,this.params,this.statements,this.type,b)};return a}(Ja),Wa=function(b){function a(a,d,e,f){void 0===f&&(f=null);b.call(this,p(f)?f:d.type);this.operator=a;this.rhs=e;this.lhs=d}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitBinaryOperatorExpr(this,b)};return a}(Ja),nh=function(b){function a(a,d,e){void 0===e&&(e=null);b.call(this,e);this.receiver=a;this.name=d}ea(a,b);a.prototype.visitExpression=function(a,
  b){return a.visitReadPropExpr(this,b)};a.prototype.set=function(a){return new fn(this.receiver,this.name,a)};return a}(Ja),Ym=function(b){function a(a,d,e){void 0===e&&(e=null);b.call(this,e);this.receiver=a;this.index=d}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitReadKeyExpr(this,b)};a.prototype.set=function(a){return new en(this.receiver,this.index,a)};return a}(Ja),Vj=function(b){function a(a,d){void 0===d&&(d=null);b.call(this,d);this.entries=a}ea(a,b);a.prototype.visitExpression=
  function(a,b){return a.visitLiteralArrayExpr(this,b)};return a}(Ja),Wj=function(b){function a(a,d){void 0===d&&(d=null);b.call(this,d);this.entries=a;this.valueType=null;p(d)&&(this.valueType=d.valueType)}ea(a,b);a.prototype.visitExpression=function(a,b){return a.visitLiteralMapExpr(this,b)};return a}(Ja),A=new Gc(Pa.This),Wk=new Gc(Pa.Super);new Gc(Pa.CatchError);new Gc(Pa.CatchStack);var ga=new $g(null,null),Fa;(function(b){b[b.Final=0]="Final";b[b.Private=1]="Private"})(Fa||(Fa={}));var $b=function(){function b(a){void 0===
  a&&(a=null);this.modifiers=a;z(a)&&(this.modifiers=[])}b.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)};return b}(),wf=function(b){function a(a,d,e,f){void 0===e&&(e=null);void 0===f&&(f=null);b.call(this,f);this.name=a;this.value=d;this.type=p(e)?e:d.type}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitDeclareVarStmt(this,b)};return a}($b),pw=function(b){function a(a,d,e,f,g){void 0===f&&(f=null);void 0===g&&(g=null);b.call(this,g);this.name=a;this.params=
  d;this.statements=e;this.type=f}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitDeclareFunctionStmt(this,b)};return a}($b),hi=function(b){function a(a){b.call(this);this.expr=a}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitExpressionStmt(this,b)};return a}($b),Za=function(b){function a(a){b.call(this);this.value=a}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitReturnStmt(this,b)};return a}($b),ii=function(){function b(a,b){void 0===a&&(a=null);this.type=
  a;this.modifiers=b;z(b)&&(this.modifiers=[])}b.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)};return b}(),Cb=function(b){function a(a,d,e){void 0===d&&(d=null);void 0===e&&(e=null);b.call(this,d,e);this.name=a}ea(a,b);return a}(ii),Eb=function(b){function a(a,d,e,f,g){void 0===f&&(f=null);void 0===g&&(g=null);b.call(this,f,g);this.name=a;this.params=d;this.body=e}ea(a,b);return a}(ii),Ak=function(b){function a(a,d,e,f){void 0===e&&(e=null);void 0===f&&(f=null);b.call(this,
  e,f);this.name=a;this.body=d}ea(a,b);return a}(ii),Yk=function(b){function a(a,d,e,f,g,h,m){void 0===m&&(m=null);b.call(this,m);this.name=a;this.parent=d;this.fields=e;this.getters=f;this.constructorMethod=g;this.methods=h}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitDeclareClassStmt(this,b)};return a}($b),Aa=function(b){function a(a,d,e){void 0===e&&(e=[]);b.call(this);this.condition=a;this.trueCase=d;this.falseCase=e}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitIfStmt(this,
  b)};return a}($b);(function(b){function a(a){b.call(this);this.comment=a}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitCommentStmt(this,b)};return a})($b);var Rk=function(b){function a(a,d){b.call(this);this.bodyStmts=a;this.catchStmts=d}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitTryCatchStmt(this,b)};return a}($b),qw=function(b){function a(a){b.call(this);this.error=a}ea(a,b);a.prototype.visitStatement=function(a,b){return a.visitThrowStmt(this,b)};return a}($b),
  rw=function(){function b(){}b.prototype.visitReadVarExpr=function(a,b){return a};b.prototype.visitWriteVarExpr=function(a,b){return new dn(a.name,a.value.visitExpression(this,b))};b.prototype.visitWriteKeyExpr=function(a,b){return new en(a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.value.visitExpression(this,b))};b.prototype.visitWritePropExpr=function(a,b){return new fn(a.receiver.visitExpression(this,b),a.name,a.value.visitExpression(this,b))};b.prototype.visitInvokeMethodExpr=
  function(a,b){var c=p(a.builtin)?a.builtin:a.name;return new Zm(a.receiver.visitExpression(this,b),c,this.visitAllExpressions(a.args,b),a.type)};b.prototype.visitInvokeFunctionExpr=function(a,b){return new $m(a.fn.visitExpression(this,b),this.visitAllExpressions(a.args,b),a.type)};b.prototype.visitInstantiateExpr=function(a,b){return new an(a.classExpr.visitExpression(this,b),this.visitAllExpressions(a.args,b),a.type)};b.prototype.visitLiteralExpr=function(a,b){return a};b.prototype.visitExternalExpr=
  function(a,b){return a};b.prototype.visitConditionalExpr=function(a,b){return new bn(a.condition.visitExpression(this,b),a.trueCase.visitExpression(this,b),a.falseCase.visitExpression(this,b))};b.prototype.visitNotExpr=function(a,b){return new se(a.condition.visitExpression(this,b))};b.prototype.visitCastExpr=function(a,b){return new cn(a.value.visitExpression(this,b),b)};b.prototype.visitFunctionExpr=function(a,b){return a};b.prototype.visitBinaryOperatorExpr=function(a,b){return new Wa(a.operator,
  a.lhs.visitExpression(this,b),a.rhs.visitExpression(this,b),a.type)};b.prototype.visitReadPropExpr=function(a,b){return new nh(a.receiver.visitExpression(this,b),a.name,a.type)};b.prototype.visitReadKeyExpr=function(a,b){return new Ym(a.receiver.visitExpression(this,b),a.index.visitExpression(this,b),a.type)};b.prototype.visitLiteralArrayExpr=function(a,b){return new Vj(this.visitAllExpressions(a.entries,b))};b.prototype.visitLiteralMapExpr=function(a,b){var c=this;return new Wj(a.entries.map(function(a){return[a[0],
  a[1].visitExpression(c,b)]}))};b.prototype.visitAllExpressions=function(a,b){var c=this;return a.map(function(a){return a.visitExpression(c,b)})};b.prototype.visitDeclareVarStmt=function(a,b){return new wf(a.name,a.value.visitExpression(this,b),a.type,a.modifiers)};b.prototype.visitDeclareFunctionStmt=function(a,b){return a};b.prototype.visitExpressionStmt=function(a,b){return new hi(a.expr.visitExpression(this,b))};b.prototype.visitReturnStmt=function(a,b){return new Za(a.value.visitExpression(this,
  b))};b.prototype.visitDeclareClassStmt=function(a,b){return a};b.prototype.visitIfStmt=function(a,b){return new Aa(a.condition.visitExpression(this,b),this.visitAllStatements(a.trueCase,b),this.visitAllStatements(a.falseCase,b))};b.prototype.visitTryCatchStmt=function(a,b){return new Rk(this.visitAllStatements(a.bodyStmts,b),this.visitAllStatements(a.catchStmts,b))};b.prototype.visitThrowStmt=function(a,b){return new qw(a.error.visitExpression(this,b))};b.prototype.visitCommentStmt=function(a,b){return a};
  b.prototype.visitAllStatements=function(a,b){var c=this;return a.map(function(a){return a.visitStatement(c,b)})};return b}(),sw=function(){function b(){}b.prototype.visitReadVarExpr=function(a,b){return a};b.prototype.visitWriteVarExpr=function(a,b){a.value.visitExpression(this,b);return a};b.prototype.visitWriteKeyExpr=function(a,b){a.receiver.visitExpression(this,b);a.index.visitExpression(this,b);a.value.visitExpression(this,b);return a};b.prototype.visitWritePropExpr=function(a,b){a.receiver.visitExpression(this,
  b);a.value.visitExpression(this,b);return a};b.prototype.visitInvokeMethodExpr=function(a,b){a.receiver.visitExpression(this,b);this.visitAllExpressions(a.args,b);return a};b.prototype.visitInvokeFunctionExpr=function(a,b){a.fn.visitExpression(this,b);this.visitAllExpressions(a.args,b);return a};b.prototype.visitInstantiateExpr=function(a,b){a.classExpr.visitExpression(this,b);this.visitAllExpressions(a.args,b);return a};b.prototype.visitLiteralExpr=function(a,b){return a};b.prototype.visitExternalExpr=
  function(a,b){return a};b.prototype.visitConditionalExpr=function(a,b){a.condition.visitExpression(this,b);a.trueCase.visitExpression(this,b);a.falseCase.visitExpression(this,b);return a};b.prototype.visitNotExpr=function(a,b){a.condition.visitExpression(this,b);return a};b.prototype.visitCastExpr=function(a,b){a.value.visitExpression(this,b);return a};b.prototype.visitFunctionExpr=function(a,b){return a};b.prototype.visitBinaryOperatorExpr=function(a,b){a.lhs.visitExpression(this,b);a.rhs.visitExpression(this,
  b);return a};b.prototype.visitReadPropExpr=function(a,b){a.receiver.visitExpression(this,b);return a};b.prototype.visitReadKeyExpr=function(a,b){a.receiver.visitExpression(this,b);a.index.visitExpression(this,b);return a};b.prototype.visitLiteralArrayExpr=function(a,b){this.visitAllExpressions(a.entries,b);return a};b.prototype.visitLiteralMapExpr=function(a,b){var c=this;a.entries.forEach(function(a){return a[1].visitExpression(c,b)});return a};b.prototype.visitAllExpressions=function(a,b){var c=
  this;a.forEach(function(a){return a.visitExpression(c,b)})};b.prototype.visitDeclareVarStmt=function(a,b){a.value.visitExpression(this,b);return a};b.prototype.visitDeclareFunctionStmt=function(a,b){return a};b.prototype.visitExpressionStmt=function(a,b){a.expr.visitExpression(this,b);return a};b.prototype.visitReturnStmt=function(a,b){a.value.visitExpression(this,b);return a};b.prototype.visitDeclareClassStmt=function(a,b){return a};b.prototype.visitIfStmt=function(a,b){a.condition.visitExpression(this,
  b);this.visitAllStatements(a.trueCase,b);this.visitAllStatements(a.falseCase,b);return a};b.prototype.visitTryCatchStmt=function(a,b){this.visitAllStatements(a.bodyStmts,b);this.visitAllStatements(a.catchStmts,b);return a};b.prototype.visitThrowStmt=function(a,b){a.error.visitExpression(this,b);return a};b.prototype.visitCommentStmt=function(a,b){return a};b.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})};return b}(),aq=function(b){function a(a,
  d){b.call(this);this._varName=a;this._newValue=d}ea(a,b);a.prototype.visitReadVarExpr=function(a,b){return a.name==this._varName?this._newValue:a};return a}(rw),Dr=function(b){function a(){b.apply(this,arguments);this.varNames=new Set}ea(a,b);a.prototype.visitReadVarExpr=function(a,b){this.varNames.add(a.name);return null};return a}(sw),cq=/([A-Z])/g,tw=function(){function b(){}b.prototype.visitArray=function(a,b){var c=this;return a.map(function(a){return Dd(a,c,b)})};b.prototype.visitStringMap=
  function(a,b){var c=this,e={};na.forEach(a,function(a,d){e[d]=Dd(a,c,b)});return e};b.prototype.visitPrimitive=function(a,b){return a};b.prototype.visitOther=function(a,b){return a};return b}(),Ee=function(){return function(b,a){void 0===a&&(a=null);this.syncResult=b;this.asyncResult=a;a||(this.asyncResult=Promise.resolve(b))}}(),gc=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},uw=
  /^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;(function(){function b(){}Object.defineProperty(b.prototype,"identifier",{get:function(){throw Error("unimplemented");},enumerable:!0,configurable:!0});return b})();var vw=function(){return function(b,a){void 0===b&&(b=null);void 0===a&&(a=null);this.name=b;this.definitions=a}}(),gn=function(){return function(){}}(),pk=function(b){function a(a,d){b.call(this);this.stateNameExpr=a;this.styles=d}gc(a,b);return a}(gn),ww=function(b){function a(a,d){b.call(this);
  this.stateChangeExpr=a;this.steps=d}gc(a,b);return a}(gn),cg=function(){return function(){}}(),kh=function(b){function a(a){void 0===a&&(a=[]);b.call(this);this.steps=a}gc(a,b);return a}(cg),Nd=function(b){function a(a,d){void 0===d&&(d=null);b.call(this);this.offset=a;this.styles=d}gc(a,b);return a}(cg),jh=function(b){function a(a,d){void 0===a&&(a=0);void 0===d&&(d=null);b.call(this);this.timings=a;this.styles=d}gc(a,b);return a}(cg),Md=function(b){function a(a){void 0===a&&(a=null);b.call(this);
  this.steps=a}gc(a,b);return a}(cg),vf=function(b){function a(a){void 0===a&&(a=null);b.call(this,a)}gc(a,b);return a}(Md),Ld=function(b){function a(a){void 0===a&&(a=null);b.call(this,a)}gc(a,b);return a}(Md),ub=function(){function b(a){a=void 0===a?{}:a;var b=a.name,d=a.moduleUrl,e=a.prefix,f=a.value;this.reference=a.reference;this.name=b;this.prefix=e;this.moduleUrl=d;this.value=f}Object.defineProperty(b.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0});return b}(),
  hc=function(){return function(b){b=void 0===b?{}:b;var a=b.isSelf,c=b.isHost,d=b.isSkipSelf,e=b.isOptional,f=b.isValue,g=b.query,h=b.viewQuery,m=b.token,r=b.value;this.isAttribute=sb(b.isAttribute);this.isSelf=sb(a);this.isHost=sb(c);this.isSkipSelf=sb(d);this.isOptional=sb(e);this.isValue=sb(f);this.query=g;this.viewQuery=h;this.token=m;this.value=r}}(),Ic=function(){return function(b){var a=b.useClass,c=b.useValue,d=b.useExisting,e=b.useFactory,f=b.deps,g=b.multi;this.token=b.token;this.useClass=
  a;this.useValue=c;this.useExisting=d;this.useFactory=e;this.deps=Pj(f);this.multi=sb(g)}}(),xw=function(b){function a(a){var c=a.diDeps;b.call(this,{reference:a.reference,name:a.name,prefix:a.prefix,moduleUrl:a.moduleUrl,value:a.value});this.diDeps=xa(c)}gc(a,b);return a}(ub),Hc=function(){function b(a){var b=a.identifier,d=a.identifierIsInstance;this.value=a.value;this.identifier=b;this.identifierIsInstance=sb(d)}Object.defineProperty(b.prototype,"reference",{get:function(){return p(this.identifier)?
  this.identifier.reference:this.value},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"name",{get:function(){return p(this.value)?nf(this.value):this.identifier.name},enumerable:!0,configurable:!0});return b}(),sf=function(b){function a(a){a=void 0===a?{}:a;var c=a.isHost,e=a.diDeps,f=a.lifecycleHooks;b.call(this,{reference:a.reference,name:a.name,moduleUrl:a.moduleUrl,prefix:a.prefix,value:a.value});this.isHost=sb(c);this.diDeps=xa(e);this.lifecycleHooks=xa(f)}gc(a,b);return a}(ub),
  yw=function(){return function(b){b=void 0===b?{}:b;var a=b.descendants,c=b.first,d=b.propertyName,e=b.read;this.selectors=b.selectors;this.descendants=sb(a);this.first=sb(c);this.propertyName=d;this.read=e}}(),Fe=function(){return function(b){b=void 0===b?{}:b;var a=b.styles,c=b.styleUrls;this.moduleUrl=b.moduleUrl;this.styles=xa(a);this.styleUrls=xa(c)}}(),dg=function(){return function(b){b=void 0===b?{}:b;var a=b.template,c=b.templateUrl,d=b.styles,e=b.styleUrls,f=b.externalStylesheets,g=b.animations,
  h=b.ngContentSelectors,m=b.interpolation;this.encapsulation=b.encapsulation;this.template=a;this.templateUrl=c;this.styles=xa(d);this.styleUrls=xa(e);this.externalStylesheets=xa(f);this.animations=p(g)?ja.flatten(g):[];this.ngContentSelectors=p(h)?h:[];if(p(m)&&2!=m.length)throw Error("'interpolation' should have a start and an end symbol.");this.interpolation=m}}(),vh=function(){function b(a){a=void 0===a?{}:a;var b=a.isComponent,d=a.selector,e=a.exportAs,f=a.changeDetection,g=a.inputs,h=a.outputs,
  m=a.hostListeners,r=a.hostProperties,u=a.hostAttributes,v=a.providers,k=a.viewProviders,l=a.queries,n=a.viewQueries,p=a.entryComponents,q=a.template;this.type=a.type;this.isComponent=b;this.selector=d;this.exportAs=e;this.changeDetection=f;this.inputs=g;this.outputs=h;this.hostListeners=m;this.hostProperties=r;this.hostAttributes=u;this.providers=xa(v);this.viewProviders=xa(k);this.queries=xa(l);this.viewQueries=xa(n);this.entryComponents=xa(p);this.template=q}b.create=function(a){var c=void 0===
  a?{}:a;a=c.type;var d=c.isComponent,e=c.selector,f=c.exportAs,g=c.changeDetection,h=c.inputs,m=c.outputs,r=c.host,u=c.providers,v=c.viewProviders,k=c.queries,l=c.viewQueries,n=c.entryComponents,c=c.template,q={},t={},w={};p(r)&&na.forEach(r,function(a,b){var c=b.match(uw);null===c?w[b]=a:p(c[1])?t[c[1]]=a:p(c[2])&&(q[c[2]]=a)});var x={};p(h)&&h.forEach(function(a){a=mf(a,[a,a]);x[a[0]]=a[1]});var y={};p(m)&&m.forEach(function(a){a=mf(a,[a,a]);y[a[0]]=a[1]});return new b({type:a,isComponent:sb(d),
  selector:e,exportAs:f,changeDetection:g,inputs:x,outputs:y,hostListeners:q,hostProperties:t,hostAttributes:w,providers:u,viewProviders:v,queries:k,viewQueries:l,entryComponents:n,template:c})};Object.defineProperty(b.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0});return b}(),zw=function(){function b(a){a=void 0===a?{}:a;var b=a.name,d=a.pure;this.type=a.type;this.name=b;this.pure=sb(d)}Object.defineProperty(b.prototype,"identifier",{get:function(){return this.type},
  enumerable:!0,configurable:!0});return b}(),Aw=function(){function b(a){a=void 0===a?{}:a;var b=a.providers,d=a.declaredDirectives,e=a.exportedDirectives,f=a.declaredPipes,g=a.exportedPipes,h=a.entryComponents,m=a.bootstrapComponents,r=a.importedModules,u=a.exportedModules,v=a.schemas,k=a.transitiveModule,l=a.id;this.type=a.type;this.declaredDirectives=xa(d);this.exportedDirectives=xa(e);this.declaredPipes=xa(f);this.exportedPipes=xa(g);this.providers=xa(b);this.entryComponents=xa(h);this.bootstrapComponents=
  xa(m);this.importedModules=xa(r);this.exportedModules=xa(u);this.schemas=xa(v);this.id=l;this.transitiveModule=k}Object.defineProperty(b.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0});return b}(),Bw=function(){return function(b,a,c,d,e){var f=this;this.modules=b;this.providers=a;this.entryComponents=c;this.directives=d;this.pipes=e;this.directivesSet=new Set;this.pipesSet=new Set;d.forEach(function(a){return f.directivesSet.add(a.type.reference)});e.forEach(function(a){return f.pipesSet.add(a.type.reference)})}}(),
  ji=function(){return function(b,a){var c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps;a=a.multi;this.token=b;this.useClass=c;this.useValue=d;this.useExisting=e;this.useFactory=f;this.dependencies=g;this.multi=!!a}}(),Ga=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ki=function(){return function(b,a,c,d){this.input=a;this.errLocation=c;this.ctxLocation=d;this.message=
  "Parser Error: "+b+" "+c+" ["+a+"] in "+d}}(),ae=function(){return function(b,a){this.start=b;this.end=a}}(),Ha=function(){function b(a){this.span=a}b.prototype.visit=function(a,b){return null};b.prototype.toString=function(){return"AST"};return b}(),Cw=function(b){function a(a,d,e,f){b.call(this,a);this.prefix=d;this.uninterpretedExpression=e;this.location=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitQuote(this,b)};a.prototype.toString=function(){return"Quote"};return a}(Ha),
  be=function(b){function a(){b.apply(this,arguments)}Ga(a,b);a.prototype.visit=function(a,b){};return a}(Ha),hn=function(b){function a(){b.apply(this,arguments)}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitImplicitReceiver(this,b)};return a}(Ha),Dw=function(b){function a(a,d){b.call(this,a);this.expressions=d}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitChain(this,b)};return a}(Ha),Ew=function(b){function a(a,d,e,f){b.call(this,a);this.condition=
  d;this.trueExp=e;this.falseExp=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitConditional(this,b)};return a}(Ha),jn=function(b){function a(a,d,e){b.call(this,a);this.receiver=d;this.name=e}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitPropertyRead(this,b)};return a}(Ha),Fw=function(b){function a(a,d,e,f){b.call(this,a);this.receiver=d;this.name=e;this.value=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitPropertyWrite(this,
  b)};return a}(Ha),Gw=function(b){function a(a,d,e){b.call(this,a);this.receiver=d;this.name=e}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitSafePropertyRead(this,b)};return a}(Ha),Hw=function(b){function a(a,d,e){b.call(this,a);this.obj=d;this.key=e}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitKeyedRead(this,b)};return a}(Ha),Iw=function(b){function a(a,d,e,f){b.call(this,a);this.obj=d;this.key=e;this.value=f}Ga(a,b);a.prototype.visit=function(a,
  b){void 0===b&&(b=null);return a.visitKeyedWrite(this,b)};return a}(Ha),Jw=function(b){function a(a,d,e,f){b.call(this,a);this.exp=d;this.name=e;this.args=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitPipe(this,b)};return a}(Ha),Wc=function(b){function a(a,d){b.call(this,a);this.value=d}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitLiteralPrimitive(this,b)};return a}(Ha),Kw=function(b){function a(a,d){b.call(this,a);this.expressions=d}Ga(a,
  b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitLiteralArray(this,b)};return a}(Ha),Lw=function(b){function a(a,d,e){b.call(this,a);this.keys=d;this.values=e}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitLiteralMap(this,b)};return a}(Ha),Mw=function(b){function a(a,d,e){b.call(this,a);this.strings=d;this.expressions=e}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitInterpolation(this,b)};return a}(Ha),pd=function(b){function a(a,
  d,e,f){b.call(this,a);this.operation=d;this.left=e;this.right=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitBinary(this,b)};return a}(Ha),Nw=function(b){function a(a,d){b.call(this,a);this.expression=d}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitPrefixNot(this,b)};return a}(Ha),kn=function(b){function a(a,d,e,f){b.call(this,a);this.receiver=d;this.name=e;this.args=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitMethodCall(this,
  b)};return a}(Ha),ln=function(b){function a(a,d,e,f){b.call(this,a);this.receiver=d;this.name=e;this.args=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitSafeMethodCall(this,b)};return a}(Ha),Ow=function(b){function a(a,d,e){b.call(this,a);this.target=d;this.args=e}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return a.visitFunctionCall(this,b)};return a}(Ha),ce=function(b){function a(a,d,e,f){b.call(this,new ae(0,z(d)?0:d.length));this.ast=a;this.source=
  d;this.location=e;this.errors=f}Ga(a,b);a.prototype.visit=function(a,b){void 0===b&&(b=null);return this.ast.visit(a,b)};a.prototype.toString=function(){return this.source+" in "+this.location};return a}(Ha),Pw=function(){return function(b,a,c,d){this.key=b;this.keyIsVar=a;this.name=c;this.expression=d}}(),Qw=function(){function b(){}b.prototype.visitBinary=function(a,b){a.left.visit(this);a.right.visit(this);return null};b.prototype.visitChain=function(a,b){return this.visitAll(a.expressions,b)};
  b.prototype.visitConditional=function(a,b){a.condition.visit(this);a.trueExp.visit(this);a.falseExp.visit(this);return null};b.prototype.visitPipe=function(a,b){a.exp.visit(this);this.visitAll(a.args,b);return null};b.prototype.visitFunctionCall=function(a,b){a.target.visit(this);this.visitAll(a.args,b);return null};b.prototype.visitImplicitReceiver=function(a,b){return null};b.prototype.visitInterpolation=function(a,b){return this.visitAll(a.expressions,b)};b.prototype.visitKeyedRead=function(a,
  b){a.obj.visit(this);a.key.visit(this);return null};b.prototype.visitKeyedWrite=function(a,b){a.obj.visit(this);a.key.visit(this);a.value.visit(this);return null};b.prototype.visitLiteralArray=function(a,b){return this.visitAll(a.expressions,b)};b.prototype.visitLiteralMap=function(a,b){return this.visitAll(a.values,b)};b.prototype.visitLiteralPrimitive=function(a,b){return null};b.prototype.visitMethodCall=function(a,b){a.receiver.visit(this);return this.visitAll(a.args,b)};b.prototype.visitPrefixNot=
  function(a,b){a.expression.visit(this);return null};b.prototype.visitPropertyRead=function(a,b){a.receiver.visit(this);return null};b.prototype.visitPropertyWrite=function(a,b){a.receiver.visit(this);a.value.visit(this);return null};b.prototype.visitSafePropertyRead=function(a,b){a.receiver.visit(this);return null};b.prototype.visitSafeMethodCall=function(a,b){a.receiver.visit(this);return this.visitAll(a.args,b)};b.prototype.visitAll=function(a,b){var c=this;a.forEach(function(a){return a.visit(c,
  b)});return null};b.prototype.visitQuote=function(a,b){return null};return b}(),eq=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],li=function(){function b(a,b){this.start=a;this.end=b}b.fromArray=function(a){if(!a)return Tb;Zj("interpolation",a);return new b(a[0],a[1])};return b}(),Tb=new li("{{","}}"),ba;(function(b){b[b.Character=0]="Character";b[b.Identifier=1]="Identifier";b[b.Keyword=2]="Keyword";b[b.String=3]="String";b[b.Operator=4]="Operator";b[b.Number=5]="Number";b[b.Error=6]="Error"})(ba||
  (ba={}));var Rw="var let null undefined true false if else this".split(" "),mi=function(){function b(){}b.prototype.tokenize=function(a){a=new bk(a);for(var b=[],d=a.scanToken();null!=d;)b.push(d),d=a.scanToken();return b};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),ic=function(){function b(a,b,d,e){this.index=a;this.type=b;this.numValue=d;this.strValue=e}b.prototype.isCharacter=function(a){return this.type==ba.Character&&this.numValue==a};b.prototype.isNumber=function(){return this.type==
  ba.Number};b.prototype.isString=function(){return this.type==ba.String};b.prototype.isOperator=function(a){return this.type==ba.Operator&&this.strValue==a};b.prototype.isIdentifier=function(){return this.type==ba.Identifier};b.prototype.isKeyword=function(){return this.type==ba.Keyword};b.prototype.isKeywordLet=function(){return this.type==ba.Keyword&&"let"==this.strValue};b.prototype.isKeywordNull=function(){return this.type==ba.Keyword&&"null"==this.strValue};b.prototype.isKeywordUndefined=function(){return this.type==
  ba.Keyword&&"undefined"==this.strValue};b.prototype.isKeywordTrue=function(){return this.type==ba.Keyword&&"true"==this.strValue};b.prototype.isKeywordFalse=function(){return this.type==ba.Keyword&&"false"==this.strValue};b.prototype.isKeywordThis=function(){return this.type==ba.Keyword&&"this"==this.strValue};b.prototype.isError=function(){return this.type==ba.Error};b.prototype.toNumber=function(){return this.type==ba.Number?this.numValue:-1};b.prototype.toString=function(){switch(this.type){case ba.Character:case ba.Identifier:case ba.Keyword:case ba.Operator:case ba.String:case ba.Error:return this.strValue;
  case ba.Number:return this.numValue.toString();default:return null}};return b}(),mn=new ic(-1,ba.Character,0,""),bk=function(){function b(a){this.input=a;this.peek=0;this.index=-1;this.length=a.length;this.advance()}b.prototype.advance=function(){this.peek=++this.index>=this.length?0:T.charCodeAt(this.input,this.index)};b.prototype.scanToken=function(){for(var a=this.input,b=this.length,d=this.peek,e=this.index;32>=d;)if(++e>=b){d=0;break}else d=T.charCodeAt(a,e);this.peek=d;this.index=e;if(e>=b)return null;
  if(ak(d))return this.scanIdentifier();if(Ed(d))return this.scanNumber(e);a=e;switch(d){case 46:return this.advance(),Ed(this.peek)?this.scanNumber(a):new ic(a,ba.Character,46,T.fromCharCode(46));case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(a,d);case 39:case 34:return this.scanString();case 35:case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(a,T.fromCharCode(d));case 63:return this.scanComplexOperator(a,"?",46,".");case 60:case 62:return this.scanComplexOperator(a,
  T.fromCharCode(d),61,"\x3d");case 33:case 61:return this.scanComplexOperator(a,T.fromCharCode(d),61,"\x3d",61,"\x3d");case 38:return this.scanComplexOperator(a,"\x26",38,"\x26");case 124:return this.scanComplexOperator(a,"|",124,"|");case 160:for(;ah(this.peek);)this.advance();return this.scanToken()}this.advance();return this.error("Unexpected character ["+T.fromCharCode(d)+"]",0)};b.prototype.scanCharacter=function(a,b){this.advance();return new ic(a,ba.Character,b,T.fromCharCode(b))};b.prototype.scanOperator=
  function(a,b){this.advance();return new ic(a,ba.Operator,0,b)};b.prototype.scanComplexOperator=function(a,b,d,e,f,g){this.advance();this.peek==d&&(this.advance(),b+=e);p(f)&&this.peek==f&&(this.advance(),b+=g);return new ic(a,ba.Operator,0,b)};b.prototype.scanIdentifier=function(){var a=this.index;for(this.advance();ck(this.peek);)this.advance();var b=this.input.substring(a,this.index);return-1<Rw.indexOf(b)?new ic(a,ba.Keyword,0,b):new ic(a,ba.Identifier,0,b)};b.prototype.scanNumber=function(a){var b=
  this.index===a;for(this.advance();;){if(!Ed(this.peek))if(46==this.peek)b=!1;else{var d=this.peek;if(101==d||69==d){this.advance();b=this.peek;45!=b&&43!=b||this.advance();if(!Ed(this.peek))return this.error("Invalid exponent",-1);b=!1}else break}this.advance()}d=this.input.substring(a,this.index);b=b?Om.parseIntAutoRadix(d):parseFloat(d);return new ic(a,ba.Number,b,"")};b.prototype.scanString=function(){var a=this.index,b=this.peek;this.advance();for(var d,e=this.index,f=this.input;this.peek!=b;)if(92==
  this.peek){null==d&&(d=new bw);d.add(f.substring(e,this.index));this.advance();var g;if(117==this.peek){e=f.substring(this.index+1,this.index+5);try{g=Om.parseInt(e,16)}catch(h){return this.error("Invalid unicode escape [\\u"+e+"]",0)}for(e=0;5>e;e++)this.advance()}else g=gq(this.peek),this.advance();d.add(T.fromCharCode(g));e=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}b=f.substring(e,this.index);this.advance();f=b;null!=d&&(d.add(b),f=d.toString());return new ic(a,
  ba.String,0,f)};b.prototype.error=function(a,b){b=this.index+b;return new ic(b,ba.Error,0,"Lexer Error: "+a+" at column "+b+" in expression ["+this.input+"]")};return b}(),Sw=function(){return function(b,a){this.strings=b;this.expressions=a}}(),Tw=function(){return function(b,a,c){this.templateBindings=b;this.warnings=a;this.errors=c}}(),ni=function(){function b(a){this._lexer=a;this.errors=[]}b.prototype.parseAction=function(a,b,d){void 0===d&&(d=Tb);this._checkNoInterpolation(a,b,d);d=this._lexer.tokenize(this._stripComments(a));
  d=(new eg(a,b,d,!0,this.errors)).parseChain();return new ce(d,a,b,this.errors)};b.prototype.parseBinding=function(a,b,d){void 0===d&&(d=Tb);d=this._parseBindingAst(a,b,d);return new ce(d,a,b,this.errors)};b.prototype.parseSimpleBinding=function(a,b,d){void 0===d&&(d=Tb);d=this._parseBindingAst(a,b,d);Uw.check(d)||this._reportError("Host binding expression can only contain field access and constants",a,b);return new ce(d,a,b,this.errors)};b.prototype._reportError=function(a,b,d,e){this.errors.push(new ki(a,
  b,d,e))};b.prototype._parseBindingAst=function(a,b,d){var c=this._parseQuote(a,b);if(p(c))return c;this._checkNoInterpolation(a,b,d);d=this._lexer.tokenize(this._stripComments(a));return(new eg(a,b,d,!1,this.errors)).parseChain()};b.prototype._parseQuote=function(a,b){if(z(a))return null;var c=a.indexOf(":");if(-1==c)return null;var e=a.substring(0,c).trim();if(!fq(e))return null;c=a.substring(c+1);return new Cw(new ae(0,a.length),e,c,b)};b.prototype.parseTemplateBindings=function(a,b){var c=this._lexer.tokenize(a);
  return(new eg(a,b,c,!1,this.errors)).parseTemplateBindings()};b.prototype.parseInterpolation=function(a,b,d){void 0===d&&(d=Tb);d=this.splitInterpolation(a,b,d);if(null==d)return null;for(var c=[],f=0;f<d.expressions.length;++f){var g=this._lexer.tokenize(this._stripComments(d.expressions[f])),g=(new eg(a,b,g,!1,this.errors)).parseChain();c.push(g)}return new ce(new Mw(new ae(0,z(a)?0:a.length),d.strings,c),a,b,this.errors)};b.prototype.splitInterpolation=function(a,b,d){void 0===d&&(d=Tb);var c=
  dk(d),c=T.split(a,c);if(1>=c.length)return null;for(var f=[],g=[],h=0;h<c.length;h++){var m=c[h];0===h%2?f.push(m):0<m.trim().length?g.push(m):this._reportError("Blank expressions are not allowed in interpolated strings",a,"at column "+this._findInterpolationErrorColumn(c,h,d)+" in",b)}return new Sw(f,g)};b.prototype.wrapLiteralPrimitive=function(a,b){return new ce(new Wc(new ae(0,z(a)?0:a.length),a),a,b,this.errors)};b.prototype._stripComments=function(a){var b=this._commentStart(a);return p(b)?
  a.substring(0,b).trim():a};b.prototype._commentStart=function(a){for(var b=null,d=0;d<a.length-1;d++){var e=T.charCodeAt(a,d),f=T.charCodeAt(a,d+1);if(47===e&&47==f&&z(b))return d;b===e?b=null:!z(b)||39!==e&&34!==e&&96!==e||(b=e)}return null};b.prototype._checkNoInterpolation=function(a,b,d){var c=dk(d),c=T.split(a,c);1<c.length&&this._reportError("Got interpolation ("+d.start+d.end+") where expression was expected",a,"at column "+this._findInterpolationErrorColumn(c,1,d)+" in",b)};b.prototype._findInterpolationErrorColumn=
  function(a,b,d){for(var c="",f=0;f<b;f++)c+=0===f%2?a[f]:""+d.start+a[f]+d.end;return c.length};b.decorators=[{type:V}];b.ctorParameters=[{type:mi}];return b}(),eg=function(){function b(a,b,d,e,f){this.input=a;this.location=b;this.tokens=d;this.parseAction=e;this.errors=f;this.index=this.rbracesExpected=this.rbracketsExpected=this.rparensExpected=0}b.prototype.peek=function(a){a=this.index+a;return a<this.tokens.length?this.tokens[a]:mn};Object.defineProperty(b.prototype,"next",{get:function(){return this.peek(0)},
  enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index:this.input.length},enumerable:!0,configurable:!0});b.prototype.span=function(a){return new ae(a,this.inputIndex)};b.prototype.advance=function(){this.index++};b.prototype.optionalCharacter=function(a){return this.next.isCharacter(a)?(this.advance(),!0):!1};b.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()};b.prototype.expectCharacter=
  function(a){this.optionalCharacter(a)||this.error("Missing expected "+T.fromCharCode(a))};b.prototype.optionalOperator=function(a){return this.next.isOperator(a)?(this.advance(),!0):!1};b.prototype.expectOperator=function(a){this.optionalOperator(a)||this.error("Missing expected operator "+a)};b.prototype.expectIdentifierOrKeyword=function(){var a=this.next;if(!a.isIdentifier()&&!a.isKeyword())return this.error("Unexpected token "+a+", expected identifier or keyword"),"";this.advance();return a.toString()};
  b.prototype.expectIdentifierOrKeywordOrString=function(){var a=this.next;if(!a.isIdentifier()&&!a.isKeyword()&&!a.isString())return this.error("Unexpected token "+a+", expected identifier, keyword, or string"),"";this.advance();return a.toString()};b.prototype.parseChain=function(){for(var a=[],b=this.inputIndex;this.index<this.tokens.length;){var d=this.parsePipe();a.push(d);if(this.optionalCharacter(59))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(59););
  else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==a.length?new be(this.span(b)):1==a.length?a[0]:new Dw(this.span(b),a)};b.prototype.parsePipe=function(){var a=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var b=this.expectIdentifierOrKeyword(),d=[];this.optionalCharacter(58);)d.push(this.parseExpression());a=new Jw(this.span(a.span.start),a,b,d)}while(this.optionalOperator("|"))}return a};
  b.prototype.parseExpression=function(){return this.parseConditional()};b.prototype.parseConditional=function(){var a=this.inputIndex,b=this.parseLogicalOr();if(this.optionalOperator("?")){var d=this.parsePipe(),e;this.optionalCharacter(58)?e=this.parsePipe():(e=this.input.substring(a,this.inputIndex),this.error("Conditional expression "+e+" requires all 3 expressions"),e=new be(this.span(a)));return new Ew(this.span(a),b,d,e)}return b};b.prototype.parseLogicalOr=function(){for(var a=this.parseLogicalAnd();this.optionalOperator("||");)var b=
  this.parseLogicalAnd(),a=new pd(this.span(a.span.start),"||",a,b);return a};b.prototype.parseLogicalAnd=function(){for(var a=this.parseEquality();this.optionalOperator("\x26\x26");)var b=this.parseEquality(),a=new pd(this.span(a.span.start),"\x26\x26",a,b);return a};b.prototype.parseEquality=function(){for(var a=this.parseRelational();this.next.type==ba.Operator;){var b=this.next.strValue;switch(b){case "\x3d\x3d":case "\x3d\x3d\x3d":case "!\x3d":case "!\x3d\x3d":this.advance();var d=this.parseRelational(),
  a=new pd(this.span(a.span.start),b,a,d);continue}break}return a};b.prototype.parseRelational=function(){for(var a=this.parseAdditive();this.next.type==ba.Operator;){var b=this.next.strValue;switch(b){case "\x3c":case "\x3e":case "\x3c\x3d":case "\x3e\x3d":this.advance();var d=this.parseAdditive(),a=new pd(this.span(a.span.start),b,a,d);continue}break}return a};b.prototype.parseAdditive=function(){for(var a=this.parseMultiplicative();this.next.type==ba.Operator;){var b=this.next.strValue;switch(b){case "+":case "-":this.advance();
  var d=this.parseMultiplicative(),a=new pd(this.span(a.span.start),b,a,d);continue}break}return a};b.prototype.parseMultiplicative=function(){for(var a=this.parsePrefix();this.next.type==ba.Operator;){var b=this.next.strValue;switch(b){case "*":case "%":case "/":this.advance();var d=this.parsePrefix(),a=new pd(this.span(a.span.start),b,a,d);continue}break}return a};b.prototype.parsePrefix=function(){if(this.next.type==ba.Operator){var a=this.inputIndex,b=this.next.strValue,d;switch(b){case "+":return this.advance(),
  this.parsePrefix();case "-":return this.advance(),d=this.parsePrefix(),new pd(this.span(a),b,new Wc(new ae(a,a),0),d);case "!":return this.advance(),d=this.parsePrefix(),new Nw(this.span(a),d)}}return this.parseCallChain()};b.prototype.parseCallChain=function(){for(var a=this.parsePrimary();;)if(this.optionalCharacter(46))a=this.parseAccessMemberOrMethodCall(a,!1);else if(this.optionalOperator("?."))a=this.parseAccessMemberOrMethodCall(a,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;
  var b=this.parsePipe();this.rbracketsExpected--;this.expectCharacter(93);if(this.optionalOperator("\x3d"))var d=this.parseConditional(),a=new Iw(this.span(a.span.start),a,b,d);else a=new Hw(this.span(a.span.start),a,b)}else if(this.optionalCharacter(40))this.rparensExpected++,b=this.parseCallArguments(),this.rparensExpected--,this.expectCharacter(41),a=new Ow(this.span(a.span.start),a,b);else return a};b.prototype.parsePrimary=function(){var a=this.inputIndex;if(this.optionalCharacter(40))return this.rparensExpected++,
  a=this.parsePipe(),this.rparensExpected--,this.expectCharacter(41),a;if(this.next.isKeywordNull())return this.advance(),new Wc(this.span(a),null);if(this.next.isKeywordUndefined())return this.advance(),new Wc(this.span(a),void 0);if(this.next.isKeywordTrue())return this.advance(),new Wc(this.span(a),!0);if(this.next.isKeywordFalse())return this.advance(),new Wc(this.span(a),!1);if(this.next.isKeywordThis())return this.advance(),new hn(this.span(a));if(this.optionalCharacter(91)){this.rbracketsExpected++;
  var b=this.parseExpressionList(93);this.rbracketsExpected--;this.expectCharacter(93);return new Kw(this.span(a),b)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new hn(this.span(a)),!1);if(this.next.isNumber())return b=this.next.toNumber(),this.advance(),new Wc(this.span(a),b);if(this.next.isString())return b=this.next.toString(),this.advance(),new Wc(this.span(a),b);this.index>=this.tokens.length?this.error("Unexpected end of expression: "+
  this.input):this.error("Unexpected token "+this.next);return new be(this.span(a))};b.prototype.parseExpressionList=function(a){var b=[];if(!this.next.isCharacter(a)){do b.push(this.parsePipe());while(this.optionalCharacter(44))}return b};b.prototype.parseLiteralMap=function(){var a=[],b=[],d=this.inputIndex;this.expectCharacter(123);if(!this.optionalCharacter(125)){this.rbracesExpected++;do{var e=this.expectIdentifierOrKeywordOrString();a.push(e);this.expectCharacter(58);b.push(this.parsePipe())}while(this.optionalCharacter(44));
  this.rbracesExpected--;this.expectCharacter(125)}return new Lw(this.span(d),a,b)};b.prototype.parseAccessMemberOrMethodCall=function(a,b){void 0===b&&(b=!1);var c=a.span.start,e=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var f=this.parseCallArguments();this.expectCharacter(41);this.rparensExpected--;c=this.span(c);return b?new ln(c,a,e,f):new kn(c,a,e,f)}if(b)return this.optionalOperator("\x3d")?(this.error("The '?.' operator cannot be used in the assignment"),
  new be(this.span(c))):new Gw(this.span(c),a,e);if(this.optionalOperator("\x3d")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new be(this.span(c));b=this.parseConditional();return new Fw(this.span(c),a,e,b)}return new jn(this.span(c),a,e)};b.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var a=[];do a.push(this.parsePipe());while(this.optionalCharacter(44));return a};b.prototype.expectTemplateBindingKey=function(){var a="",b;do a+=this.expectIdentifierOrKeywordOrString(),
  (b=this.optionalOperator("-"))&&(a+="-");while(b);return a.toString()};b.prototype.parseTemplateBindings=function(){for(var a=[],b=null;this.index<this.tokens.length;){var d=this.peekKeywordLet();d&&this.advance();var e=this.expectTemplateBindingKey();d||(null==b?b=e:e=b+e[0].toUpperCase()+e.substring(1));this.optionalCharacter(58);var f=null,g=null;if(d)f=this.optionalOperator("\x3d")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==mn&&!this.peekKeywordLet())var h=this.inputIndex,
  g=this.parsePipe(),h=this.input.substring(h,this.inputIndex),g=new ce(g,h,this.location,this.errors);a.push(new Pw(e,d,f,g));this.optionalCharacter(59)||this.optionalCharacter(44)}return new Tw(a,[],this.errors)};b.prototype.error=function(a,b){void 0===b&&(b=null);this.errors.push(new ki(a,this.input,this.locationText(b),this.location));this.skip()};b.prototype.locationText=function(a){void 0===a&&(a=null);z(a)&&(a=this.index);return a<this.tokens.length?"at column "+(this.tokens[a].index+1)+" in":
  "at the end of the expression"};b.prototype.skip=function(){for(var a=this.next;this.index<this.tokens.length&&!a.isCharacter(59)&&(0>=this.rparensExpected||!a.isCharacter(41))&&(0>=this.rbracesExpected||!a.isCharacter(125))&&(0>=this.rbracketsExpected||!a.isCharacter(93));)this.next.isError()&&this.errors.push(new ki(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),a=this.next};return b}(),Uw=function(){function b(){this.simple=!0}b.check=function(a){var c=new b;
  a.visit(c);return c.simple};b.prototype.visitImplicitReceiver=function(a,b){};b.prototype.visitInterpolation=function(a,b){this.simple=!1};b.prototype.visitLiteralPrimitive=function(a,b){};b.prototype.visitPropertyRead=function(a,b){};b.prototype.visitPropertyWrite=function(a,b){this.simple=!1};b.prototype.visitSafePropertyRead=function(a,b){this.simple=!1};b.prototype.visitMethodCall=function(a,b){this.simple=!1};b.prototype.visitSafeMethodCall=function(a,b){this.simple=!1};b.prototype.visitFunctionCall=
  function(a,b){this.simple=!1};b.prototype.visitLiteralArray=function(a,b){this.visitAll(a.expressions)};b.prototype.visitLiteralMap=function(a,b){this.visitAll(a.values)};b.prototype.visitBinary=function(a,b){this.simple=!1};b.prototype.visitPrefixNot=function(a,b){this.simple=!1};b.prototype.visitConditional=function(a,b){this.simple=!1};b.prototype.visitPipe=function(a,b){this.simple=!1};b.prototype.visitKeyedRead=function(a,b){this.simple=!1};b.prototype.visitKeyedWrite=function(a,b){this.simple=
  !1};b.prototype.visitAll=function(a){var b=this;return a.map(function(a){return a.visit(b)})};b.prototype.visitChain=function(a,b){this.simple=!1};b.prototype.visitQuote=function(a,b){this.simple=!1};return b}(),oi=function(){function b(a,b,d,e){this.file=a;this.offset=b;this.line=d;this.col=e}b.prototype.toString=function(){return p(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url};return b}(),nn=function(){return function(b,a){this.content=b;this.url=a}}(),tc=function(){function b(a,
  b,d){void 0===d&&(d=null);this.start=a;this.end=b;this.details=d}b.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)};return b}(),jc;(function(b){b[b.WARNING=0]="WARNING";b[b.FATAL=1]="FATAL"})(jc||(jc={}));var qd=function(){function b(a,b,d){void 0===d&&(d=jc.FATAL);this.span=a;this.msg=b;this.level=d}b.prototype.toString=function(){var a=this.span.start.file.content,b=this.span.start.offset,d="",e="";if(p(b)){b>a.length-1&&(b=a.length-1);for(var d=
  b,f=0,g=0;100>f&&0<b&&(b--,f++,"\n"!=a[b]||3!=++g););for(g=f=0;100>f&&d<a.length-1&&(d++,f++,"\n"!=a[d]||3!=++g););d=' ("'+(a.substring(b,this.span.start.offset)+"[ERROR -\x3e]"+a.substring(this.span.start.offset,d+1))+'")'}this.span.details&&(e=", "+this.span.details);return""+this.msg+d+": "+this.span.start+e};return b}(),pi=function(){function b(a,b){this.value=a;this.sourceSpan=b}b.prototype.visit=function(a,b){return a.visitText(this,b)};return b}(),qi=function(){function b(a,b,d,e,f){this.switchValue=
  a;this.type=b;this.cases=d;this.sourceSpan=e;this.switchValueSourceSpan=f}b.prototype.visit=function(a,b){return a.visitExpansion(this,b)};return b}(),on=function(){function b(a,b,d,e,f){this.value=a;this.expression=b;this.sourceSpan=d;this.valueSourceSpan=e;this.expSourceSpan=f}b.prototype.visit=function(a,b){return a.visitExpansionCase(this,b)};return b}(),dd=function(){function b(a,b,d){this.name=a;this.value=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitAttribute(this,b)};
  return b}(),oc=function(){function b(a,b,d,e,f,g){this.name=a;this.attrs=b;this.children=d;this.sourceSpan=e;this.startSourceSpan=f;this.endSourceSpan=g}b.prototype.visit=function(a,b){return a.visitElement(this,b)};return b}(),fg=function(){function b(a,b){this.value=a;this.sourceSpan=b}b.prototype.visit=function(a,b){return a.visitComment(this,b)};return b}(),Vw=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=
  a.prototype,new c)},I;(function(b){b[b.TAG_OPEN_START=0]="TAG_OPEN_START";b[b.TAG_OPEN_END=1]="TAG_OPEN_END";b[b.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID";b[b.TAG_CLOSE=3]="TAG_CLOSE";b[b.TEXT=4]="TEXT";b[b.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT";b[b.RAW_TEXT=6]="RAW_TEXT";b[b.COMMENT_START=7]="COMMENT_START";b[b.COMMENT_END=8]="COMMENT_END";b[b.CDATA_START=9]="CDATA_START";b[b.CDATA_END=10]="CDATA_END";b[b.ATTR_NAME=11]="ATTR_NAME";b[b.ATTR_VALUE=12]="ATTR_VALUE";b[b.DOC_TYPE=13]="DOC_TYPE";b[b.EXPANSION_FORM_START=
  14]="EXPANSION_FORM_START";b[b.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE";b[b.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START";b[b.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END";b[b.EXPANSION_FORM_END=18]="EXPANSION_FORM_END";b[b.EOF=19]="EOF"})(I||(I={}));var pn=function(){return function(b,a,c){this.type=b;this.parts=a;this.sourceSpan=c}}(),Ww=function(b){function a(a,d,e){b.call(this,e,a);this.tokenType=d}Vw(a,b);return a}(qd),Xw=function(){return function(b,a){this.tokens=b;this.errors=
  a}}(),Yw=/\r\n?/g,ri=function(){return function(b){this.error=b}}(),Zw=function(){function b(a,b,d,e){void 0===e&&(e=Tb);this._file=a;this._getTagDefinition=b;this._tokenizeIcu=d;this._interpolationConfig=e;this._index=this._nextPeek=this._peek=-1;this._line=0;this._column=-1;this._expansionCaseStack=[];this._inInterpolation=!1;this.tokens=[];this.errors=[];this._input=a.content;this._length=a.content.length;this._advance()}b.prototype._processCarriageReturns=function(a){return a.replace(Yw,"\n")};
  b.prototype.tokenize=function(){for(;0!==this._peek;){var a=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(a):this._attemptCharCode(45)?this._consumeComment(a):this._consumeDocType(a):this._attemptCharCode(47)?this._consumeTagClose(a):this._consumeTagOpen(a):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(g){if(g instanceof ri)this.errors.push(g.error);else throw g;}}this._beginToken(I.EOF);this._endToken([]);
  for(var a=this.tokens,b=[],d,e=0;e<a.length;e++){var f=a[e];d&&d.type==I.TEXT&&f.type==I.TEXT?(d.parts[0]+=f.parts[0],d.sourceSpan.end=f.sourceSpan.end):(d=f,b.push(d))}return new Xw(b,this.errors)};b.prototype._tokenizeExpansionForm=function(){if(gk(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;var a=this._peek;if((61===a||pf(a))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),
  !0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1};b.prototype._getLocation=function(){return new oi(this._file,this._index,this._line,this._column)};b.prototype._getSpan=function(a,b){void 0===a&&(a=this._getLocation());void 0===b&&(b=this._getLocation());return new tc(a,b)};b.prototype._beginToken=function(a,b){void 0===b&&(b=this._getLocation());this._currentTokenStart=b;this._currentTokenType=a};b.prototype._endToken=function(a,b){void 0===b&&(b=this._getLocation());
  a=new pn(this._currentTokenType,a,new tc(this._currentTokenStart,b));this.tokens.push(a);this._currentTokenType=this._currentTokenStart=null;return a};b.prototype._createError=function(a,b){this._isInExpansionForm()&&(a+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');a=new Ww(a,this._currentTokenType,b);this._currentTokenType=this._currentTokenStart=null;return new ri(a)};b.prototype._advance=function(){if(this._index>=this._length)throw this._createError(Fd(0),
  this._getSpan());10===this._peek?(this._line++,this._column=0):10!==this._peek&&13!==this._peek&&this._column++;this._index++;this._peek=this._index>=this._length?0:this._input.charCodeAt(this._index);this._nextPeek=this._index+1>=this._length?0:this._input.charCodeAt(this._index+1)};b.prototype._attemptCharCode=function(a){return this._peek===a?(this._advance(),!0):!1};b.prototype._attemptCharCodeCaseInsensitive=function(a){var b=this._peek;return(97<=b&&122>=b?b-97+65:b)==(97<=a&&122>=a?a-97+65:
  a)?(this._advance(),!0):!1};b.prototype._requireCharCode=function(a){var b=this._getLocation();if(!this._attemptCharCode(a))throw this._createError(Fd(this._peek),this._getSpan(b,b));};b.prototype._attemptStr=function(a){var b=a.length;if(this._index+b>this._length)return!1;for(var d=this._savePosition(),e=0;e<b;e++)if(!this._attemptCharCode(a.charCodeAt(e)))return this._restorePosition(d),!1;return!0};b.prototype._attemptStrCaseInsensitive=function(a){for(var b=0;b<a.length;b++)if(!this._attemptCharCodeCaseInsensitive(a.charCodeAt(b)))return!1;
  return!0};b.prototype._requireStr=function(a){var b=this._getLocation();if(!this._attemptStr(a))throw this._createError(Fd(this._peek),this._getSpan(b));};b.prototype._attemptCharCodeUntilFn=function(a){for(;!a(this._peek);)this._advance()};b.prototype._requireCharCodeUntilFn=function(a,b){var c=this._getLocation();this._attemptCharCodeUntilFn(a);if(this._index-c.offset<b)throw this._createError(Fd(this._peek),this._getSpan(c,c));};b.prototype._attemptUntilChar=function(a){for(;this._peek!==a;)this._advance()};
  b.prototype._readChar=function(a){if(a&&38===this._peek)return this._decodeEntity();a=this._index;this._advance();return this._input[a]};b.prototype._decodeEntity=function(){var a=this._getLocation();this._advance();if(this._attemptCharCode(35)){var b=this._attemptCharCode(120)||this._attemptCharCode(88),d=this._getLocation().offset;this._attemptCharCodeUntilFn(iq);if(59!=this._peek)throw this._createError(Fd(this._peek),this._getSpan());this._advance();d=this._input.substring(d,this._index-1);try{var e=
  parseInt(d,b?16:10);return String.fromCharCode(e)}catch(f){throw b=this._input.substring(a.offset+1,this._index-1),this._createError(ek(b),this._getSpan(a));}}else{b=this._savePosition();this._attemptCharCodeUntilFn(jq);if(59!=this._peek)return this._restorePosition(b),"\x26";this._advance();b=this._input.substring(a.offset+1,this._index-1);e=lw[b];if(!e)throw this._createError(ek(b),this._getSpan(a));return e}};b.prototype._consumeRawText=function(a,b,d){var c;c=this._getLocation();this._beginToken(a?
  I.ESCAPABLE_RAW_TEXT:I.RAW_TEXT,c);for(var f=[];;){c=this._getLocation();if(this._attemptCharCode(b)&&d())break;for(this._index>c.offset&&f.push(this._input.substring(c.offset,this._index));this._peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],c)};b.prototype._consumeComment=function(a){var b=this;this._beginToken(I.COMMENT_START,a);this._requireCharCode(45);this._endToken([]);a=this._consumeRawText(!1,45,function(){return b._attemptStr("-\x3e")});
  this._beginToken(I.COMMENT_END,a.sourceSpan.end);this._endToken([])};b.prototype._consumeCdata=function(a){var b=this;this._beginToken(I.CDATA_START,a);this._requireStr("CDATA[");this._endToken([]);a=this._consumeRawText(!1,93,function(){return b._attemptStr("]\x3e")});this._beginToken(I.CDATA_END,a.sourceSpan.end);this._endToken([])};b.prototype._consumeDocType=function(a){this._beginToken(I.DOC_TYPE,a);this._attemptUntilChar(62);this._advance();this._endToken([this._input.substring(a.offset+2,this._index-
  1)])};b.prototype._consumePrefixAndName=function(){for(var a=this._index,b=null;58!==this._peek&&!hq(this._peek);)this._advance();58===this._peek&&(this._advance(),b=this._input.substring(a,this._index-1),a=this._index);this._requireCharCodeUntilFn(fk,this._index===a?1:0);a=this._input.substring(a,this._index);return[b,a]};b.prototype._consumeTagOpen=function(a){var b=this._savePosition(),d,e;try{if(!pf(this._peek))throw this._createError(Fd(this._peek),this._getSpan());var f=this._index;this._consumeTagOpenStart(a);
  d=this._input.substring(f,this._index);e=d.toLowerCase();for(this._attemptCharCodeUntilFn(tb);47!==this._peek&&62!==this._peek;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(tb),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(tb),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(tb);this._consumeTagOpenEnd()}catch(g){if(g instanceof ri){this._restorePosition(b);this._beginToken(I.TEXT,a);this._endToken(["\x3c"]);return}throw g;}a=this._getTagDefinition(d).contentType;
  a===fc.RAW_TEXT?this._consumeRawTextWithTagClose(e,!1):a===fc.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(e,!0)};b.prototype._consumeRawTextWithTagClose=function(a,b){var c=this;b=this._consumeRawText(b,60,function(){if(!c._attemptCharCode(47))return!1;c._attemptCharCodeUntilFn(tb);if(!c._attemptStrCaseInsensitive(a))return!1;c._attemptCharCodeUntilFn(tb);return c._attemptCharCode(62)});this._beginToken(I.TAG_CLOSE,b.sourceSpan.end);this._endToken([null,a])};b.prototype._consumeTagOpenStart=
  function(a){this._beginToken(I.TAG_OPEN_START,a);a=this._consumePrefixAndName();this._endToken(a)};b.prototype._consumeAttributeName=function(){this._beginToken(I.ATTR_NAME);var a=this._consumePrefixAndName();this._endToken(a)};b.prototype._consumeAttributeValue=function(){this._beginToken(I.ATTR_VALUE);var a;if(39===this._peek||34===this._peek){a=this._peek;this._advance();for(var b=[];this._peek!==a;)b.push(this._readChar(!0));a=b.join("");this._advance()}else a=this._index,this._requireCharCodeUntilFn(fk,
  1),a=this._input.substring(a,this._index);this._endToken([this._processCarriageReturns(a)])};b.prototype._consumeTagOpenEnd=function(){var a=this._attemptCharCode(47)?I.TAG_OPEN_END_VOID:I.TAG_OPEN_END;this._beginToken(a);this._requireCharCode(62);this._endToken([])};b.prototype._consumeTagClose=function(a){this._beginToken(I.TAG_CLOSE,a);this._attemptCharCodeUntilFn(tb);a=this._consumePrefixAndName();this._attemptCharCodeUntilFn(tb);this._requireCharCode(62);this._endToken(a)};b.prototype._consumeExpansionFormStart=
  function(){this._beginToken(I.EXPANSION_FORM_START,this._getLocation());this._requireCharCode(123);this._endToken([]);this._expansionCaseStack.push(I.EXPANSION_FORM_START);this._beginToken(I.RAW_TEXT,this._getLocation());var a=this._readUntil(44);this._endToken([a],this._getLocation());this._requireCharCode(44);this._attemptCharCodeUntilFn(tb);this._beginToken(I.RAW_TEXT,this._getLocation());a=this._readUntil(44);this._endToken([a],this._getLocation());this._requireCharCode(44);this._attemptCharCodeUntilFn(tb)};
  b.prototype._consumeExpansionCaseStart=function(){this._beginToken(I.EXPANSION_CASE_VALUE,this._getLocation());var a=this._readUntil(123).trim();this._endToken([a],this._getLocation());this._attemptCharCodeUntilFn(tb);this._beginToken(I.EXPANSION_CASE_EXP_START,this._getLocation());this._requireCharCode(123);this._endToken([],this._getLocation());this._attemptCharCodeUntilFn(tb);this._expansionCaseStack.push(I.EXPANSION_CASE_EXP_START)};b.prototype._consumeExpansionCaseEnd=function(){this._beginToken(I.EXPANSION_CASE_EXP_END,
  this._getLocation());this._requireCharCode(125);this._endToken([],this._getLocation());this._attemptCharCodeUntilFn(tb);this._expansionCaseStack.pop()};b.prototype._consumeExpansionFormEnd=function(){this._beginToken(I.EXPANSION_FORM_END,this._getLocation());this._requireCharCode(125);this._endToken([]);this._expansionCaseStack.pop()};b.prototype._consumeText=function(){var a=this._getLocation();this._beginToken(I.TEXT,a);a=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?
  (a.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._attemptStr(this._interpolationConfig.end)&&this._inInterpolation?(a.push(this._interpolationConfig.end),this._inInterpolation=!1):a.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(a.join(""))])};b.prototype._isTextEnd=function(){return 60===this._peek||0===this._peek||this._tokenizeIcu&&!this._inInterpolation&&(gk(this._input,this._index,this._interpolationConfig)||
  125===this._peek&&this._isInExpansionCase())?!0:!1};b.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]};b.prototype._readUntil=function(a){var b=this._index;this._attemptUntilChar(a);return this._input.substring(b,this._index)};b.prototype._restorePosition=function(a){this._peek=a[0];this._index=a[1];this._column=a[2];this._line=a[3];a=a[4];a<this.tokens.length&&(this.tokens=this.tokens.slice(0,a))};b.prototype._isInExpansionCase=function(){return 0<
  this._expansionCaseStack.length&&this._expansionCaseStack[this._expansionCaseStack.length-1]===I.EXPANSION_CASE_EXP_START};b.prototype._isInExpansionForm=function(){return 0<this._expansionCaseStack.length&&this._expansionCaseStack[this._expansionCaseStack.length-1]===I.EXPANSION_FORM_START};return b}(),$w=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Xc=function(b){function a(a,
  d,e){b.call(this,d,e);this.elementName=a}$w(a,b);a.create=function(b,d,e){return new a(b,d,e)};return a}(qd),Ge=function(){return function(b,a){this.rootNodes=b;this.errors=a}}(),qn=function(){function b(a){this.getTagDefinition=a}b.prototype.parse=function(a,b,d,e){void 0===d&&(d=!1);void 0===e&&(e=Tb);var c=this.getTagDefinition;void 0===d&&(d=!1);void 0===e&&(e=Tb);a=(new Zw(new nn(a,b),c,d,e)).tokenize();b=(new ax(a.tokens,this.getTagDefinition)).build();return new Ge(b.rootNodes,a.errors.concat(b.errors))};
  return b}(),ax=function(){function b(a,b){this.tokens=a;this.getTagDefinition=b;this._index=-1;this._rootNodes=[];this._errors=[];this._elementStack=[];this._advance()}b.prototype.build=function(){for(;this._peek.type!==I.EOF;)this._peek.type===I.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===I.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===I.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===I.COMMENT_START?(this._closeVoidElement(),
  this._consumeComment(this._advance())):this._peek.type===I.TEXT||this._peek.type===I.RAW_TEXT||this._peek.type===I.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===I.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Ge(this._rootNodes,this._errors)};b.prototype._advance=function(){var a=this._peek;this._index<this.tokens.length-1&&this._index++;this._peek=this.tokens[this._index];return a};b.prototype._advanceIf=
  function(a){return this._peek.type===a?this._advance():null};b.prototype._consumeCdata=function(a){this._consumeText(this._advance());this._advanceIf(I.CDATA_END)};b.prototype._consumeComment=function(a){var b=this._advanceIf(I.RAW_TEXT);this._advanceIf(I.COMMENT_END);b=p(b)?b.parts[0].trim():null;this._addToParent(new fg(b,a.sourceSpan))};b.prototype._consumeExpansion=function(a){for(var b=this._advance(),d=this._advance(),e=[];this._peek.type===I.EXPANSION_CASE_VALUE;){var f=this._parseExpansionCase();
  if(z(f))return;e.push(f)}this._peek.type!==I.EXPANSION_FORM_END?this._errors.push(Xc.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'.")):(a=new tc(a.sourceSpan.start,this._peek.sourceSpan.end),this._addToParent(new qi(b.parts[0],d.parts[0],e,a,b.sourceSpan)),this._advance())};b.prototype._parseExpansionCase=function(){var a=this._advance();if(this._peek.type!==I.EXPANSION_CASE_EXP_START)return this._errors.push(Xc.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),
  null;var c=this._advance(),d=this._collectExpansionExpTokens(c);if(z(d))return null;var e=this._advance();d.push(new pn(I.EOF,[],e.sourceSpan));d=(new b(d,this.getTagDefinition)).build();if(0<d.errors.length)return this._errors=this._errors.concat(d.errors),null;var f=new tc(a.sourceSpan.start,e.sourceSpan.end),c=new tc(c.sourceSpan.start,e.sourceSpan.end);return new on(a.parts[0],d.rootNodes,f,a.sourceSpan,c)};b.prototype._collectExpansionExpTokens=function(a){for(var b=[],d=[I.EXPANSION_CASE_EXP_START];;){this._peek.type!==
  I.EXPANSION_FORM_START&&this._peek.type!==I.EXPANSION_CASE_EXP_START||d.push(this._peek.type);if(this._peek.type===I.EXPANSION_CASE_EXP_END)if(0<d.length&&d[d.length-1]===I.EXPANSION_CASE_EXP_START){if(d.pop(),0==d.length)return b}else return this._errors.push(Xc.create(null,a.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===I.EXPANSION_FORM_END)if(0<d.length&&d[d.length-1]===I.EXPANSION_FORM_START)d.pop();else return this._errors.push(Xc.create(null,a.sourceSpan,"Invalid ICU message. Missing '}'.")),
  null;if(this._peek.type===I.EOF)return this._errors.push(Xc.create(null,a.sourceSpan,"Invalid ICU message. Missing '}'.")),null;b.push(this._advance())}};b.prototype._consumeText=function(a){var b=a.parts[0];if(0<b.length&&"\n"==b[0]){var d=this._getParentElement();p(d)&&0==d.children.length&&this.getTagDefinition(d.name).ignoreFirstLf&&(b=b.substring(1))}0<b.length&&this._addToParent(new pi(b,a.sourceSpan))};b.prototype._closeVoidElement=function(){if(0<this._elementStack.length){var a=ja.last(this._elementStack);
  this.getTagDefinition(a.name).isVoid&&this._elementStack.pop()}};b.prototype._consumeStartTag=function(a){for(var b=a.parts[0],d=a.parts[1],e=[];this._peek.type===I.ATTR_NAME;)e.push(this._consumeAttr(this._advance()));b=this._getElementFullName(b,d,this._getParentElement());d=!1;if(this._peek.type===I.TAG_OPEN_END_VOID){this._advance();var d=!0,f=this.getTagDefinition(b);f.canSelfClose||null!==(null===b?null:Bd(b)[0])||f.isVoid||this._errors.push(Xc.create(b,a.sourceSpan,'Only void and foreign elements can be self closed "'+
  a.parts[1]+'"'))}else this._peek.type===I.TAG_OPEN_END&&(this._advance(),d=!1);a=new tc(a.sourceSpan.start,this._peek.sourceSpan.start);e=new oc(b,e,[],a,a,null);this._pushElement(e);d&&(this._popElement(b),e.endSourceSpan=a)};b.prototype._pushElement=function(a){if(0<this._elementStack.length){var b=ja.last(this._elementStack);this.getTagDefinition(b.name).isClosedByChild(a.name)&&this._elementStack.pop()}var d=this.getTagDefinition(a.name),e=this._getParentElementSkippingContainers(),b=e.parent,
  e=e.container;p(b)&&d.requireExtraParent(b.name)&&(d=new oc(d.parentToAdd,[],[],a.sourceSpan,a.startSourceSpan,a.endSourceSpan),this._insertBeforeContainer(b,e,d));this._addToParent(a);this._elementStack.push(a)};b.prototype._consumeEndTag=function(a){var b=this._getElementFullName(a.parts[0],a.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=a.sourceSpan);this.getTagDefinition(b).isVoid?this._errors.push(Xc.create(b,a.sourceSpan,'Void elements do not have end tags "'+
  a.parts[1]+'"')):this._popElement(b)||this._errors.push(Xc.create(b,a.sourceSpan,'Unexpected closing tag "'+a.parts[1]+'"'))};b.prototype._popElement=function(a){for(var b=this._elementStack.length-1;0<=b;b--){var d=this._elementStack[b];if(d.name==a)return ja.splice(this._elementStack,b,this._elementStack.length-b),!0;if(!this.getTagDefinition(d.name).closedByParent)break}return!1};b.prototype._consumeAttr=function(a){var b;b=a.parts[0];var d=a.parts[1];b=b?":"+b+":"+d:d;var e=a.sourceSpan.end,d=
  "";this._peek.type===I.ATTR_VALUE&&(e=this._advance(),d=e.parts[0],e=e.sourceSpan.end);return new dd(b,d,new tc(a.sourceSpan.start,e))};b.prototype._getParentElement=function(){return 0<this._elementStack.length?ja.last(this._elementStack):null};b.prototype._getParentElementSkippingContainers=function(){for(var a=null,b=this._elementStack.length-1;0<=b;b--){if("ng-container"!==this._elementStack[b].name)return{parent:this._elementStack[b],container:a};a=this._elementStack[b]}return{parent:ja.last(this._elementStack),
  container:a}};b.prototype._addToParent=function(a){var b=this._getParentElement();p(b)?b.children.push(a):this._rootNodes.push(a)};b.prototype._insertBeforeContainer=function(a,b,d){if(b){if(a){var c=a.children.indexOf(b);a.children[c]=d}else this._rootNodes.push(d);d.children.push(b);this._elementStack.splice(this._elementStack.indexOf(b),0,d)}else this._addToParent(d),this._elementStack.push(d)};b.prototype._getElementFullName=function(a,b,d){z(a)&&(a=this.getTagDefinition(b).implicitNamespacePrefix,
  z(a)&&p(d)&&(a=d.name,a=null===a?null:Bd(a)[0]));return a?":"+a+":"+b:b};return b}(),mq=new (function(){function b(){}b.prototype.visitText=function(a,b){return a.value};b.prototype.visitContainer=function(a,b){var c=this;return"["+a.children.map(function(a){return a.visit(c)}).join(", ")+"]"};b.prototype.visitIcu=function(a,b){var c=this;b=Object.keys(a.cases).map(function(b){return b+" {"+a.cases[b].visit(c)+"}"});return"{"+a.expression+", "+a.type+", "+b.join(", ")+"}"};b.prototype.visitTagPlaceholder=
  function(a,b){var c=this;return a.isVoid?'\x3cph tag name\x3d"'+a.startName+'"/\x3e':'\x3cph tag name\x3d"'+a.startName+'"\x3e'+a.children.map(function(a){return a.visit(c)}).join(", ")+'\x3c/ph name\x3d"'+a.closeName+'"\x3e'};b.prototype.visitPlaceholder=function(a,b){return'\x3cph name\x3d"'+a.name+'"\x3e'+a.value+"\x3c/ph\x3e"};b.prototype.visitIcuPlaceholder=function(a,b){return'\x3cph icu name\x3d"'+a.name+'"\x3e'+a.value.visit(this)+"\x3c/ph\x3e"};return b}()),bx=function(){return function(b,
  a,c,d,e){this.nodes=b;this.placeholders=a;this.placeholderToMsgIds=c;this.meaning=d;this.description=e}}(),gg=function(){function b(a,b){this.value=a;this.sourceSpan=b}b.prototype.visit=function(a,b){return a.visitText(this,b)};return b}(),rn=function(){function b(a,b){this.children=a;this.sourceSpan=b}b.prototype.visit=function(a,b){return a.visitContainer(this,b)};return b}(),cx=function(){function b(a,b,d,e){this.expression=a;this.type=b;this.cases=d;this.sourceSpan=e}b.prototype.visit=function(a,
  b){return a.visitIcu(this,b)};return b}(),dx=function(){function b(a,b,d,e,f,g,h){this.tag=a;this.attrs=b;this.startName=d;this.closeName=e;this.children=f;this.isVoid=g;this.sourceSpan=h}b.prototype.visit=function(a,b){return a.visitTagPlaceholder(this,b)};return b}(),ex=function(){function b(a,b,d){void 0===b&&(b="");this.value=a;this.name=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitPlaceholder(this,b)};return b}(),fx=function(){function b(a,b,d){void 0===b&&(b="");this.value=
  a;this.name=b;this.sourceSpan=d}b.prototype.visit=function(a,b){return a.visitIcuPlaceholder(this,b)};return b}(),sn={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",
  TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},gx=function(){function b(){this._placeHolderNameCounts={};this._signatureToName={}}b.prototype.getStartTagPlaceholderName=function(a,b,d){b=this._hashTag(a,b,d);if(this._signatureToName[b])return this._signatureToName[b];a=a.toUpperCase();a=sn[a]||"TAG_"+a;d=this._generateUniqueName(d?a:"START_"+a);return this._signatureToName[b]=d};b.prototype.getCloseTagPlaceholderName=
  function(a){var b=this._hashClosingTag(a);if(this._signatureToName[b])return this._signatureToName[b];a=a.toUpperCase();a=this._generateUniqueName("CLOSE_"+(sn[a]||"TAG_"+a));return this._signatureToName[b]=a};b.prototype.getPlaceholderName=function(a,b){a=a.toUpperCase();b="PH: "+a+"\x3d"+b;if(this._signatureToName[b])return this._signatureToName[b];a=this._generateUniqueName(a);return this._signatureToName[b]=a};b.prototype._hashTag=function(a,b,d){var c="\x3c"+a,f=Object.keys(b).sort().map(function(a){return" "+
  a+"\x3d"+b[a]}).join("");return c+f+(d?"/\x3e":"\x3e\x3c/"+a+"\x3e")};b.prototype._hashClosingTag=function(a){return this._hashTag("/"+a,{},!1)};b.prototype._generateUniqueName=function(a){var b=a,d=this._placeHolderNameCounts[b];d?(b+="_"+d,d++):d=1;this._placeHolderNameCounts[a]=d;return b};return b}(),pq=new ni(new mi),oq=function(){function b(a,b){this._expressionParser=a;this._interpolationConfig=b}b.prototype.toI18nMessage=function(a,b,d){this._isIcu=1==a.length&&a[0]instanceof qi;this._icuDepth=
  0;this._placeholderRegistry=new gx;this._placeholderToContent={};this._placeholderToIds={};a=ya(this,a,{});return new bx(a,this._placeholderToContent,this._placeholderToIds,b,d)};b.prototype.visitElement=function(a,b){b=ya(this,a.children);var c={};a.attrs.forEach(function(a){c[a.name]=a.value});var e=Zg(a.name).isVoid,f=this._placeholderRegistry.getStartTagPlaceholderName(a.name,c,e);this._placeholderToContent[f]=a.sourceSpan.toString();var g="";e||(g=this._placeholderRegistry.getCloseTagPlaceholderName(a.name),
  this._placeholderToContent[g]="\x3c/"+a.name+"\x3e");return new dx(a.name,c,f,g,b,e,a.sourceSpan)};b.prototype.visitAttribute=function(a,b){return this._visitTextWithInterpolation(a.value,a.sourceSpan)};b.prototype.visitText=function(a,b){return this._visitTextWithInterpolation(a.value,a.sourceSpan)};b.prototype.visitComment=function(a,b){return null};b.prototype.visitExpansion=function(a,c){var d=this;this._icuDepth++;var e={};c=new cx(a.switchValue,a.type,e,a.sourceSpan);a.cases.forEach(function(a){e[a.value]=
  new rn(a.expression.map(function(a){return a.visit(d,{})}),a.expSourceSpan)});this._icuDepth--;if(this._isIcu||0<this._icuDepth)return c;var f=this._placeholderRegistry.getPlaceholderName("ICU",a.sourceSpan.toString()),g=new b(this._expressionParser,this._interpolationConfig);this._placeholderToIds[f]=qf(g.toI18nMessage([a],"",""));return new fx(c,f,a.sourceSpan)};b.prototype.visitExpansionCase=function(a,b){throw Error("Unreachable code");};b.prototype._visitTextWithInterpolation=function(a,b){var c=
  this._expressionParser.splitInterpolation(a,b.start.toString(),this._interpolationConfig);if(!c)return new gg(a,b);a=[];for(var e=new rn(a,b),f=this._interpolationConfig,g=f.start,f=f.end,h=0;h<c.strings.length-1;h++){var m=c.expressions[h],r=m.split(hx)[1]||"INTERPOLATION",r=this._placeholderRegistry.getPlaceholderName(r,m);c.strings[h].length&&a.push(new gg(c.strings[h],b));a.push(new ex(m,r,b));this._placeholderToContent[r]=g+m+f}g=c.strings.length-1;c.strings[g].length&&a.push(new gg(c.strings[g],
  b));return e};return b}(),hx=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,ix=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},si=function(b){function a(a,d){b.call(this,a,d)}ix(a,b);return a}(qd),jx=/^i18n:?/,kx=function(){return function(b,a){this.messages=b;this.errors=a}}(),Ib;(function(b){b[b.Extract=0]="Extract";b[b.Merge=1]="Merge"})(Ib||(Ib={}));var hk=
  function(){function b(a,b){this._implicitTags=a;this._implicitAttrs=b}b.prototype.extract=function(a,b){var c=this;this._init(Ib.Extract,b);a.forEach(function(a){return a.visit(c,null)});this._inI18nBlock&&this._reportError(a[a.length-1],"Unclosed block");return new kx(this._messages,this._errors)};b.prototype.merge=function(a,b,d){this._init(Ib.Merge,d);this._translations=b;b=(new oc("wrapper",[],a,null,null,null)).visit(this,null);this._inI18nBlock&&this._reportError(a[a.length-1],"Unclosed block");
  return new Ge(b.children,this._errors)};b.prototype.visitExpansionCase=function(a,b){b=ya(this,a.expression,b);if(this._mode===Ib.Merge)return new on(a.value,b,a.sourceSpan,a.valueSourceSpan,a.expSourceSpan)};b.prototype.visitExpansion=function(a,b){this._mayBeAddBlockChildren(a);var c=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([a]),this._inIcu=!0);b=ya(this,a.cases,b);this._mode===Ib.Merge&&(a=new qi(a.switchValue,a.type,b,a.sourceSpan,a.switchValueSourceSpan));this._inIcu=
  c;return a};b.prototype.visitComment=function(a,b){if((b=a instanceof fg&&a.value&&a.value.startsWith("i18n"))&&this._isInTranslatableSection)this._reportError(a,"Could not start a block inside a translatable section");else{var c=a instanceof fg&&a.value&&"/i18n"===a.value;if(c&&!this._inI18nBlock)this._reportError(a,"Trying to close an unopened block");else if(!this._inI18nNode&&!this._inIcu)if(!this._inI18nBlock)b&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=
  a.value.replace(jx,"").trim(),this._openTranslatableSection(a));else if(c){if(this._depth==this._blockStartDepth)return this._closeTranslatableSection(a,this._blockChildren),this._inI18nBlock=!1,b=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),a=this._translateMessage(a,b),ya(this,a);this._reportError(a,"I18N blocks should not cross element boundaries")}}};b.prototype.visitText=function(a,b){this._isInTranslatableSection&&this._mayBeAddBlockChildren(a);return a};b.prototype.visitElement=
  function(a,b){var c=this;this._mayBeAddBlockChildren(a);this._depth++;var e=this._inI18nNode,f=this._inImplicitNode,g,h=rq(a),m=this._implicitTags.some(function(b){return a.name===b})&&!this._inIcu&&!this._isInTranslatableSection,r=!f&&m;this._inImplicitNode=this._inImplicitNode||m;this._isInTranslatableSection||this._inIcu?((h||r)&&this._reportError(a,"Could not mark an element as translatable inside a translatable section"),this._mode==Ib.Extract&&ya(this,a.children),this._mode==Ib.Merge&&(g=[],
  a.children.forEach(function(a){(a=a.visit(c,b))&&!c._isInTranslatableSection&&(g=g.concat(a))}))):(h?(this._inI18nNode=!0,m=this._addMessage(a.children,h.value),g=this._translateMessage(a,m)):r&&(this._inI18nNode=!0,m=this._addMessage(a.children),g=this._translateMessage(a,m)),this._mode==Ib.Extract&&((m=h||r)&&this._openTranslatableSection(a),ya(this,a.children),m&&this._closeTranslatableSection(a,a.children)),this._mode!==Ib.Merge||h||r||(g=[],a.children.forEach(function(a){(a=a.visit(c,b))&&!c._isInTranslatableSection&&
  (g=g.concat(a))})));this._visitAttributesOf(a);this._depth--;this._inI18nNode=e;this._inImplicitNode=f;if(this._mode===Ib.Merge)return e=this._translateAttributes(a),new oc(a.name,e,g,a.sourceSpan,a.startSourceSpan,a.endSourceSpan)};b.prototype.visitAttribute=function(a,b){throw Error("unreachable code");};b.prototype._init=function(a,b){this._mode=a;this._inI18nNode=this._inI18nBlock=!1;this._depth=0;this._inIcu=!1;this._msgCountAtSectionStart=void 0;this._errors=[];this._messages=[];this._inImplicitNode=
  !1;this._createI18nMessage=nq(b)};b.prototype._visitAttributesOf=function(a){var b=this,d={},e=this._implicitAttrs[a.name]||[];a.attrs.filter(function(a){return a.name.startsWith("i18n-")}).forEach(function(a){return d[a.name.slice(5)]=a.value});a.attrs.forEach(function(a){a.name in d?b._addMessage([a],d[a.name]):e.some(function(b){return a.name===b})&&b._addMessage([a])})};b.prototype._addMessage=function(a,b){if(!(0==a.length||1==a.length&&a[0]instanceof dd&&!a[0].value))return b=ik(b),a=this._createI18nMessage(a,
  b[0],b[1]),this._messages.push(a),a};b.prototype._translateMessage=function(a,b){if(b&&this._mode===Ib.Merge){b=qf(b);var c=this._translations.get(b);if(c)return c;this._reportError(a,'Translation unavailable for message id\x3d"'+b+'"')}return[]};b.prototype._translateAttributes=function(a){var b=this,d=a.attrs,e={};d.forEach(function(a){a.name.startsWith("i18n-")&&(e[a.name.slice(5)]=ik(a.value)[0])});var f=[];d.forEach(function(c){if("i18n"!==c.name&&!c.name.startsWith("i18n-"))if(c.value&&""!=
  c.value&&e.hasOwnProperty(c.name)){var d=b._createI18nMessage([c],e[c.name],""),d=qf(d),g=b._translations.get(d);g?g[0]instanceof pi?f.push(new dd(c.name,g[0].value,c.sourceSpan)):b._reportError(a,'Unexpected translation for attribute "'+c.name+'" (id\x3d"'+d+'")'):b._reportError(a,'Translation unavailable for attribute "'+c.name+'" (id\x3d"'+d+'")')}else f.push(c)});return f};b.prototype._mayBeAddBlockChildren=function(a){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(a)};
  b.prototype._openTranslatableSection=function(a){this._isInTranslatableSection?this._reportError(a,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length};Object.defineProperty(b.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0});b.prototype._closeTranslatableSection=function(a,b){if(this._isInTranslatableSection){a=this._msgCountAtSectionStart;if(1==b.reduce(function(a,b){return a+(b instanceof
  fg?0:1)},0))for(b=this._messages.length-1;b>=a;b--){var c=this._messages[b].nodes;if(!(1==c.length&&c[0]instanceof gg)){this._messages.splice(b,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(a,"Unexpected section end")};b.prototype._reportError=function(a,b){this._errors.push(new si(a.sourceSpan,b))};return b}(),lx=function(){function b(a,b,d){this._htmlParser=a;this._implicitTags=b;this._implicitAttrs=d;this._messageMap={}}b.prototype.updateFromTemplate=function(a,b,d){var c=
  this;a=this._htmlParser.parse(a,b,!0,d);if(a.errors.length)return a.errors;d=qq(a.rootNodes,d,this._implicitTags,this._implicitAttrs);if(d.errors.length)return d.errors;d.messages.forEach(function(a){c._messageMap[qf(a)]=a})};b.prototype.getMessageMap=function(){return this._messageMap};b.prototype.write=function(a){return a.write(this._messageMap)};return b}(),tq=new (function(){function b(){this.closedByParent=!1;this.contentType=fc.PARSABLE_DATA;this.ignoreFirstLf=this.isVoid=!1;this.canSelfClose=
  !0}b.prototype.requireExtraParent=function(a){return!1};b.prototype.isClosedByChild=function(a){return!1};return b}()),mx=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},tn=function(b){function a(){b.call(this,sq)}mx(a,b);a.prototype.parse=function(a,d,e){void 0===e&&(e=!1);return b.prototype.parse.call(this,a,d,e,null)};return a}(qn),uq=new (function(){function b(){}b.prototype.visitTag=
  function(a){var b=this,d=this._serializeAttributes(a.attrs);if(0==a.children.length)return"\x3c"+a.name+d+"/\x3e";var e=a.children.map(function(a){return a.visit(b)});return"\x3c"+a.name+d+"\x3e"+e.join("")+"\x3c/"+a.name+"\x3e"};b.prototype.visitText=function(a){return a.value};b.prototype.visitDeclaration=function(a){return"\x3c?xml"+this._serializeAttributes(a.attrs)+" ?\x3e"};b.prototype._serializeAttributes=function(a){var b=Object.keys(a).map(function(b){return b+'\x3d"'+a[b]+'"'}).join(" ");
  return 0<b.length?" "+b:""};b.prototype.visitDoctype=function(a){return"\x3c!DOCTYPE "+a.rootTag+" [\n"+a.dtd+"\n]\x3e"};return b}()),un=function(){function b(a){var b=this;this.attrs={};Object.keys(a).forEach(function(c){b.attrs[c]=dh(a[c])})}b.prototype.visit=function(a){return a.visitDeclaration(this)};return b}(),nx=function(){function b(a,b){this.rootTag=a;this.dtd=b}b.prototype.visit=function(a){return a.visitDoctype(this)};return b}(),Ka=function(){function b(a,b,d){var c=this;void 0===b&&
  (b={});void 0===d&&(d=[]);this.name=a;this.children=d;this.attrs={};Object.keys(b).forEach(function(a){c.attrs[a]=dh(b[a])})}b.prototype.visit=function(a){return a.visitTag(this)};return b}(),ab=function(){function b(a){this.value=dh(a)}b.prototype.visit=function(a){return a.visitText(this)};return b}(),vq=[[/&/g,"\x26amp;"],[/"/g,"\x26quot;"],[/'/g,"\x26apos;"],[/</g,"\x26lt;"],[/>/g,"\x26gt;"]],Jb=function(b){void 0===b&&(b=0);return new ab("\n"+Array(b).join(" "))},qx=function(){function b(a,b){this._htmlParser=
  a;this._interpolationConfig=b}b.prototype.write=function(a){var b=new ox,d=[];Object.keys(a).forEach(function(c){var g=a[c];c=new Ka("trans-unit",{id:c,datatype:"html"});c.children.push(Jb(8),new Ka("source",{},b.serialize(g.nodes)),Jb(8),new Ka("target"));g.description&&c.children.push(Jb(8),new Ka("note",{priority:"1",from:"description"},[new ab(g.description)]));g.meaning&&c.children.push(Jb(8),new Ka("note",{priority:"1",from:"meaning"},[new ab(g.meaning)]));c.children.push(Jb(6));d.push(Jb(6),
  c)});var e=new Ka("body",{},d.concat([Jb(4)])),e=new Ka("file",{"source-language":"en",datatype:"plaintext",original:"ng2.template"},[Jb(4),e,Jb(2)]),e=new Ka("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[Jb(2),e,Jb()]);return lk([new un({version:"1.0",encoding:"UTF-8"}),Jb(),e])};b.prototype.load=function(a,b,d){var c=this;a=(new tn).parse(a,b);if(a.errors.length)throw Error("xtb parse errors:\n"+a.errors.join("\n"));d=(new px).parse(a.rootNodes,d);var f=d.messages;d=d.errors;
  if(d.length)throw Error("xtb parse errors:\n"+d.join("\n"));var g={},h=[];Object.keys(f).forEach(function(a){var d=c._htmlParser.parse(f[a],b,!0,c._interpolationConfig);h.push.apply(h,d.errors);g[a]=d.rootNodes});if(h.length)throw Error("xtb parse errors:\n"+h.join("\n"));return g};return b}(),ox=function(){function b(){}b.prototype.visitText=function(a,b){return[new ab(a.value)]};b.prototype.visitContainer=function(a,b){var c=this,e=[];a.children.forEach(function(a){return e.push.apply(e,a.visit(c))});
  return e};b.prototype.visitIcu=function(a,b){if(this._isInIcu)throw Error("xliff does not support nested ICU messages");this._isInIcu=!0;this._isInIcu=!1;return[]};b.prototype.visitTagPlaceholder=function(a,b){b=new Ka("x",{id:a.startName,ctype:a.tag});if(a.isVoid)return[b];var c=new Ka("x",{id:a.closeName,ctype:a.tag});return[b].concat(this.serialize(a.children),[c])};b.prototype.visitPlaceholder=function(a,b){return[new Ka("x",{id:a.name})]};b.prototype.visitIcuPlaceholder=function(a,b){return[new Ka("x",
  {id:a.name})]};b.prototype.serialize=function(a){var b=this;this._isInIcu=!1;return ja.flatten(a.map(function(a){return a.visit(b)}))};return b}(),px=function(){function b(){}b.prototype.parse=function(a,b){var c=this;this._messageNodes=[];this._translatedMessages={};this._msgId="";this._target=[];this._errors=[];ya(this,a,null);var e=b.getMessageMap(),f=jk(b),g=kk(b);this._messageNodes.filter(function(a){return e.hasOwnProperty(a[0])}).sort(function(a,b){return 0==Object.keys(e[a[0]].placeholderToMsgIds).length?
  -1:0==Object.keys(e[b[0]].placeholderToMsgIds).length?1:0}).forEach(function(a){var b=a[0];c._placeholders=f[b]||{};c._placeholderToIds=g[b]||{};c._translatedMessages[b]=ya(c,a[1]).join("")});return{messages:this._translatedMessages,errors:this._errors}};b.prototype.visitElement=function(a,b){switch(a.name){case "trans-unit":this._target=null;(b=a.attrs.find(function(a){return"id"===a.name}))?this._msgId=b.value:this._addError(a,'\x3ctrans-unit\x3e misses the "id" attribute');ya(this,a.children,null);
  null!==this._msgId&&this._messageNodes.push([this._msgId,this._target]);break;case "source":break;case "target":this._target=a.children;break;case "x":if(b=a.attrs.find(function(a){return"id"===a.name})){b=b.value;if(this._placeholders.hasOwnProperty(b))return this._placeholders[b];if(this._placeholderToIds.hasOwnProperty(b)&&this._translatedMessages.hasOwnProperty(this._placeholderToIds[b]))return this._translatedMessages[this._placeholderToIds[b]];this._addError(a,'The placeholder "'+b+'" does not exists in the source message')}else this._addError(a,
  '\x3cx\x3e misses the "id" attribute');break;default:ya(this,a.children,null)}};b.prototype.visitAttribute=function(a,b){throw Error("unreachable code");};b.prototype.visitText=function(a,b){return a.value};b.prototype.visitComment=function(a,b){return""};b.prototype.visitExpansion=function(a,b){throw Error("unreachable code");};b.prototype.visitExpansionCase=function(a,b){throw Error("unreachable code");};b.prototype._addError=function(a,b){this._errors.push(new si(a.sourceSpan,b))};return b}(),
  sx=function(){function b(){}b.prototype.write=function(a){var b=new rx,d=new Ka("messagebundle");d.children.push(new ab("\n"));Object.keys(a).forEach(function(c){var f=a[c];c={id:c};f.description&&(c.desc=f.description);f.meaning&&(c.meaning=f.meaning);d.children.push(new ab("  "),new Ka("msg",c,b.serialize(f.nodes)),new ab("\n"))});return lk([new un({version:"1.0",encoding:"UTF-8"}),new ab("\n"),new nx("messagebundle",'\x3c!ELEMENT messagebundle (msg)*\x3e\n\x3c!ATTLIST messagebundle class CDATA #IMPLIED\x3e\n\n\x3c!ELEMENT msg (#PCDATA|ph|source)*\x3e\n\x3c!ATTLIST msg id CDATA #IMPLIED\x3e\n\x3c!ATTLIST msg seq CDATA #IMPLIED\x3e\n\x3c!ATTLIST msg name CDATA #IMPLIED\x3e\n\x3c!ATTLIST msg desc CDATA #IMPLIED\x3e\n\x3c!ATTLIST msg meaning CDATA #IMPLIED\x3e\n\x3c!ATTLIST msg obsolete (obsolete) #IMPLIED\x3e\n\x3c!ATTLIST msg xml:space (default|preserve) "default"\x3e\n\x3c!ATTLIST msg is_hidden CDATA #IMPLIED\x3e\n\n\x3c!ELEMENT source (#PCDATA)\x3e\n\n\x3c!ELEMENT ph (#PCDATA|ex)*\x3e\n\x3c!ATTLIST ph name CDATA #REQUIRED\x3e\n\n\x3c!ELEMENT ex (#PCDATA)\x3e'),
  new ab("\n"),d])};b.prototype.load=function(a,b,d){throw Error("Unsupported");};return b}(),rx=function(){function b(){}b.prototype.visitText=function(a,b){return[new ab(a.value)]};b.prototype.visitContainer=function(a,b){var c=this,e=[];a.children.forEach(function(a){return e.push.apply(e,a.visit(c))});return e};b.prototype.visitIcu=function(a,b){var c=this,e=[new ab("{"+a.expression+", "+a.type+", ")];Object.keys(a.cases).forEach(function(b){e.push.apply(e,[new ab(b+" {")].concat(a.cases[b].visit(c),
  [new ab("} ")]))});e.push(new ab("}"));return e};b.prototype.visitTagPlaceholder=function(a,b){b=new Ka("ex",{},[new ab("\x3c"+a.tag+"\x3e")]);b=new Ka("ph",{name:a.startName},[b]);if(a.isVoid)return[b];var c=new Ka("ex",{},[new ab("\x3c/"+a.tag+"\x3e")]),c=new Ka("ph",{name:a.closeName},[c]);return[b].concat(this.serialize(a.children),[c])};b.prototype.visitPlaceholder=function(a,b){return[new Ka("ph",{name:a.name})]};b.prototype.visitIcuPlaceholder=function(a,b){return[new Ka("ph",{name:a.name})]};
  b.prototype.serialize=function(a){var b=this;return ja.flatten(a.map(function(a){return a.visit(b)}))};return b}(),ux=function(){function b(a,b){this._htmlParser=a;this._interpolationConfig=b}b.prototype.write=function(a){throw Error("Unsupported");};b.prototype.load=function(a,b,d){var c=this;a=(new tn).parse(a,b);if(a.errors.length)throw Error("xtb parse errors:\n"+a.errors.join("\n"));d=(new tx).parse(a.rootNodes,d);var f=d.messages;d=d.errors;if(d.length)throw Error("xtb parse errors:\n"+d.join("\n"));
  var g={},h=[];Object.keys(f).forEach(function(a){var d=c._htmlParser.parse(f[a],b,!0,c._interpolationConfig);h.push.apply(h,d.errors);g[a]=d.rootNodes});if(h.length)throw Error("xtb parse errors:\n"+h.join("\n"));return g};return b}(),tx=function(){function b(){}b.prototype.parse=function(a,b){var c=this;this._messageNodes=[];this._translatedMessages={};this._translationDepth=this._bundleDepth=0;this._errors=[];ya(this,a,null);var e=b.getMessageMap(),f=jk(b),g=kk(b);this._messageNodes.filter(function(a){return e.hasOwnProperty(a[0])}).sort(function(a,
  b){return 0==Object.keys(e[a[0]].placeholderToMsgIds).length?-1:0==Object.keys(e[b[0]].placeholderToMsgIds).length?1:0}).forEach(function(a){var b=a[0];c._placeholders=f[b]||{};c._placeholderToIds=g[b]||{};c._translatedMessages[b]=ya(c,a[1]).join("")});return{messages:this._translatedMessages,errors:this._errors}};b.prototype.visitElement=function(a,b){switch(a.name){case "translationbundle":this._bundleDepth++;1<this._bundleDepth&&this._addError(a,"\x3ctranslationbundle\x3e elements can not be nested");
  ya(this,a.children,null);this._bundleDepth--;break;case "translation":this._translationDepth++;1<this._translationDepth&&this._addError(a,"\x3ctranslation\x3e elements can not be nested");(b=a.attrs.find(function(a){return"id"===a.name}))?this._messageNodes.push([b.value,a.children]):this._addError(a,'\x3ctranslation\x3e misses the "id" attribute');this._translationDepth--;break;case "ph":if(b=a.attrs.find(function(a){return"name"===a.name})){b=b.value;if(this._placeholders.hasOwnProperty(b))return this._placeholders[b];
  if(this._placeholderToIds.hasOwnProperty(b)&&this._translatedMessages.hasOwnProperty(this._placeholderToIds[b]))return this._translatedMessages[this._placeholderToIds[b]];this._addError(a,'The placeholder "'+b+'" does not exists in the source message')}else this._addError(a,'\x3cph\x3e misses the "name" attribute');break;default:this._addError(a,"Unexpected tag")}};b.prototype.visitAttribute=function(a,b){throw Error("unreachable code");};b.prototype.visitText=function(a,b){return a.value};b.prototype.visitComment=
  function(a,b){return""};b.prototype.visitExpansion=function(a,b){var c=this;a.cases.map(function(a){return a.visit(c,null)});return"{"+a.switchValue+", "+a.type+", strCases.join(' ')}"};b.prototype.visitExpansionCase=function(a,b){return a.value+" {"+ya(this,a.expression,null)+"}"};b.prototype._addError=function(a,b){this._errors.push(new si(a.sourceSpan,b))};return b}(),vx=function(){function b(a){void 0===a&&(a={});this._messageMap=a}b.load=function(a,c,d,e){return new b(e.load(a,c,d))};b.prototype.get=
  function(a){return this._messageMap[a]};b.prototype.has=function(a){return a in this._messageMap};return b}(),ti=function(){function b(a,b,d){this._htmlParser=a;this._translations=b;this._translationsFormat=d}b.prototype.parse=function(a,b,d,e){void 0===d&&(d=!1);void 0===e&&(e=Tb);d=this._htmlParser.parse(a,b,d,e);if(!this._translations||""===this._translations)return d;var c=new lx(this._htmlParser,[],{});if((a=c.updateFromTemplate(a,b,e))&&a.length)return new Ge(d.rootNodes,d.errors.concat(a));
  a=this._createSerializer(e);b=vx.load(this._translations,b,c,a);d=d.rootNodes;return(new hk([],{})).merge(d,b,e)};b.prototype._createSerializer=function(a){switch((this._translationsFormat||"xlf").toLowerCase()){case "xmb":return new sx;case "xtb":return new ux(this._htmlParser,a);default:return new qx(this._htmlParser,a)}};return b}(),Qk=function(b){return w(b)||b===Ud.Default},Zb=St,pa=Tt,wx=function(b,a){var c=Kl.get(b);if(c)throw Error("Duplicate module registered for "+b+" - "+c.moduleType.name+
  " vs "+a.moduleType.name);Kl.set(b,a)},Na=Vt,xx=function(b,a,c){if(b){if(!Gg(a,c))throw new Al(a,c);return!1}return!B(a,c)},yx=function(b,a,c,d,e,f,g,h,m,r,u,v,k,l,n,p,q,t,w,x){switch(b){case 1:return a+P(c)+d;case 2:return a+P(c)+d+P(e)+f;case 3:return a+P(c)+d+P(e)+f+P(g)+h;case 4:return a+P(c)+d+P(e)+f+P(g)+h+P(m)+r;case 5:return a+P(c)+d+P(e)+f+P(g)+h+P(m)+r+P(u)+v;case 6:return a+P(c)+d+P(e)+f+P(g)+h+P(m)+r+P(u)+v+P(k)+l;case 7:return a+P(c)+d+P(e)+f+P(g)+h+P(m)+r+P(u)+v+P(k)+l+P(n)+p;case 8:return a+
  P(c)+d+P(e)+f+P(g)+h+P(m)+r+P(u)+v+P(k)+l+P(n)+p+P(q)+t;case 9:return a+P(c)+d+P(e)+f+P(g)+h+P(m)+r+P(u)+v+P(k)+l+P(n)+p+P(q)+t+P(w)+x;default:throw Error("Does not support more than 9 expressions");}},zx=[],Ax={},Bx=function(b){var a,c=$a;return function(d){B(c,d)||(c=d,a=b(d));return a}},Cx=function(b){var a,c=$a,d=$a;return function(e,f){B(c,e)&&B(d,f)||(c=e,d=f,a=b(e,f));return a}},Dx=function(b){var a,c=$a,d=$a,e=$a;return function(f,g,h){B(c,f)&&B(d,g)&&B(e,h)||(c=f,d=g,e=h,a=b(f,g,h));return a}},
  Ex=function(b){var a,c,d,e,f;c=d=e=f=$a;return function(g,h,m,r){B(c,g)&&B(d,h)&&B(e,m)&&B(f,r)||(c=g,d=h,e=m,f=r,a=b(g,h,m,r));return a}},Fx=function(b){var a,c,d,e,f,g;c=d=e=f=g=$a;return function(h,m,r,u,v){B(c,h)&&B(d,m)&&B(e,r)&&B(f,u)&&B(g,v)||(c=h,d=m,e=r,f=u,g=v,a=b(h,m,r,u,v));return a}},Gx=function(b){var a,c,d,e,f,g,h;c=d=e=f=g=h=$a;return function(m,r,u,v,k,l){B(c,m)&&B(d,r)&&B(e,u)&&B(f,v)&&B(g,k)&&B(h,l)||(c=m,d=r,e=u,f=v,g=k,h=l,a=b(m,r,u,v,k,l));return a}},Hx=function(b){var a,c,d,
  e,f,g,h,m;c=d=e=f=g=h=m=$a;return function(r,u,v,k,l,n,p){B(c,r)&&B(d,u)&&B(e,v)&&B(f,k)&&B(g,l)&&B(h,n)&&B(m,p)||(c=r,d=u,e=v,f=k,g=l,h=n,m=p,a=b(r,u,v,k,l,n,p));return a}},Ix=function(b){var a,c,d,e,f,g,h,m,r;c=d=e=f=g=h=m=r=$a;return function(u,v,k,l,n,p,q,t){B(c,u)&&B(d,v)&&B(e,k)&&B(f,l)&&B(g,n)&&B(h,p)&&B(m,q)&&B(r,t)||(c=u,d=v,e=k,f=l,g=n,h=p,m=q,r=t,a=b(u,v,k,l,n,p,q,t));return a}},Jx=function(b){var a,c,d,e,f,g,h,m,r,u;c=d=e=f=g=h=m=r=u=$a;return function(v,k,l,n,p,q,t,w,x){B(c,v)&&B(d,k)&&
  B(e,l)&&B(f,n)&&B(g,p)&&B(h,q)&&B(m,t)&&B(r,w)&&B(u,x)||(c=v,d=k,e=l,f=n,g=p,h=q,m=t,r=w,u=x,a=b(v,k,l,n,p,q,t,w,x));return a}},Kx=function(b){var a,c,d,e,f,g,h,m,r,u,v;c=d=e=f=g=h=m=r=u=v=$a;return function(k,l,n,p,q,t,w,x,y,A){B(c,k)&&B(d,l)&&B(e,n)&&B(f,p)&&B(g,q)&&B(h,t)&&B(m,w)&&B(r,x)&&B(u,y)&&B(v,A)||(c=k,d=l,e=n,f=p,g=q,h=t,m=w,r=x,u=y,v=A,a=b(k,l,n,p,q,t,w,x,y,A));return a}},Lx=function(b,a){return b},nc=Wt,Mx=function(b,a,c){void 0===c&&(c=null);var d={};db.forEach(a,function(a,b){d[b]=
  "*"==a?c:a.toString()});db.forEach(b,function(a,b){l(d[b])||(d[b]=c)});return d},Nx=function(b,a,c){var d=c.length-1,e=c[0],f=mj(e.styles.styles),g={},h=!1;db.forEach(b,function(a,b){f[b]||(f[b]=a,g[b]=a,h=!0)});b=db.merge({},f);d=c[d];ma.insert(d.styles.styles,0,a);var m=mj(d.styles.styles),r={},u=!1;db.forEach(b,function(a,b){l(m[b])||(r[b]="*",u=!0)});u&&d.styles.styles.push(r);db.forEach(m,function(a,b){l(f[b])||(g[b]="*",h=!0)});h&&e.styles.styles.push(g);return c},Ox=function(b){var a={};db.keys(b).forEach(function(b){a[b]=
  null});return a},Px=function(b,a){return a.map(function(a){var c={};db.forEach(a,function(a,d){"true"==a&&(a=b[d],l(a)||(a="*"));b[d]=a;c[d]=a});return c})},Qx=function(b,a,c){db.forEach(c,function(c,e){a.setElementStyle(b,e,c)})},vn=fa("core","linker/view"),bb=fa("core","linker/view_utils"),de=fa("core","change_detection/change_detection"),He=fa("core","animation/animation_style_util"),C=function(){function b(){}b.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:fa("core",
  "metadata/di"),runtime:gs};b.ViewUtils={name:"ViewUtils",moduleUrl:fa("core","linker/view_utils"),runtime:Ih};b.AppView={name:"AppView",moduleUrl:vn,runtime:Ql};b.DebugAppView={name:"DebugAppView",moduleUrl:vn,runtime:Rt};b.AppElement={name:"AppElement",moduleUrl:fa("core","linker/element"),runtime:Ut};b.ElementRef={name:"ElementRef",moduleUrl:fa("core","linker/element_ref"),runtime:xb};b.ViewContainerRef={name:"ViewContainerRef",moduleUrl:fa("core","linker/view_container_ref"),runtime:id};b.ChangeDetectorRef=
  {name:"ChangeDetectorRef",moduleUrl:fa("core","change_detection/change_detector_ref"),runtime:Fh};b.RenderComponentType={name:"RenderComponentType",moduleUrl:fa("core","render/api"),runtime:xl};b.QueryList={name:"QueryList",moduleUrl:fa("core","linker/query_list"),runtime:ot};b.TemplateRef={name:"TemplateRef",moduleUrl:fa("core","linker/template_ref"),runtime:kd};b.TemplateRef_={name:"TemplateRef_",moduleUrl:fa("core","linker/template_ref"),runtime:qt};b.CodegenComponentFactoryResolver={name:"CodegenComponentFactoryResolver",
  moduleUrl:fa("core","linker/component_factory_resolver"),runtime:Dl};b.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:fa("core","linker/component_factory_resolver"),runtime:xe};b.ComponentFactory={name:"ComponentFactory",runtime:Jh,moduleUrl:fa("core","linker/component_factory")};b.NgModuleFactory={name:"NgModuleFactory",runtime:mt,moduleUrl:fa("core","linker/ng_module_factory")};b.NgModuleInjector={name:"NgModuleInjector",runtime:nt,moduleUrl:fa("core","linker/ng_module_factory")};
  b.RegisterModuleFactoryFn={name:"registerModuleFactory",runtime:wx,moduleUrl:fa("core","linker/ng_module_factory_loader")};b.ValueUnwrapper={name:"ValueUnwrapper",moduleUrl:de,runtime:Ws};b.Injector={name:"Injector",moduleUrl:fa("core","di/injector"),runtime:bc};b.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:fa("core","metadata/view"),runtime:Ua};b.ViewType={name:"ViewType",moduleUrl:fa("core","linker/view_type"),runtime:Na};b.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:de,
  runtime:Ud};b.StaticNodeDebugInfo={name:"StaticNodeDebugInfo",moduleUrl:fa("core","linker/debug_context"),runtime:Jt};b.DebugContext={name:"DebugContext",moduleUrl:fa("core","linker/debug_context"),runtime:Pl};b.Renderer={name:"Renderer",moduleUrl:fa("core","render/api"),runtime:Rb};b.SimpleChange={name:"SimpleChange",moduleUrl:de,runtime:Xs};b.UNINITIALIZED={name:"UNINITIALIZED",moduleUrl:de,runtime:$a};b.ChangeDetectorStatus={name:"ChangeDetectorStatus",moduleUrl:de,runtime:Zb};b.checkBinding={name:"checkBinding",
  moduleUrl:bb,runtime:xx};b.flattenNestedViewRenderNodes={name:"flattenNestedViewRenderNodes",moduleUrl:bb,runtime:ij};b.devModeEqual={name:"devModeEqual",moduleUrl:de,runtime:Gg};b.interpolate={name:"interpolate",moduleUrl:bb,runtime:yx};b.castByValue={name:"castByValue",moduleUrl:bb,runtime:Lx};b.EMPTY_ARRAY={name:"EMPTY_ARRAY",moduleUrl:bb,runtime:zx};b.EMPTY_MAP={name:"EMPTY_MAP",moduleUrl:bb,runtime:Ax};b.pureProxies=[null,{name:"pureProxy1",moduleUrl:bb,runtime:Bx},{name:"pureProxy2",moduleUrl:bb,
  runtime:Cx},{name:"pureProxy3",moduleUrl:bb,runtime:Dx},{name:"pureProxy4",moduleUrl:bb,runtime:Ex},{name:"pureProxy5",moduleUrl:bb,runtime:Fx},{name:"pureProxy6",moduleUrl:bb,runtime:Gx},{name:"pureProxy7",moduleUrl:bb,runtime:Hx},{name:"pureProxy8",moduleUrl:bb,runtime:Ix},{name:"pureProxy9",moduleUrl:bb,runtime:Jx},{name:"pureProxy10",moduleUrl:bb,runtime:Kx}];b.SecurityContext={name:"SecurityContext",moduleUrl:fa("core","security"),runtime:wa};b.AnimationKeyframe={name:"AnimationKeyframe",moduleUrl:fa("core",
  "animation/animation_keyframe"),runtime:yt};b.AnimationStyles={name:"AnimationStyles",moduleUrl:fa("core","animation/animation_styles"),runtime:Gt};b.NoOpAnimationPlayer={name:"NoOpAnimationPlayer",moduleUrl:fa("core","animation/animation_player"),runtime:Pf};b.AnimationGroupPlayer={name:"AnimationGroupPlayer",moduleUrl:fa("core","animation/animation_group_player"),runtime:Oh};b.AnimationSequencePlayer={name:"AnimationSequencePlayer",moduleUrl:fa("core","animation/animation_sequence_player"),runtime:zt};
  b.prepareFinalAnimationStyles={name:"prepareFinalAnimationStyles",moduleUrl:He,runtime:Mx};b.balanceAnimationKeyframes={name:"balanceAnimationKeyframes",moduleUrl:He,runtime:Nx};b.clearStyles={name:"clearStyles",moduleUrl:He,runtime:Ox};b.renderStyles={name:"renderStyles",moduleUrl:He,runtime:Qx};b.collectAndResolveStyles={name:"collectAndResolveStyles",moduleUrl:He,runtime:Px};b.LOCALE_ID={name:"LOCALE_ID",moduleUrl:fa("core","i18n/tokens"),runtime:ld};b.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",
  moduleUrl:fa("core","i18n/tokens"),runtime:Ml};b.AnimationOutput={name:"AnimationOutput",moduleUrl:fa("core","animation/animation_output"),runtime:Nl};return b}(),Rx=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ui=function(b){function a(){b.call(this,Zg)}Rx(a,b);a.prototype.parse=function(a,d,e,f){void 0===e&&(e=!1);void 0===f&&(f=Tb);return b.prototype.parse.call(this,a,d,e,f)};
  a.decorators=[{type:V}];a.ctorParameters=[];return a}(qn),Sx=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},mk="zero one two few many other".split(" "),xq=function(){return function(b,a,c){this.nodes=b;this.expanded=a;this.errors=c}}(),zq=function(b){function a(a,d){b.call(this,a,d)}Sx(a,b);return a}(qd),wq=function(){function b(){this.isExpanded=!1;this.errors=[]}b.prototype.visitElement=
  function(a,b){return new oc(a.name,a.attrs,ya(this,a.children),a.sourceSpan,a.startSourceSpan,a.endSourceSpan)};b.prototype.visitAttribute=function(a,b){return a};b.prototype.visitText=function(a,b){return a};b.prototype.visitComment=function(a,b){return a};b.prototype.visitExpansion=function(a,b){this.isExpanded=!0;return"plural"==a.type?yq(a,this.errors):Aq(a,this.errors)};b.prototype.visitExpansionCase=function(a,b){throw Error("Should not be reached");};return b}(),Tx=function(b,a){function c(){this.constructor=
  b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Id=function(b){function a(a,d){b.call(this,d,a)}Tx(a,b);return a}(qd),Ux=function(){return function(b,a){var c=this;this.component=b;this.sourceSpan=a;this.errors=[];this.viewQueries=Cq(b);this.viewProviders=new Map;oe(b.viewProviders,a,this.errors).forEach(function(a){z(c.viewProviders.get(a.token.reference))&&c.viewProviders.set(a.token.reference,!0)})}}(),wn=function(){function b(a,
  b,d,e,f,g,h){var c=this;this._viewContext=a;this._parent=b;this._isViewRoot=d;this._directiveAsts=e;this._sourceSpan=h;this._transformedProviders=new Map;this._seenProviders=new Map;this._hasViewContainer=!1;this._attrs={};f.forEach(function(a){return c._attrs[a.name]=a.value});b=e.map(function(a){return a.directive});this._allProviders=Bq(b,h,a.errors);this._contentQueries=Dq(b);var r=new Map;Ya.values(this._allProviders).forEach(function(a){c._addQueryReadsTo(a.token,r)});g.forEach(function(a){c._addQueryReadsTo(new Hc({value:a.name}),
  r)});p(r.get(za(C.ViewContainerRef).reference))&&(this._hasViewContainer=!0);Ya.values(this._allProviders).forEach(function(a){(a.eager||p(r.get(a.token.reference)))&&c._getOrCreateLocalProvider(a.providerType,a.token,!0)})}b.prototype.afterElement=function(){var a=this;Ya.values(this._allProviders).forEach(function(b){a._getOrCreateLocalProvider(b.providerType,b.token,!1)})};Object.defineProperty(b.prototype,"transformProviders",{get:function(){return Ya.values(this._transformedProviders)},enumerable:!0,
  configurable:!0});Object.defineProperty(b.prototype,"transformedDirectiveAsts",{get:function(){var a=this.transformProviders.map(function(a){return a.token.identifier}),b=ja.clone(this._directiveAsts);ja.sort(b,function(b,c){return a.indexOf(b.directive.type)-a.indexOf(c.directive.type)});return b},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0});b.prototype._addQueryReadsTo=
  function(a,b){this._getQueriesFor(a).forEach(function(c){c=p(c.read)?c.read:a;z(b.get(c.reference))&&b.set(c.reference,!0)})};b.prototype._getQueriesFor=function(a){for(var b=[],d=this,e=0,f;null!==d;)f=d._contentQueries.get(a.reference),p(f)&&ja.addAll(b,f.filter(function(a){return a.descendants||1>=e})),0<d._directiveAsts.length&&e++,d=d._parent;f=this._viewContext.viewQueries.get(a.reference);p(f)&&ja.addAll(b,f);return b};b.prototype._getOrCreateLocalProvider=function(a,b,d){var c=this,f=this._allProviders.get(b.reference);
  if(z(f)||(a===sa.Directive||a===sa.PublicService)&&f.providerType===sa.PrivateService||(a===sa.PrivateService||a===sa.PublicService)&&f.providerType===sa.Builtin)return null;a=this._transformedProviders.get(b.reference);if(p(a))return a;if(p(this._seenProviders.get(b.reference)))return this._viewContext.errors.push(new Id("Cannot instantiate cyclic dependency! "+b.name,this._sourceSpan)),null;this._seenProviders.set(b.reference,!0);a=f.providers.map(function(a){var b=a.useValue,g=a.useExisting,e;
  if(p(a.useExisting)){var u=c._getDependency(f.providerType,new hc({token:a.useExisting}),d);p(u.token)?g=u.token:(g=null,b=u.value)}else p(a.useFactory)?(e=p(a.deps)?a.deps:a.useFactory.diDeps,e=e.map(function(a){return c._getDependency(f.providerType,a,d)})):p(a.useClass)&&(e=p(a.deps)?a.deps:a.useClass.diDeps,e=e.map(function(a){return c._getDependency(f.providerType,a,d)}));return nk(a,{useExisting:g,useValue:b,deps:e})});a=ok(f,{eager:d,providers:a});this._transformedProviders.set(b.reference,
  a);return a};b.prototype._getLocalDependency=function(a,b,d){void 0===d&&(d=null);if(b.isAttribute)return new hc({isValue:!0,value:Pj(this._attrs[b.token.value])});if(p(b.query)||p(b.viewQuery))return b;if(p(b.token)){if(a===sa.Directive||a===sa.Component){if(b.token.reference===za(C.Renderer).reference||b.token.reference===za(C.ElementRef).reference||b.token.reference===za(C.ChangeDetectorRef).reference||b.token.reference===za(C.TemplateRef).reference)return b;b.token.reference===za(C.ViewContainerRef).reference&&
  (this._hasViewContainer=!0)}if(b.token.reference===za(C.Injector).reference||p(this._getOrCreateLocalProvider(a,b.token,d)))return b}return null};b.prototype._getDependency=function(a,b,d){void 0===d&&(d=null);var c=this,f=d,g=null;b.isSkipSelf||(g=this._getLocalDependency(a,b,d));if(b.isSelf)z(g)&&b.isOptional&&(g=new hc({isValue:!0,value:null}));else{for(;z(g)&&p(c._parent);)a=c,c=c._parent,a._isViewRoot&&(f=!1),g=c._getLocalDependency(sa.PublicService,b,f);z(g)&&(g=!b.isHost||this._viewContext.component.type.isHost||
  this._viewContext.component.type.reference===b.token.reference||p(this._viewContext.viewProviders.get(b.token.reference))?b:b.isOptional?g=new hc({isValue:!0,value:null}):null)}z(g)&&this._viewContext.errors.push(new Id("No provider for "+b.token.name,this._sourceSpan));return g};return b}(),Vx=function(){function b(a,b,d){var c=this;this._transformedProviders=new Map;this._seenProviders=new Map;this._errors=[];this._allProviders=new Map;a.transitiveModule.modules.map(function(a){return a.type}).forEach(function(a){a=
  new Ic({token:new Hc({identifier:a}),useClass:a});pe([a],sa.PublicService,!0,d,c._errors,c._allProviders)});pe(oe(a.transitiveModule.providers.concat(b),d,this._errors),sa.PublicService,!1,d,this._errors,this._allProviders)}b.prototype.parse=function(){var a=this;Ya.values(this._allProviders).forEach(function(b){a._getOrCreateLocalProvider(b.token,b.eager)});if(0<this._errors.length){var b=this._errors.join("\n");throw Error("Provider parse errors:\n"+b);}return Ya.values(this._transformedProviders)};
  b.prototype._getOrCreateLocalProvider=function(a,b){var c=this,e=this._allProviders.get(a.reference);if(z(e))return null;var f=this._transformedProviders.get(a.reference);if(p(f))return f;if(p(this._seenProviders.get(a.reference)))return this._errors.push(new Id("Cannot instantiate cyclic dependency! "+a.name,e.sourceSpan)),null;this._seenProviders.set(a.reference,!0);f=e.providers.map(function(a){var d=a.useValue,g=a.useExisting,f;if(p(a.useExisting)){var u=c._getDependency(new hc({token:a.useExisting}),
  b,e.sourceSpan);p(u.token)?g=u.token:(g=null,d=u.value)}else p(a.useFactory)?(f=p(a.deps)?a.deps:a.useFactory.diDeps,f=f.map(function(a){return c._getDependency(a,b,e.sourceSpan)})):p(a.useClass)&&(f=p(a.deps)?a.deps:a.useClass.diDeps,f=f.map(function(a){return c._getDependency(a,b,e.sourceSpan)}));return nk(a,{useExisting:g,useValue:d,deps:f})});f=ok(e,{eager:b,providers:f});this._transformedProviders.set(a.reference,f);return f};b.prototype._getDependency=function(a,b,d){void 0===b&&(b=null);var c=
  !1;!a.isSkipSelf&&p(a.token)&&(a.token.reference===za(C.Injector).reference||a.token.reference===za(C.ComponentFactoryResolver).reference?c=!0:p(this._getOrCreateLocalProvider(a.token,b))&&(c=!0));b=a;a.isSelf&&!c&&(a.isOptional?b=new hc({isValue:!0,value:null}):this._errors.push(new Id("No provider for "+a.token.name,d)));return b};return b}(),hg=function(){return function(){}}(),Hq=function(){return function(b,a){this.style=b;this.styleUrls=a}}(),Gq=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,
  Eq=/^([^:/?#]+):/,Ta;(function(b){b[b.NG_CONTENT=0]="NG_CONTENT";b[b.STYLE=1]="STYLE";b[b.STYLESHEET=2]="STYLESHEET";b[b.SCRIPT=3]="SCRIPT";b[b.OTHER=4]="OTHER"})(Ta||(Ta={}));var Iq=function(){return function(b,a,c,d,e){this.type=b;this.selectAttr=a;this.hrefAttr=c;this.nonBindable=d;this.projectAs=e}}(),xn=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Wx=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,
  yn=Jd.parse("*")[0],Xx=new La("TemplateTransforms"),zn=function(b){function a(a,d,e){b.call(this,d,a,e)}xn(a,b);return a}(qd),An=function(){return function(b,a){this.templateAst=b;this.errors=a}}(),Cn=function(){function b(a,b,d,e,f){this._exprParser=a;this._schemaRegistry=b;this._htmlParser=d;this._console=e;this.transforms=f}b.prototype.parse=function(a,b,d,e,f,g){a=this.tryParse(a,b,d,e,f,g);b=a.errors.filter(function(a){return a.level===jc.WARNING});d=a.errors.filter(function(a){return a.level===
  jc.FATAL});0<b.length&&this._console.warn("Template parse warnings:\n"+b.join("\n"));if(0<d.length)throw a=d.join("\n"),Error("Template parse errors:\n"+a);return a.templateAst};b.prototype.tryParse=function(a,b,d,e,f,g){var c;a.template&&(c=li.fromArray(a.template.interpolation));g=this._htmlParser.parse(b,g,!0,c);b=g.errors;var m;0==b.length&&(g=eh(g.rootNodes),b.push.apply(b,g.errors),g=new Ge(g.nodes,b));0<g.rootNodes.length?(d=Yj(d),e=Yj(e),a=new Ux(a,g.rootNodes[0].sourceSpan),f=new Yx(a,d,
  e,f,this._exprParser,this._schemaRegistry),m=ya(f,g.rootNodes,Bn),b.push.apply(b,f.errors.concat(a.errors))):m=[];this._assertNoReferenceDuplicationOnTemplate(m,b);if(0<b.length)return new An(m,b);p(this.transforms)&&this.transforms.forEach(function(a){m=Fc(a,m)});return new An(m,b)};b.prototype._assertNoReferenceDuplicationOnTemplate=function(a,b){var c=[];a.filter(function(a){return!!a.references}).forEach(function(a){return a.references.forEach(function(a){var d=a.name;0>c.indexOf(d)?c.push(d):
  (a=new zn('Reference "#'+d+'" is defined several times',a.sourceSpan,jc.FATAL),b.push(a))})})};b.decorators=[{type:V}];b.ctorParameters=[{type:ni},{type:hg},{type:ti},{type:Hf},{type:Array,decorators:[{type:W},{type:U,args:[Xx]}]}];return b}(),Yx=function(){function b(a,b,d,e,f,g){var c=this;this.providerViewContext=a;this._schemas=e;this._exprParser=f;this._schemaRegistry=g;this.selectorMatcher=new bg;this.errors=[];this.directivesIndex=new Map;this.ngContentCount=0;this.pipesByName=new Map;(a=a.component.template)&&
  a.interpolation&&(this._interpolationConfig={start:a.interpolation[0],end:a.interpolation[1]});b.forEach(function(a,b){var d=Jd.parse(a.selector);c.selectorMatcher.addSelectables(d,a);c.directivesIndex.set(a,b)});d.forEach(function(a){return c.pipesByName.set(a.name,a)})}b.prototype._reportError=function(a,b,d){void 0===d&&(d=jc.FATAL);this.errors.push(new zn(a,b,d))};b.prototype._reportParserErrors=function(a,b){for(var c=0;c<a.length;c++)this._reportError(a[c].message,b)};b.prototype._parseInterpolation=
  function(a,b){var c=b.start.toString();try{var e=this._exprParser.parseInterpolation(a,c,this._interpolationConfig);e&&this._reportParserErrors(e.errors,b);this._checkPipes(e,b);if(p(e)&&9<e.ast.expressions.length)throw Error("Only support at most 9 interpolation values!");return e}catch(f){return this._reportError(""+f,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}};b.prototype._parseAction=function(a,b){var c=b.start.toString();try{var e=this._exprParser.parseAction(a,c,this._interpolationConfig);
  e&&this._reportParserErrors(e.errors,b);if(!e||e.ast instanceof be)return this._reportError("Empty expressions are not allowed",b),this._exprParser.wrapLiteralPrimitive("ERROR",c);this._checkPipes(e,b);return e}catch(f){return this._reportError(""+f,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}};b.prototype._parseBinding=function(a,b){var c=b.start.toString();try{var e=this._exprParser.parseBinding(a,c,this._interpolationConfig);e&&this._reportParserErrors(e.errors,b);this._checkPipes(e,b);
  return e}catch(f){return this._reportError(""+f,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}};b.prototype._parseTemplateBindings=function(a,b){var c=this,e=b.start.toString();try{var f=this._exprParser.parseTemplateBindings(a,e);this._reportParserErrors(f.errors,b);f.templateBindings.forEach(function(a){p(a.expression)&&c._checkPipes(a.expression,b)});f.warnings.forEach(function(a){c._reportError(a,b,jc.WARNING)});return f.templateBindings}catch(g){return this._reportError(""+g,b),[]}};b.prototype._checkPipes=
  function(a,b){var c=this;if(p(a)){var e=new Zx;a.visit(e);e.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}};b.prototype.visitExpansion=function(a,b){return null};b.prototype.visitExpansionCase=function(a,b){return null};b.prototype.visitText=function(a,b){b=b.findNgContentIndex(yn);var c=this._parseInterpolation(a.value,a.sourceSpan);return p(c)?new cw(c,b,a.sourceSpan):new Pm(a.value,b,a.sourceSpan)};b.prototype.visitAttribute=function(a,
  b){return new Qm(a.name,a.value,a.sourceSpan)};b.prototype.visitComment=function(a,b){return null};b.prototype.visitElement=function(a,b){var c=this,e=a.name,f=gh(a);if(f.type===Ta.SCRIPT||f.type===Ta.STYLE||f.type===Ta.STYLESHEET&&fh(f.hrefAttr))return null;var g=[],h=[],m=[],r=[],u=[],v=[],k=[],l=[],n=[],q=!1,t=[],w="template"==Bd(e.toLowerCase())[1];a.attrs.forEach(function(a){var b=c._parseAttr(w,a,g,h,u,v,m,r),d=c._parseInlineTemplateBinding(a,l,k,n);d&&q&&c._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",
  a.sourceSpan);b||d||(t.push(c.visitAttribute(a,null)),g.push([a.name,a.value]));d&&(q=!0)});var x=hh(e,g),y=this._parseDirectives(this.selectorMatcher,x),A=y.matchElement,z=[],B=this._createDirectiveAsts(w,a.name,y.directives,h,m,a.sourceSpan,z),y=this._createElementPropertyAsts(a.name,h,B).concat(u),C=new wn(this.providerViewContext,b.providerContext,b.isTemplateElement||q,B,t,z,a.sourceSpan),D=ya(f.nonBindable?$x:this,a.children,Dn.create(w,B,w?b.providerContext:C));C.afterElement();var E=p(f.projectAs)?
  Jd.parse(f.projectAs)[0]:x,x=b.findNgContentIndex(E);f.type===Ta.NG_CONTENT?(p(a.children)&&0<a.children.length&&this._reportError("\x3cng-content\x3e element cannot have content. \x3cng-content\x3e must be immediately followed by \x3c/ng-content\x3e",a.sourceSpan),e=new gw(this.ngContentCount++,q?null:x,a.sourceSpan)):w?(this._assertAllEventsPublishedByDirectives(B,v),this._assertNoComponentsNorElementBindingsOnTemplate(B,y,a.sourceSpan),e=new Vm(t,v,z,r,C.transformedDirectiveAsts,C.transformProviders,
  C.transformedHasViewContainer,D,q?null:x,a.sourceSpan)):(this._assertElementExists(A,a),this._assertOnlyOneComponent(B,a.sourceSpan),f=q?null:b.findNgContentIndex(E),e=new Um(e,t,y,v,z,C.transformedDirectiveAsts,C.transformProviders,C.transformedHasViewContainer,D,q?null:f,a.sourceSpan));q&&(z=hh("template",l),z=this._parseDirectives(this.selectorMatcher,z).directives,z=this._createDirectiveAsts(!0,a.name,z,k,[],a.sourceSpan,[]),f=this._createElementPropertyAsts(a.name,k,z),this._assertNoComponentsNorElementBindingsOnTemplate(z,
  f,a.sourceSpan),b=new wn(this.providerViewContext,b.providerContext,b.isTemplateElement,z,[],[],a.sourceSpan),b.afterElement(),e=new Vm([],[],[],n,b.transformedDirectiveAsts,b.transformProviders,b.transformedHasViewContainer,[e],x,a.sourceSpan));return e};b.prototype._parseInlineTemplateBinding=function(a,b,d,e){var c=null;"template"==this._normalizeAttributeName(a.name)?c=a.value:a.name.startsWith("*")&&(c=a.name.substring(1),c=0==a.value.length?c:c+" "+a.value);if(p(c)){for(var c=this._parseTemplateBindings(c,
  a.sourceSpan),g=0;g<c.length;g++){var h=c[g];h.keyIsVar?e.push(new Tm(h.key,h.name,a.sourceSpan)):p(h.expression)?this._parsePropertyAst(h.key,h.expression,a.sourceSpan,b,d):(b.push([h.key,""]),this._parseLiteralAttr(h.key,null,a.sourceSpan,d))}return!0}return!1};b.prototype._parseAttr=function(a,b,d,e,f,g,h,m){var c=this._normalizeAttributeName(b.name),u=b.value;b=b.sourceSpan;var v=c.match(Wx),k;null!==v?(k=!0,p(v[1])?this._parsePropertyOrAnimation(v[7],u,b,d,e,f):v[2]?a?(a=v[7],this._parseVariable(a,
  u,b,m)):this._reportError('"let-" is only supported on template elements.',b):v[3]?(a=v[7],this._parseReference(a,u,b,h)):v[4]?this._parseEvent(v[7],u,b,d,g):v[5]?(this._parsePropertyOrAnimation(v[7],u,b,d,e,f),this._parseAssignmentEvent(v[7],u,b,d,g)):v[6]?("@"==c[0]&&p(u)&&0<u.length&&this._reportError('Assigning animation triggers via @prop\x3d"exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]\x3d"exp") or use an attribute without a value (e.g. @prop) instead.',
  b,jc.FATAL),this._parseAnimation(v[7],u,b,d,f)):v[8]?(this._parsePropertyOrAnimation(v[8],u,b,d,e,f),this._parseAssignmentEvent(v[8],u,b,d,g)):v[9]?this._parsePropertyOrAnimation(v[9],u,b,d,e,f):v[10]&&this._parseEvent(v[10],u,b,d,g)):k=this._parsePropertyInterpolation(c,u,b,d,e);k||this._parseLiteralAttr(c,u,b,e);return k};b.prototype._normalizeAttributeName=function(a){return/^data-/i.test(a)?a.substring(5):a};b.prototype._parseVariable=function(a,b,d,e){-1<a.indexOf("-")&&this._reportError('"-" is not allowed in variable names',
  d);e.push(new Tm(a,b,d))};b.prototype._parseReference=function(a,b,d,e){-1<a.indexOf("-")&&this._reportError('"-" is not allowed in reference names',d);e.push(new ay(a,b,d))};b.prototype._parsePropertyOrAnimation=function(a,b,d,e,f,g){var c="@"==a[0],m=1;"animate-"==a.substring(0,8)&&(c=!0,m=8);c?this._parseAnimation(a.substr(m),b,d,e,g):this._parsePropertyAst(a,this._parseBinding(b,d),d,e,f)};b.prototype._parseAnimation=function(a,b,d,e,f){p(b)&&0!=b.length||(b="null");b=this._parseBinding(b,d);
  e.push([a,b.source]);f.push(new Rm(a,lb.Animation,wa.NONE,b,null,d))};b.prototype._parsePropertyInterpolation=function(a,b,d,e,f){b=this._parseInterpolation(b,d);return p(b)?(this._parsePropertyAst(a,b,d,e,f),!0):!1};b.prototype._parsePropertyAst=function(a,b,d,e,f){e.push([a,b.source]);f.push(new En(a,b,!1,d))};b.prototype._parseAssignmentEvent=function(a,b,d,e,f){this._parseEvent(a+"Change",b+"\x3d$event",d,e,f)};b.prototype._parseEvent=function(a,b,d,e,f){var c=mf(a,[null,a]),h=c[0],c=c[1];b=this._parseAction(b,
  d);e.push([a,b.source]);f.push(new dw(c,h,b,d))};b.prototype._parseLiteralAttr=function(a,b,d,e){e.push(new En(a,this._exprParser.wrapLiteralPrimitive(b,""),!0,d))};b.prototype._parseDirectives=function(a,b){var c=this,e=Array(this.directivesIndex.size),f=!1;a.match(b,function(a,b){e[c.directivesIndex.get(b)]=b;f=f||a.hasElementSelector()});return{directives:e.filter(function(a){return!!a}),matchElement:f}};b.prototype._createDirectiveAsts=function(a,b,d,e,f,g,h){var c=this,r=new Set,u=null;d=d.map(function(a){var d=
  new tc(g.start,g.end,"Directive "+a.type.name);a.isComponent&&(u=a);var m=[],v=[],k=[];c._createDirectiveHostPropertyAsts(b,a.hostProperties,d,m);c._createDirectiveHostEventAsts(a.hostListeners,d,v);c._createDirectivePropertyAsts(a.inputs,e,k);f.forEach(function(b){if(0===b.value.length&&a.isComponent||a.exportAs==b.value)h.push(new Sm(b.name,Hd(a.type),b.sourceSpan)),r.add(b.name)});return new fw(a,k,m,v,d)});f.forEach(function(b){if(0<b.value.length)r.has(b.name)||c._reportError('There is no directive with "exportAs" set to "'+
  b.value+'"',b.sourceSpan);else if(!u){var d=null;a&&(d=za(C.TemplateRef));h.push(new Sm(b.name,d,b.sourceSpan))}});return d};b.prototype._createDirectiveHostPropertyAsts=function(a,b,d,e){var c=this;b&&na.forEach(b,function(b,f){Xb(b)?(b=c._parseBinding(b,d),e.push(c._createElementPropertyAst(a,f,b,d))):c._reportError('Value of the host property binding "'+f+'" needs to be a string representing an expression but got "'+b+'" ('+typeof b+")",d)})};b.prototype._createDirectiveHostEventAsts=function(a,
  b,d){var c=this;a&&na.forEach(a,function(a,g){Xb(a)?c._parseEvent(g,a,b,[],d):c._reportError('Value of the host listener "'+g+'" needs to be a string representing an expression but got "'+a+'" ('+typeof a+")",b)})};b.prototype._createDirectivePropertyAsts=function(a,b,d){if(a){var c=new Map;b.forEach(function(a){var b=c.get(a.name);(z(b)||b.isLiteral)&&c.set(a.name,a)});na.forEach(a,function(a,b){(a=c.get(a))&&d.push(new ew(b,a.name,a.expression,a.sourceSpan))})}};b.prototype._createElementPropertyAsts=
  function(a,b,d){var c=this,f=[],g=new Map;d.forEach(function(a){a.inputs.forEach(function(a){g.set(a.templateName,a)})});b.forEach(function(b){!b.isLiteral&&z(g.get(b.name))&&f.push(c._createElementPropertyAst(a,b.name,b.expression,b.sourceSpan))});return f};b.prototype._createElementPropertyAst=function(a,b,d,e){var c=null,g,h;g=b.split(".");if(1===g.length)if(h=g[0],"@"==h[0])h=h.substr(1),g=lb.Animation,b=wa.NONE;else{if(h=this._schemaRegistry.getMappedPropName(h),b=this._schemaRegistry.securityContext(a,
  h),g=lb.Property,this._assertNoEventBinding(h,e),!this._schemaRegistry.hasProperty(a,h,this._schemas)){var m="Can't bind to '"+h+"' since it isn't a known property of '"+a+"'.";-1<a.indexOf("-")&&(m+="\n1. If '"+a+"' is an Angular component and it has '"+h+"' input, then verify that it is part of this module."+("\n2. If '"+a+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schema' of this component to suppress this message.\n"));this._reportError(m,e)}}else"attr"==g[0]?
  (h=g[1],this._assertNoEventBinding(h,e),b=this._schemaRegistry.getMappedPropName(h),b=this._schemaRegistry.securityContext(a,b),g=h.indexOf(":"),-1<g&&(a=h.substring(0,g),h=h.substring(g+1),h=a?":"+a+":"+h:h),g=lb.Attribute):"class"==g[0]?(h=g[1],g=lb.Class,b=wa.NONE):"style"==g[0]?(c=2<g.length?g[2]:null,h=g[1],g=lb.Style,b=wa.STYLE):(this._reportError("Invalid property name '"+b+"'",e),b=g=null);return new Rm(h,g,b,d,c,e)};b.prototype._assertNoEventBinding=function(a,b){a.toLowerCase().startsWith("on")&&
  this._reportError("Binding to event attribute '"+a+"' is disallowed "+("for security reasons, please use ("+a.slice(2)+")\x3d..."),b,jc.FATAL)};b.prototype._findComponentDirectiveNames=function(a){var b=[];a.forEach(function(a){var c=a.directive.type.name;a.directive.isComponent&&b.push(c)});return b};b.prototype._assertOnlyOneComponent=function(a,b){a=this._findComponentDirectiveNames(a);1<a.length&&this._reportError("More than one component: "+a.join(","),b)};b.prototype._assertElementExists=function(a,
  b){var c=b.name.replace(/^:xhtml:/,"");a||this._schemaRegistry.hasElement(c,this._schemas)||this._reportError("'"+c+"' is not a known element:\n"+("1. If '"+c+"' is an Angular component, then verify that it is part of this module.\n")+("2. If '"+c+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schema' of this component to suppress this message."),b.sourceSpan)};b.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(a,b,d){var c=this;a=this._findComponentDirectiveNames(a);
  0<a.length&&this._reportError("Components on an embedded template: "+a.join(","),d);b.forEach(function(a){c._reportError("Property binding "+a.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "directives" section.',d)})};b.prototype._assertAllEventsPublishedByDirectives=function(a,b){var c=this,e=new Set;a.forEach(function(a){na.forEach(a.directive.outputs,function(a){e.add(a)})});b.forEach(function(a){!p(a.target)&&
  e.has(a.name)||c._reportError("Event binding "+a.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "directives" section.',a.sourceSpan)})};return b}(),by=function(){function b(){}b.prototype.visitElement=function(a,b){var c=gh(a);if(c.type===Ta.SCRIPT||c.type===Ta.STYLE||c.type===Ta.STYLESHEET)return null;c=a.attrs.map(function(a){return[a.name,a.value]});c=hh(a.name,c);b=b.findNgContentIndex(c);
  c=ya(this,a.children,Bn);return new Um(a.name,ya(this,a.attrs),[],[],[],[],[],!1,c,b,a.sourceSpan)};b.prototype.visitComment=function(a,b){return null};b.prototype.visitAttribute=function(a,b){return new Qm(a.name,a.value,a.sourceSpan)};b.prototype.visitText=function(a,b){b=b.findNgContentIndex(yn);return new Pm(a.value,b,a.sourceSpan)};b.prototype.visitExpansion=function(a,b){return a};b.prototype.visitExpansionCase=function(a,b){return a};return b}(),En=function(){return function(b,a,c,d){this.name=
  b;this.expression=a;this.isLiteral=c;this.sourceSpan=d}}(),ay=function(){return function(b,a,c){this.name=b;this.value=a;this.sourceSpan=c}}(),Dn=function(){function b(a,b,d,e){this.isTemplateElement=a;this._ngContentIndexMatcher=b;this._wildcardNgContentIndex=d;this.providerContext=e}b.create=function(a,c,d){var e=new bg,f=null;if(c=c.find(function(a){return a.directive.isComponent})){c=c.directive.template.ngContentSelectors;for(var g=0;g<c.length;g++)"*"===c[g]?f=g:e.addSelectables(Jd.parse(c[g]),
  g)}return new b(a,e,f,d)};b.prototype.findNgContentIndex=function(a){var b=[];this._ngContentIndexMatcher.match(a,function(a,c){b.push(c)});b.sort();p(this._wildcardNgContentIndex)&&b.push(this._wildcardNgContentIndex);return 0<b.length?b[0]:null};return b}(),Bn=new Dn(!0,new bg,null,null),$x=new by,Zx=function(b){function a(){b.apply(this,arguments);this.pipes=new Set}xn(a,b);a.prototype.visitPipe=function(a,b){this.pipes.add(a.name);a.exp.visit(this);this.visitAll(a.args,b);return null};return a}(Qw),
  rd=function(){function b(a){a=void 0===a?{}:a;var b=a.renderTypes,b=void 0===b?new cy:b,d=a.defaultEncapsulation,d=void 0===d?Ua.Emulated:d,e=a.genDebugInfo,f=a.logBindingUpdate;a=a.useJit;this.renderTypes=b;this.defaultEncapsulation=d;this._genDebugInfo=e;this._logBindingUpdate=f;this.useJit=void 0===a?!0:a}Object.defineProperty(b.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?!0:this._genDebugInfo},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"logBindingUpdate",
  {get:function(){return void 0===this._logBindingUpdate?!0:this._logBindingUpdate},enumerable:!0,configurable:!0});return b}();(function(){function b(){}Object.defineProperty(b.prototype,"renderer",{get:function(){return Kd()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"renderText",{get:function(){return Kd()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"renderElement",{get:function(){return Kd()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,
  "renderComment",{get:function(){return Kd()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"renderNode",{get:function(){return Kd()},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"renderEvent",{get:function(){return Kd()},enumerable:!0,configurable:!0});return b})();var cy=function(){function b(){this.renderEvent=this.renderNode=this.renderComment=this.renderElement=this.renderText=null}Object.defineProperty(b.prototype,"renderer",{get:function(){return K(C.Renderer)},
  enumerable:!0,configurable:!0});return b}(),kc=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},ee=function(){return function(){this.playTime=this.startTime=0}}(),Fn=function(b){function a(){b.apply(this,arguments)}kc(a,b);return a}(ee),Mq=function(b){function a(a,d,e){b.call(this);this.name=a;this.stateDeclarations=d;this.stateTransitions=e}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationEntry(this,
  b)};return a}(ee),Oq=function(b){function a(a,d){b.call(this);this.stateName=a;this.styles=d}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationStateDeclaration(this,b)};return a}(Fn),tk=function(){return function(b,a){this.fromState=b;this.toState=a}}(),Tq=function(b){function a(a,d){b.call(this);this.stateChanges=a;this.animation=d}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationStateTransition(this,b)};return a}(Fn),Od=function(b){function a(a,d,e,f,g){b.call(this);this.startingStyles=
  a;this.keyframes=d;this.duration=e;this.delay=f;this.easing=g}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationStep(this,b)};return a}(ee),ed=function(b){function a(a){b.call(this);this.styles=a}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationStyles(this,b)};return a}(ee),lh=function(b){function a(a,d){b.call(this);this.offset=a;this.styles=d}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationKeyframe(this,b)};return a}(ee),uf=function(b){function a(a){b.call(this);
  this.steps=a}kc(a,b);return a}(ee),Zq=function(b){function a(a){b.call(this,a)}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationGroup(this,b)};return a}(uf),sk=function(b){function a(a){b.call(this,a)}kc(a,b);a.prototype.visit=function(a,b){return a.visitAnimationSequence(this,b)};return a}(uf),mh=ag.Math,dy=function(){function b(a,b){this.time=a;this.value=b}b.prototype.matches=function(a,b){return a==this.time&&b==this.value};return b}(),Pq=function(){function b(){this.styles={}}b.prototype.insertAtTime=
  function(a,b,d){d=new dy(b,d);var c=this.styles[a];p(c)||(c=this.styles[a]=[]);a=0;for(var f=c.length-1;0<=f;f--)if(c[f].time<=b){a=f+1;break}ja.insert(c,a,d)};b.prototype.getByIndex=function(a,b){a=this.styles[a];return p(a)?b>=a.length?null:a[b]:null};b.prototype.indexOfAtOrBeforeTime=function(a,b){a=this.styles[a];if(p(a))for(var c=a.length-1;0<=c;c--)if(a[c].time<=b)return c;return null};return b}(),ey=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);
  b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Bb=function(b){function a(a){b.call(this,null,a)}ey(a,b);a.prototype.toString=function(){return""+this.msg};return a}(qd),Nq=function(){return function(b,a){this.ast=b;this.errors=a}}(),vk=function(){return function(b,a,c){this.duration=b;this.delay=a;this.easing=c}}(),Gn=new Map,fy=function(){return function(b,a,c,d,e){this.name=b;this.statesMapStatement=a;this.statesVariableName=c;this.fnStatement=d;this.fnVariable=e}}(),gy=
  function(){return function(b,a){this.outputs=b;this.triggers=a}}(),Hn=function(){function b(){}b.prototype.compileComponent=function(a,b){var c=[],e=[],f={},g=a.type.name;a.template.animations.forEach(function(a){var b=Jq(a),d=a.name;if(0<b.errors.length){var h='Unable to parse the animation sequence for "'+d+'" due to the following errors:';b.errors.forEach(function(a){h+="\n-- "+a.msg});e.push(h)}f[d]?e.push('The animation trigger "'+d+'" has already been registered on "'+g+'"'):(b=(new hy(d,g+
  "_"+a.name)).build(b.ast),c.push(b),f[a.name]=b)});b=cr(c,b);b.errors.forEach(function(a){e.push(a.msg)});if(0<e.length){var h="Animation parsing for "+a.type.name+" has failed due to the following errors:";e.forEach(function(a){return h+="\n- "+a});throw Error(h);}Gn.set(a,c);return new gy(b.outputs,c)};return b}(),fe=L("element"),vi=L("defaultStateStyles"),ig=L("view"),wi=ig.prop("renderer"),jg=L("currentState"),Ie=L("nextState"),sd=L("player"),xi=L("totalTime"),ge=L("startStateStyles"),Je=L("endStateStyles"),
  yi=L("collectedStyles"),In=lc([]),hy=function(){function b(a,b){this.animationName=a;this._fnVarName=b+"_factory";this._statesMapVarName=b+"_states";this._statesMapVar=L(this._statesMapVarName)}b.prototype.visitAnimationStyles=function(a,b){var c=[];b.isExpectingFirstStyleStep&&(c.push(ge),b.isExpectingFirstStyleStep=!1);a.styles.forEach(function(a){c.push(lc(na.keys(a).map(function(b){return[b,F(a[b])]})))});return N(K(C.AnimationStyles)).instantiate([N(K(C.collectAndResolveStyles)).callFn([yi,ra(c)])])};
  b.prototype.visitAnimationKeyframe=function(a,b){return N(K(C.AnimationKeyframe)).instantiate([F(a.offset),a.styles.visit(this,b)])};b.prototype.visitAnimationStep=function(a,b){var c=this;if(b.endStateAnimateStep===a)return this._visitEndStateAnimation(a,b);var e=a.startingStyles.visit(this,b),f=a.keyframes.map(function(a){return a.visit(c,b)});return this._callAnimateMethod(a,e,ra(f),b)};b.prototype._visitEndStateAnimation=function(a,b){var c=this,e=a.startingStyles.visit(this,b),f=a.keyframes.map(function(a){return a.visit(c,
  b)}),f=N(K(C.balanceAnimationKeyframes)).callFn([yi,Je,ra(f)]);return this._callAnimateMethod(a,e,f,b)};b.prototype._callAnimateMethod=function(a,b,d,e){e.totalTransitionTime+=a.duration+a.delay;return wi.callMethod("animate",[fe,b,d,F(a.duration),F(a.delay),F(a.easing)])};b.prototype.visitAnimationSequence=function(a,b){var c=this;a=a.steps.map(function(a){return a.visit(c,b)});return N(K(C.AnimationSequencePlayer)).instantiate([ra(a)])};b.prototype.visitAnimationGroup=function(a,b){var c=this;a=
  a.steps.map(function(a){return a.visit(c,b)});return N(K(C.AnimationGroupPlayer)).instantiate([ra(a)])};b.prototype.visitAnimationStateDeclaration=function(a,b){var c={};a.styles.styles.forEach(function(a){na.forEach(a,function(a,b){c[b]=a})});b.stateMap.registerState(a.stateName,c)};b.prototype.visitAnimationStateTransition=function(a,b){var c=a.animation.steps,c=c[c.length-1];br(c)&&(b.endStateAnimateStep=c);b.totalTransitionTime=0;b.isExpectingFirstStyleStep=!0;var e=[];a.stateChanges.forEach(function(a){e.push(wk(jg,
  a.fromState).and(wk(Ie,a.toState)));"*"!=a.fromState&&b.stateMap.registerState(a.fromState);"*"!=a.toState&&b.stateMap.registerState(a.toState)});c=a.animation.visit(this,b);a=e.reduce(function(a,b){return a.or(b)});a=sd.equals(ga).and(a);var c=sd.set(c).toStmt(),f=xi.set(F(b.totalTransitionTime)).toStmt();return new Aa(a,[c,f])};b.prototype.visitAnimationEntry=function(a,b){var c=this;a.stateDeclarations.forEach(function(a){return a.visit(c,b)});b.stateMap.registerState("*",{});var e=[];e.push(ig.callMethod("cancelActiveAnimation",
  [fe,F(this.animationName),Ie.equals(F("void"))]).toStmt());e.push(yi.set(In).toDeclStmt());e.push(sd.set(ga).toDeclStmt());e.push(xi.set(F(0)).toDeclStmt());e.push(vi.set(this._statesMapVar.key(F("*"))).toDeclStmt());e.push(ge.set(this._statesMapVar.key(jg)).toDeclStmt());e.push(new Aa(ge.equals(ga),[ge.set(vi).toStmt()]));e.push(Je.set(this._statesMapVar.key(Ie)).toDeclStmt());e.push(new Aa(Je.equals(ga),[Je.set(vi).toStmt()]));var f=N(K(C.renderStyles));e.push(f.callFn([fe,wi,N(K(C.clearStyles)).callFn([ge])]).toStmt());
  a.stateTransitions.forEach(function(a){return e.push(a.visit(c,b))});e.push(new Aa(sd.equals(ga),[sd.set(N(K(C.NoOpAnimationPlayer)).instantiate([])).toStmt()]));e.push(sd.callMethod("onDone",[Cd([],[f.callFn([fe,wi,N(K(C.prepareFinalAnimationStyles)).callFn([ge,Je])]).toStmt()])]).toStmt());e.push(ig.callMethod("queueAnimation",[fe,F(this.animationName),sd,xi,jg,Ie]).toStmt());return Cd([new Ca(ig.name,ka(K(C.AppView),[ta])),new Ca(fe.name,ta),new Ca(jg.name,ta),new Ca(Ie.name,ta)],e)};b.prototype.build=
  function(a){var b=new iy;a=a.visit(this,b).toDeclStmt(this._fnVarName);var d=L(this._fnVarName),e=[];na.forEach(b.stateMap.states,function(a,b){var c=In;if(p(a)){var d=[];na.forEach(a,function(a,b){d.push([b,F(a)])});c=lc(d)}e.push([b,c])});b=this._statesMapVar.set(lc(e)).toDeclStmt();return new fy(this.animationName,b,this._statesMapVarName,a,d)};return b}(),iy=function(){return function(){this.stateMap=new jy;this.endStateAnimateStep=null;this.isExpectingFirstStyleStep=!1;this.totalTransitionTime=
  0}}(),jy=function(){function b(){this._states={}}Object.defineProperty(b.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0});b.prototype.registerState=function(a,b){void 0===b&&(b=null);z(this._states[a])&&(this._states[a]=b)};return b}(),er=function(){return function(b,a){this.outputs=b;this.errors=a}}(),dr=function(){function b(a){this.errors=[];this.outputs=[];this._animationRegistry=this._buildCompileAnimationLookup(a)}b.prototype._buildCompileAnimationLookup=
  function(a){var b={};a.forEach(function(a){b[a.name]=!0});return b};b.prototype._validateAnimationInputOutputPairs=function(a,b,d,e){var c=this,g={};a.forEach(function(a){a.type==lb.Animation&&(a=a.name,p(d[a])?g[a]=!0:c.errors.push(new Bb("Couldn't find an animation entry for "+a)))});b.forEach(function(a){if("@"==a.name[0]){a=a.name.substr(1);var b=c.errors,f=a.split("."),h,v="";if(1<f.length)switch(h=f[0],f=f[1],f){case "start":case "done":v=f;break;default:b.push(new Bb('The provided animation output phase value "'+
  f+'" for "@'+h+'" is not supported (use start or done)'))}else h=a,b.push(new Bb("The animation trigger output event (@"+h+") is missing its phase value name (start or done are currently supported)"));a=new Nl(h,v,a);b=a.name;h=a.phase;d[b]?g[b]?c.outputs.push(a):c.errors.push(new Bb("Unable to listen on (@"+b+"."+h+") because the animation trigger [@"+b+"] isn't being used on the same element")):c.errors.push(new Bb("Couldn't find the corresponding "+(e?"host-level ":"")+"animation trigger definition for (@"+
  b+")"))}})};b.prototype.visitElement=function(a,b){this._validateAnimationInputOutputPairs(a.inputs,a.outputs,this._animationRegistry,!1);if(b=a.directives.find(function(a){return a.directive.isComponent})){var c=Gn.get(b.directive);c&&this._validateAnimationInputOutputPairs(b.hostProperties,b.hostEvents,this._buildCompileAnimationLookup(c),!0)}Fc(this,a.children)};b.prototype.visitEmbeddedTemplate=function(a,b){Fc(this,a.children)};b.prototype.visitEvent=function(a,b){};b.prototype.visitBoundText=
  function(a,b){};b.prototype.visitText=function(a,b){};b.prototype.visitNgContent=function(a,b){};b.prototype.visitAttr=function(a,b){};b.prototype.visitDirective=function(a,b){};b.prototype.visitReference=function(a,b){};b.prototype.visitVariable=function(a,b){};b.prototype.visitDirectiveProperty=function(a,b){};b.prototype.visitElementProperty=function(a,b){};return b}(),fr=function(){function b(){}b.prototype.visitArray=function(a,b){var c=this;return ra(a.map(function(a){return Dd(a,c,null)}),
  b)};b.prototype.visitStringMap=function(a,b){var c=this,e=[];na.forEach(a,function(a,b){e.push([b,Dd(a,c,null)])});return lc(e,b)};b.prototype.visitPrimitive=function(a,b){return F(a,b)};b.prototype.visitOther=function(a,b){if(a instanceof ub)return N(a);if(a instanceof Ja)return a;throw Error("Illegal state: Don't now how to compile value "+a);};return b}(),zi=function(){return function(b,a){this.nodeIndex=b;this.sourceAst=a}}(),ky=new zi(null,null),kb=function(){function b(a){this._view=a;this._currState=
  this._newState=ky;this._bodyStatements=[];this._debugEnabled=this._view.genConfig.genDebugInfo}b.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var a=this._updateDebugContext(this._newState);p(a)&&this._bodyStatements.push(a.toStmt())}};b.prototype._updateDebugContext=function(a){this._currState=this._newState=a;if(this._debugEnabled){var b=p(a.sourceAst)?a.sourceAst.sourceSpan.start:null;
  return A.callMethod("debug",[F(a.nodeIndex),p(b)?F(b.line):ga,p(b)?F(b.col):ga])}return null};b.prototype.resetDebugInfoExpr=function(a,b){a=this._updateDebugContext(new zi(a,b));return p(a)?a:ga};b.prototype.resetDebugInfo=function(a,b){this._newState=new zi(a,b)};b.prototype.addStmt=function(a){this._updateDebugContextIfNeeded();this._bodyStatements.push(a)};b.prototype.addStmts=function(a){this._updateDebugContextIfNeeded();ja.addAll(this._bodyStatements,a)};b.prototype.finish=function(){return this._bodyStatements};
  b.prototype.isEmpty=function(){return 0===this._bodyStatements.length};return b}(),qe=function(){return function(b,a){this.view=b;this.values=a}}(),Ai=function(){function b(a,b,d,e){this.meta=a;this.queryList=b;this.ownerDirectiveExpression=d;this.view=e;this._values=new qe(e,[])}b.prototype.addValue=function(a,b){for(var c=b,e=[];p(c)&&c!==this.view;)c=c.declarationElement,e.unshift(c),c=c.view;var c=Jc(this.queryList,b,this.view),f=this._values;e.forEach(function(a){var b=0<f.values.length?f.values[f.values.length-
  1]:null;b instanceof qe&&b.view===a.embeddedView?f=b:(a=new qe(a.embeddedView,[]),f.values.push(a),f=a)});f.values.push(a);0<e.length&&b.dirtyParentQueriesMethod.addStmt(c.callMethod("setDirty",[]).toStmt())};b.prototype._isStatic=function(){return!this._values.values.some(function(a){return a instanceof qe})};b.prototype.afterChildren=function(a,b){var c=zk(this._values),c=[this.queryList.callMethod("reset",[ra(c)]).toStmt()];if(p(this.ownerDirectiveExpression)){var e=this.meta.first?this.queryList.prop("first"):
  this.queryList;c.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(e).toStmt())}this.meta.first||c.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt());this.meta.first&&this._isStatic()?a.addStmts(c):b.addStmt(new Aa(this.queryList.prop("dirty"),c))};return b}(),vr=function(){function b(){}b.fromValue=function(a){var b=K(C.ViewType);switch(a){case Na.HOST:return Db(b,"HOST");case Na.COMPONENT:return Db(b,"COMPONENT");case Na.EMBEDDED:return Db(b,"EMBEDDED");default:throw Error("Inavlid ViewType value: "+
  a);}};return b}(),Cr=function(){function b(){}b.fromValue=function(a){var b=K(C.ViewEncapsulation);switch(a){case Ua.Emulated:return Db(b,"Emulated");case Ua.Native:return Db(b,"Native");case Ua.None:return Db(b,"None");default:throw Error("Inavlid ViewEncapsulation value: "+a);}};return b}(),wr=function(){function b(){}b.fromValue=function(a){var b=K(C.ChangeDetectorStatus);switch(a){case Zb.CheckOnce:return Db(b,"CheckOnce");case Zb.Checked:return Db(b,"Checked");case Zb.CheckAlways:return Db(b,
  "CheckAlways");case Zb.Detached:return Db(b,"Detached");case Zb.Errored:return Db(b,"Errored");case Zb.Destroyed:return Db(b,"Destroyed");default:throw Error("Inavlid ChangeDetectorStatus value: "+a);}};return b}(),Yb=function(){function b(){}b.viewUtils=L("viewUtils");b.parentInjector=L("parentInjector");b.declarationEl=L("declarationEl");return b}(),wb=function(){function b(){}b.renderer=A.prop("renderer");b.projectableNodes=A.prop("projectableNodes");b.viewUtils=A.prop("viewUtils");return b}(),
  Bi=function(){function b(){}b.event=L("$event");return b}(),Lc=function(){function b(){}b.token=L("token");b.requestNodeIndex=L("requestNodeIndex");b.notFoundResult=L("notFoundResult");return b}(),ua=function(){function b(){}b.throwOnChange=L("throwOnChange");b.changes=L("changes");b.changed=L("changed");b.valUnwrapper=L("valUnwrapper");return b}(),ly=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,
  new c)},Jn=function(){function b(a,b,d,e,f){this.parent=a;this.view=b;this.nodeIndex=d;this.renderNode=e;this.sourceAst=f}b.prototype.isNull=function(){return z(this.renderNode)};b.prototype.isRootElement=function(){return this.view!=this.parent.view};return b}(),Pd=function(b){function a(a,d,e,f,g,h,m,r,u,v,k){var c=this;b.call(this,a,d,e,f,g);this.component=h;this._directives=m;this._resolvedProvidersArray=r;this.hasViewContainer=u;this.hasEmbeddedView=v;this._compViewExpr=null;this.instances=new Map;
  this._queryCount=0;this._queries=new Map;this._componentConstructorViewQueryLists=[];this.contentNodesByNgContentIndex=null;this.referenceTokens={};k.forEach(function(a){return c.referenceTokens[a.name]=a.value});this.elementRef=N(K(C.ElementRef)).instantiate([this.renderNode]);this.instances.set(za(C.ElementRef).reference,this.elementRef);this.injector=A.callMethod("injector",[F(this.nodeIndex)]);this.instances.set(za(C.Injector).reference,this.injector);this.instances.set(za(C.Renderer).reference,
  A.prop("renderer"));(this.hasViewContainer||this.hasEmbeddedView||p(this.component))&&this._createAppElement()}ly(a,b);a.createNull=function(){return new a(null,null,null,null,null,null,[],[],!1,!1,[])};a.prototype._createAppElement=function(){var a="_appEl_"+this.nodeIndex,b=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new Cb(a,ka(K(C.AppElement)),[Fa.Private]));b=A.prop(a).set(N(K(C.AppElement)).instantiate([F(this.nodeIndex),F(b),A,this.renderNode])).toStmt();this.view.createMethod.addStmt(b);
  this.appElement=A.prop(a);this.instances.set(za(C.AppElement).reference,this.appElement)};a.prototype.createComponentFactoryResolver=function(a){a&&0!==a.length&&(a=N(K(C.CodegenComponentFactoryResolver)).instantiate([ra(a.map(function(a){return N(a)})),oh(za(C.ComponentFactoryResolver),!1)]),a=new Ic({token:za(C.ComponentFactoryResolver),useValue:a}),this._resolvedProvidersArray.unshift(new rf(a.token,!1,!0,[a],sa.PrivateService,[],this.sourceAst.sourceSpan)))};a.prototype.setComponentView=function(a){this._compViewExpr=
  a;this.contentNodesByNgContentIndex=ja.createFixedSize(this.component.template.ngContentSelectors.length);for(a=0;a<this.contentNodesByNgContentIndex.length;a++)this.contentNodesByNgContentIndex[a]=[]};a.prototype.setEmbeddedView=function(a){this.embeddedView=a;p(a)&&(a=N(K(C.TemplateRef_)).instantiate([this.appElement,this.embeddedView.viewFactory]),a=new Ic({token:za(C.TemplateRef),useValue:a}),this._resolvedProvidersArray.unshift(new rf(a.token,!1,!0,[a],sa.Builtin,[],this.sourceAst.sourceSpan)))};
  a.prototype.beforeChildren=function(){var a=this;this.hasViewContainer&&this.instances.set(za(C.ViewContainerRef).reference,this.appElement.prop("vcRef"));this._resolvedProviders=new Map;this._resolvedProvidersArray.forEach(function(b){return a._resolvedProviders.set(b.token.reference,b)});Ya.values(this._resolvedProviders).forEach(function(b){var c=b.providers.map(function(c){if(p(c.useExisting))return a._getDependency(b.providerType,new hc({token:c.useExisting}));if(p(c.useFactory)){var d=p(c.deps)?
  c.deps:c.useFactory.diDeps,d=d.map(function(c){return a._getDependency(b.providerType,c)});return N(c.useFactory).callFn(d)}return p(c.useClass)?(d=p(c.deps)?c.deps:c.useClass.diDeps,d=d.map(function(c){return a._getDependency(b.providerType,c)}),N(c.useClass).instantiate(d,ka(c.useClass))):xk(c.useValue)}),c=ir("_"+b.token.name+"_"+a.nodeIndex+"_"+a.instances.size,b,c,b.multiProvider,b.eager,a);a.instances.set(b.token.reference,c)});for(var b=0;b<this._directives.length;b++){var e=this._directives[b],
  f=this.instances.get(Hd(e.type).reference);e.queries.forEach(function(b){a._addQuery(b,f)})}var g=[];Ya.values(this._resolvedProviders).forEach(function(b){var c=a._getQueriesFor(b.token);ja.addAll(g,c.map(function(a){return new Kn(a,b.token)}))});na.forEach(this.referenceTokens,function(b,c){b=a.referenceTokens[c];b=p(b)?a.instances.get(b.reference):a.renderNode;a.view.locals.set(c,b);var d=new Hc({value:c});ja.addAll(g,a._getQueriesFor(d).map(function(a){return new Kn(a,d)}))});g.forEach(function(b){var c;
  p(b.read.identifier)?c=a.instances.get(b.read.reference):(c=a.referenceTokens[b.read.value],c=p(c)?a.instances.get(c.reference):a.elementRef);p(c)&&b.query.addValue(c,a.view)});p(this.component)&&(b=p(this.component)?ra(this._componentConstructorViewQueryLists):ga,e=p(this.getComponent())?this.getComponent():ga,this.view.createMethod.addStmt(this.appElement.callMethod("initComponent",[e,b,this._compViewExpr]).toStmt()))};a.prototype.afterChildren=function(a){var b=this;Ya.values(this._resolvedProviders).forEach(function(c){var d=
  b.instances.get(c.token.reference);b.view.injectorGetMethod.addStmt(hr(b.nodeIndex,c.providerType===sa.PrivateService?0:a,c,d))});Ya.values(this._queries).forEach(function(a){return a.forEach(function(a){return a.afterChildren(b.view.createMethod,b.view.updateContentQueriesMethod)})})};a.prototype.addContentNode=function(a,b){this.contentNodesByNgContentIndex[a].push(b)};a.prototype.getComponent=function(){return p(this.component)?this.instances.get(Hd(this.component.type).reference):null};a.prototype.getProviderTokens=
  function(){return Ya.values(this._resolvedProviders).map(function(a){return bd(a.token)})};a.prototype._getQueriesFor=function(a){for(var b=[],c=this,f=0,g;!c.isNull();)g=c._queries.get(a.reference),p(g)&&ja.addAll(b,g.filter(function(a){return a.meta.descendants||1>=f})),0<c._directives.length&&f++,c=c.parent;g=this.view.componentView.viewQueries.get(a.reference);p(g)&&ja.addAll(b,g);return b};a.prototype._addQuery=function(a,b){var c="_query_"+a.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,
  c=qh(a,b,c,this.view);a=new Ai(a,c,b,this.view);rh(this._queries,a);return a};a.prototype._getLocalDependency=function(a,b){var c=null;z(c)&&p(b.query)&&(c=this._addQuery(b.query,null).queryList);z(c)&&p(b.viewQuery)&&(c=qh(b.viewQuery,null,"_viewQuery_"+b.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(c));if(p(b.token)){if(z(c)&&b.token.reference===za(C.ChangeDetectorRef).reference)return a===
  sa.Component?this._compViewExpr.prop("ref"):Jc(A.prop("ref"),this.view,this.view.componentView);if(z(c)){if((c=this._resolvedProviders.get(b.token.reference))&&(a===sa.Directive||a===sa.PublicService)&&c.providerType===sa.PrivateService)return null;c=this.instances.get(b.token.reference)}}return c};a.prototype._getDependency=function(a,b){var c=this,d=null;b.isValue&&(d=F(b.value));for(z(d)&&!b.isSkipSelf&&(d=this._getLocalDependency(a,b));z(d)&&!c.parent.isNull();)c=c.parent,d=c._getLocalDependency(sa.PublicService,
  new hc({token:b.token}));z(d)&&(d=oh(b.token,b.isOptional));z(d)&&(d=ga);return Jc(d,this.view,c.view)};return a}(Jn),Kn=function(){return function(b,a){this.query=b;this.read=p(b.meta.read)?b.meta.read:a}}(),my=function(){function b(a,b){var c=this;this.view=a;this.meta=b;this._purePipeProxyCount=0;this.instance=A.prop("_pipe_"+b.name+"_"+a.pipeCount++);a=this.meta.type.diDeps.map(function(a){return a.token.reference===za(C.ChangeDetectorRef).reference?Jc(A.prop("ref"),c.view,c.view.componentView):
  oh(a.token,!1)});this.view.fields.push(new Cb(this.instance.name,ka(this.meta.type)));this.view.createMethod.resetDebugInfo(null,null);this.view.createMethod.addStmt(A.prop(this.instance.name).set(N(this.meta.type).instantiate(a)).toStmt())}b.call=function(a,c,d){var e=a.componentView,f;f=null;for(var g=e.pipeMetas.length-1;0<=g;g--){var h=e.pipeMetas[g];if(h.name==c){f=h;break}}if(z(f))throw Error("Illegal state: Could not find pipe "+c+" although the parser should have detected this error!");f.pure?
  (g=e.purePipes.get(c),z(g)&&(g=new b(e,f),e.purePipes.set(c,g),e.pipes.push(g))):(g=new b(a,f),a.pipes.push(g));return g._call(a,d)};Object.defineProperty(b.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0});b.prototype._call=function(a,b){if(this.meta.pure){var c=A.prop(this.instance.name+"_"+this._purePipeProxyCount++),e=Jc(this.instance,a,this.view);ph(e.prop("transform").callMethod(Ma.Bind,[e]),b.length,c,a);return N(K(C.castByValue)).callFn([c,e.prop("transform")]).callFn(b)}return Jc(this.instance,
  a,this.view).callMethod("transform",b)};return b}(),Ln=function(){function b(a,b,d,e,f,g,h,m){var c=this;this.component=a;this.genConfig=b;this.pipeMetas=d;this.styles=e;this.animations=f;this.viewIndex=g;this.declarationElement=h;this.templateVariableBindings=m;this.nodes=[];this.rootNodesOrAppElements=[];this.bindings=[];this.classStatements=[];this.eventHandlerMethods=[];this.fields=[];this.getters=[];this.disposables=[];this.subscriptions=[];this.purePipes=new Map;this.pipes=[];this.locals=new Map;
  this.pipeCount=this.literalMapCount=this.literalArrayCount=0;this.createMethod=new kb(this);this.animationBindingsMethod=new kb(this);this.injectorGetMethod=new kb(this);this.updateContentQueriesMethod=new kb(this);this.dirtyParentQueriesMethod=new kb(this);this.updateViewQueriesMethod=new kb(this);this.detectChangesInInputsMethod=new kb(this);this.detectChangesRenderPropertiesMethod=new kb(this);this.afterContentLifecycleCallbacksMethod=new kb(this);this.afterViewLifecycleCallbacksMethod=new kb(this);
  this.destroyMethod=new kb(this);this.detachMethod=new kb(this);b=0<g?Na.EMBEDDED:a.type.isHost?Na.HOST:Na.COMPONENT;this.viewType=b;this.className="_View_"+a.type.name+g;this.classType=ka(new ub({name:this.className}));this.viewFactory=L("viewFactory_"+a.type.name+g);this.componentView=this.viewType===Na.COMPONENT||this.viewType===Na.HOST?this:this.declarationElement.view.componentView;this.componentContext=Jc(A.prop("context"),this,this.componentView);var u=new Map;if(this.viewType===Na.COMPONENT){var v=
  A.prop("context");ja.forEachWithIndex(this.component.viewQueries,function(a,b){b=qh(a,v,"_viewQuery_"+a.selectors[0].name+"_"+b,c);a=new Ai(a,b,v,c);rh(u,a)});var k=0;this.component.type.diDeps.forEach(function(a){if(p(a.viewQuery)){var b=A.prop("declarationAppElement").prop("componentConstructorViewQueries").key(F(k++));a=new Ai(a.viewQuery,b,null,c);rh(u,a)}})}this.viewQueries=u;m.forEach(function(a){c.locals.set(a[1],A.prop("context").prop(a[0]))});this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}
  b.prototype.callPipe=function(a,b,d){return my.call(this,a,[b].concat(d))};b.prototype.getLocal=function(a){if(a==Bi.event.name)return Bi.event;for(var b=this,d=b.locals.get(a);z(d)&&p(b.declarationElement.view);)b=b.declarationElement.view,d=b.locals.get(a);return p(d)?Jc(d,this,b):null};b.prototype.createLiteralArray=function(a){if(0===a.length)return N(K(C.EMPTY_ARRAY));for(var b=A.prop("_arr_"+this.literalArrayCount++),d=[],e=[],f=0;f<a.length;f++){var g="p"+f;d.push(new Ca(g));e.push(L(g))}ph(Cd(d,
  [new Za(ra(e))],new Kc(ta)),a.length,b,this);return b.callFn(a)};b.prototype.createLiteralMap=function(a){if(0===a.length)return N(K(C.EMPTY_MAP));for(var b=A.prop("_map_"+this.literalMapCount++),d=[],e=[],f=[],g=0;g<a.length;g++){var h="p"+g;d.push(new Ca(h));e.push([a[g][0],L(h)]);f.push(a[g][1])}ph(Cd(d,[new Za(lc(e))],new xf(ta)),a.length,b,this);return b.callFn(f)};b.prototype.afterNodes=function(){var a=this;Ya.values(this.viewQueries).forEach(function(b){return b.forEach(function(b){return b.afterChildren(a.createMethod,
  a.updateViewQueriesMethod)})})};return b}(),re=function(){return function(b,a){this.node=b;this.sourceAst=a}}(),lr=function(){return function(b,a,c){this.expression=b;this.needsValueUnwrapper=a;this.temporaryCount=c}}(),oa;(function(b){b[b.Statement=0]="Statement";b[b.Expression=1]="Expression"})(oa||(oa={}));var Lk=function(){function b(a,b,d,e){this._nameResolver=a;this._implicitReceiver=b;this._valueUnwrapper=d;this.bindingIndex=e;this._nodeMap=new Map;this._resultMap=new Map;this._currentTemporary=
  0;this.needsValueUnwrapper=!1;this.temporaryCount=0}b.prototype.visitBinary=function(a,b){var c;switch(a.operation){case "+":c=H.Plus;break;case "-":c=H.Minus;break;case "*":c=H.Multiply;break;case "/":c=H.Divide;break;case "%":c=H.Modulo;break;case "\x26\x26":c=H.And;break;case "||":c=H.Or;break;case "\x3d\x3d":c=H.Equals;break;case "!\x3d":c=H.NotEquals;break;case "\x3d\x3d\x3d":c=H.Identical;break;case "!\x3d\x3d":c=H.NotIdentical;break;case "\x3c":c=H.Lower;break;case "\x3e":c=H.Bigger;break;
  case "\x3c\x3d":c=H.LowerEquals;break;case "\x3e\x3d":c=H.BiggerEquals;break;default:throw Error("Unsupported operation "+a.operation);}return vb(b,new Wa(c,this.visit(a.left,oa.Expression),this.visit(a.right,oa.Expression)))};b.prototype.visitChain=function(a,b){if(b!==oa.Statement)throw Error("Expected a statement, but saw "+a);return this.visitAll(a.expressions,b)};b.prototype.visitConditional=function(a,b){var c=this.visit(a.condition,oa.Expression);return vb(b,c.conditional(this.visit(a.trueExp,
  oa.Expression),this.visit(a.falseExp,oa.Expression)))};b.prototype.visitPipe=function(a,b){var c=this.visit(a.exp,oa.Expression),e=this.visitAll(a.args,oa.Expression);a=this._nameResolver.callPipe(a.name,c,e);this.needsValueUnwrapper=!0;return vb(b,this._valueUnwrapper.callMethod("unwrap",[a]))};b.prototype.visitFunctionCall=function(a,b){return vb(b,this.visit(a.target,oa.Expression).callFn(this.visitAll(a.args,oa.Expression)))};b.prototype.visitImplicitReceiver=function(a,b){Bk(b,a);return this._implicitReceiver};
  b.prototype.visitInterpolation=function(a,b){Bk(b,a);b=[F(a.expressions.length)];for(var c=0;c<a.strings.length-1;c++)b.push(F(a.strings[c])),b.push(this.visit(a.expressions[c],oa.Expression));b.push(F(a.strings[a.strings.length-1]));return N(K(C.interpolate)).callFn(b)};b.prototype.visitKeyedRead=function(a,b){return vb(b,this.visit(a.obj,oa.Expression).key(this.visit(a.key,oa.Expression)))};b.prototype.visitKeyedWrite=function(a,b){var c=this.visit(a.obj,oa.Expression),e=this.visit(a.key,oa.Expression);
  a=this.visit(a.value,oa.Expression);return vb(b,c.key(e).set(a))};b.prototype.visitLiteralArray=function(a,b){return vb(b,this._nameResolver.createLiteralArray(this.visitAll(a.expressions,b)))};b.prototype.visitLiteralMap=function(a,b){for(var c=[],e=0;e<a.keys.length;e++)c.push([a.keys[e],this.visit(a.values[e],oa.Expression)]);return vb(b,this._nameResolver.createLiteralMap(c))};b.prototype.visitLiteralPrimitive=function(a,b){return vb(b,F(a.value))};b.prototype.visitMethodCall=function(a,b){var c=
  this.leftMostSafeNode(a);if(c)return this.convertSafeAccess(a,c,b);var c=this.visitAll(a.args,oa.Expression),e=null,f=this.visit(a.receiver,oa.Expression);if(f===this._implicitReceiver){var g=this._nameResolver.getLocal(a.name);p(g)&&(e=g.callFn(c))}z(e)&&(e=f.callMethod(a.name,c));return vb(b,e)};b.prototype.visitPrefixNot=function(a,b){return vb(b,new se(this.visit(a.expression,oa.Expression)))};b.prototype.visitPropertyRead=function(a,b){var c=this.leftMostSafeNode(a);if(c)return this.convertSafeAccess(a,
  c,b);var c=null,e=this.visit(a.receiver,oa.Expression);e===this._implicitReceiver&&(c=this._nameResolver.getLocal(a.name));z(c)&&(c=e.prop(a.name));return vb(b,c)};b.prototype.visitPropertyWrite=function(a,b){var c=this.visit(a.receiver,oa.Expression);if(c===this._implicitReceiver){var e=this._nameResolver.getLocal(a.name);if(p(e))throw Error("Cannot assign to a reference or variable!");}return vb(b,c.prop(a.name).set(this.visit(a.value,oa.Expression)))};b.prototype.visitSafePropertyRead=function(a,
  b){return this.convertSafeAccess(a,this.leftMostSafeNode(a),b)};b.prototype.visitSafeMethodCall=function(a,b){return this.convertSafeAccess(a,this.leftMostSafeNode(a),b)};b.prototype.visitAll=function(a,b){var c=this;return a.map(function(a){return c.visit(a,b)})};b.prototype.visitQuote=function(a,b){throw Error("Quotes are not supported for evaluation!");};b.prototype.visit=function(a,b){var c=this._resultMap.get(a);return c?c:(this._nodeMap.get(a)||a).visit(this,b)};b.prototype.convertSafeAccess=
  function(a,b,d){var c=this.visit(b.receiver,d),f;this.needsTemporary(b.receiver)&&(f=this.allocateTemporary(),c=f.set(c),this._resultMap.set(b.receiver,f));c=c.isBlank();b instanceof ln?this._nodeMap.set(b,new kn(b.span,b.receiver,b.name,b.args)):this._nodeMap.set(b,new jn(b.span,b.receiver,b.name));a=this.visit(a,d);this._nodeMap.delete(b);f&&this.releaseTemporary(f);return c.conditional(F(null),a)};b.prototype.leftMostSafeNode=function(a){var b=this,d=function(a,c){return(b._nodeMap.get(c)||c).visit(a)};
  return a.visit({visitBinary:function(a){return null},visitChain:function(a){return null},visitConditional:function(a){return null},visitFunctionCall:function(a){return null},visitImplicitReceiver:function(a){return null},visitInterpolation:function(a){return null},visitKeyedRead:function(a){return d(this,a.obj)},visitKeyedWrite:function(a){return null},visitLiteralArray:function(a){return null},visitLiteralMap:function(a){return null},visitLiteralPrimitive:function(a){return null},visitMethodCall:function(a){return d(this,
  a.receiver)},visitPipe:function(a){return null},visitPrefixNot:function(a){return null},visitPropertyRead:function(a){return d(this,a.receiver)},visitPropertyWrite:function(a){return null},visitQuote:function(a){return null},visitSafeMethodCall:function(a){return d(this,a.receiver)||a},visitSafePropertyRead:function(a){return d(this,a.receiver)||a}})};b.prototype.needsTemporary=function(a){var b=this,d=function(a,c){return c&&(b._nodeMap.get(c)||c).visit(a)},e=function(a,b){return b.some(function(b){return d(a,
  b)})};return a.visit({visitBinary:function(a){return d(this,a.left)||d(this,a.right)},visitChain:function(a){return!1},visitConditional:function(a){return d(this,a.condition)||d(this,a.trueExp)||d(this,a.falseExp)},visitFunctionCall:function(a){return!0},visitImplicitReceiver:function(a){return!1},visitInterpolation:function(a){return e(this,a.expressions)},visitKeyedRead:function(a){return!1},visitKeyedWrite:function(a){return!1},visitLiteralArray:function(a){return!0},visitLiteralMap:function(a){return!0},
  visitLiteralPrimitive:function(a){return!1},visitMethodCall:function(a){return!0},visitPipe:function(a){return!0},visitPrefixNot:function(a){return d(this,a.expression)},visitPropertyRead:function(a){return!1},visitPropertyWrite:function(a){return!1},visitQuote:function(a){return!1},visitSafeMethodCall:function(a){return!0},visitSafePropertyRead:function(a){return!1}})};b.prototype.allocateTemporary=function(){var a=this._currentTemporary++;this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount);
  return new Gc("tmp_"+this.bindingIndex+"_"+a)};b.prototype.releaseTemporary=function(a){this._currentTemporary--;if(a.name!="tmp_"+this.bindingIndex+"_"+this._currentTemporary)throw Error("Temporary "+a.name+" released out of order");};return b}(),ny=function(){return function(b,a){this.listener=b;this.output=a}}(),Ek=function(){function b(a,b,d,e){this.compileElement=a;this.eventTarget=b;this.eventName=d;this._hasComponentHostListener=!1;this._actionResultExprs=[];this._method=new kb(a.view);this._methodName=
  "_handle_"+T.replaceAll(d,/[^a-zA-Z_]/g,"_")+"_"+a.nodeIndex+"_"+e;this._eventParam=new Ca(Bi.event.name,ka(this.compileElement.view.genConfig.renderTypes.renderEvent))}b.getOrCreate=function(a,c,d,e){var f=e.find(function(a){return a.eventTarget==c&&a.eventName==d});z(f)&&(f=new b(a,c,d,e.length),e.push(f));return f};Object.defineProperty(b.prototype,"methodName",{get:function(){return this._methodName},enumerable:!0,configurable:!0});b.prototype.addAction=function(a,b,d){p(b)&&b.isComponent&&(this._hasComponentHostListener=
  !0);this._method.resetDebugInfo(this.compileElement.nodeIndex,a);var c=p(d)?d:this.compileElement.view.componentContext;d=a.handler;b=this.compileElement.nodeIndex;c=new Lk(this.compileElement.view,c,null,b);a=[];Ck(d.visit(c,oa.Statement),a);for(d=c.temporaryCount-1;0<=d;d--)a.unshift(new wf("tmp_"+b+"_"+d,ga));b=a.length-1;0<=b&&(d=a[b],d=d instanceof hi?d.expr:d instanceof Za?d.value:null,c=L("pd_"+this._actionResultExprs.length),this._actionResultExprs.push(c),p(d)&&(a[b]=c.set(d.cast(ta).notIdentical(F(!1))).toDeclStmt(null,
  [Fa.Final])));this._method.addStmts(a)};b.prototype.finishMethod=function(){var a=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):A,b=F(!0);this._actionResultExprs.forEach(function(a){b=b.and(a)});a=[a.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new Za(b)]);this.compileElement.view.eventHandlerMethods.push(new Eb(this._methodName,[this._eventParam],a,yf,[Fa.Private]))};b.prototype.listenToRenderer=function(){var a;
  a=A.callMethod("eventHandler",[A.prop(this._methodName).callMethod(Ma.Bind,[A])]);a=p(this.eventTarget)?wb.renderer.callMethod("listenGlobal",[F(this.eventTarget),F(this.eventName),a]):wb.renderer.callMethod("listen",[this.compileElement.renderNode,F(this.eventName),a]);var b=L("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(b);this.compileElement.view.createMethod.addStmt(b.set(a).toDeclStmt(ow,[Fa.Private]))};b.prototype.listenToAnimation=function(a){var b=
  A.callMethod("eventHandler",[A.prop(this._methodName).callMethod(Ma.Bind,[A])]);a=A.callMethod("registerAnimationOutput",[this.compileElement.renderNode,N(K(C.AnimationOutput)).instantiate([F(a.name),F(a.phase)]),b]).toStmt();this.compileElement.view.createMethod.addStmt(a)};b.prototype.listenToDirective=function(a,b){var c=L("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(c);var e=A.callMethod("eventHandler",[A.prop(this._methodName).callMethod(Ma.Bind,
  [A])]);this.compileElement.view.createMethod.addStmt(c.set(a.prop(b).callMethod(Ma.SubscribeObservable,[e])).toDeclStmt(null,[Fa.Final]))};return b}(),sh=A.prop("numberOfChecks").identical(new $g(0)),Hk=new se(ua.throwOnChange),mr=function(){function b(a,b){var c=this;this.view=a;this.animationOutputs=b;this._nodeIndex=0;this._animationOutputsMap={};b.forEach(function(a){c._animationOutputsMap[a.fullPropertyName]=a})}b.prototype.visitBoundText=function(a,b){b=this.view.nodes[this._nodeIndex++];var c=
  this.view,e=c.bindings.length;c.bindings.push(new re(b,a));var f=L("currVal_"+e),g=A.prop("_expr_"+e);c.detectChangesRenderPropertiesMethod.resetDebugInfo(b.nodeIndex,a);th(c,f,g,a.value,c.componentContext,[A.prop("renderer").callMethod("setText",[b.renderNode,f]).toStmt()],c.detectChangesRenderPropertiesMethod,e);return null};b.prototype.visitText=function(a,b){this._nodeIndex++;return null};b.prototype.visitNgContent=function(a,b){return null};b.prototype.visitElement=function(a,b){var c=this,e=
  this.view.nodes[this._nodeIndex++],f=[],g=[];Dk(a.outputs,a.directives,e).forEach(function(a){if("@"==a.eventName[0]){var b=a.eventName.substr(1);(b=c._animationOutputsMap[b])&&g.push(new ny(a,b))}else f.push(a)});kr(g);Mk(a.inputs,e.view.componentContext,e,!1);jr(f);a.directives.forEach(function(a){var b=e.instances.get(a.directive.type.reference);Pk(a,b,e);Gk(a,b,e);Mk(a.hostProperties,b,e,!0);Fk(a,b,f)});Fc(this,a.children,e);a.directives.forEach(function(a){var b=e.instances.get(a.directive.type.reference);
  Ik(a.directive,b,e);Jk(a.directive,b,e)});a.providers.forEach(function(a){var b=e.instances.get(a.token.reference);Kk(a,b,e)});return null};b.prototype.visitEmbeddedTemplate=function(a,b){var c=this.view.nodes[this._nodeIndex++],e=Dk(a.outputs,a.directives,c);a.directives.forEach(function(a){var b=c.instances.get(a.directive.type.reference);Pk(a,b,c);Gk(a,b,c);Fk(a,b,e);Ik(a.directive,b,c);Jk(a.directive,b,c)});a.providers.forEach(function(a){var b=c.instances.get(a.token.reference);Kk(a,b,c)});Sk(c.embeddedView,
  a.children,this.animationOutputs);return null};b.prototype.visitAttr=function(a,b){return null};b.prototype.visitDirective=function(a,b){return null};b.prototype.visitEvent=function(a,b){return null};b.prototype.visitReference=function(a,b){return null};b.prototype.visitVariable=function(a,b){return null};b.prototype.visitDirectiveProperty=function(a,b){return null};b.prototype.visitElementProperty=function(a,b){return null};return b}(),Zk=L("parentRenderNode"),Xk=L("rootSelector"),Mn=function(){return function(b,
  a){this.comp=b;this.placeholder=a}}(),Nn=function(){return function(b,a){this.comp=b;this.placeholder=a}}(),nr=function(){function b(a,b){this.view=a;this.targetDependencies=b;this.nestedViewCount=0;this._animationCompiler=new Hn}b.prototype._isRootNode=function(a){return a.view!==this.view};b.prototype._addRootNodeAndProject=function(a){var b,d=a;for(b=d.view;Vk(d.parent,b);)d=d.parent;b=d;d=b.parent;b=b.sourceAst.ngContentIndex;var e=a instanceof Pd&&a.hasViewContainer?a.appElement:null;this._isRootNode(d)?
  this.view.viewType!==Na.COMPONENT&&this.view.rootNodesOrAppElements.push(p(e)?e:a.renderNode):p(d.component)&&p(b)&&d.addContentNode(b,p(e)?e:a.renderNode)};b.prototype._getParentRenderNode=function(a){for(var b=a.view;Vk(a,b);)a=a.parent;return this._isRootNode(a)?this.view.viewType===Na.COMPONENT?Zk:ga:p(a.component)&&a.component.template.encapsulation!==Ua.Native?ga:a.renderNode};b.prototype.visitBoundText=function(a,b){return this._visitText(a,"",b)};b.prototype.visitText=function(a,b){return this._visitText(a,
  a.value,b)};b.prototype._visitText=function(a,b,d){var c="_text_"+this.view.nodes.length;this.view.fields.push(new Cb(c,ka(this.view.genConfig.renderTypes.renderText)));var f=A.prop(c),g=new Jn(d,this.view,this.view.nodes.length,f,a);a=A.prop(c).set(wb.renderer.callMethod("createText",[this._getParentRenderNode(d),F(b),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,a)])).toStmt();this.view.nodes.push(g);this.view.createMethod.addStmt(a);this._addRootNodeAndProject(g);return f};b.prototype.visitNgContent=
  function(a,b){this.view.createMethod.resetDebugInfo(null,a);var c=this._getParentRenderNode(b),e=wb.projectableNodes.key(F(a.index),new Kc(ka(this.view.genConfig.renderTypes.renderNode)));c!==ga?this.view.createMethod.addStmt(wb.renderer.callMethod("projectNodes",[c,N(K(C.flattenNestedViewRenderNodes)).callFn([e])]).toStmt()):this._isRootNode(b)?this.view.viewType!==Na.COMPONENT&&this.view.rootNodesOrAppElements.push(e):p(b.component)&&p(a.ngContentIndex)&&b.addContentNode(a.ngContentIndex,e);return null};
  b.prototype.visitElement=function(a,b){var c=this,e=this.view.nodes.length,f;f=this.view.createMethod.resetDebugInfoExpr(e,a);f=0===e&&this.view.viewType===Na.HOST?A.callMethod("selectOrCreateHostElement",[F(a.name),Xk,f]):"ng-container"===a.name?wb.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(b),f]):wb.renderer.callMethod("createElement",[this._getParentRenderNode(b),F(a.name),f]);var g="_el_"+e;this.view.fields.push(new Cb(g,ka(this.view.genConfig.renderTypes.renderElement)));
  this.view.createMethod.addStmt(A.prop(g).set(f).toStmt());var g=A.prop(g),h=a.directives.map(function(a){return a.directive});f=h.find(function(a){return a.isComponent});for(var m=rr(a.attrs),m=pr(m,h),r=0;r<m.length;r++){var u=m[r][0];if("ng-container"!==a.name){var v=m[r][1];this.view.createMethod.addStmt(wb.renderer.callMethod("setElementAttribute",[g,F(u),F(v)]).toStmt())}}b=new Pd(b,this.view,e,g,a,f,h,a.providers,a.hasViewContainer,!1,a.references);this.view.nodes.push(b);g=null;p(f)&&(h=new ub({name:"viewFactory_"+
  f.type.name+0}),this.targetDependencies.push(new Mn(f.type,h)),f=f.entryComponents.map(function(a){var b=new ub({name:a.name});c.targetDependencies.push(new Nn(a,b));return b}),b.createComponentFactoryResolver(f),g=L("compView_"+e),b.setComponentView(g),this.view.createMethod.addStmt(g.set(N(h).callFn([wb.viewUtils,b.injector,b.appElement])).toDeclStmt()));b.beforeChildren();this._addRootNodeAndProject(b);Fc(this,a.children,b);b.afterChildren(this.view.nodes.length-e-1);p(g)&&(a=this.view.component.type.isHost?
  wb.projectableNodes:ra(b.contentNodesByNgContentIndex.map(function(a){return yk(a)})),this.view.createMethod.addStmt(g.callMethod("create",[b.getComponent(),a,ga]).toStmt()));return null};b.prototype.visitEmbeddedTemplate=function(a,b){var c=this.view.nodes.length,e="_anchor_"+c;this.view.fields.push(new Cb(e,ka(this.view.genConfig.renderTypes.renderComment)));this.view.createMethod.addStmt(A.prop(e).set(wb.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(b),this.view.createMethod.resetDebugInfoExpr(c,
  a)])).toStmt());var f=A.prop(e),e=a.variables.map(function(a){return[0<a.value.length?a.value:"$implicit",a.name]}),g=a.directives.map(function(a){return a.directive});b=new Pd(b,this.view,c,f,a,null,g,a.providers,a.hasViewContainer,!0,a.references);this.view.nodes.push(b);c=this._animationCompiler.compileComponent(this.view.component,[a]);this.nestedViewCount++;e=new Ln(this.view.component,this.view.genConfig,this.view.pipeMetas,ga,c.triggers,this.view.viewIndex+this.nestedViewCount,b,e);this.nestedViewCount+=
  Tk(e,a.children,this.targetDependencies);b.beforeChildren();this._addRootNodeAndProject(b);b.afterChildren(0);return null};b.prototype.visitAttr=function(a,b){return null};b.prototype.visitDirective=function(a,b){return null};b.prototype.visitEvent=function(a,b){return null};b.prototype.visitReference=function(a,b){return null};b.prototype.visitVariable=function(a,b){return null};b.prototype.visitDirectiveProperty=function(a,b){return null};b.prototype.visitElementProperty=function(a,b){return null};
  return b}(),oy=function(){return function(b,a,c){this.statements=b;this.viewFactoryVar=a;this.dependencies=c}}(),On=function(){function b(a){this._genConfig=a;this._animationCompiler=new Hn}b.prototype.compileComponent=function(a,b,d,e){var c=[],g=this._animationCompiler.compileComponent(a,b),h=[],m=g.triggers;m.forEach(function(a){h.push(a.statesMapStatement);h.push(a.fnStatement)});a=new Ln(a,this._genConfig,e,d,m,0,Pd.createNull(),[]);Tk(a,b,c);Sk(a,b,g.outputs);Uk(a,h);return new oy(h,a.viewFactory.name,
  c)};b.decorators=[{type:V}];b.ctorParameters=[{type:rd}];return b}(),Ke=function(){function b(){}b.prototype.get=function(a){return null};return b}(),py={provide:tl,useValue:"/"},Ci=function(){function b(a){void 0===a&&(a=null);this._packagePrefix=a}b.prototype.resolve=function(a,b){if(p(a)&&0<a.length){b=encodeURI(b).match(zf);a=a.match(zf);if(!p(b[Da.Scheme])){b[Da.Scheme]=a[Da.Scheme];for(var c=Da.Scheme;c<=Da.Port;c++)z(b[c])&&(b[c]=a[c]);"/"!=b[Da.Path][0]&&(a=a[Da.Path],z(a)&&(a="/"),c=a.lastIndexOf("/"),
  a=a.substring(0,c+1)+b[Da.Path],b[Da.Path]=a)}var e=b[Da.Path];if(z(e))a="";else if("/"==e)a="/";else{a="/"==e[0]?"/":"";for(var c="/"===e[e.length-1]?"/":"",f=e.split("/"),g=[],h=e=0;h<f.length;h++){var m=f[h];switch(m){case "":case ".":break;case "..":0<g.length?g.pop():e++;break;default:g.push(m)}}if(""==a){for(;0<e--;)g.unshift("..");0===g.length&&g.push(".")}a=a+g.join("/")+c}e=a;b[Da.Path]=e;a=b[Da.Scheme];c=b[Da.UserInfo];f=b[Da.Domain];g=b[Da.Port];h=b[Da.QueryData];b=b[Da.Fragment];m=[];
  p(a)&&m.push(a+":");p(f)&&(m.push("//"),p(c)&&m.push(c+"@"),m.push(f),p(g)&&m.push(":"+g));p(e)&&m.push(e);p(h)&&m.push("?"+h);p(b)&&m.push("#"+b);b=m.join("")}c=b.match(zf);a=this._packagePrefix;if(p(a)&&p(c)&&"package"==c[Da.Scheme])if(b=c[Da.Path],"asset:"===this._packagePrefix)b=b.split(/\//),b="asset:"+b[0]+"/lib/"+b.slice(1).join("/");else return a=T.stripRight(a,"/"),b=T.stripLeft(b,"/"),a+"/"+b;return b};b.decorators=[{type:V}];b.ctorParameters=[{type:void 0,decorators:[{type:U,args:[tl]}]}];
  return b}(),zf=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([\w\d\-\u0100-\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Da;(function(b){b[b.Scheme=1]="Scheme";b[b.UserInfo=2]="UserInfo";b[b.Domain=3]="Domain";b[b.Port=4]="Port";b[b.Path=5]="Path";b[b.QueryData=6]="QueryData";b[b.Fragment=7]="Fragment"})(Da||(Da={}));var Pn=function(){function b(a,b,d,e){this._resourceLoader=a;this._urlResolver=b;this._htmlParser=d;this._config=e;this._resourceLoaderCache=new Map}b.prototype.clearCache=
  function(){this._resourceLoaderCache.clear()};b.prototype.clearCacheFor=function(a){var b=this;a.isComponent&&(this._resourceLoaderCache.delete(a.template.templateUrl),a.template.externalStylesheets.forEach(function(a){b._resourceLoaderCache.delete(a.moduleUrl)}))};b.prototype._fetch=function(a){var b=this._resourceLoaderCache.get(a);b||(b=this._resourceLoader.get(a),this._resourceLoaderCache.set(a,b));return b};b.prototype.normalizeDirective=function(a){var b=this;if(!a.isComponent)return new Ee(a,
  Promise.resolve(a));var d=null,e;if(p(a.template.template))d=this.normalizeTemplateSync(a.type,a.template),e=Promise.resolve(d);else if(a.template.templateUrl)e=this.normalizeTemplateAsync(a.type,a.template);else throw Error("No template specified for component "+a.type.name);return d&&0===d.styleUrls.length?(d=$k(a,d),new Ee(d,Promise.resolve(d))):new Ee(null,e.then(function(a){return b.normalizeExternalStylesheets(a)}).then(function(b){return $k(a,b)}))};b.prototype.normalizeTemplateSync=function(a,
  b){return this.normalizeLoadedTemplate(a,b,b.template,a.moduleUrl)};b.prototype.normalizeTemplateAsync=function(a,b){var c=this,e=this._urlResolver.resolve(a.moduleUrl,b.templateUrl);return this._fetch(e).then(function(d){return c.normalizeLoadedTemplate(a,b,d,e)})};b.prototype.normalizeLoadedTemplate=function(a,b,d,e){var c=li.fromArray(b.interpolation),c=this._htmlParser.parse(d,a.name,!1,c);if(0<c.errors.length)throw b=c.errors.join("\n"),Error("Template parse errors:\n"+b);var g=this.normalizeStylesheet(new Fe({styles:b.styles,
  styleUrls:b.styleUrls,moduleUrl:a.moduleUrl}));a=new qy;ya(a,c.rootNodes);var h=this.normalizeStylesheet(new Fe({styles:a.styles,styleUrls:a.styleUrls,moduleUrl:e})),c=g.styles.concat(h.styles),g=g.styleUrls.concat(h.styleUrls),h=b.encapsulation;z(h)&&(h=this._config.defaultEncapsulation);h===Ua.Emulated&&0===c.length&&0===g.length&&(h=Ua.None);return new dg({encapsulation:h,template:d,templateUrl:e,styles:c,styleUrls:g,externalStylesheets:b.externalStylesheets,ngContentSelectors:a.ngContentSelectors,
  animations:b.animations,interpolation:b.interpolation})};b.prototype.normalizeExternalStylesheets=function(a){return this._loadMissingExternalStylesheets(a.styleUrls).then(function(b){return new dg({encapsulation:a.encapsulation,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,externalStylesheets:b,ngContentSelectors:a.ngContentSelectors,animations:a.animations,interpolation:a.interpolation})})};b.prototype._loadMissingExternalStylesheets=function(a,b){var c=this;
  void 0===b&&(b=new Map);return Promise.all(a.filter(function(a){return!b.has(a)}).map(function(a){return c._fetch(a).then(function(d){d=c.normalizeStylesheet(new Fe({styles:[d],moduleUrl:a}));b.set(a,d);return c._loadMissingExternalStylesheets(d.styleUrls,b)})})).then(function(a){return Ya.values(b)})};b.prototype.normalizeStylesheet=function(a){var b=this,d=a.styleUrls.filter(fh).map(function(c){return b._urlResolver.resolve(a.moduleUrl,c)}),e=a.styles.map(function(c){c=Fq(b._urlResolver,a.moduleUrl,
  c);d.push.apply(d,c.styleUrls);return c.style});return new Fe({styles:e,styleUrls:d,moduleUrl:a.moduleUrl})};b.decorators=[{type:V}];b.ctorParameters=[{type:Ke},{type:Ci},{type:ui},{type:rd}];return b}(),qy=function(){function b(){this.ngContentSelectors=[];this.styles=[];this.styleUrls=[];this.ngNonBindableStackCount=0}b.prototype.visitElement=function(a,b){b=gh(a);switch(b.type){case Ta.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(b.selectAttr);break;case Ta.STYLE:var c=
  "";a.children.forEach(function(a){a instanceof pi&&(c+=a.value)});this.styles.push(c);break;case Ta.STYLESHEET:this.styleUrls.push(b.hrefAttr)}b.nonBindable&&this.ngNonBindableStackCount++;ya(this,a.children);b.nonBindable&&this.ngNonBindableStackCount--;return null};b.prototype.visitComment=function(a,b){return null};b.prototype.visitAttribute=function(a,b){return null};b.prototype.visitText=function(a,b){return null};b.prototype.visitExpansion=function(a,b){return null};b.prototype.visitExpansionCase=
  function(a,b){return null};return b}(),Di=function(){function b(a){void 0===a&&(a=nc);this._reflector=a}b.prototype.resolve=function(a,b){void 0===b&&(b=!0);var c=this._reflector.annotations(pb(a));if(p(c)&&(c=c.find(Er),p(c)))return b=this._reflector.propMetadata(a),this._mergeWithPropertyMetadata(c,b,a);if(b)throw Error("No Directive annotation found on "+O(a));return null};b.prototype._mergeWithPropertyMetadata=function(a,b,d){var c=[],f=[],g={},h={};na.forEach(b,function(a,b){a.forEach(function(a){if(a instanceof
  Y)p(a.bindingPropertyName)?c.push(b+": "+a.bindingPropertyName):c.push(b);else if(a instanceof ue)p(a.bindingPropertyName)?f.push(b+": "+a.bindingPropertyName):f.push(b);else if(a instanceof hs)p(a.hostPropertyName)?g["["+a.hostPropertyName+"]"]=b:g["["+b+"]"]=b;else if(a instanceof is){var d=p(a.args)?a.args.join(", "):"";g["("+a.eventName+")"]=b+"("+d+")"}else a instanceof kl&&(h[b]=a)})});return this._merge(a,c,f,g,h,d)};b.prototype._extractPublicName=function(a){return mf(a,[null,a])[1].trim()};
  b.prototype._merge=function(a,b,d,e,f,g){var c=this;if(p(a.inputs)){var m=a.inputs.map(function(a){return c._extractPublicName(a)});b.forEach(function(a){a=c._extractPublicName(a);if(-1<m.indexOf(a))throw Error("Input '"+a+"' defined multiple times in '"+O(g)+"'");});b=a.inputs.concat(b)}if(p(a.outputs)){var r=a.outputs.map(function(a){return c._extractPublicName(a)});d.forEach(function(a){a=c._extractPublicName(a);if(-1<r.indexOf(a))throw Error("Output event '"+a+"' defined multiple times in '"+
  O(g)+"'");});d=a.outputs.concat(d)}e=p(a.host)?na.merge(a.host,e):e;f=p(a.queries)?na.merge(a.queries,f):f;return a instanceof Oc?new Oc({selector:a.selector,inputs:b,outputs:d,host:e,exportAs:a.exportAs,moduleId:a.moduleId,queries:f,changeDetection:a.changeDetection,providers:a.providers,viewProviders:a.viewProviders,entryComponents:a.entryComponents,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,encapsulation:a.encapsulation,animations:a.animations,interpolation:a.interpolation}):
  new da({selector:a.selector,inputs:b,outputs:d,host:e,exportAs:a.exportAs,queries:f,providers:a.providers})};b.decorators=[{type:V}];b.ctorParameters=[{type:fd}];return b}(),ry=Ya.createFromPairs([[pa.OnInit,ls],[pa.OnDestroy,ns],[pa.DoCheck,ms],[pa.OnChanges,ks],[pa.AfterContentInit,os],[pa.AfterContentChecked,ps],[pa.AfterViewInit,qs],[pa.AfterViewChecked,rs]]),sy=Ya.createFromPairs([[pa.OnInit,"ngOnInit"],[pa.OnDestroy,"ngOnDestroy"],[pa.DoCheck,"ngDoCheck"],[pa.OnChanges,"ngOnChanges"],[pa.AfterContentInit,
  "ngAfterContentInit"],[pa.AfterContentChecked,"ngAfterContentChecked"],[pa.AfterViewInit,"ngAfterViewInit"],[pa.AfterViewChecked,"ngAfterViewChecked"]]),Qn=function(){function b(a){void 0===a&&(a=nc);this._reflector=a}b.prototype.resolve=function(a,b){void 0===b&&(b=!0);var c=this._reflector.annotations(a).find(Fr);if(p(c))return c;if(b)throw Error("No NgModule metadata found for '"+O(a)+"'.");return null};b.decorators=[{type:V}];b.ctorParameters=[{type:fd}];return b}(),Rn=function(){function b(a){void 0===
  a&&(a=nc);this._reflector=a}b.prototype.resolve=function(a,b){void 0===b&&(b=!0);var c=this._reflector.annotations(pb(a));if(p(c)&&(c=c.find(Gr),p(c)))return c;if(b)throw Error("No Pipe decorator found on "+O(a));return null};b.decorators=[{type:V}];b.ctorParameters=[{type:fd}];return b}(),ty=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Sn=function(){function b(a,b,d,e,f){void 0===
  f&&(f=nc);this._ngModuleResolver=a;this._directiveResolver=b;this._pipeResolver=d;this._schemaRegistry=e;this._reflector=f;this._directiveCache=new Map;this._pipeCache=new Map;this._ngModuleCache=new Map;this._ngModuleOfTypes=new Map;this._anonymousTypes=new Map;this._anonymousTypeIndex=0}b.prototype.sanitizeTokenName=function(a){var b=O(a);0<=b.indexOf("(")&&(b=this._anonymousTypes.get(a),z(b)&&(this._anonymousTypes.set(a,this._anonymousTypeIndex++),b=this._anonymousTypes.get(a)),b="anonymous_token_"+
  b+"_");return nf(b)};b.prototype.clearCacheFor=function(a){this._directiveCache.delete(a);this._pipeCache.delete(a);this._ngModuleOfTypes.delete(a);this._ngModuleCache.clear()};b.prototype.clearCache=function(){this._directiveCache.clear();this._pipeCache.clear();this._ngModuleCache.clear();this._ngModuleOfTypes.clear()};b.prototype.getAnimationEntryMetadata=function(a){var b=this,d=a.definitions.map(function(a){return b.getAnimationStateMetadata(a)});return new vw(a.name,d)};b.prototype.getAnimationStateMetadata=
  function(a){if(a instanceof At){var b=this.getAnimationStyleMetadata(a.styles);return new pk(a.stateNameExpr,b)}return a instanceof Bt?new ww(a.stateChangeExpr,this.getAnimationMetadata(a.steps)):null};b.prototype.getAnimationStyleMetadata=function(a){return new Nd(a.offset,a.styles)};b.prototype.getAnimationMetadata=function(a){var b=this;if(a instanceof Dt)return this.getAnimationStyleMetadata(a);if(a instanceof Ct)return new kh(a.steps.map(function(a){return b.getAnimationStyleMetadata(a)}));if(a instanceof
  Et){var d=this.getAnimationMetadata(a.styles);return new jh(a.timings,d)}return a instanceof Ph?(d=a.steps.map(function(a){return b.getAnimationMetadata(a)}),a instanceof Ft?new Ld(d):new vf(d)):null};b.prototype.getDirectiveMetadata=function(a,b){var c=this;void 0===b&&(b=!0);a=pb(a);var e=this._directiveCache.get(a);if(z(e)){b=this._directiveResolver.resolve(a,b);if(!b)return null;var f=null,g=null,e=[],h=Pb(a),m=[],r=b.selector;if(b instanceof Oc)bh("styles",b.styles),Zj("interpolation",b.interpolation),
  f=p(b.animations)?b.animations.map(function(a){return c.getAnimationEntryMetadata(a)}):null,bh("styles",b.styles),bh("styleUrls",b.styleUrls),f=new dg({encapsulation:b.encapsulation,template:b.template,templateUrl:b.templateUrl,styles:b.styles,styleUrls:b.styleUrls,animations:f,interpolation:b.interpolation}),g=b.changeDetection,p(b.viewProviders)&&(e=this.getProvidersMetadata(b.viewProviders,m,'viewProviders for "'+O(a)+'"')),h=Hr(this._reflector,a,b),b.entryComponents&&(m=Gb(b.entryComponents).map(function(a){return c.getTypeMetadata(a,
  Pb(a))}).concat(m)),r||(r=this._schemaRegistry.getDefaultComponentElementName());else if(!r)throw Error("Directive "+O(a)+" has no selector, please add it!");var u=[];p(b.providers)&&(u=this.getProvidersMetadata(b.providers,m,'providers for "'+O(a)+'"'));var v=[],k=[];p(b.queries)&&(v=this.getQueriesMetadata(b.queries,!1,a),k=this.getQueriesMetadata(b.queries,!0,a));e=vh.create({selector:r,exportAs:b.exportAs,isComponent:p(f),type:this.getTypeMetadata(a,h),template:f,changeDetection:g,inputs:b.inputs,
  outputs:b.outputs,host:b.host,providers:u,viewProviders:e,queries:v,viewQueries:k,entryComponents:m});this._directiveCache.set(a,e)}return e};b.prototype.getNgModuleMetadata=function(a,b){var c,e,f=this;void 0===b&&(b=!0);a=pb(a);var g=this._ngModuleCache.get(a);if(!g){b=this._ngModuleResolver.resolve(a,b);if(!b)return null;var h=[],m=[],r=[],u=[],v=[],k=[],l=[],n=[],g=[],p=[];b.imports&&Gb(b.imports).forEach(function(b){var c;Qd(b)?c=b:b&&b.ngModule&&(c=b.ngModule,b.providers&&l.push.apply(l,f.getProvidersMetadata(b.providers,
  n,"provider for the NgModule '"+O(c)+"'")));if(c){c=f.getNgModuleMetadata(c,!1);if(null===c)throw Error("Unexpected "+f._getTypeDescriptor(b)+" '"+O(b)+"' imported by the module '"+O(a)+"'");v.push(c)}else throw Error("Unexpected value '"+O(b)+"' imported by the module '"+O(a)+"'");});b.exports&&Gb(b.exports).forEach(function(b){if(!Qd(b))throw Error("Unexpected value '"+O(b)+"' exported by the module '"+O(a)+"'");var c;if(c=f.getDirectiveMetadata(b,!1))m.push(c);else if(c=f.getPipeMetadata(b,!1))u.push(c);
  else if(c=f.getNgModuleMetadata(b,!1))k.push(c);else throw Error("Unexpected "+f._getTypeDescriptor(b)+" '"+O(b)+"' exported by the module '"+O(a)+"'");});var q=this._getTransitiveNgModuleMetadata(v,k);b.declarations&&Gb(b.declarations).forEach(function(b){if(!Qd(b))throw Error("Unexpected value '"+O(b)+"' declared by the module '"+O(a)+"'");var c;if(c=f.getDirectiveMetadata(b,!1))f._addDirectiveToModule(c,a,q,h,!0);else if(c=f.getPipeMetadata(b,!1))f._addPipeToModule(c,a,q,r,!0);else throw Error("Unexpected "+
  f._getTypeDescriptor(b)+" '"+O(b)+"' declared by the module '"+O(a)+"'");});b.providers&&l.push.apply(l,this.getProvidersMetadata(b.providers,n,"provider for the NgModule '"+O(a)+"'"));b.entryComponents&&n.push.apply(n,Gb(b.entryComponents).map(function(a){return f.getTypeMetadata(a,Pb(a))}));if(b.bootstrap){var t=Gb(b.bootstrap).map(function(b){if(!Qd(b))throw Error("Unexpected value '"+O(b)+"' used in the bootstrap property of module '"+O(a)+"'");return f.getTypeMetadata(b,Pb(b))});g.push.apply(g,
  t)}n.push.apply(n,g);b.schemas&&p.push.apply(p,Gb(b.schemas));(e=q.entryComponents).push.apply(e,n);(c=q.providers).push.apply(c,l);g=new Aw({type:this.getTypeMetadata(a,Pb(a)),providers:l,entryComponents:n,bootstrapComponents:g,schemas:p,declaredDirectives:h,exportedDirectives:m,declaredPipes:r,exportedPipes:u,importedModules:v,exportedModules:k,transitiveModule:q,id:b.id});q.modules.push(g);this._verifyModule(g);this._ngModuleCache.set(a,g)}return g};b.prototype._verifyModule=function(a){a.exportedDirectives.forEach(function(b){if(!a.transitiveModule.directivesSet.has(b.type.reference))throw Error("Can't export directive "+
  O(b.type.reference)+" from "+O(a.type.reference)+" as it was neither declared nor imported!");});a.exportedPipes.forEach(function(b){if(!a.transitiveModule.pipesSet.has(b.type.reference))throw Error("Can't export pipe "+O(b.type.reference)+" from "+O(a.type.reference)+" as it was neither declared nor imported!");})};b.prototype._getTypeDescriptor=function(a){return null!==this._directiveResolver.resolve(a,!1)?"directive":null!==this._pipeResolver.resolve(a,!1)?"pipe":null!==this._ngModuleResolver.resolve(a,
  !1)?"module":a.provide?"provider":"value"};b.prototype._addTypeToModule=function(a,b){var c=this._ngModuleOfTypes.get(a);if(c&&c!==b)throw Error("Type "+O(a)+" is part of the declarations of 2 modules: "+O(c)+" and "+O(b)+"! "+("Please consider moving "+O(a)+" to a higher module that imports "+O(c)+" and "+O(b)+". ")+("You can also create a new NgModule that exports and includes "+O(a)+" then import that NgModule in "+O(c)+" and "+O(b)+"."));this._ngModuleOfTypes.set(a,b)};b.prototype._getTransitiveNgModuleMetadata=
  function(a,b){b=wh(a.concat(b),!0);var c=Gb(b.map(function(a){return a.providers})),e=Gb(b.map(function(a){return a.entryComponents})),f=wh(a,!1);a=Gb(f.map(function(a){return a.exportedDirectives}));f=Gb(f.map(function(a){return a.exportedPipes}));return new Bw(b,c,e,a,f)};b.prototype._addDirectiveToModule=function(a,b,d,e,f){void 0===f&&(f=!1);return f||!d.directivesSet.has(a.type.reference)?(d.directivesSet.add(a.type.reference),d.directives.push(a),e.push(a),this._addTypeToModule(a.type.reference,
  b),!0):!1};b.prototype._addPipeToModule=function(a,b,d,e,f){void 0===f&&(f=!1);return f||!d.pipesSet.has(a.type.reference)?(d.pipesSet.add(a.type.reference),d.pipes.push(a),e.push(a),this._addTypeToModule(a.type.reference,b),!0):!1};b.prototype.getTypeMetadata=function(a,b,d){void 0===d&&(d=null);a=pb(a);return new sf({name:this.sanitizeTokenName(a),moduleUrl:b,reference:a,diDeps:this.getDependenciesMetadata(a,d),lifecycleHooks:js.filter(function(b){var c=a,d=ry.get(b);b=sy.get(b);return nc.hasLifecycleHook(c,
  d,b)})})};b.prototype.getFactoryMetadata=function(a,b,d){void 0===d&&(d=null);a=pb(a);return new xw({name:this.sanitizeTokenName(a),moduleUrl:b,reference:a,diDeps:this.getDependenciesMetadata(a,d)})};b.prototype.getPipeMetadata=function(a,b){void 0===b&&(b=!0);a=pb(a);var c=this._pipeCache.get(a);if(z(c)){b=this._pipeResolver.resolve(a,b);if(!b)return null;c=new zw({type:this.getTypeMetadata(a,Pb(a)),name:b.name,pure:b.pure});this._pipeCache.set(a,c)}return c};b.prototype.getDependenciesMetadata=
  function(a,b){var c=this,e=!1;b=p(b)?b:this._reflector.parameters(a);z(b)&&(b=[]);b=b.map(function(b){var d=!1,f=!1,m=!1,r=!1,u=!1,v=null,k=null,l=null;Array.isArray(b)?b.forEach(function(a){a instanceof yb?f=!0:a instanceof va?m=!0:a instanceof Vb?r=!0:a instanceof W?u=!0:a instanceof jl?(d=!0,l=a.attributeName):a instanceof kl?a.isViewQuery?k=a:v=a:a instanceof U?l=a.token:Qd(a)&&z(l)&&(l=a)}):l=b;return z(l)?(e=!0,null):new hc({isAttribute:d,isHost:f,isSelf:m,isSkipSelf:r,isOptional:u,query:p(v)?
  c.getQueryMetadata(v,null,a):null,viewQuery:p(k)?c.getQueryMetadata(k,null,a):null,token:c.getTokenMetadata(l)})});if(e)throw b=b.map(function(a){return a?O(a.token):"?"}).join(", "),Error("Can't resolve all parameters for "+O(a)+": ("+b+").");return b};b.prototype.getTokenMetadata=function(a){a=pb(a);return Xb(a)?new Hc({value:a}):new Hc({identifier:new ub({reference:a,name:this.sanitizeTokenName(a),moduleUrl:Pb(a)})})};b.prototype.getProvidersMetadata=function(a,b,d){var c=this,f=[];a.forEach(function(g,
  e){(g=pb(g))&&"object"==typeof g&&g.hasOwnProperty("provide")&&(g=new ji(g.provide,g));var h;if(Array.isArray(g))h=c.getProvidersMetadata(g,b,d);else if(g instanceof ji)c.getTokenMetadata(g.token).reference===za(C.ANALYZE_FOR_ENTRY_COMPONENTS).reference?b.push.apply(b,c._getEntryComponentsFromProvider(g)):h=c.getProviderMetadata(g);else if(Qd(g))h=c.getTypeMetadata(g,Pb(g));else throw g=a.reduce(function(a,b,c){c<e?a.push(""+O(b)):c==e?a.push("?"+O(b)+"?"):c==e+1&&a.push("...");return a},[]).join(", "),
  Error("Invalid "+(d?d:"provider")+" - only instances of Provider and Type are allowed, got: ["+g+"]");h&&f.push(h)});return f};b.prototype._getEntryComponentsFromProvider=function(a){var b=this,d=[],e=[];if(a.useFactory||a.useExisting||a.useClass)throw Error("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!");if(!a.multi)throw Error("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi \x3d true'!");al(a.useValue,e);e.forEach(function(a){(a=b.getDirectiveMetadata(a.reference,
  !1))&&d.push(a.type)});return d};b.prototype.getProviderMetadata=function(a){var b,d=null,e=null;p(a.useClass)?(d=this.getTypeMetadata(a.useClass,Pb(a.useClass),a.dependencies),b=d.diDeps):p(a.useFactory)&&(e=this.getFactoryMetadata(a.useFactory,Pb(a.useFactory),a.dependencies),b=e.diDeps);return new Ic({token:this.getTokenMetadata(a.token),useClass:d,useValue:al(a.useValue,[]),useFactory:e,useExisting:p(a.useExisting)?this.getTokenMetadata(a.useExisting):null,deps:b,multi:a.multi})};b.prototype.getQueriesMetadata=
  function(a,b,d){var c=this,f=[];na.forEach(a,function(a,e){a.isViewQuery===b&&f.push(c.getQueryMetadata(a,e,d))});return f};b.prototype._queryVarBindings=function(a){return T.split(a,/\s*,\s*/g)};b.prototype.getQueryMetadata=function(a,b,d){var c=this;if(Xb(a.selector))d=this._queryVarBindings(a.selector).map(function(a){return c.getTokenMetadata(a)});else{if(!p(a.selector))throw Error("Can't construct a query for the property \""+b+'" of "'+O(d)+"\" since the query selector wasn't defined.");d=[this.getTokenMetadata(a.selector)]}return new yw({selectors:d,
  first:a.first,descendants:a.descendants,propertyName:b,read:p(a.read)?this.getTokenMetadata(a.read):null})};b.decorators=[{type:V}];b.ctorParameters=[{type:Qn},{type:Di},{type:Rn},{type:hg},{type:fd}];return b}(),Ir=function(b){function a(){b.apply(this,arguments)}ty(a,b);a.prototype.visitOther=function(a,b){a=of(a)?new ub({name:a.name,moduleUrl:a.filePath,reference:a}):new ub({reference:a});b.push(a);return a};return a}(tw),uy=function(){return function(b,a){this.comp=b;this.placeholder=a}}(),vy=
  function(){return function(b,a,c){this.statements=b;this.ngModuleFactoryVar=a;this.dependencies=c}}(),Tn=function(){function b(){}b.prototype.compile=function(a,b){var c=p(a.type.moduleUrl)?"in NgModule "+a.type.name+" in "+a.type.moduleUrl:"in NgModule "+a.type.name,c=new nn("",c),c=new tc(new oi(c,null,null,null),new oi(c,null,null,null)),e=[],f=[],g=a.transitiveModule.entryComponents.map(function(b){var c=new ub({name:b.name});-1<a.bootstrapComponents.indexOf(b)&&f.push(c);e.push(new uy(b,c));
  return c}),h=new wy(a,g,f,c);(new Vx(a,b,c)).parse().forEach(function(a){return h.addProvider(a)});c=h.build();b=a.type.name+"NgFactory";g=L(b).set(N(K(C.NgModuleFactory)).instantiate([L(c.name),N(a.type)],ka(K(C.NgModuleFactory),[ka(a.type)],[mc.Const]))).toDeclStmt(null,[Fa.Final]);c=[c,g];a.id&&(g=N(K(C.RegisterModuleFactoryFn)).callFn([F(a.id),L(b)]).toStmt(),c.push(g));return new vy(c,b,e)};b.decorators=[{type:V}];b.ctorParameters=[];return b}(),wy=function(){function b(a,b,d,e){this._ngModuleMeta=
  a;this._entryComponentFactories=b;this._bootstrapComponentFactories=d;this._sourceSpan=e;this._tokens=[];this._instances=new Map;this._fields=[];this._createStmts=[];this._destroyStmts=[];this._getters=[]}b.prototype.addProvider=function(a){var b=this,d=a.providers.map(function(a){return b._getProviderValue(a)}),d=this._createProviderProperty("_"+a.token.name+"_"+this._instances.size,a,d,a.multiProvider,a.eager);-1!==a.lifecycleHooks.indexOf(pa.OnDestroy)&&this._destroyStmts.push(d.callMethod("ngOnDestroy",
  []).toStmt());this._tokens.push(a.token);this._instances.set(a.token.reference,d)};b.prototype.build=function(){var a=this,b=this._tokens.map(function(b){var c=a._instances.get(b.reference);return new Aa(kg.token.identical(bd(b)),[new Za(c)])}),b=[new Eb("createInternal",[],this._createStmts.concat(new Za(this._instances.get(this._ngModuleMeta.type.reference))),ka(this._ngModuleMeta.type)),new Eb("getInternal",[new Ca(kg.token.name,ta),new Ca(kg.notFoundResult.name,ta)],b.concat([new Za(kg.notFoundResult)]),
  ta),new Eb("destroyInternal",[],this._destroyStmts)],d=new Eb(null,[new Ca(Ei.parent.name,ka(K(C.Injector)))],[Wk.callFn([L(Ei.parent.name),ra(this._entryComponentFactories.map(function(a){return N(a)})),ra(this._bootstrapComponentFactories.map(function(a){return N(a)}))]).toStmt()]);return new Yk(this._ngModuleMeta.type.name+"Injector",N(K(C.NgModuleInjector),[ka(this._ngModuleMeta.type)]),this._fields,this._getters,d,b)};b.prototype._getProviderValue=function(a){var b=this;if(p(a.useExisting))a=
  this._getDependency(new hc({token:a.useExisting}));else if(p(a.useFactory)){var d=p(a.deps)?a.deps:a.useFactory.diDeps,d=d.map(function(a){return b._getDependency(a)});a=N(a.useFactory).callFn(d)}else p(a.useClass)?(d=p(a.deps)?a.deps:a.useClass.diDeps,d=d.map(function(a){return b._getDependency(a)}),a=N(a.useClass).instantiate(d,ka(a.useClass))):a=xk(a.useValue);return a};b.prototype._createProviderProperty=function(a,b,d,e,f){e?(b=ra(d),d=new Kc(ta)):(b=d[0],d=d[0].type);z(d)&&(d=ta);f?(this._fields.push(new Cb(a,
  d)),this._createStmts.push(A.prop(a).set(b).toStmt())):(f="_"+a,this._fields.push(new Cb(f,d)),f=[new Aa(A.prop(f).isBlank(),[A.prop(f).set(b).toStmt()]),new Za(A.prop(f))],this._getters.push(new Ak(a,f,d)));return A.prop(a)};b.prototype._getDependency=function(a){var b=null;a.isValue&&(b=F(a.value));a.isSkipSelf||(!a.token||a.token.reference!==za(C.Injector).reference&&a.token.reference!==za(C.ComponentFactoryResolver).reference||(b=A),z(b)&&(b=this._instances.get(a.token.reference)));z(b)&&(b=[bd(a.token)],
  a.isOptional&&b.push(ga),b=Ei.parent.callMethod("get",b));return b};return b}(),Ei=function(){function b(){}b.parent=A.prop("parent");return b}(),kg=function(){function b(){}b.token=L("token");b.notFoundResult=L("notFoundResult");return b}(),Jr=/'|\\|\n|\r|\$/g,Kr=/^[$A-Z_][0-9A-Z_$]*$/i,Le=L("error"),Fi=L("stack"),Un=function(){return function(b){this.indent=b;this.parts=[]}}(),cl=function(){function b(a,b){this._exportedVars=a;this._indent=b;this._classes=[];this._lines=[new Un(b)]}b.createRoot=
  function(a){return new b(a,0)};Object.defineProperty(b.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0});b.prototype.isExportedVar=function(a){return-1!==this._exportedVars.indexOf(a)};b.prototype.println=function(a){void 0===a&&(a="");this.print(a,!0)};b.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length};b.prototype.print=function(a,b){void 0===b&&(b=!1);0<a.length&&this._currentLine.parts.push(a);b&&this._lines.push(new Un(this._indent))};
  b.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()};b.prototype.incIndent=function(){this._indent++;this._currentLine.indent=this._indent};b.prototype.decIndent=function(){this._indent--;this._currentLine.indent=this._indent};b.prototype.pushClass=function(a){this._classes.push(a)};b.prototype.popClass=function(){return this._classes.pop()};Object.defineProperty(b.prototype,"currentClass",{get:function(){return 0<this._classes.length?this._classes[this._classes.length-
  1]:null},enumerable:!0,configurable:!0});b.prototype.toSource=function(){var a=this._lines;0===a[a.length-1].parts.length&&(a=a.slice(0,a.length-1));return a.map(function(a){if(0<a.parts.length){for(var b="",c=0;c<a.indent;c++)b+="  ";return b+a.parts.join("")}return""}).join("\n")};return b}(),Vn=function(){function b(a){this._escapeDollarInStrings=a}b.prototype.visitExpressionStmt=function(a,b){a.expr.visitExpression(this,b);b.println(";");return null};b.prototype.visitReturnStmt=function(a,b){b.print("return ");
  a.value.visitExpression(this,b);b.println(";");return null};b.prototype.visitIfStmt=function(a,b){b.print("if (");a.condition.visitExpression(this,b);b.print(") {");var c=p(a.falseCase)&&0<a.falseCase.length;1>=a.trueCase.length&&!c?(b.print(" "),this.visitAllStatements(a.trueCase,b),b.removeEmptyLastLine(),b.print(" ")):(b.println(),b.incIndent(),this.visitAllStatements(a.trueCase,b),b.decIndent(),c&&(b.println("} else {"),b.incIndent(),this.visitAllStatements(a.falseCase,b),b.decIndent()));b.println("}");
  return null};b.prototype.visitThrowStmt=function(a,b){b.print("throw ");a.error.visitExpression(this,b);b.println(";");return null};b.prototype.visitCommentStmt=function(a,b){a.comment.split("\n").forEach(function(a){b.println("// "+a)});return null};b.prototype.visitWriteVarExpr=function(a,b){var c=b.lineIsEmpty();c||b.print("(");b.print(a.name+" \x3d ");a.value.visitExpression(this,b);c||b.print(")");return null};b.prototype.visitWriteKeyExpr=function(a,b){var c=b.lineIsEmpty();c||b.print("(");
  a.receiver.visitExpression(this,b);b.print("[");a.index.visitExpression(this,b);b.print("] \x3d ");a.value.visitExpression(this,b);c||b.print(")");return null};b.prototype.visitWritePropExpr=function(a,b){var c=b.lineIsEmpty();c||b.print("(");a.receiver.visitExpression(this,b);b.print("."+a.name+" \x3d ");a.value.visitExpression(this,b);c||b.print(")");return null};b.prototype.visitInvokeMethodExpr=function(a,b){a.receiver.visitExpression(this,b);var c=a.name;if(p(a.builtin)&&(c=this.getBuiltinMethodName(a.builtin),
  z(c)))return null;b.print("."+c+"(");this.visitAllExpressions(a.args,b,",");b.print(")");return null};b.prototype.visitInvokeFunctionExpr=function(a,b){a.fn.visitExpression(this,b);b.print("(");this.visitAllExpressions(a.args,b,",");b.print(")");return null};b.prototype.visitReadVarExpr=function(a,b){var c=a.name;if(p(a.builtin))switch(a.builtin){case Pa.Super:c="super";break;case Pa.This:c="this";break;case Pa.CatchError:c=Le.name;break;case Pa.CatchStack:c=Fi.name;break;default:throw Error("Unknown builtin variable "+
  a.builtin);}b.print(c);return null};b.prototype.visitInstantiateExpr=function(a,b){b.print("new ");a.classExpr.visitExpression(this,b);b.print("(");this.visitAllExpressions(a.args,b,",");b.print(")");return null};b.prototype.visitLiteralExpr=function(a,b,d){void 0===d&&(d="null");a=a.value;Xb(a)?b.print(bl(a,this._escapeDollarInStrings)):z(a)?b.print(d):b.print(""+a);return null};b.prototype.visitConditionalExpr=function(a,b){b.print("(");a.condition.visitExpression(this,b);b.print("? ");a.trueCase.visitExpression(this,
  b);b.print(": ");a.falseCase.visitExpression(this,b);b.print(")");return null};b.prototype.visitNotExpr=function(a,b){b.print("!");a.condition.visitExpression(this,b);return null};b.prototype.visitBinaryOperatorExpr=function(a,b){var c;switch(a.operator){case H.Equals:c="\x3d\x3d";break;case H.Identical:c="\x3d\x3d\x3d";break;case H.NotEquals:c="!\x3d";break;case H.NotIdentical:c="!\x3d\x3d";break;case H.And:c="\x26\x26";break;case H.Or:c="||";break;case H.Plus:c="+";break;case H.Minus:c="-";break;
  case H.Divide:c="/";break;case H.Multiply:c="*";break;case H.Modulo:c="%";break;case H.Lower:c="\x3c";break;case H.LowerEquals:c="\x3c\x3d";break;case H.Bigger:c="\x3e";break;case H.BiggerEquals:c="\x3e\x3d";break;default:throw Error("Unknown operator "+a.operator);}b.print("(");a.lhs.visitExpression(this,b);b.print(" "+c+" ");a.rhs.visitExpression(this,b);b.print(")");return null};b.prototype.visitReadPropExpr=function(a,b){a.receiver.visitExpression(this,b);b.print(".");b.print(a.name);return null};
  b.prototype.visitReadKeyExpr=function(a,b){a.receiver.visitExpression(this,b);b.print("[");a.index.visitExpression(this,b);b.print("]");return null};b.prototype.visitLiteralArrayExpr=function(a,b){var c=1<a.entries.length;b.print("[",c);b.incIndent();this.visitAllExpressions(a.entries,b,",",c);b.decIndent();b.print("]",c);return null};b.prototype.visitLiteralMapExpr=function(a,b){var c=this,e=1<a.entries.length;b.print("{",e);b.incIndent();this.visitAllObjects(function(a){b.print(bl(a[0],c._escapeDollarInStrings,
  !1)+": ");a[1].visitExpression(c,b)},a.entries,b,",",e);b.decIndent();b.print("}",e);return null};b.prototype.visitAllExpressions=function(a,b,d,e){var c=this;void 0===e&&(e=!1);this.visitAllObjects(function(a){return a.visitExpression(c,b)},a,b,d,e)};b.prototype.visitAllObjects=function(a,b,d,e,f){void 0===f&&(f=!1);for(var c=0;c<b.length;c++)0<c&&d.print(e,f),a(b[c]);f&&d.println()};b.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})};return b}(),
  xy=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Mr=function(b){function a(a){b.call(this,!1);this._moduleUrl=a;this.importsWithPrefixes=new Map}xy(a,b);a.prototype.visitType=function(a,b,e){void 0===e&&(e="any");p(a)?a.visitType(this,b):b.print(e)};a.prototype.visitLiteralExpr=function(a,d){b.prototype.visitLiteralExpr.call(this,a,d,"(null as any)")};a.prototype.visitExternalExpr=
  function(a,b){this._visitIdentifier(a.value,a.typeParams,b);return null};a.prototype.visitDeclareVarStmt=function(a,b){b.isExportedVar(a.name)&&b.print("export ");a.hasModifier(Fa.Final)?b.print("const"):b.print("var");b.print(" "+a.name+":");this.visitType(a.type,b);b.print(" \x3d ");a.value.visitExpression(this,b);b.println(";");return null};a.prototype.visitCastExpr=function(a,b){b.print("(\x3c");a.type.visitType(this,b);b.print("\x3e");a.value.visitExpression(this,b);b.print(")");return null};
  a.prototype.visitDeclareClassStmt=function(a,b){var c=this;b.pushClass(a);b.isExportedVar(a.name)&&b.print("export ");b.print("class "+a.name);p(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b));b.println(" {");b.incIndent();a.fields.forEach(function(a){return c._visitClassField(a,b)});p(a.constructorMethod)&&this._visitClassConstructor(a,b);a.getters.forEach(function(a){return c._visitClassGetter(a,b)});a.methods.forEach(function(a){return c._visitClassMethod(a,b)});b.decIndent();
  b.println("}");b.popClass();return null};a.prototype._visitClassField=function(a,b){a.hasModifier(Fa.Private)&&b.print("/*private*/ ");b.print(a.name);b.print(":");this.visitType(a.type,b);b.println(";")};a.prototype._visitClassGetter=function(a,b){a.hasModifier(Fa.Private)&&b.print("private ");b.print("get "+a.name+"()");b.print(":");this.visitType(a.type,b);b.println(" {");b.incIndent();this.visitAllStatements(a.body,b);b.decIndent();b.println("}")};a.prototype._visitClassConstructor=function(a,
  b){b.print("constructor(");this._visitParams(a.constructorMethod.params,b);b.println(") {");b.incIndent();this.visitAllStatements(a.constructorMethod.body,b);b.decIndent();b.println("}")};a.prototype._visitClassMethod=function(a,b){a.hasModifier(Fa.Private)&&b.print("private ");b.print(a.name+"(");this._visitParams(a.params,b);b.print("):");this.visitType(a.type,b,"void");b.println(" {");b.incIndent();this.visitAllStatements(a.body,b);b.decIndent();b.println("}")};a.prototype.visitFunctionExpr=function(a,
  b){b.print("(");this._visitParams(a.params,b);b.print("):");this.visitType(a.type,b,"void");b.println(" \x3d\x3e {");b.incIndent();this.visitAllStatements(a.statements,b);b.decIndent();b.print("}");return null};a.prototype.visitDeclareFunctionStmt=function(a,b){b.isExportedVar(a.name)&&b.print("export ");b.print("function "+a.name+"(");this._visitParams(a.params,b);b.print("):");this.visitType(a.type,b,"void");b.println(" {");b.incIndent();this.visitAllStatements(a.statements,b);b.decIndent();b.println("}");
  return null};a.prototype.visitTryCatchStmt=function(a,b){b.println("try {");b.incIndent();this.visitAllStatements(a.bodyStmts,b);b.decIndent();b.println("} catch ("+Le.name+") {");b.incIndent();a=[Fi.set(Le.prop("stack")).toDeclStmt(null,[Fa.Final])].concat(a.catchStmts);this.visitAllStatements(a,b);b.decIndent();b.println("}");return null};a.prototype.visitBuiltintType=function(a,b){switch(a.name){case nb.Bool:a="boolean";break;case nb.Dynamic:a="any";break;case nb.Function:a="Function";break;case nb.Number:a=
  "number";break;case nb.Int:a="number";break;case nb.String:a="string";break;default:throw Error("Unsupported builtin type "+a.name);}b.print(a);return null};a.prototype.visitExternalType=function(a,b){this._visitIdentifier(a.value,a.typeParams,b);return null};a.prototype.visitArrayType=function(a,b){this.visitType(a.of,b);b.print("[]");return null};a.prototype.visitMapType=function(a,b){b.print("{[key: string]:");this.visitType(a.valueType,b);b.print("}");return null};a.prototype.getBuiltinMethodName=
  function(a){switch(a){case Ma.ConcatArray:a="concat";break;case Ma.SubscribeObservable:a="subscribe";break;case Ma.Bind:a="bind";break;default:throw Error("Unknown builtin method: "+a);}return a};a.prototype._visitParams=function(a,b){var c=this;this.visitAllObjects(function(a){b.print(a.name);b.print(":");c.visitType(a.type,b)},a,b,",")};a.prototype._visitIdentifier=function(a,b,e){var c=this;if(z(a.name))throw Error("Internal error: unknown identifier "+a);if(p(a.moduleUrl)&&a.moduleUrl!=this._moduleUrl){var d=
  this.importsWithPrefixes.get(a.moduleUrl);z(d)&&(d="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a.moduleUrl,d));e.print(d+".")}a.reference&&a.reference.members?(e.print(a.reference.name),e.print("."),e.print(a.reference.members.join("."))):e.print(a.name);p(b)&&0<b.length&&(e.print("\x3c"),this.visitAllObjects(function(a){return a.visitType(c,e)},b,e,","),e.print("\x3e"))};return a}(Vn),Af=function(){function b(a,b,d,e){this.parent=a;this.instance=b;this.className=d;this.vars=
  e}b.prototype.createChildWihtLocalVars=function(){return new b(this,this.instance,this.className,new Map)};return b}(),Wn=function(){return function(b){this.value=b}}(),Nr=function(){function b(){}b.prototype.debugAst=function(a){return Lr(a)};b.prototype.visitDeclareVarStmt=function(a,b){b.vars.set(a.name,a.value.visitExpression(this,b));return null};b.prototype.visitWriteVarExpr=function(a,b){for(var c=a.value.visitExpression(this,b);null!=b;){if(b.vars.has(a.name))return b.vars.set(a.name,c),c;
  b=b.parent}throw Error("Not declared variable "+a.name);};b.prototype.visitReadVarExpr=function(a,b){var c=a.name;if(p(a.builtin))switch(a.builtin){case Pa.Super:return b.instance.__proto__;case Pa.This:return b.instance;case Pa.CatchError:c=Xn;break;case Pa.CatchStack:c=Yn;break;default:throw Error("Unknown builtin variable "+a.builtin);}for(a=b;null!=a;){if(a.vars.has(c))return a.vars.get(c);a=a.parent}throw Error("Not declared variable "+c);};b.prototype.visitWriteKeyExpr=function(a,b){var c=a.receiver.visitExpression(this,
  b),e=a.index.visitExpression(this,b);a=a.value.visitExpression(this,b);return c[e]=a};b.prototype.visitWritePropExpr=function(a,b){var c=a.receiver.visitExpression(this,b);b=a.value.visitExpression(this,b);return c[a.name]=b};b.prototype.visitInvokeMethodExpr=function(a,b){var c=a.receiver.visitExpression(this,b);b=this.visitAllExpressions(a.args,b);if(p(a.builtin))switch(a.builtin){case Ma.ConcatArray:a=ja.concat(c,b[0]);break;case Ma.SubscribeObservable:a=c.subscribe({next:b[0]});break;case Ma.Bind:a=
  c.bind(b[0]);break;default:throw Error("Unknown builtin method "+a.builtin);}else a=c[a.name].apply(c,b);return a};b.prototype.visitInvokeFunctionExpr=function(a,b){var c=this.visitAllExpressions(a.args,b),e=a.fn;return e instanceof Gc&&e.builtin===Pa.Super?(b.instance.constructor.prototype.constructor.apply(b.instance,c),null):a.fn.visitExpression(this,b).apply(null,c)};b.prototype.visitReturnStmt=function(a,b){return new Wn(a.value.visitExpression(this,b))};b.prototype.visitDeclareClassStmt=function(a,
  b){var c=Or(a,b,this);b.vars.set(a.name,c);return null};b.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b)};b.prototype.visitIfStmt=function(a,b){return a.condition.visitExpression(this,b)?this.visitAllStatements(a.trueCase,b):p(a.falseCase)?this.visitAllStatements(a.falseCase,b):null};b.prototype.visitTryCatchStmt=function(a,b){try{return this.visitAllStatements(a.bodyStmts,b)}catch(d){return b=b.createChildWihtLocalVars(),b.vars.set(Xn,d),b.vars.set(Yn,d.stack),
  this.visitAllStatements(a.catchStmts,b)}};b.prototype.visitThrowStmt=function(a,b){throw a.error.visitExpression(this,b);};b.prototype.visitCommentStmt=function(a,b){return null};b.prototype.visitInstantiateExpr=function(a,b){var c=this.visitAllExpressions(a.args,b);a=a.classExpr.visitExpression(this,b);return new (a.bind.apply(a,[void 0].concat(c)))};b.prototype.visitLiteralExpr=function(a,b){return a.value};b.prototype.visitExternalExpr=function(a,b){return a.value.reference};b.prototype.visitConditionalExpr=
  function(a,b){return a.condition.visitExpression(this,b)?a.trueCase.visitExpression(this,b):p(a.falseCase)?a.falseCase.visitExpression(this,b):null};b.prototype.visitNotExpr=function(a,b){return!a.condition.visitExpression(this,b)};b.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b)};b.prototype.visitFunctionExpr=function(a,b){var c=a.params.map(function(a){return a.name});return dl(c,a.statements,b,this)};b.prototype.visitDeclareFunctionStmt=function(a,b){var c=a.params.map(function(a){return a.name});
  b.vars.set(a.name,dl(c,a.statements,b,this));return null};b.prototype.visitBinaryOperatorExpr=function(a,b){var c=this,e=function(){return a.lhs.visitExpression(c,b)},f=function(){return a.rhs.visitExpression(c,b)};switch(a.operator){case H.Equals:return e()==f();case H.Identical:return e()===f();case H.NotEquals:return e()!=f();case H.NotIdentical:return e()!==f();case H.And:return e()&&f();case H.Or:return e()||f();case H.Plus:return e()+f();case H.Minus:return e()-f();case H.Divide:return e()/
  f();case H.Multiply:return e()*f();case H.Modulo:return e()%f();case H.Lower:return e()<f();case H.LowerEquals:return e()<=f();case H.Bigger:return e()>f();case H.BiggerEquals:return e()>=f();default:throw Error("Unknown operator "+a.operator);}};b.prototype.visitReadPropExpr=function(a,b){return a.receiver.visitExpression(this,b)[a.name]};b.prototype.visitReadKeyExpr=function(a,b){var c=a.receiver.visitExpression(this,b);a=a.index.visitExpression(this,b);return c[a]};b.prototype.visitLiteralArrayExpr=
  function(a,b){return this.visitAllExpressions(a.entries,b)};b.prototype.visitLiteralMapExpr=function(a,b){var c=this,e={};a.entries.forEach(function(a){return e[a[0]]=a[1].visitExpression(c,b)});return e};b.prototype.visitAllExpressions=function(a,b){var c=this;return a.map(function(a){return a.visitExpression(c,b)})};b.prototype.visitAllStatements=function(a,b){for(var c=0;c<a.length;c++){var e=a[c].visitStatement(this,b);if(e instanceof Wn)return e}return null};return b}(),Xn="error",Yn="stack",
  yy=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},zy=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Pr=function(b){function a(){b.apply(this,arguments);this._evalArgNames=[];this._evalArgValues=[]}zy(a,b);a.prototype.getArgs=function(){for(var a={},b=0;b<this._evalArgNames.length;b++)a[this._evalArgNames[b]]=
  this._evalArgValues[b];return a};a.prototype.visitExternalExpr=function(a,b){var c=a.value.reference,d=this._evalArgValues.indexOf(c);-1===d&&(d=this._evalArgValues.length,this._evalArgValues.push(c),a=p(a.value.name)?nf(a.value.name):"val",this._evalArgNames.push(nf("jit_"+a+d)));b.print(this._evalArgNames[d]);return null};return a}(function(b){function a(){b.call(this,!1)}yy(a,b);a.prototype.visitDeclareClassStmt=function(a,b){var c=this;b.pushClass(a);this._visitClassConstructor(a,b);p(a.parent)&&
  (b.print(a.name+".prototype \x3d Object.create("),a.parent.visitExpression(this,b),b.println(".prototype);"));a.getters.forEach(function(d){return c._visitClassGetter(a,d,b)});a.methods.forEach(function(d){return c._visitClassMethod(a,d,b)});b.popClass();return null};a.prototype._visitClassConstructor=function(a,b){b.print("function "+a.name+"(");p(a.constructorMethod)&&this._visitParams(a.constructorMethod.params,b);b.println(") {");b.incIndent();p(a.constructorMethod)&&0<a.constructorMethod.body.length&&
  (b.println("var self \x3d this;"),this.visitAllStatements(a.constructorMethod.body,b));b.decIndent();b.println("}")};a.prototype._visitClassGetter=function(a,b,e){e.println("Object.defineProperty("+a.name+".prototype, '"+b.name+"', { get: function() {");e.incIndent();0<b.body.length&&(e.println("var self \x3d this;"),this.visitAllStatements(b.body,e));e.decIndent();e.println("}});")};a.prototype._visitClassMethod=function(a,b,e){e.print(a.name+".prototype."+b.name+" \x3d function(");this._visitParams(b.params,
  e);e.println(") {");e.incIndent();0<b.body.length&&(e.println("var self \x3d this;"),this.visitAllStatements(b.body,e));e.decIndent();e.println("};")};a.prototype.visitReadVarExpr=function(a,d){if(a.builtin===Pa.This)d.print("self");else{if(a.builtin===Pa.Super)throw Error("'super' needs to be handled at a parent ast node, not at the variable level!");b.prototype.visitReadVarExpr.call(this,a,d)}return null};a.prototype.visitDeclareVarStmt=function(a,b){b.print("var "+a.name+" \x3d ");a.value.visitExpression(this,
  b);b.println(";");return null};a.prototype.visitCastExpr=function(a,b){a.value.visitExpression(this,b);return null};a.prototype.visitInvokeFunctionExpr=function(a,d){var c=a.fn;c instanceof Gc&&c.builtin===Pa.Super?(d.currentClass.parent.visitExpression(this,d),d.print(".call(this"),0<a.args.length&&(d.print(", "),this.visitAllExpressions(a.args,d,",")),d.print(")")):b.prototype.visitInvokeFunctionExpr.call(this,a,d);return null};a.prototype.visitFunctionExpr=function(a,b){b.print("function(");this._visitParams(a.params,
  b);b.println(") {");b.incIndent();this.visitAllStatements(a.statements,b);b.decIndent();b.print("}");return null};a.prototype.visitDeclareFunctionStmt=function(a,b){b.print("function "+a.name+"(");this._visitParams(a.params,b);b.println(") {");b.incIndent();this.visitAllStatements(a.statements,b);b.decIndent();b.println("}");return null};a.prototype.visitTryCatchStmt=function(a,b){b.println("try {");b.incIndent();this.visitAllStatements(a.bodyStmts,b);b.decIndent();b.println("} catch ("+Le.name+") {");
  b.incIndent();a=[Fi.set(Le.prop("stack")).toDeclStmt(null,[Fa.Final])].concat(a.catchStmts);this.visitAllStatements(a,b);b.decIndent();b.println("}");return null};a.prototype._visitParams=function(a,b){this.visitAllObjects(function(a){return b.print(a.name)},a,b,",")};a.prototype.getBuiltinMethodName=function(a){switch(a){case Ma.ConcatArray:a="concat";break;case Ma.SubscribeObservable:a="subscribe";break;case Ma.Bind:a="bind";break;default:throw Error("Unknown builtin method: "+a);}return a};return a}(Vn)),
  Ky=function(){function b(){this.strictStyling=!0}b.prototype.shimCssText=function(a,b,d){void 0===d&&(d="");var c;c=(c=a.match(Ay))?c[0]:"";a=Qr(a);a=this._insertDirectives(a);return this._scopeCssText(a,b,d)+c};b.prototype._insertDirectives=function(a){a=this._insertPolyfillDirectivesInCssText(a);return this._insertPolyfillRulesInCssText(a)};b.prototype._insertPolyfillDirectivesInCssText=function(a){return T.replaceAllMapped(a,By,function(a){return a[1]+"{"})};b.prototype._insertPolyfillRulesInCssText=
  function(a){return T.replaceAllMapped(a,Cy,function(a){var b=a[0],b=T.replace(b,a[1],""),b=T.replace(b,a[2],"");return a[3]+b})};b.prototype._scopeCssText=function(a,b,d){var c=this._extractUnscopedRulesFromCssText(a);a=this._insertPolyfillHostInCssText(a);a=this._convertColonHost(a);a=this._convertColonHostContext(a);a=this._convertShadowDOMSelectors(a);p(b)&&(a=this._scopeSelectors(a,b,d));return(a+"\n"+c).trim()};b.prototype._extractUnscopedRulesFromCssText=function(a){var b="",d;for(Zn.lastIndex=
  0;null!==(d=Zn.exec(a));)var e=d[0],e=T.replace(e,d[2],""),e=T.replace(e,d[1],d[3]),b=b+(e+"\n\n");return b};b.prototype._convertColonHost=function(a){return this._convertColonRule(a,Dy,this._colonHostPartReplacer)};b.prototype._convertColonHostContext=function(a){return this._convertColonRule(a,Ey,this._colonHostContextPartReplacer)};b.prototype._convertColonRule=function(a,b,d){return T.replaceAllMapped(a,b,function(a){if(p(a[2])){for(var b=a[2].split(","),c=[],e=0;e<b.length;e++){var m=b[e];if(z(m))break;
  m=m.trim();c.push(d(Me,m,a[3]))}return c.join(",")}return Me+a[3]})};b.prototype._colonHostContextPartReplacer=function(a,b,d){return T.contains(b,Ne)?this._colonHostPartReplacer(a,b,d):a+b+d+", "+b+" "+a+d};b.prototype._colonHostPartReplacer=function(a,b,d){return a+T.replace(b,Ne,"")+d};b.prototype._convertShadowDOMSelectors=function(a){return Fy.reduce(function(a,b){return T.replaceAll(a,b," ")},a)};b.prototype._scopeSelectors=function(a,b,d){var c=this;return Sr(a,function(a){var g=a.selector,
  f=a.content;if("@"!=a.selector[0]||a.selector.startsWith("@page"))g=c._scopeSelector(a.selector,b,d,c.strictStyling);else if(a.selector.startsWith("@media")||a.selector.startsWith("@supports"))f=c._scopeSelectors(a.content,b,d);return new el(g,f)})};b.prototype._scopeSelector=function(a,b,d,e){var c=this;return a.split(",").map(function(a){return a.trim().split(Gy)}).map(function(a){var g=a[0];a=a.slice(1);g=c._selectorNeedsScoping(g,b)?e?c._applyStrictSelectorScope(g,b,d):c._applySelectorScope(g,
  b,d):g;return[g].concat(a).join(" ")}).join(", ")};b.prototype._selectorNeedsScoping=function(a,b){return!this._makeScopeMatcher(b).test(a)};b.prototype._makeScopeMatcher=function(a){a=T.replaceAll(a,/\[/g,"\\[");a=T.replaceAll(a,/\]/g,"\\]");return new RegExp("^("+a+")"+Hy,"m")};b.prototype._applySelectorScope=function(a,b,d){return this._applySimpleSelectorScope(a,b,d)};b.prototype._applySimpleSelectorScope=function(a,b,d){lg.lastIndex=0;return lg.test(a)?(b=this.strictStyling?"["+d+"]":b,a=T.replace(a,
  Me,b),T.replaceAll(a,lg,b+" ")):b+" "+a};b.prototype._applyStrictSelectorScope=function(a,b,d){var c=this;b=b.replace(/\[is=([^\]]*)\]/g,function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];return b[0]});for(var f="["+b+"]",g=function(a){var g=a.trim();if(0==g.length)return"";-1<a.indexOf(Me)?g=c._applySimpleSelectorScope(a,b,d):(a=a.replace(lg,""),0<a.length&&(a=a.match(/([^:]*)(:*)(.*)/),null!==a&&(g=a[1]+f+a[2]+a[3])));return g},h=/( |>|\+|~)\s*/g,m=a.indexOf(Me),r="",u=0,v;null!==
  (v=h.exec(a));){var k=v[1];v=a.slice(u,v.index).trim();u=u>=m?g(v):v;r+=u+" "+k+" ";u=h.lastIndex}return r+g(a.substring(u))};b.prototype._insertPolyfillHostInCssText=function(a){return a.replace(Iy,$n).replace(Jy,Ne)};return b}(),By=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,Cy=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,Zn=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,Ne="-shadowcsshost",$n="-shadowcsscontext",Dy=
  new RegExp("("+Ne+")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)","gim"),Ey=new RegExp("("+$n+")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)","gim"),Me=Ne+"-no-combinator",Fy=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Gy=/(?:>>>)|(?:\/deep\/)/g,Hy="([\x3e\\s~+[.,{:][\\s\\S]*)?$",lg=/-shadowcsshost/gim,Jy=/:host/gim,Iy=/:host-context/gim,Rr=/\/\*\s*[\s\S]*?\*\//g,Ay=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Ur=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Vr=/([{}])/g,
  Xr="{",Wr="}",Cf="%BLOCK%",el=function(){return function(b,a){this.selector=b;this.content=a}}(),Yr=function(){return function(b,a){this.escapedString=b;this.blocks=a}}(),Ly=function(){return function(b,a,c){this.moduleUrl=b;this.isShimmed=a;this.valuePlaceholder=c}}(),My=function(){return function(b,a){this.componentStylesheet=b;this.externalStylesheets=a}}(),Ny=function(){return function(b,a,c,d,e){this.statements=b;this.stylesVar=a;this.dependencies=c;this.isShimmed=d;this.meta=e}}(),ao=function(){function b(a){this._urlResolver=
  a;this._shadowCss=new Ky}b.prototype.compileComponent=function(a){var b=this,d=[],e=this._compileStyles(a,new Fe({styles:a.template.styles,styleUrls:a.template.styleUrls,moduleUrl:a.type.moduleUrl}),!0);a.template.externalStylesheets.forEach(function(c){c=b._compileStyles(a,c,!1);d.push(c)});return new My(e,d)};b.prototype._compileStyles=function(a,b,d){for(var c=this,f=a.template.encapsulation===Ua.Emulated,g=b.styles.map(function(a){return F(c._shimIfNeeded(a,f))}),h=[],m=0;m<b.styleUrls.length;m++){var r=
  new ub({name:fl(null)});h.push(new Ly(b.styleUrls[m],f,r));g.push(new Tj(r))}a=fl(d?a:null);g=L(a).set(ra(g,new Kc(ta,[mc.Const]))).toDeclStmt(null,[Fa.Final]);return new Ny([g],a,h,f,b)};b.prototype._shimIfNeeded=function(a,b){return b?this._shadowCss.shimCssText(a,"_ngcontent-%COMP%","_nghost-%COMP%"):a};b.decorators=[{type:V}];b.ctorParameters=[{type:Ci}];return b}(),co=function(){function b(a,b,d,e,f,g,h,m){this._injector=a;this._metadataResolver=b;this._templateNormalizer=d;this._templateParser=
  e;this._styleCompiler=f;this._viewCompiler=g;this._ngModuleCompiler=h;this._compilerConfig=m;this._compiledTemplateCache=new Map;this._compiledHostTemplateCache=new Map;this._compiledNgModuleCache=new Map}Object.defineProperty(b.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0});b.prototype.compileModuleSync=function(a){return this._compileModuleAndComponents(a,!0).syncResult};b.prototype.compileModuleAsync=function(a){return this._compileModuleAndComponents(a,
  !1).asyncResult};b.prototype.compileModuleAndAllComponentsSync=function(a){return this._compileModuleAndAllComponents(a,!0).syncResult};b.prototype.compileModuleAndAllComponentsAsync=function(a){return this._compileModuleAndAllComponents(a,!1).asyncResult};b.prototype._compileModuleAndComponents=function(a,b){b=this._compileComponents(a,b);var c=this._compileModule(a);return new Ee(c,b.then(function(){return c}))};b.prototype._compileModuleAndAllComponents=function(a,b){var c=this,e=this._compileComponents(a,
  b),f=this._compileModule(a);a=this._metadataResolver.getNgModuleMetadata(a);var g=[],h=new Set;a.transitiveModule.modules.forEach(function(a){a.declaredDirectives.forEach(function(a){a.isComponent&&(a=c._createCompiledHostTemplate(a.type.reference),h.add(a),g.push(a.proxyComponentFactory))})});var m=new Ns(f,g),f=function(){h.forEach(function(a){c._compileTemplate(a)});return m};b=b?Promise.resolve(f()):e.then(f);return new Ee(m,b)};b.prototype._compileModule=function(a){var b=this,d=this._compiledNgModuleCache.get(a);
  if(!d){var e=this._metadataResolver.getNgModuleMetadata(a);a=[this._metadataResolver.getProviderMetadata(new ji(we,{useFactory:function(){return new Oy(b,e.type.reference)}}))];a=this._ngModuleCompiler.compile(e,a);a.dependencies.forEach(function(a){a.placeholder.reference=b._assertComponentKnown(a.comp.reference,!0).proxyComponentFactory;a.placeholder.name="compFactory_"+a.comp.name});d=this._compilerConfig.useJit?yh(e.type.name+".ngfactory.js",a.statements,a.ngModuleFactoryVar):xh(a.statements,
  a.ngModuleFactoryVar);this._compiledNgModuleCache.set(e.type.reference,d)}return d};b.prototype._compileComponents=function(a,b){var c=this,e=new Set,f=[];this._metadataResolver.getNgModuleMetadata(a).transitiveModule.modules.forEach(function(a){a.declaredDirectives.forEach(function(b){b.isComponent&&(e.add(c._createCompiledTemplate(b,a)),b.entryComponents.forEach(function(a){e.add(c._createCompiledHostTemplate(a.reference))}))});a.entryComponents.forEach(function(a){e.add(c._createCompiledHostTemplate(a.reference))})});
  e.forEach(function(a){if(a.loading){if(b)throw new Ms(a.compType.reference);f.push(a.loading)}});a=function(){e.forEach(function(a){c._compileTemplate(a)})};return b?(a(),Promise.resolve(null)):Promise.all(f).then(a)};b.prototype.clearCacheFor=function(a){this._compiledNgModuleCache.delete(a);this._metadataResolver.clearCacheFor(a);this._compiledHostTemplateCache.delete(a);var b=this._compiledTemplateCache.get(a);b&&(this._templateNormalizer.clearCacheFor(b.normalizedCompMeta),this._compiledTemplateCache.delete(a))};
  b.prototype.clearCache=function(){this._metadataResolver.clearCache();this._compiledTemplateCache.clear();this._compiledHostTemplateCache.clear();this._templateNormalizer.clearCache();this._compiledNgModuleCache.clear()};b.prototype._createCompiledHostTemplate=function(a){var b=this._compiledHostTemplateCache.get(a);if(z(b)){b=this._metadataResolver.getDirectiveMetadata(a);gl(b);var d;d=Jd.parse(b.selector)[0].getMatchingElementTemplate();d=vh.create({type:new sf({reference:Object,name:b.type.name+
  "_Host",moduleUrl:b.type.moduleUrl,isHost:!0}),template:new dg({encapsulation:Ua.None,template:d,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:Ud.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]});b=new bo(!0,b.selector,b.type,[b],[],[],this._templateNormalizer.normalizeDirective(d));this._compiledHostTemplateCache.set(a,b)}return b};b.prototype._createCompiledTemplate=function(a,
  b){var c=this._compiledTemplateCache.get(a.type.reference);z(c)&&(gl(a),c=new bo(!1,a.selector,a.type,b.transitiveModule.directives,b.transitiveModule.pipes,b.schemas,this._templateNormalizer.normalizeDirective(a)),this._compiledTemplateCache.set(a.type.reference,c));return c};b.prototype._assertComponentKnown=function(a,b){var c=b?this._compiledHostTemplateCache.get(a):this._compiledTemplateCache.get(a);if(!c){if(b)throw Error("Illegal state: Compiled view for component "+O(a)+" does not exist!");
  throw Error("Component "+O(a)+" is not part of any NgModule or the module has not been imported into your module.");}return c};b.prototype._assertComponentLoaded=function(a,b){var c=this._assertComponentKnown(a,b);if(c.loading)throw Error("Illegal state: CompiledTemplate for "+O(a)+" (isHost: "+b+") is still loading!");return c};b.prototype._compileTemplate=function(a){var b=this;if(!a.isCompiled){var d=a.normalizedCompMeta,e=new Map,f=this._styleCompiler.compileComponent(d);f.externalStylesheets.forEach(function(a){e.set(a.meta.moduleUrl,
  a)});this._resolveStylesCompileResult(f.componentStylesheet,e);var g=a.viewComponentTypes.map(function(a){return b._assertComponentLoaded(a,!1).normalizedCompMeta}),g=this._templateParser.parse(d,d.template.template,a.viewDirectives.concat(g),a.viewPipes,a.schemas,d.type.name),d=this._viewCompiler.compileComponent(d,g,L(f.componentStylesheet.stylesVar),a.viewPipes);d.dependencies.forEach(function(a){var c;a instanceof Mn?(c=b._assertComponentLoaded(a.comp.reference,!1),a.placeholder.reference=c.proxyViewFactory,
  a.placeholder.name="viewFactory_"+a.comp.name):a instanceof Nn&&(c=b._assertComponentLoaded(a.comp.reference,!0),a.placeholder.reference=c.proxyComponentFactory,a.placeholder.name="compFactory_"+a.comp.name)});f=f.componentStylesheet.statements.concat(d.statements);f=this._compilerConfig.useJit?yh(""+a.compType.name+(a.isHost?"_Host":"")+".ngfactory.js",f,d.viewFactoryVar):xh(f,d.viewFactoryVar);a.compiled(f)}};b.prototype._resolveStylesCompileResult=function(a,b){var c=this;a.dependencies.forEach(function(a,
  d){var g=b.get(a.moduleUrl),g=c._resolveAndEvalStylesCompileResult(g,b);a.valuePlaceholder.reference=g;a.valuePlaceholder.name="importedStyles"+d})};b.prototype._resolveAndEvalStylesCompileResult=function(a,b){this._resolveStylesCompileResult(a,b);return this._compilerConfig.useJit?yh(a.meta.moduleUrl+".css.js",a.statements,a.stylesVar):xh(a.statements,a.stylesVar)};b.decorators=[{type:V}];b.ctorParameters=[{type:bc},{type:Sn},{type:Pn},{type:Cn},{type:ao},{type:On},{type:Tn},{type:rd}];return b}(),
  bo=function(){function b(a,b,d,e,f,g,h){var c=this;this.isHost=a;this.compType=d;this.viewPipes=f;this.schemas=g;this._normalizedCompMeta=this.loading=this._viewFactory=null;this.isCompiledWithDeps=this.isCompiled=!1;this.viewComponentTypes=[];this.viewDirectives=[];e.forEach(function(a){a.isComponent?c.viewComponentTypes.push(a.type.reference):c.viewDirectives.push(a)});this.proxyViewFactory=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(!c._viewFactory)throw Error("Illegal state: CompiledTemplate for "+
  O(c.compType)+" is not compiled yet!");return c._viewFactory.apply(null,a)};this.proxyComponentFactory=a?new Jh(b,this.proxyViewFactory,d.reference):null;h.syncResult?this._normalizedCompMeta=h.syncResult:this.loading=h.asyncResult.then(function(a){c._normalizedCompMeta=a;c.loading=null})}Object.defineProperty(b.prototype,"normalizedCompMeta",{get:function(){if(this.loading)throw Error("Template is still loading for "+this.compType.name+"!");return this._normalizedCompMeta},enumerable:!0,configurable:!0});
  b.prototype.compiled=function(a){this._viewFactory=a;this.isCompiled=!0};b.prototype.depsCompiled=function(){this.isCompiledWithDeps=!0};return b}(),Oy=function(){function b(a,b){this._delegate=a;this._ngModule=b}Object.defineProperty(b.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0});b.prototype.compileModuleSync=function(a){return this._delegate.compileModuleSync(a)};b.prototype.compileModuleAsync=function(a){return this._delegate.compileModuleAsync(a)};
  b.prototype.compileModuleAndAllComponentsSync=function(a){return this._delegate.compileModuleAndAllComponentsSync(a)};b.prototype.compileModuleAndAllComponentsAsync=function(a){return this._delegate.compileModuleAndAllComponentsAsync(a)};b.prototype.clearCache=function(){this._delegate.clearCache()};b.prototype.clearCacheFor=function(a){this._delegate.clearCacheFor(a)};return b}(),zh={};Df(wa.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]);Df(wa.STYLE,["*|style"]);Df(wa.URL,"*|formAction area|href area|ping audio|src a|href a|ping blockquote|cite body|background del|cite form|action img|src img|srcset input|src ins|cite q|cite source|src source|srcset track|src video|poster video|src".split(" "));
  Df(wa.RESOURCE_URL,"applet|code applet|codebase base|href embed|src frame|src head|profile html|manifest iframe|src link|href media|src object|codebase object|data script|src".split(" "));var Py=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Qy="[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop [HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume :svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex :svg:graphics^:svg:| :svg:animation^:svg:|*begin,*end,*repeat :svg:geometry^:svg:| :svg:componentTransferFunction^:svg:| :svg:gradient^:svg:| :svg:textContent^:svg:graphics| :svg:textPositioning^:svg:textContent| a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username audio^media| br^[HTMLElement]|clear base^[HTMLElement]|href,target body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value canvas^[HTMLElement]|#height,#width content^[HTMLElement]|select dl^[HTMLElement]|!compact datalist^[HTMLElement]| details^[HTMLElement]|!open dialog^[HTMLElement]|!open,returnValue dir^[HTMLElement]|!compact div^[HTMLElement]|align embed^[HTMLElement]|align,height,name,src,type,width fieldset^[HTMLElement]|!disabled,name font^[HTMLElement]|color,face,size form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows hr^[HTMLElement]|align,color,!noShade,size,width head^[HTMLElement]| h1,h2,h3,h4,h5,h6^[HTMLElement]|align html^[HTMLElement]|version iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name li^[HTMLElement]|type,#value label^[HTMLElement]|htmlFor legend^[HTMLElement]|align link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type map^[HTMLElement]|name marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width menu^[HTMLElement]|!compact meta^[HTMLElement]|content,httpEquiv,name,scheme meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value ins,del^[HTMLElement]|cite,dateTime ol^[HTMLElement]|!compact,!reversed,#start,type object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width optgroup^[HTMLElement]|!disabled,label option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value output^[HTMLElement]|defaultValue,%htmlFor,name,value p^[HTMLElement]|align param^[HTMLElement]|name,type,value,valueType picture^[HTMLElement]| pre^[HTMLElement]|#width progress^[HTMLElement]|#max,#value q,blockquote,cite^[HTMLElement]| script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value shadow^[HTMLElement]| source^[HTMLElement]|media,sizes,src,srcset,type span^[HTMLElement]| style^[HTMLElement]|!disabled,media,type caption^[HTMLElement]|align th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign template^[HTMLElement]| textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap title^[HTMLElement]|text track^[HTMLElement]|!default,kind,label,src,srclang ul^[HTMLElement]|!compact,type unknown^[HTMLElement]| video^media|#height,poster,#width :svg:a^:svg:graphics| :svg:animate^:svg:animation| :svg:animateMotion^:svg:animation| :svg:animateTransform^:svg:animation| :svg:circle^:svg:geometry| :svg:clipPath^:svg:graphics| :svg:cursor^:svg:| :svg:defs^:svg:graphics| :svg:desc^:svg:| :svg:discard^:svg:| :svg:ellipse^:svg:geometry| :svg:feBlend^:svg:| :svg:feColorMatrix^:svg:| :svg:feComponentTransfer^:svg:| :svg:feComposite^:svg:| :svg:feConvolveMatrix^:svg:| :svg:feDiffuseLighting^:svg:| :svg:feDisplacementMap^:svg:| :svg:feDistantLight^:svg:| :svg:feDropShadow^:svg:| :svg:feFlood^:svg:| :svg:feFuncA^:svg:componentTransferFunction| :svg:feFuncB^:svg:componentTransferFunction| :svg:feFuncG^:svg:componentTransferFunction| :svg:feFuncR^:svg:componentTransferFunction| :svg:feGaussianBlur^:svg:| :svg:feImage^:svg:| :svg:feMerge^:svg:| :svg:feMergeNode^:svg:| :svg:feMorphology^:svg:| :svg:feOffset^:svg:| :svg:fePointLight^:svg:| :svg:feSpecularLighting^:svg:| :svg:feSpotLight^:svg:| :svg:feTile^:svg:| :svg:feTurbulence^:svg:| :svg:filter^:svg:| :svg:foreignObject^:svg:graphics| :svg:g^:svg:graphics| :svg:image^:svg:graphics| :svg:line^:svg:geometry| :svg:linearGradient^:svg:gradient| :svg:mpath^:svg:| :svg:marker^:svg:| :svg:mask^:svg:| :svg:metadata^:svg:| :svg:path^:svg:geometry| :svg:pattern^:svg:| :svg:polygon^:svg:geometry| :svg:polyline^:svg:geometry| :svg:radialGradient^:svg:gradient| :svg:rect^:svg:geometry| :svg:svg^:svg:graphics|#currentScale,#zoomAndPan :svg:script^:svg:|type :svg:set^:svg:animation| :svg:stop^:svg:| :svg:style^:svg:|!disabled,media,title,type :svg:switch^:svg:graphics| :svg:symbol^:svg:| :svg:tspan^:svg:textPositioning| :svg:text^:svg:textPositioning| :svg:textPath^:svg:textContent| :svg:title^:svg:| :svg:use^:svg:graphics| :svg:view^:svg:|#zoomAndPan data^[HTMLElement]|value menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default summary^[HTMLElement]| time^[HTMLElement]|dateTime".split(" "),
  Ry={"class":"className",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},eo=function(b){function a(){var a=this;b.call(this);this._schema={};Qy.forEach(function(b){var c={};b=b.split("|");var d=b[0];b=b[1].split(",");var d=d.split("^"),g=d[1];d[0].split(",").forEach(function(b){return a._schema[b.toLowerCase()]=c});var h=g&&a._schema[g.toLowerCase()];h&&Object.keys(h).forEach(function(a){c[a]=h[a]});b.forEach(function(a){if(0<a.length)switch(a[0]){case "*":break;
  case "!":c[a.substring(1)]="boolean";break;case "#":c[a.substring(1)]="number";break;case "%":c[a.substring(1)]="object";break;default:c[a]="string"}})})}Py(a,b);a.prototype.hasProperty=function(a,b,e){if(e.some(function(a){return"no-errors-schema"===a.name}))return!0;if(-1<a.indexOf("-")){if("ng-container"===a||"ng-content"===a)return!1;if(e.some(function(a){return"custom-elements"===a.name}))return!0}return!!(this._schema[a.toLowerCase()]||this._schema.unknown)[b]};a.prototype.hasElement=function(a,
  b){return b.some(function(a){return"no-errors-schema"===a.name})||-1<a.indexOf("-")&&("ng-container"===a||"ng-content"===a||b.some(function(a){return"custom-elements"===a.name}))?!0:!!this._schema[a.toLowerCase()]};a.prototype.securityContext=function(a,b){a=a.toLowerCase();b=b.toLowerCase();return(a=zh[a+"|"+b])?a:(a=zh["*|"+b])?a:wa.NONE};a.prototype.getMappedPropName=function(a){return Ry[a]||a};a.prototype.getDefaultComponentElementName=function(){return"ng-component"};a.decorators=[{type:V}];
  a.ctorParameters=[];return a}(hg),Sy=[{provide:ve,useValue:nc},{provide:fd,useExisting:ve},{provide:Ke,useValue:{get:function(b){throw Error("No ResourceLoader implementation has been provided. Can't read the url \""+b+'"');}}},Hf,mi,ni,ui,{provide:ti,useFactory:function(b,a,c){return new ti(b,a,c)},deps:[ui,[new W,new U(vt)],[new W,new U(Ml)]]},Cn,Pn,Sn,py,ao,On,Tn,{provide:rd,useValue:new rd},co,{provide:we,useExisting:co},eo,{provide:hg,useExisting:eo},Ci,Di,Rn,Qn],Ty=function(){function b(a){this._defaultOptions=
  [{useDebug:!0,useJit:!0,defaultEncapsulation:Ua.Emulated}].concat(a)}b.prototype.createCompiler=function(a){void 0===a&&(a=[]);var b=Zr(this._defaultOptions.concat(a));return xd.resolveAndCreate([Sy,{provide:rd,useFactory:function(){return new rd({genDebugInfo:b.useDebug,useJit:b.useJit,defaultEncapsulation:b.defaultEncapsulation,logBindingUpdate:b.useDebug})},deps:[]},b.providers]).get(we)};b.decorators=[{type:V}];b.ctorParameters=[{type:Array,decorators:[{type:U,args:[Eh]}]}];return b}(),Uy=$e(Ll,
  "coreDynamic",[{provide:Eh,useValue:{},multi:!0},{provide:ul,useClass:Ty},{provide:Kg,useValue:function(){nc.reflectionCapabilities=new ql},multi:!0}]),fo="undefined"===typeof window?"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:global:window;fo.assert=function(b){};(function(){function b(){}b.toFixed=function(a,b){return a.toFixed(b)};b.equal=function(a,b){return a===b};b.parseIntAutoRadix=function(a){var b=parseInt(a);if(isNaN(b))throw Error("Invalid integer literal when parsing "+
  a);return b};b.parseInt=function(a,b){if(10==b){if(/^(\-|\+)?[0-9]+$/.test(a))return parseInt(a,b)}else if(16==b){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(a))return parseInt(a,b)}else{var c=parseInt(a,b);if(!isNaN(c))return c}throw Error("Invalid integer literal when parsing "+a+" in base "+b);};Object.defineProperty(b,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0});b.isNumeric=function(a){return!isNaN(a-parseFloat(a))};b.isNaN=function(a){return isNaN(a)};b.isInteger=function(a){return Number.isInteger(a)};
  return b})();var Vy=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)},Wy=function(b){function a(){b.apply(this,arguments)}Vy(a,b);a.prototype.get=function(a){var b,c,f=new Promise(function(a,d){b=a;c=d}),g=new XMLHttpRequest;g.open("GET",a,!0);g.responseType="text";g.onload=function(){var d=g.response,d=void 0!==d&&null!==d?g.response:g.responseText,f=1223===g.status?204:g.status;0===
  f&&(f=d?200:0);200<=f&&300>=f?b(d):c("Failed to load "+a)};g.onerror=function(){c("Failed to load "+a)};g.send();return f};a.decorators=[{type:V}];a.ctorParameters=[];return a}(Ke),Xy=[tm,{provide:Eh,useValue:{providers:[{provide:Ke,useClass:Wy}]},multi:!0}],Yy=function(b,a){function c(){this.constructor=b}for(var d in a)a.hasOwnProperty(d)&&(b[d]=a[d]);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)};(function(b){function a(){b.call(this);this._cache=fo.$templateCache;if(null==
  this._cache)throw Error("CachedResourceLoader: Template cache was not found in $templateCache.");}Yy(a,b);a.prototype.get=function(a){return this._cache.hasOwnProperty(a)?Promise.resolve(this._cache[a]):Promise.reject("CachedResourceLoader: Did not find cached template for "+a)};return a})(Ke);var Zy=$e(Uy,"browserDynamic",Xy),mg={bootstrap:Rd,module:Rd,element:Rd,version:Rd,resumeBootstrap:Rd,getTestability:Rd};try{window.hasOwnProperty("angular")&&(mg=window.angular)}catch(b){}var $y=mg.bootstrap,
  az=mg.module,go=mg.element,ho={__UNINITIALIZED__:!0},fs=function(){function b(a,b,d,e,f,g,h,m){this.id=a;this.info=b;this.element=d;this.attrs=e;this.scope=f;this.parentInjector=g;this.parse=h;this.componentFactory=m;this.component=null;this.inputChangeCount=0;this.contentInsertionPoint=this.changeDetector=this.componentRef=this.inputChanges=null;this.element[0].id=a;this.componentScope=f.$new();this.childNodes=d.contents()}b.prototype.bootstrapNg2=function(){var a=xd.resolveAndCreate([{provide:"$scope",
  useValue:this.componentScope}],this.parentInjector);this.contentInsertionPoint=document.createComment("ng1 insertion point");this.componentRef=this.componentFactory.create(a,[[this.contentInsertionPoint]],this.element[0]);this.changeDetector=this.componentRef.changeDetectorRef;this.component=this.componentRef.instance};b.prototype.setupInputs=function(){for(var a=this,b=this.attrs,d=this.info.inputs,e=0;e<d.length;e++){var f=d[e],g=null;if(b.hasOwnProperty(f.attr)){var h=function(b){var c=ho;return function(d){null!==
  a.inputChanges&&(a.inputChangeCount++,a.inputChanges[b]=new io(d,c===ho?d:c),c=d);a.component[b]=d}}(f.prop);b.$observe(f.attr,h)}else b.hasOwnProperty(f.bindAttr)?g=b[f.bindAttr]:b.hasOwnProperty(f.bracketAttr)?g=b[f.bracketAttr]:b.hasOwnProperty(f.bindonAttr)?g=b[f.bindonAttr]:b.hasOwnProperty(f.bracketParenAttr)&&(g=b[f.bracketParenAttr]);null!=g&&(f=function(b){return function(c,d){null!=a.inputChanges&&(a.inputChangeCount++,a.inputChanges[b]=new io(d,c));a.component[b]=c}}(f.prop),this.componentScope.$watch(g,
  f))}(b=this.info.type.prototype)&&b.ngOnChanges&&(this.inputChanges={},this.componentScope.$watch(function(){return a.inputChangeCount},function(){var b=a.inputChanges;a.inputChanges={};a.component.ngOnChanges(b)}));this.componentScope.$watch(function(){return a.changeDetector&&a.changeDetector.detectChanges()})};b.prototype.projectContent=function(){var a=this.childNodes,b=this.contentInsertionPoint.parentNode;if(b)for(var d=0,e=a.length;d<e;d++)b.insertBefore(a[d],this.contentInsertionPoint)};b.prototype.setupOutputs=
  function(){for(var a=this,b=this.attrs,d=this.info.outputs,e=0;e<d.length;e++){var f=d[e],g=null,h=!1,m=f.bindonAttr?f.bindonAttr.substring(0,f.bindonAttr.length-6):null,r=f.bracketParenAttr?"[("+f.bracketParenAttr.substring(2,f.bracketParenAttr.length-8)+")]":null;b.hasOwnProperty(f.onAttr)?g=b[f.onAttr]:b.hasOwnProperty(f.parenAttr)?g=b[f.parenAttr]:b.hasOwnProperty(m)?(g=b[m],h=!0):b.hasOwnProperty(r)&&(g=b[r],h=!0);if(null!=g&&null!=h){m=this.parse(g);r=m.assign;if(h&&!r)throw Error("Expression '"+
  g+"' is not assignable!");if(g=this.component[f.prop])g.subscribe({next:h?function(b){return function(c){return b(a.scope,c)}}(r):function(b){return function(c){return b(a.scope,{$event:c})}}(m)});else throw Error("Missing emitter '"+f.prop+"' on component '"+this.info.selector+"'!");}}};b.prototype.registerCleanup=function(){var a=this;this.element.bind("$destroy",function(){a.componentScope.$destroy();a.componentRef.destroy()})};return b}(),io=function(){function b(a,b){this.previousValue=a;this.currentValue=
  b}b.prototype.isFirstChange=function(){return this.previousValue===this.currentValue};return b}(),bs=/^[\w|-]*$/,cs=/-(\w)/g,as=new Di,bz=/([A-Z])/g,cz={__UNINITIALIZED__:!0},jo=function(){function b(a){this.name=a;this.inputs=[];this.inputsRename=[];this.outputs=[];this.outputsRename=[];this.propertyOutputs=[];this.checkProperties=[];this.propertyMap={};this.$controller=this.directive=this.linkFn=null;a=a.replace(bz,function(a,b){return"-"+b.toLowerCase()});var b=this;this.type=da({selector:a,inputs:this.inputsRename,
  outputs:this.outputsRename}).Class({constructor:[new U("$scope"),xb,function(a,c){return new dz(b.linkFn,a,b.directive,c,b.$controller,b.inputs,b.outputs,b.propertyOutputs,b.checkProperties,b.propertyMap)}],ngOnInit:function(){},ngOnChanges:function(){},ngDoCheck:function(){}})}b.prototype.extractDirective=function(a){a=a.get(this.name+"Directive");if(1<a.length)throw Error("Only support single directive definition for: "+this.name);a=a[0];a.replace&&this.notSupported("replace");a.terminal&&this.notSupported("terminal");
  var b=a.link;"object"==typeof b&&b.post&&this.notSupported("link.post");return a};b.prototype.notSupported=function(a){throw Error("Upgraded directive '"+this.name+"' does not support '"+a+"'.");};b.prototype.extractBindings=function(){var a="object"===typeof this.directive.bindToController;if(a&&Object.keys(this.directive.scope).length)throw Error("Binding definitions on scope and controller at the same time are not supported.");var b=a?this.directive.bindToController:this.directive.scope;if("object"==
  typeof b)for(var d in b)if(b.hasOwnProperty(d)){var e=b[d],a=e.charAt(0),e=e.substr(1)||d,f="output_"+d,g=f+": "+d,h=f+": "+d+"Change",m="input_"+d,r=m+": "+d;switch(a){case "\x3d":this.propertyOutputs.push(f);this.checkProperties.push(e);this.outputs.push(f);this.outputsRename.push(h);this.propertyMap[f]=e;this.inputs.push(m);this.inputsRename.push(r);this.propertyMap[m]=e;break;case "@":case "\x3c":this.inputs.push(m);this.inputsRename.push(r);this.propertyMap[m]=e;break;case "\x26":this.outputs.push(f);
  this.outputsRename.push(g);this.propertyMap[f]=e;break;default:throw d=JSON.stringify(b),Error("Unexpected mapping '"+a+"' in '"+d+"' in '"+this.name+"' directive.");}}};b.prototype.compileTemplate=function(a,b,d){function c(b){var c=document.createElement("div");c.innerHTML=b;return a(c.childNodes)}var f=this;if(void 0!==this.directive.template)this.linkFn=c("function"===typeof this.directive.template?this.directive.template():this.directive.template);else if(this.directive.templateUrl){var g="function"===
  typeof this.directive.templateUrl?this.directive.templateUrl():this.directive.templateUrl,h=b.get(g);if(void 0!==h)this.linkFn=c(h);else return new Promise(function(a,e){d("GET",g,null,function(d,h){200==d?a(f.linkFn=c(b.put(g,h))):e("GET "+g+" returned "+d+": "+h)})})}else throw Error("Directive '"+this.name+"' is not a component, it is missing template.");return null};b.resolve=function(a,b){var c=[],e=b.get("$compile"),f=b.get("$templateCache"),g=b.get("$httpBackend"),h=b.get("$controller"),m;
  for(m in a)if(a.hasOwnProperty(m)){var r=a[m];r.directive=r.extractDirective(b);r.$controller=h;r.extractBindings();(r=r.compileTemplate(e,f,g))&&c.push(r)}return Promise.all(c)};return b}(),dz=function(){function b(a,b,d,e,f,g,h,m,r,u){this.linkFn=a;this.directive=d;this.$controller=f;this.inputs=g;this.outputs=h;this.propOuts=m;this.checkProperties=r;this.propertyMap=u;this.destinationObj=null;this.checkLastValues=[];this.$element=null;this.element=e.nativeElement;this.componentScope=b.$new(!!d.scope);
  this.$element=go(this.element);a=d.controller;this.destinationObj=d.bindToController&&a?this.buildController(a):this.componentScope;for(d=0;d<g.length;d++)this[g[d]]=null;for(g=0;g<h.length;g++)d=this[h[g]]=new Rc,this.setComponentProperty(h[g],function(a){return function(b){return a.emit(b)}}(d));for(h=0;h<m.length;h++)this[m[h]]=new Rc,this.checkLastValues.push(cz)}b.prototype.ngOnInit=function(){var a=this;!this.directive.bindToController&&this.directive.controller&&this.buildController(this.directive.controller);
  var b=this.directive.link;"object"==typeof b&&(b=b.pre);b&&(b=this.resolveRequired(this.$element,this.directive.require),this.directive.link(this.componentScope,this.$element,"NOT_SUPPORTED",b,"NOT_SUPPORTED"));for(var d=[];b=this.element.firstChild;)this.element.removeChild(b),d.push(b);this.linkFn(this.componentScope,function(b,c){c=0;for(var d=b.length;c<d;c++)a.element.appendChild(b[c])},{parentBoundTranscludeFn:function(a,b){b(d)}});this.destinationObj.$onInit&&this.destinationObj.$onInit()};
  b.prototype.ngOnChanges=function(a){for(var b in a)a.hasOwnProperty(b)&&this.setComponentProperty(b,a[b].currentValue)};b.prototype.ngDoCheck=function(){for(var a=this.destinationObj,b=this.checkLastValues,d=this.checkProperties,e=0;e<d.length;e++){var f=a[d[e]],g=b[e];f===g||"number"==typeof f&&isNaN(f)&&"number"==typeof g&&isNaN(g)||this[this.propOuts[e]].emit(b[e]=f)}return 0};b.prototype.setComponentProperty=function(a,b){this.destinationObj[this.propertyMap[a]]=b};b.prototype.buildController=
  function(a){a=this.$controller(a,{$scope:this.componentScope,$element:this.$element},null,this.directive.controllerAs);this.$element.data("$"+this.directive.name+"Controller",a);return a};b.prototype.resolveRequired=function(a,b){if(b){if("string"==typeof b){var c=b,e=!1,f=!1,g=!1;"?"==c.charAt(0)&&(e=!0,c=c.substr(1));"^"==c.charAt(0)&&(g=!0,c=c.substr(1));"^"==c.charAt(0)&&(f=!0,c=c.substr(1));c="$"+c+"Controller";f&&(a=a.parent());a=g?a.inheritedData(c):a.data(c);if(!a&&!e)throw Error("Can not locate '"+
  b+"' in '"+this.directive.name+"'.");return a}if(b instanceof Array){e=[];for(f=0;f<b.length;f++)e.push(this.resolveRequired(a,b[f]));return e}throw Error("Directive '"+this.directive.name+"' require syntax unrecognized: "+this.directive.require);}};return b}(),ez=0,gz=function(){function b(a){this.ng2AppModule=a;this.idPrefix="NG2_UPGRADE_"+ez++ +"_";this.upgradedComponents=[];this.ng1ComponentsToBeUpgraded={};this.providers=[];if(!a)throw Error("UpgradeAdapter cannot be instantiated without an NgModule of the Angular 2 app.");
  }b.prototype.downgradeNg2Component=function(a){this.upgradedComponents.push(a);a=hl(a);return es(a,""+this.idPrefix+a.selector+"_c")};b.prototype.upgradeNg1Component=function(a){return this.ng1ComponentsToBeUpgraded.hasOwnProperty(a)?this.ng1ComponentsToBeUpgraded[a].type:(this.ng1ComponentsToBeUpgraded[a]=new jo(a)).type};b.prototype.bootstrap=function(a,b,d){var c=this,f=new qc({enableLongStackTrace:Zone.hasOwnProperty("longStackTraceZoneSpec")}),g=new fz,h=null,m=null,r=[],u,v,k,l={},n=az(this.idPrefix,
  b),p;n.factory("ng2.Injector",function(){return m.injector.get(bc)}).value("ng2.NgZone",f).factory("ng2.Compiler",function(){return m.injector.get(we)}).value("ng2.ComponentFactoryRefMap",l).config(["$provide","$injector",function(a,b){a.decorator("$rootScope",["$delegate",function(a){v=a.constructor.prototype;if(v.hasOwnProperty("$apply"))u=v.$apply,v.$apply=function(a){return r.push(a)};else throw Error("Failed to find '$apply' on '$rootScope'!");return k=a}]);b.has("$$testability")&&a.decorator("$$testability",
  ["$delegate",function(a){var b=this,c=a.whenStable,d=function(a){c.call(b,function(){var c=m.injector.get(Mf);c.isStable()?a.apply(this,arguments):c.whenStable(d.bind(b,a))})};a.whenStable=d;return a}])}]);p=new Promise(function(b,d){n.run(["$injector","$rootScope",function(g,e){h=g;jo.resolve(c.ng1ComponentsToBeUpgraded,g).then(function(){var g=Mc({providers:[{provide:"$injector",useFactory:function(){return h}},{provide:"$compile",useFactory:function(){return h.get("$compile")}},c.providers],imports:[c.ng2AppModule]}).Class({constructor:function(){},
  ngDoBootstrap:function(){}});Zy()._bootstrapModuleWithZone(g,void 0,f,function(a){a.forEach(function(a){l[hl(a.componentType).selector]=a})}).then(function(b){m=b;go(a).data("$ng2.InjectorController",m.injector);f.onMicrotaskEmpty.subscribe({next:function(a){return f.runOutsideAngular(function(){return e.$evalAsync()})}})}).then(b,d)})}])});var q=window.angular;q.resumeBootstrap=void 0;f.run(function(){$y(a,[c.idPrefix],d)});b=new Promise(function(a){if(q.resumeBootstrap){var b=q.resumeBootstrap;
  q.resumeBootstrap=function(){q.resumeBootstrap=b;q.resumeBootstrap.apply(this,arguments);a()}}else a()});Promise.all([b,p]).then(function(){m.injector.get(qc).run(function(){if(v){for(v.$apply=u;r.length;)k.$apply(r.shift());g._bootstrapDone(m,h);v=null}})},ds);return g};b.prototype.upgradeNg1Provider=function(a,b){this.providers.push({provide:b&&b.asToken||a,useFactory:function(b){return b.get(a)},deps:["$injector"]})};b.prototype.downgradeNg2Provider=function(a){var b=function(b){return b.get(a)};
  b.$inject=["ng2.Injector"];return b};return b}(),fz=function(){function b(){this.ng2Injector=this.ng2ModuleRef=this.ng1Injector=this.ng1RootScope=this._readyFn=null}b.prototype._bootstrapDone=function(a,b){this.ng2ModuleRef=a;this.ng2Injector=a.injector;this.ng1Injector=b;this.ng1RootScope=b.get("$rootScope");this._readyFn&&this._readyFn(this)};b.prototype.ready=function(a){this._readyFn=a};b.prototype.dispose=function(){this.ng1Injector.get("$rootScope").$destroy();this.ng2ModuleRef.destroy()};return b}(),
  Oe=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments);this.value=null;this.hasCompleted=this.hasNext=!1}c(b,a);b.prototype._subscribe=function(b){return this.hasCompleted&&this.hasNext?(b.next(this.value),b.complete(),Ba.Subscription.EMPTY):this.hasError?(b.error(this.thrownError),Ba.Subscription.EMPTY):
  a.prototype._subscribe.call(this,b)};b.prototype.next=function(a){this.hasCompleted||(this.value=a,this.hasNext=!0)};b.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&a.prototype.next.call(this,this.value);a.prototype.complete.call(this)};return b}(Ea.Subject);a.AsyncSubject=b}),hz=k(function(b,a){function c(a){var b=a.subject;b.next(a.value);b.complete()}function d(a){a.subject.error(a.err)}var e=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c,d,g){a.call(this);this.callbackFunc=b;this.selector=c;this.args=d;this.scheduler=g}e(b,a);b.create=function(a,c,d){void 0===c&&(c=void 0);return function(){for(var g=[],f=0;f<arguments.length;f++)g[f-0]=arguments[f];return new b(a,c,g,d)}};b.prototype._subscribe=function(a){var c=this.callbackFunc,d=this.args,g=this.scheduler,f=this.subject;if(g)return g.schedule(b.dispatch,0,{source:this,
  subscriber:a});f||(f=this.subject=new Oe.AsyncSubject,g=function lq(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var c=lq.source,b=c.selector,c=c.subject;b?(a=qa.tryCatch(b).apply(this,a),a===M.errorObject?c.error(M.errorObject.e):(c.next(a),c.complete())):(c.next(1===a.length?a[0]:a),c.complete())},g.source=this,qa.tryCatch(c).apply(this,d.concat(g))===M.errorObject&&f.error(M.errorObject.e));return f.subscribe(a)};b.dispatch=function(a){var b=this,g=a.source;a=a.subscriber;var f=
  g.callbackFunc,e=g.args,h=g.scheduler,k=g.subject;if(!k){var k=g.subject=new Oe.AsyncSubject,l=function Wq(){for(var a=[],g=0;g<arguments.length;g++)a[g-0]=arguments[g];var f=Wq.source,g=f.selector,f=f.subject;g?(a=qa.tryCatch(g).apply(this,a),a===M.errorObject?b.add(h.schedule(d,0,{err:M.errorObject.e,subject:f})):b.add(h.schedule(c,0,{value:a,subject:f}))):b.add(h.schedule(c,0,{value:1===a.length?a[0]:a,subject:f}))};l.source=g;qa.tryCatch(f).apply(this,e.concat(l))===M.errorObject&&k.error(M.errorObject.e)}b.add(k.subscribe(a))};
  return b}(t.Observable);a.BoundCallbackObservable=b}),iz=k(function(b,a){a.bindCallback=hz.BoundCallbackObservable.create});k(function(b){t.Observable.bindCallback=iz.bindCallback});var jz=k(function(b,a){function c(a){var b=this,c=a.source;a=a.subscriber;var f=c.callbackFunc,r=c.args,k=c.scheduler,l=c.subject;if(!l){var l=c.subject=new m.AsyncSubject,n=function Yq(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];var f=Yq.source,c=f.selector,f=f.subject,m=a.shift();m?f.error(m):c?(a=
  g.tryCatch(c).apply(this,a),a===h.errorObject?b.add(k.schedule(e,0,{err:h.errorObject.e,subject:f})):b.add(k.schedule(d,0,{value:a,subject:f}))):b.add(k.schedule(d,0,{value:1===a.length?a[0]:a,subject:f}))};n.source=c;g.tryCatch(f).apply(this,r.concat(n))===h.errorObject&&l.error(h.errorObject.e)}b.add(l.subscribe(a))}function d(a){var b=a.subject;b.next(a.value);b.complete()}function e(a){a.subject.error(a.err)}var f=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=qa,h=M,m=Oe;b=function(a){function b(b,c,d,g){a.call(this);this.callbackFunc=b;this.selector=c;this.args=d;this.scheduler=g}f(b,a);b.create=function(a,c,d){void 0===c&&(c=void 0);return function(){for(var g=[],f=0;f<arguments.length;f++)g[f-0]=arguments[f];return new b(a,c,g,d)}};b.prototype._subscribe=function(a){var b=this.callbackFunc,d=this.args,f=this.scheduler,e=this.subject;if(f)return f.schedule(c,0,{source:this,
  subscriber:a});e||(e=this.subject=new m.AsyncSubject,f=function Xq(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var c=Xq.source,b=c.selector,c=c.subject,d=a.shift();d?c.error(d):b?(a=g.tryCatch(b).apply(this,a),a===h.errorObject?c.error(h.errorObject.e):(c.next(a),c.complete())):(c.next(1===a.length?a[0]:a),c.complete())},f.source=this,g.tryCatch(b).apply(this,d.concat(f))===h.errorObject&&e.error(h.errorObject.e));return e.subscribe(a)};return b}(t.Observable);a.BoundNodeCallbackObservable=
  b}),kz=k(function(b,a){a.bindNodeCallback=jz.BoundNodeCallbackObservable.create});k(function(b){t.Observable.bindNodeCallback=kz.bindNodeCallback});var uc=k(function(b,a){a.isScheduler=function(a){return a&&"function"===typeof a.schedule}}),Gi=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.value=
  b;this.scheduler=c;this._isScalar=!0;c&&(this._isScalar=!1)}c(b,a);b.create=function(a,c){return new b(a,c)};b.dispatch=function(a){var b=a.value,c=a.subscriber;a.done?c.complete():(c.next(b),c.closed||(a.done=!0,this.schedule(a)))};b.prototype._subscribe=function(a){var c=this.value,d=this.scheduler;if(d)return d.schedule(b.dispatch,0,{done:!1,value:c,subscriber:a});a.next(c);a.closed||a.complete()};return b}(t.Observable);a.ScalarObservable=b}),vc=k(function(b,a){var c=n&&n.__extends||function(a,
  b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b){a.call(this);this.scheduler=b}c(b,a);b.create=function(a){return new b(a)};b.dispatch=function(a){a.subscriber.complete()};b.prototype._subscribe=function(a){var c=this.scheduler;if(c)return c.schedule(b.dispatch,0,{subscriber:a});a.complete()};return b}(t.Observable);a.EmptyObservable=b}),wc=k(function(b,a){var c=n&&
  n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.array=b;this.scheduler=c;c||1!==b.length||(this._isScalar=!0,this.value=b[0])}c(b,a);b.create=function(a,c){return new b(a,c)};b.of=function(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];c=a[a.length-1];uc.isScheduler(c)?a.pop():c=null;var d=a.length;return 1<
  d?new b(a,c):1===d?new Gi.ScalarObservable(a[0],c):new vc.EmptyObservable(c)};b.dispatch=function(a){var b=a.array,c=a.index,d=a.subscriber;c>=a.count?d.complete():(d.next(b[c]),d.closed||(a.index=c+1,this.schedule(a)))};b.prototype._subscribe=function(a){var c=this.array,d=c.length,f=this.scheduler;if(f)return f.schedule(b.dispatch,0,{array:c,index:0,count:d,subscriber:a});for(f=0;f<d&&!a.closed;f++)a.next(c[f]);a.complete()};return b}(t.Observable);a.ArrayObservable=b}),ca=k(function(b,a){var c=
  n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments)}c(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.destination.next(b)};b.prototype.notifyError=function(a,b){this.destination.error(a)};b.prototype.notifyComplete=function(a){this.destination.complete()};return b}(J.Subscriber);a.OuterSubscriber=b}),ko=k(function(b,
  a){a.isPromise=function(a){return a&&"function"!==typeof a.subscribe&&"function"===typeof a.then}}),Kb=k(function(b,a){b=Q.root.Symbol;if("function"===typeof b)b.iterator?a.$$iterator=b.iterator:"function"===typeof b.for&&(a.$$iterator=b.for("iterator"));else if(Q.root.Set&&"function"===typeof(new Q.root.Set)["@@iterator"])a.$$iterator="@@iterator";else if(Q.root.Map){b=Object.getOwnPropertyNames(Q.root.Map.prototype);for(var c=0;c<b.length;++c){var d=b[c];if("entries"!==d&&"size"!==d&&Q.root.Map.prototype[d]===
  Q.root.Map.prototype.entries){a.$$iterator=d;break}}}else a.$$iterator="@@iterator"}),lo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c,d){a.call(this);this.parent=b;this.outerValue=c;this.outerIndex=d;this.index=0}c(b,a);b.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex,this.index++,
  this)};b.prototype._error=function(a){this.parent.notifyError(a,this);this.unsubscribe()};b.prototype._complete=function(){this.parent.notifyComplete(this);this.unsubscribe()};return b}(J.Subscriber);a.InnerSubscriber=b}),aa=k(function(b,a){a.subscribeToResult=function(a,b,e,f){var c=new lo.InnerSubscriber(a,e,f);if(c.closed)return null;if(b instanceof t.Observable)return b._isScalar?(c.next(b.value),c.complete(),null):b.subscribe(c);if(Sb.isArray(b)){a=0;for(e=b.length;a<e&&!c.closed;a++)c.next(b[a]);
  c.closed||c.complete()}else{if(ko.isPromise(b))return b.then(function(a){c.closed||(c.next(a),c.complete())},function(a){return c.error(a)}).then(null,function(a){Q.root.setTimeout(function(){throw a;})}),c;if("function"===typeof b[Kb.$$iterator]){b=b[Kb.$$iterator]();do{a=b.next();if(a.done){c.complete();break}c.next(a.value);if(c.closed)break}while(1)}else if("function"===typeof b[jd.$$observable])if(b=b[jd.$$observable](),"function"!==typeof b.subscribe)c.error(Error("invalid observable"));else return b.subscribe(new lo.InnerSubscriber(a,
  e,f));else c.error(new TypeError("unknown type returned"))}return null}}),Hi=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d={};a.combineLatest=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=null;"function"===typeof a[a.length-1]&&(b=a.pop());1===a.length&&Sb.isArray(a[0])&&(a=a[0]);a.unshift(this);return(new wc.ArrayObservable(a)).lift(new e(b))};
  var e=function(){function a(a){this.project=a}a.prototype.call=function(a,b){return b._subscribe(new f(a,this.project))};return a}();a.CombineLatestOperator=e;var f=function(a){function b(b,c){a.call(this,b);this.project=c;this.active=0;this.values=[];this.observables=[]}c(b,a);b.prototype._next=function(a){this.values.push(d);this.observables.push(a)};b.prototype._complete=function(){var a=this.observables,b=a.length;if(0===b)this.destination.complete();else{this.toRespond=this.active=b;for(var c=
  0;c<b;c++){var d=a[c];this.add(aa.subscribeToResult(this,d,d,c))}}};b.prototype.notifyComplete=function(a){0===--this.active&&this.destination.complete()};b.prototype.notifyNext=function(a,b,c,g,f){a=this.values;g=a[c];g=this.toRespond?g===d?--this.toRespond:this.toRespond:0;a[c]=b;0===g&&(this.project?this._tryProject(a):this.destination.next(a.slice()))};b.prototype._tryProject=function(a){var b;try{b=this.project.apply(this,a)}catch(u){this.destination.error(u);return}this.destination.next(b)};
  return b}(ca.OuterSubscriber);a.CombineLatestSubscriber=f}),lz=k(function(b,a){a.combineLatest=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var e=b=null;uc.isScheduler(a[a.length-1])&&(e=a.pop());"function"===typeof a[a.length-1]&&(b=a.pop());1===a.length&&Sb.isArray(a[0])&&(a=a[0]);return(new wc.ArrayObservable(a,e)).lift(new Hi.CombineLatestOperator(b))}});k(function(b){t.Observable.combineLatest=lz.combineLatest});var ng=k(function(b,a){var c=n&&n.__extends||function(a,
  b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.mergeAll=function(a){void 0===a&&(a=Number.POSITIVE_INFINITY);return this.lift(new d(a))};var d=function(){function a(a){this.concurrent=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.concurrent))};return a}();a.MergeAllOperator=d;var e=function(a){function b(b,c){a.call(this,b);this.concurrent=c;this.hasCompleted=!1;this.buffer=
  [];this.active=0}c(b,a);b.prototype._next=function(a){this.active<this.concurrent?(this.active++,this.add(aa.subscribeToResult(this,a))):this.buffer.push(a)};b.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return b}(ca.OuterSubscriber);a.MergeAllSubscriber=
  e}),Pe=k(function(b,a){function c(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=null;d.isScheduler(a[a.length-1])&&(b=a.pop());return(new e.ArrayObservable(a,b)).lift(new f.MergeAllOperator(1))}var d=uc,e=wc,f=ng;a.concat=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];return c.apply(void 0,[this].concat(a))};a.concatStatic=c}),mz=k(function(b,a){a.concat=Pe.concatStatic});k(function(b){t.Observable.concat=mz.concat});var nz=k(function(b,a){var c=n&&n.__extends||
  function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b){a.call(this);this.observableFactory=b}c(b,a);b.create=function(a){return new b(a)};b.prototype._subscribe=function(a){return new d(a,this.observableFactory)};return b}(t.Observable);a.DeferObservable=b;var d=function(a){function b(b,c){a.call(this,b);this.factory=c;this.tryDefer()}c(b,a);b.prototype.tryDefer=
  function(){try{this._callFactory()}catch(g){this._error(g)}};b.prototype._callFactory=function(){var a=this.factory();a&&this.add(aa.subscribeToResult(this,a))};return b}(ca.OuterSubscriber)}),oz=k(function(b,a){a.defer=nz.DeferObservable.create});k(function(b){t.Observable.defer=oz.defer});var pz=k(function(b,a){a.empty=vc.EmptyObservable.create});k(function(b){t.Observable.empty=pz.empty});var qz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.sources=b;this.resultSelector=c}c(b,a);b.create=function(){for(var a=[],c=0;c<arguments.length;c++)a[c-0]=arguments[c];if(null===a||0===arguments.length)return new vc.EmptyObservable;c=null;"function"===typeof a[a.length-1]&&(c=a.pop());1===a.length&&Sb.isArray(a[0])&&(a=a[0]);return 0===a.length?new vc.EmptyObservable:new b(a,c)};b.prototype._subscribe=function(a){return new d(a,
  this.sources,this.resultSelector)};return b}(t.Observable);a.ForkJoinObservable=b;var d=function(a){function b(b,c,d){a.call(this,b);this.sources=c;this.resultSelector=d;this.haveValues=this.completed=0;this.total=b=c.length;this.values=Array(b);for(d=0;d<b;d++){var g=aa.subscribeToResult(this,c[d],null,d);g&&(g.outerIndex=d,this.add(g))}}c(b,a);b.prototype.notifyNext=function(a,b,c,d,f){this.values[c]=b;f._hasValue||(f._hasValue=!0,this.haveValues++)};b.prototype.notifyComplete=function(a){var b=
  this.destination,c=this.haveValues,d=this.resultSelector,g=this.values,f=g.length;a._hasValue?(this.completed++,this.completed===f&&(c===f&&(a=d?d.apply(this,g):g,b.next(a)),b.complete())):b.complete()};return b}(ca.OuterSubscriber)}),rz=k(function(b,a){a.forkJoin=qz.ForkJoinObservable.create});k(function(b){t.Observable.forkJoin=rz.forkJoin});var sz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===
  b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.scheduler=c;if(null==b)throw Error("iterator cannot be null.");if((c=b[Kb.$$iterator])||"string"!==typeof b)if(c||void 0===b.length){if(!c)throw new TypeError("object is not iterable");b=b[Kb.$$iterator]()}else b=new e(b);else b=new d(b);this.iterator=b}c(b,a);b.create=function(a,c){return new b(a,c)};b.dispatch=function(a){var b=a.index,c=a.iterator,d=a.subscriber;a.hasError?d.error(a.error):(c=c.next(),
  c.done?d.complete():(d.next(c.value),a.index=b+1,d.closed||this.schedule(a)))};b.prototype._subscribe=function(a){var c=this.iterator,d=this.scheduler;if(d)return d.schedule(b.dispatch,0,{index:0,iterator:c,subscriber:a});do{d=c.next();if(d.done){a.complete();break}else a.next(d.value);if(a.closed)break}while(1)};return b}(t.Observable);a.IteratorObservable=b;var d=function(){function a(a,b,c){void 0===b&&(b=0);void 0===c&&(c=a.length);this.str=a;this.idx=b;this.len=c}a.prototype[Kb.$$iterator]=function(){return this};
  a.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}};return a}(),e=function(){function a(a,b,c){void 0===b&&(b=0);if(void 0===c)if(c=+a.length,isNaN(c))c=0;else if(0!==c&&"number"===typeof c&&Q.root.isFinite(c)){var d;d=+c;d=0===d?d:isNaN(d)?d:0>d?-1:1;c=d*Math.floor(Math.abs(c));c=0>=c?0:c>f?f:c}this.arr=a;this.idx=b;this.len=c}a.prototype[Kb.$$iterator]=function(){return this};a.prototype.next=function(){return this.idx<this.len?
  {done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}};return a}(),f=Math.pow(2,53)-1}),tz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.arrayLike=b;this.scheduler=c;c||1!==b.length||(this._isScalar=!0,this.value=b[0])}c(b,a);b.create=function(a,c){var d=a.length;return 0===d?new vc.EmptyObservable:
  1===d?new Gi.ScalarObservable(a[0],c):new b(a,c)};b.dispatch=function(a){var b=a.arrayLike,c=a.index,d=a.subscriber;d.closed||(c>=a.length?d.complete():(d.next(b[c]),a.index=c+1,this.schedule(a)))};b.prototype._subscribe=function(a){var c=this.arrayLike,d=this.scheduler,f=c.length;if(d)return d.schedule(b.dispatch,0,{arrayLike:c,index:0,length:f,subscriber:a});for(d=0;d<f&&!a.closed;d++)a.next(c[d]);a.complete()};return b}(t.Observable);a.ArrayLikeObservable=b}),Qa=k(function(b,a){b=function(){function a(a,
  b,c){this.kind=a;this.value=b;this.exception=c;this.hasValue="N"===a}a.prototype.observe=function(a){switch(this.kind){case "N":return a.next&&a.next(this.value);case "E":return a.error&&a.error(this.exception);case "C":return a.complete&&a.complete()}};a.prototype.do=function(a,b,c){switch(this.kind){case "N":return a&&a(this.value);case "E":return b&&b(this.exception);case "C":return c&&c()}};a.prototype.accept=function(a,b,c){return a&&"function"===typeof a.next?this.observe(a):this.do(a,b,c)};
  a.prototype.toObservable=function(){switch(this.kind){case "N":return t.Observable.of(this.value);case "E":return t.Observable.throw(this.exception);case "C":return t.Observable.empty()}throw Error("unexpected notification kind value");};a.createNext=function(b){return"undefined"!==typeof b?new a("N",b):this.undefinedValueNotification};a.createError=function(b){return new a("E",void 0,b)};a.createComplete=function(){return this.completeNotification};a.completeNotification=new a("C");a.undefinedValueNotification=
  new a("N",void 0);return a}();a.Notification=b}),Ii=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.observeOn=function(a,b){void 0===b&&(b=0);return this.lift(new d(a,b))};var d=function(){function a(a,b){void 0===b&&(b=0);this.scheduler=a;this.delay=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.scheduler,this.delay))};return a}();
  a.ObserveOnOperator=d;var e=function(a){function b(b,c,d){void 0===d&&(d=0);a.call(this,b);this.scheduler=c;this.delay=d}c(b,a);b.dispatch=function(a){a.notification.observe(a.destination)};b.prototype.scheduleMessage=function(a){this.add(this.scheduler.schedule(b.dispatch,this.delay,new f(a,this.destination)))};b.prototype._next=function(a){this.scheduleMessage(Qa.Notification.createNext(a))};b.prototype._error=function(a){this.scheduleMessage(Qa.Notification.createError(a))};b.prototype._complete=
  function(){this.scheduleMessage(Qa.Notification.createComplete())};return b}(J.Subscriber);a.ObserveOnSubscriber=e;var f=function(){return function(a,b){this.notification=a;this.destination=b}}();a.ObserveOnMessage=f}),mo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this,null);this.ish=b;this.scheduler=c}
  c(b,a);b.create=function(a,c){if(null!=a){if("function"===typeof a[jd.$$observable])return a instanceof t.Observable&&!c?a:new b(a,c);if(Sb.isArray(a))return new wc.ArrayObservable(a,c);if(ko.isPromise(a))return new Cm.PromiseObservable(a,c);if("function"===typeof a[Kb.$$iterator]||"string"===typeof a)return new sz.IteratorObservable(a,c);if(a&&"number"===typeof a.length)return new tz.ArrayLikeObservable(a,c)}throw new TypeError((null!==a&&typeof a||a)+" is not observable");};b.prototype._subscribe=
  function(a){var b=this.ish,c=this.scheduler;return null==c?b[jd.$$observable]().subscribe(a):b[jd.$$observable]().subscribe(new Ii.ObserveOnSubscriber(a,c,0))};return b}(t.Observable);a.FromObservable=b}),uz=k(function(b,a){a.from=mo.FromObservable.create});k(function(b){t.Observable.from=uz.from});var vz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,
  new c)};b=function(a){function b(b,c,d,e){a.call(this);this.sourceObj=b;this.eventName=c;this.selector=d;this.options=e}c(b,a);b.create=function(a,c,d,e){Kf.isFunction(d)&&(e=d,d=void 0);return new b(a,c,e,d)};b.setupSubscription=function(a,c,d,e,r){var g;if(a&&"[object NodeList]"===a.toString()||a&&"[object HTMLCollection]"===a.toString())for(var f=0,h=a.length;f<h;f++)b.setupSubscription(a[f],c,d,e,r);else a&&"function"===typeof a.addEventListener&&"function"===typeof a.removeEventListener?(a.addEventListener(c,
  d,r),g=function(){return a.removeEventListener(c,d)}):a&&"function"===typeof a.on&&"function"===typeof a.off?(a.on(c,d),g=function(){return a.off(c,d)}):a&&"function"===typeof a.addListener&&"function"===typeof a.removeListener&&(a.addListener(c,d),g=function(){return a.removeListener(c,d)});e.add(new Ba.Subscription(g))};b.prototype._subscribe=function(a){var c=this.selector;b.setupSubscription(this.sourceObj,this.eventName,c?function(){for(var b=[],d=0;d<arguments.length;d++)b[d-0]=arguments[d];
  b=qa.tryCatch(c).apply(void 0,b);b===M.errorObject?a.error(M.errorObject.e):a.next(b)}:function(b){return a.next(b)},a,this.options)};return b}(t.Observable);a.FromEventObservable=b}),wz=k(function(b,a){a.fromEvent=vz.FromEventObservable.create});k(function(b){t.Observable.fromEvent=wz.fromEvent});var xz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,
  new c)};b=function(a){function b(b,c,d){a.call(this);this.addHandler=b;this.removeHandler=c;this.selector=d}c(b,a);b.create=function(a,c,d){return new b(a,c,d)};b.prototype._subscribe=function(a){var b=this,c=this.removeHandler,d=this.selector?function(){for(var c=[],d=0;d<arguments.length;d++)c[d-0]=arguments[d];b._callSelector(a,c)}:function(b){a.next(b)};this._callAddHandler(d,a);a.add(new Ba.Subscription(function(){c(d)}))};b.prototype._callSelector=function(a,b){try{var c=this.selector.apply(this,
  b);a.next(c)}catch(m){a.error(m)}};b.prototype._callAddHandler=function(a,b){try{this.addHandler(a)}catch(h){b.error(h)}};return b}(t.Observable);a.FromEventPatternObservable=b}),yz=k(function(b,a){a.fromEventPattern=xz.FromEventPatternObservable.create});k(function(b){t.Observable.fromEventPattern=yz.fromEventPattern});k(function(b){t.Observable.fromPromise=Dm.fromPromise});var zz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},d=function(a){return a};b=function(a){function b(b,c,d,f,e){a.call(this);this.initialState=b;this.condition=c;this.iterate=d;this.resultSelector=f;this.scheduler=e}c(b,a);b.create=function(a,c,f,e,u){return 1==arguments.length?new b(a.initialState,a.condition,a.iterate,a.resultSelector||d,a.scheduler):void 0===e||uc.isScheduler(e)?new b(a,c,f,d,e):new b(a,c,f,e,u)};b.prototype._subscribe=function(a){var c=this.initialState;
  if(this.scheduler)return this.scheduler.schedule(b.dispatch,0,{subscriber:a,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:c});var d=this.condition,g=this.resultSelector,f=this.iterate;do{if(d){var e=void 0;try{e=d(c)}catch(Nb){a.error(Nb);break}if(!e){a.complete();break}}e=void 0;try{e=g(c)}catch(Nb){a.error(Nb);break}a.next(e);if(a.closed)break;try{c=f(c)}catch(Nb){a.error(Nb);break}}while(1)};b.dispatch=function(a){var b=a.subscriber,c=a.condition;if(!b.closed){if(a.needIterate)try{a.state=
  a.iterate(a.state)}catch(v){b.error(v);return}else a.needIterate=!0;if(c){var d=void 0;try{d=c(a.state)}catch(v){b.error(v);return}if(!d){b.complete();return}if(b.closed)return}var g;try{g=a.resultSelector(a.state)}catch(v){b.error(v);return}if(!b.closed)return b.next(g),b.closed?void 0:this.schedule(a)}};return b}(t.Observable);a.GenerateObservable=b});k(function(b){t.Observable.generate=zz.GenerateObservable.create});var Az=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c,d){a.call(this);this.condition=b;this.thenSource=c;this.elseSource=d}c(b,a);b.create=function(a,c,d){return new b(a,c,d)};b.prototype._subscribe=function(a){return new d(a,this.condition,this.thenSource,this.elseSource)};return b}(t.Observable);a.IfObservable=b;var d=function(a){function b(b,c,d,f){a.call(this,b);this.condition=c;this.thenSource=d;this.elseSource=
  f;this.tryIf()}c(b,a);b.prototype.tryIf=function(){var a=this.condition,b=this.thenSource,c=this.elseSource,d;try{(a=(d=a())?b:c)?this.add(aa.subscribeToResult(this,a)):this._complete()}catch(u){this._error(u)}};return b}(ca.OuterSubscriber)}),Bz=k(function(b,a){a._if=Az.IfObservable.create});k(function(b){t.Observable.if=Bz._if});var Ji=k(function(b,a){a.isNumeric=function(a){return!Sb.isArray(a)&&0<=a-parseFloat(a)+1}}),Cz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this)}c(b,a);b.prototype.schedule=function(a,b){return this};return b}(Ba.Subscription);a.Action=b}),Qe=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this,
  b,c);this.scheduler=b;this.work=c;this.pending=!1}c(b,a);b.prototype.schedule=function(a,b){void 0===b&&(b=0);if(this.closed)return this;this.state=a;this.pending=!0;a=this.id;var c=this.scheduler;null!=a&&(this.id=this.recycleAsyncId(c,a,b));this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};b.prototype.requestAsyncId=function(a,b,c){void 0===c&&(c=0);return Q.root.setInterval(a.flush.bind(a,this),c)};b.prototype.recycleAsyncId=function(a,b,c){void 0===c&&(c=0);return null!==
  c&&this.delay===c?b:(Q.root.clearInterval(b),void 0)};b.prototype.execute=function(a,b){if(this.closed)return Error("executing a cancelled action");this.pending=!1;if(a=this._execute(a,b))return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))};b.prototype._execute=function(a,b){b=!1;var c=void 0;try{this.work(a)}catch(m){b=!0,c=!!m&&m||Error(m)}if(b)return this.unsubscribe(),c};b.prototype._unsubscribe=function(){var a=this.id,b=this.scheduler,c=b.actions,
  d=c.indexOf(this);this.state=this.delay=this.work=null;this.pending=!1;this.scheduler=null;-1!==d&&c.splice(d,1);null!=a&&(this.id=this.recycleAsyncId(b,a,null))};return b}(Cz.Action);a.AsyncAction=b}),Dz=k(function(b,a){b=function(){function a(b,c){void 0===c&&(c=a.now);this.SchedulerAction=b;this.now=c}a.prototype.schedule=function(a,b,c){void 0===b&&(b=0);return(new this.SchedulerAction(this,a)).schedule(c,b)};a.now=Date.now?Date.now:function(){return+new Date};return a}();a.Scheduler=b}),Re=k(function(b,
  a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments);this.actions=[];this.active=!1;this.scheduled=void 0}c(b,a);b.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();
  throw c;}}};return b}(Dz.Scheduler);a.AsyncScheduler=b}),cb=k(function(b,a){a.async=new Re.AsyncScheduler(Qe.AsyncAction)}),Ez=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){void 0===b&&(b=0);void 0===c&&(c=cb.async);a.call(this);this.period=b;this.scheduler=c;if(!Ji.isNumeric(b)||0>b)this.period=0;c&&"function"===
  typeof c.schedule||(this.scheduler=cb.async)}c(b,a);b.create=function(a,c){void 0===a&&(a=0);void 0===c&&(c=cb.async);return new b(a,c)};b.dispatch=function(a){var b=a.subscriber,c=a.period;b.next(a.index);b.closed||(a.index+=1,this.schedule(a,c))};b.prototype._subscribe=function(a){var c=this.period;a.add(this.scheduler.schedule(b.dispatch,c,{index:0,subscriber:a,period:c}))};return b}(t.Observable);a.IntervalObservable=b}),Fz=k(function(b,a){a.interval=Ez.IntervalObservable.create});k(function(b){t.Observable.interval=
  Fz.interval});var no=k(function(b,a){function c(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var b=Number.POSITIVE_INFINITY,c=null,r=a[a.length-1];f.isScheduler(r)?(c=a.pop(),1<a.length&&"number"===typeof a[a.length-1]&&(b=a.pop())):"number"===typeof r&&(b=a.pop());return 1===a.length?a[0]:(new d.ArrayObservable(a,c)).lift(new e.MergeAllOperator(b))}var d=wc,e=ng,f=uc;a.merge=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];a.unshift(this);return c.apply(this,
  a)};a.mergeStatic=c}),Gz=k(function(b,a){a.merge=no.mergeStatic});k(function(b){t.Observable.merge=Gz.merge});var oo=k(function(b,a){function c(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];if(1===a.length)if(e.isArray(a[0]))a=a[0];else return a[0];return(new f.ArrayObservable(a)).lift(new g)}var d=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=Sb,
  f=wc;a.race=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];1===a.length&&e.isArray(a[0])&&(a=a[0]);a.unshift(this);return c.apply(this,a)};a.raceStatic=c;var g=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new h(a))};return a}();a.RaceOperator=g;var h=function(a){function b(b){a.call(this,b);this.hasFirst=!1;this.observables=[];this.subscriptions=[]}d(b,a);b.prototype._next=function(a){this.observables.push(a)};b.prototype._complete=function(){var a=
  this.observables,b=a.length;if(0===b)this.destination.complete();else{for(var c=0;c<b;c++){var d=a[c],d=aa.subscribeToResult(this,d,d,c);this.subscriptions&&(this.subscriptions.push(d),this.add(d))}this.observables=null}};b.prototype.notifyNext=function(a,b,c,d,g){if(!this.hasFirst){this.hasFirst=!0;for(a=0;a<this.subscriptions.length;a++)a!==c&&(d=this.subscriptions[a],d.unsubscribe(),this.remove(d));this.subscriptions=null}this.destination.next(b)};return b}(ca.OuterSubscriber);a.RaceSubscriber=
  h});k(function(b){t.Observable.race=oo.raceStatic});var po=k(function(b,a){a.noop=function(){}}),Hz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.call(this)}c(b,a);b.create=function(){return new b};b.prototype._subscribe=function(a){po.noop()};return b}(t.Observable);a.NeverObservable=b}),Iz=k(function(b,a){a.never=
  Hz.NeverObservable.create});k(function(b){t.Observable.never=Iz.never});var Jz=k(function(b,a){a.of=wc.ArrayObservable.of});k(function(b){t.Observable.of=Jz.of});var qo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.onErrorResumeNext=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];1===a.length&&Sb.isArray(a[0])&&(a=a[0]);
  return this.lift(new d(a))};a.onErrorResumeNextStatic=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];1===a.length&&Sb.isArray(a[0])&&(a=a[0]);b=a.shift();return(new mo.FromObservable(b,null)).lift(new d(a))};var d=function(){function a(a){this.nextSources=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.nextSources))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.destination=b;this.nextSources=c}c(b,a);b.prototype.notifyError=function(a,b){this.subscribeToNextSource()};
  b.prototype.notifyComplete=function(a){this.subscribeToNextSource()};b.prototype._error=function(a){this.subscribeToNextSource()};b.prototype._complete=function(){this.subscribeToNextSource()};b.prototype.subscribeToNextSource=function(){var a=this.nextSources.shift();a?this.add(aa.subscribeToResult(this,a)):this.destination.complete()};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.onErrorResumeNext=qo.onErrorResumeNextStatic});var Kz=k(function(b,a){function c(a){var b=a.obj,c=a.keys,
  d=a.index,e=a.subscriber;d===a.length?e.complete():(c=c[d],e.next([c,b[c]]),a.index=d+1,this.schedule(a))}var d=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.obj=b;this.scheduler=c;this.keys=Object.keys(b)}d(b,a);b.create=function(a,c){return new b(a,c)};b.prototype._subscribe=function(a){var b=this.keys,d=this.scheduler,
  g=b.length;if(d)return d.schedule(c,0,{obj:this.obj,keys:b,length:g,index:0,subscriber:a});for(d=0;d<g;d++){var f=b[d];a.next([f,this.obj[f]])}a.complete()};return b}(t.Observable);a.PairsObservable=b}),Lz=k(function(b,a){a.pairs=Kz.PairsObservable.create});k(function(b){t.Observable.pairs=Lz.pairs});var Mz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,
  new c)};b=function(a){function b(b,c,d){a.call(this);this.start=b;this._count=c;this.scheduler=d}c(b,a);b.create=function(a,c,d){void 0===a&&(a=0);void 0===c&&(c=0);return new b(a,c,d)};b.dispatch=function(a){var b=a.start,c=a.index,d=a.subscriber;c>=a.count?d.complete():(d.next(b),d.closed||(a.index=c+1,a.start=b+1,this.schedule(a)))};b.prototype._subscribe=function(a){var c=0,d=this.start,f=this._count,e=this.scheduler;if(e)return e.schedule(b.dispatch,0,{index:c,count:f,start:d,subscriber:a});
  do{if(c++>=f){a.complete();break}a.next(d++);if(a.closed)break}while(1)};return b}(t.Observable);a.RangeObservable=b}),Nz=k(function(b,a){a.range=Mz.RangeObservable.create});k(function(b){t.Observable.range=Nz.range});var Oz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.resourceFactory=b;this.observableFactory=
  c}c(b,a);b.create=function(a,c){return new b(a,c)};b.prototype._subscribe=function(a){var b=this.resourceFactory,c=this.observableFactory,g;try{return g=b(),new d(a,g,c)}catch(u){a.error(u)}};return b}(t.Observable);a.UsingObservable=b;var d=function(a){function b(b,c,d){a.call(this,b);this.resource=c;this.observableFactory=d;b.add(c);this.tryUse()}c(b,a);b.prototype.tryUse=function(){try{var a=this.observableFactory.call(this,this.resource);a&&this.add(aa.subscribeToResult(this,a))}catch(h){this._error(h)}};
  return b}(ca.OuterSubscriber)}),Pz=k(function(b,a){a.using=Oz.UsingObservable.create});k(function(b){t.Observable.using=Pz.using});var Qz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.error=b;this.scheduler=c}c(b,a);b.create=function(a,c){return new b(a,c)};b.dispatch=function(a){a.subscriber.error(a.error)};
  b.prototype._subscribe=function(a){var c=this.error,d=this.scheduler;if(d)return d.schedule(b.dispatch,0,{error:c,subscriber:a});a.error(c)};return b}(t.Observable);a.ErrorObservable=b}),Rz=k(function(b,a){a._throw=Qz.ErrorObservable.create});k(function(b){t.Observable.throw=Rz._throw});var og=k(function(b,a){a.isDate=function(a){return a instanceof Date&&!isNaN(+a)}}),Sz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=
  b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c,d){void 0===b&&(b=0);a.call(this);this.period=-1;this.dueTime=0;Ji.isNumeric(c)?this.period=1>Number(c)&&1||Number(c):uc.isScheduler(c)&&(d=c);uc.isScheduler(d)||(d=cb.async);this.scheduler=d;this.dueTime=og.isDate(b)?+b-this.scheduler.now():b}c(b,a);b.create=function(a,c,d){void 0===a&&(a=0);return new b(a,c,d)};b.dispatch=function(a){var b=a.index,c=a.period,d=a.subscriber;d.next(b);if(!d.closed){if(-1===
  c)return d.complete();a.index=b+1;this.schedule(a,c)}};b.prototype._subscribe=function(a){return this.scheduler.schedule(b.dispatch,this.dueTime,{index:0,period:this.period,subscriber:a})};return b}(t.Observable);a.TimerObservable=b}),Tz=k(function(b,a){a.timer=Sz.TimerObservable.create});k(function(b){t.Observable.timer=Tz.timer});var Ki=k(function(b,a){function c(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=a[a.length-1];"function"===typeof b&&a.pop();return(new e.ArrayObservable(a)).lift(new f(b))}
  var d=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=wc;a.zipProto=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];a.unshift(this);return c.apply(this,a)};a.zipStatic=c;var f=function(){function a(a){this.project=a}a.prototype.call=function(a,b){return b._subscribe(new g(a,this.project))};return a}();a.ZipOperator=f;var g=function(a){function b(b,
  c,d){void 0===d&&(d=Object.create(null));a.call(this,b);this.index=0;this.iterators=[];this.active=0;this.project="function"===typeof c?c:null;this.values=d}d(b,a);b.prototype._next=function(a){var b=this.iterators,c=this.index++;Sb.isArray(a)?b.push(new m(a)):"function"===typeof a[Kb.$$iterator]?b.push(new h(a[Kb.$$iterator]())):b.push(new r(this.destination,this,a,c))};b.prototype._complete=function(){var a=this.iterators,b=a.length;this.active=b;for(var c=0;c<b;c++){var d=a[c];d.stillUnsubscribed?
  this.add(d.subscribe(d,c)):this.active--}};b.prototype.notifyInactive=function(){this.active--;0===this.active&&this.destination.complete()};b.prototype.checkIterators=function(){for(var a=this.iterators,b=a.length,c=this.destination,d=0;d<b;d++){var g=a[d];if("function"===typeof g.hasValue&&!g.hasValue())return}for(var f=!1,e=[],d=0;d<b;d++){var g=a[d],h=g.next();g.hasCompleted()&&(f=!0);if(h.done){c.complete();return}e.push(h.value)}this.project?this._tryProject(e):c.next(e);f&&c.complete()};b.prototype._tryProject=
  function(a){var b;try{b=this.project.apply(this,a)}catch(cd){this.destination.error(cd);return}this.destination.next(b)};return b}(J.Subscriber);a.ZipSubscriber=g;var h=function(){function a(a){this.iterator=a;this.nextResult=a.next()}a.prototype.hasValue=function(){return!0};a.prototype.next=function(){var a=this.nextResult;this.nextResult=this.iterator.next();return a};a.prototype.hasCompleted=function(){var a=this.nextResult;return a&&a.done};return a}(),m=function(){function a(a){this.array=a;
  this.length=this.index=0;this.length=a.length}a.prototype[Kb.$$iterator]=function(){return this};a.prototype.next=function(a){a=this.index++;var b=this.array;return a<this.length?{value:b[a],done:!1}:{value:null,done:!0}};a.prototype.hasValue=function(){return this.array.length>this.index};a.prototype.hasCompleted=function(){return this.array.length===this.index};return a}(),r=function(a){function b(b,c,d,g){a.call(this,b);this.parent=c;this.observable=d;this.index=g;this.stillUnsubscribed=!0;this.buffer=
  [];this.isComplete=!1}d(b,a);b.prototype[Kb.$$iterator]=function(){return this};b.prototype.next=function(){var a=this.buffer;return 0===a.length&&this.isComplete?{value:null,done:!0}:{value:a.shift(),done:!1}};b.prototype.hasValue=function(){return 0<this.buffer.length};b.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete};b.prototype.notifyComplete=function(){0<this.buffer.length?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()};b.prototype.notifyNext=
  function(a,b,c,d,g){this.buffer.push(b);this.parent.checkIterators()};b.prototype.subscribe=function(a,b){return aa.subscribeToResult(this,this.observable,this,b)};return b}(ca.OuterSubscriber)}),Uz=k(function(b,a){a.zip=Ki.zipStatic});k(function(b){t.Observable.zip=Uz.zip});var Li=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.map=function(a,
  b){if("function"!==typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new d(a,b))};var d=function(){function a(a,b){this.project=a;this.thisArg=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.project,this.thisArg))};return a}();a.MapOperator=d;var e=function(a){function b(b,c,d){a.call(this,b);this.project=c;this.count=0;this.thisArg=d||this}c(b,a);b.prototype._next=function(a){var b;try{b=this.project.call(this.thisArg,a,
  this.count++)}catch(r){this.destination.error(r);return}this.destination.next(b)};return b}(J.Subscriber)}),pg=k(function(b,a){function c(a,b){void 0===b&&(b=null);return new r({method:"GET",url:a,headers:b})}function d(a,b,c){return new r({method:"POST",url:a,body:b,headers:c})}function e(a,b){return new r({method:"DELETE",url:a,headers:b})}function f(a,b,c){return new r({method:"PUT",url:a,body:b,headers:c})}function g(a,b){return(new r({method:"GET",url:a,responseType:"json",headers:b})).lift(new m.MapOperator(function(a,
  b){return a.response},null))}var h=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},m=Li;a.ajaxGet=c;a.ajaxPost=d;a.ajaxDelete=e;a.ajaxPut=f;a.ajaxGetJSON=g;var r=function(a){function b(b){a.call(this);var c={async:!0,createXHR:function(){var a;if(this.crossDomain)if(Q.root.XMLHttpRequest)a=new Q.root.XMLHttpRequest,"withCredentials"in a&&(a.withCredentials=!!this.withCredentials);
  else if(Q.root.XDomainRequest)a=new Q.root.XDomainRequest;else throw Error("CORS is not supported by your browser");else if(Q.root.XMLHttpRequest)a=new Q.root.XMLHttpRequest;else{var b=void 0;try{for(var c=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],d=0;3>d;d++)try{b=c[d];new Q.root.ActiveXObject(b);break}catch(Gs){}a=new Q.root.ActiveXObject(b)}catch(Gs){throw Error("XMLHttpRequest is not supported by your browser");}}return a},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",
  responseType:"json",timeout:0};if("string"===typeof b)c.url=b;else for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);this.request=c}h(b,a);b.prototype._subscribe=function(a){return new u(a,this.request)};b.create=function(){var a=function(a){return new b(a)};a.get=c;a.post=d;a.delete=e;a.put=f;a.getJSON=g;return a}();return b}(t.Observable);a.AjaxObservable=r;var u=function(a){function b(b,c){a.call(this,b);this.request=c;this.done=!1;b=c.headers=c.headers||{};c.crossDomain||b["X-Requested-With"]||
  (b["X-Requested-With"]="XMLHttpRequest");"Content-Type"in b||Q.root.FormData&&c.body instanceof Q.root.FormData||"undefined"===typeof c.body||(b["Content-Type"]="application/x-www-form-urlencoded; charset\x3dUTF-8");c.body=this.serializeBody(c.body,c.headers["Content-Type"]);this.send()}h(b,a);b.prototype.next=function(a){this.done=!0;var b=this.destination;a=new k(a,this.xhr,this.request);b.next(a)};b.prototype.send=function(){var a=this.request,b=this.request,c=b.user,d=b.method,g=b.url,e=b.async,
  f=b.password,h=b.headers,b=b.body,m=qa.tryCatch(a.createXHR).call(a);if(m===M.errorObject)this.error(M.errorObject.e);else{this.xhr=m;if((c?qa.tryCatch(m.open).call(m,d,g,e,c,f):qa.tryCatch(m.open).call(m,d,g,e))===M.errorObject)return this.error(M.errorObject.e),null;m.timeout=a.timeout;m.responseType=a.responseType;this.setHeaders(m,h);this.setupEvents(m,a);b?m.send(b):m.send()}return m};b.prototype.serializeBody=function(a,b){if(!a||"string"===typeof a||Q.root.FormData&&a instanceof Q.root.FormData)return a;
  if(b){var c=b.indexOf(";");-1!==c&&(b=b.substring(0,c))}switch(b){case "application/x-www-form-urlencoded":return Object.keys(a).map(function(b){return encodeURI(b)+"\x3d"+encodeURI(a[b])}).join("\x26");case "application/json":return JSON.stringify(a);default:return a}};b.prototype.setHeaders=function(a,b){for(var c in b)b.hasOwnProperty(c)&&a.setRequestHeader(c,b[c])};b.prototype.setupEvents=function(a,b){var c=b.progressSubscriber;a.ontimeout=function Ch(a){var b=Ch.subscriber,c=Ch.progressSubscriber,
  d=Ch.request;c&&c.error(a);b.error(new p(this,d))};a.ontimeout.request=b;a.ontimeout.subscriber=this;a.ontimeout.progressSubscriber=c;a.upload&&"withCredentials"in a&&Q.root.XDomainRequest&&(c&&(a.onprogress=function pc(a){pc.progressSubscriber.next(a)},a.onprogress.progressSubscriber=c),a.onerror=function pc(a){var b=pc.progressSubscriber,c=pc.subscriber,d=pc.request;b&&b.error(a);c.error(new l("ajax error",this,d))},a.onerror.request=b,a.onerror.subscriber=this,a.onerror.progressSubscriber=c);a.onreadystatechange=
  function pc(a){var b=pc.subscriber,c=pc.progressSubscriber,d=pc.request;if(4===this.readyState){var g=1223===this.status?204:this.status,e="text"===this.responseType?this.response||this.responseText:this.response;0===g&&(g=e?200:0);200<=g&&300>g?(c&&c.complete(),b.next(a),b.complete()):(c&&c.error(a),b.error(new l("ajax error "+g,this,d)))}};a.onreadystatechange.subscriber=this;a.onreadystatechange.progressSubscriber=c;a.onreadystatechange.request=b};b.prototype.unsubscribe=function(){var b=this.xhr;
  !this.done&&b&&4!==b.readyState&&b.abort();a.prototype.unsubscribe.call(this)};return b}(J.Subscriber);a.AjaxSubscriber=u;var k=function(){return function(a,b,c){this.originalEvent=a;this.xhr=b;this.request=c;this.status=b.status;this.responseType=b.responseType||c.responseType;switch(this.responseType){case "json":this.response="response"in b?b.responseType?b.response:JSON.parse(b.response||b.responseText||"null"):JSON.parse(b.responseText||"null");break;case "xml":this.response=b.responseXML;break;
  default:this.response="response"in b?b.response:b.responseText}}}();a.AjaxResponse=k;var l=function(a){function b(b,c,d){a.call(this,b);this.message=b;this.xhr=c;this.request=d;this.status=c.status}h(b,a);return b}(Error);a.AjaxError=l;var p=function(a){function b(b,c){a.call(this,"ajax timeout",b,c)}h(b,a);return b}(l);a.AjaxTimeoutError=p}),Vz=k(function(b,a){a.ajax=pg.AjaxObservable.create});k(function(b){t.Observable.ajax=Vz.ajax});var Wz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this,b,c);this.scheduler=b;this.work=c}c(b,a);b.prototype.schedule=function(b,c){void 0===c&&(c=0);if(0<c)return a.prototype.schedule.call(this,b,c);this.delay=c;this.state=b;this.scheduler.flush(this);return this};b.prototype.execute=function(b,c){return 0<c||this.closed?a.prototype.execute.call(this,b,c):this._execute(b,c)};b.prototype.requestAsyncId=
  function(b,c,d){void 0===d&&(d=0);return null!==d&&0<d?a.prototype.requestAsyncId.call(this,b,c,d):b.flush(this)};return b}(Qe.AsyncAction);a.QueueAction=b}),Xz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments)}c(b,a);return b}(Re.AsyncScheduler);a.QueueScheduler=b}),ro=k(function(b,a){a.queue=new Xz.QueueScheduler(Wz.QueueAction)}),
  Yc=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c,d){void 0===b&&(b=Number.POSITIVE_INFINITY);void 0===c&&(c=Number.POSITIVE_INFINITY);a.call(this);this.scheduler=d;this._events=[];this._bufferSize=1>b?1:b;this._windowTime=1>c?1:c}c(b,a);b.prototype.next=function(b){var c=this._getNow();this._events.push(new d(c,b));
  this._trimBufferThenGetEvents();a.prototype.next.call(this,b)};b.prototype._subscribe=function(b){var c=this._trimBufferThenGetEvents(),d=this.scheduler;d&&b.add(b=new Ii.ObserveOnSubscriber(b,d));for(var d=c.length,g=0;g<d&&!b.closed;g++)b.next(c[g].value);return a.prototype._subscribe.call(this,b)};b.prototype._getNow=function(){return(this.scheduler||ro.queue).now()};b.prototype._trimBufferThenGetEvents=function(){for(var a=this._getNow(),b=this._bufferSize,c=this._windowTime,d=this._events,e=
  d.length,f=0;f<e&&!(a-d[f].time<c);)f++;e>b&&(f=Math.max(f,e-b));0<f&&d.splice(0,f);return d};return b}(Ea.Subject);a.ReplaySubject=b;var d=function(){return function(a,b){this.time=a;this.value=b}}()}),Yz=k(function(b,a){var c=Q.root.Object;"function"!=typeof c.assign&&function(){c.assign=function(a){for(var b=[],d=1;d<arguments.length;d++)b[d-1]=arguments[d];if(void 0===a||null===a)throw new TypeError("cannot convert undefined or null to object");for(var d=c(a),g=b.length,h=0;h<g;h++){var m=b[h];
  if(void 0!==m&&null!==m)for(var r in m)m.hasOwnProperty(r)&&(d[r]=m[r])}return d}}();a.assign=c.assign}),Zz=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){if(b instanceof t.Observable)a.call(this,c,b);else{a.call(this);this.WebSocketCtor=Q.root.WebSocket;this._output=new Ea.Subject;"string"===typeof b?this.url=b:Yz.assign(this,
  b);if(!this.WebSocketCtor)throw Error("no WebSocket constructor can be found");this.destination=new Yc.ReplaySubject}}c(b,a);b.prototype.resultSelector=function(a){return JSON.parse(a.data)};b.create=function(a){return new b(a)};b.prototype.lift=function(a){var c=new b(this,this.destination);c.operator=a;return c};b.prototype.multiplex=function(a,b,c){var d=this;return new t.Observable(function(g){var e=qa.tryCatch(a)();e===M.errorObject?g.error(M.errorObject.e):d.next(e);var f=d.subscribe(function(a){var b=
  qa.tryCatch(c)(a);b===M.errorObject?g.error(M.errorObject.e):b&&g.next(a)},function(a){return g.error(a)},function(){return g.complete()});return function(){var a=qa.tryCatch(b)();a===M.errorObject?g.error(M.errorObject.e):d.next(a);f.unsubscribe()}})};b.prototype._connectSocket=function(){var a=this,b=this.WebSocketCtor,c=this._output,d=null;try{this.socket=d=this.protocol?new b(this.url,this.protocol):new b(this.url)}catch(u){c.error(u);return}var e=new Ba.Subscription(function(){a.socket=null;
  d&&1===d.readyState&&d.close()});d.onopen=function(b){var g=a.openObserver;g&&g.next(b);b=a.destination;a.destination=J.Subscriber.create(function(a){return 1===d.readyState&&d.send(a)},function(b){var g=a.closingObserver;g&&g.next(void 0);b&&b.code?d.close(b.code,b.reason):c.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }"));a.destination=new Yc.ReplaySubject;a.socket=null},function(){var b=a.closingObserver;
  b&&b.next(void 0);d.close();a.destination=new Yc.ReplaySubject;a.socket=null});b&&b instanceof Yc.ReplaySubject&&e.add(b.subscribe(a.destination))};d.onerror=function(a){return c.error(a)};d.onclose=function(b){var d=a.closeObserver;d&&d.next(b);b.wasClean?c.complete():c.error(b)};d.onmessage=function(b){b=qa.tryCatch(a.resultSelector)(b);b===M.errorObject?c.error(M.errorObject.e):c.next(b)}};b.prototype._subscribe=function(a){var b=this,c=this.source;if(c)return c.subscribe(a);this.socket||this._connectSocket();
  c=new Ba.Subscription;c.add(this._output.subscribe(a));c.add(function(){var a=b.socket;0===b._output.observers.length&&a&&1===a.readyState&&(a.close(),b.socket=null)});return c};b.prototype.unsubscribe=function(){var b=this.source,c=this.socket;c&&1===c.readyState&&(c.close(),this.socket=null);a.prototype.unsubscribe.call(this);b||(this.destination=new Yc.ReplaySubject)};return b}(Ea.AnonymousSubject);a.WebSocketSubject=b}),$z=k(function(b,a){a.webSocket=Zz.WebSocketSubject.create});k(function(b){t.Observable.webSocket=
  $z.webSocket});var aA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.buffer=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.closingNotifier=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.closingNotifier))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.buffer=[];this.add(aa.subscribeToResult(this,
  c))}c(b,a);b.prototype._next=function(a){this.buffer.push(a)};b.prototype.notifyNext=function(a,b,c,d,g){a=this.buffer;this.buffer=[];this.destination.next(a)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.buffer=aA.buffer});var bA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.bufferCount=function(a,b){void 0===b&&(b=
  null);return this.lift(new d(a,b))};var d=function(){function a(a,b){this.bufferSize=a;this.startBufferEvery=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.bufferSize,this.startBufferEvery))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.bufferSize=c;this.startBufferEvery=d;this.buffers=[[]];this.count=0}c(b,a);b.prototype._next=function(a){var b=this.count+=1,c=this.destination,d=this.bufferSize,g=this.buffers,e=g.length,f=-1;0===b%(null==this.startBufferEvery?
  d:this.startBufferEvery)&&g.push([]);for(b=0;b<e;b++){var h=g[b];h.push(a);h.length===d&&(f=b,c.next(h))}-1!==f&&g.splice(f,1)};b.prototype._complete=function(){for(var b=this.destination,c=this.buffers;0<c.length;){var d=c.shift();0<d.length&&b.next(d)}a.prototype._complete.call(this)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.bufferCount=bA.bufferCount});var cA=k(function(b,a){function c(a){var b=a.subscriber,c=a.context;c&&b.closeContext(c);b.closed||(a.context=b.openContext(),
  a.context.closeAction=this.schedule(a,a.bufferTimeSpan))}function d(a){var b=a.bufferCreationInterval,c=a.bufferTimeSpan,d=a.subscriber,g=a.scheduler,f=d.openContext();d.closed||(d.add(f.closeAction=g.schedule(e,c,{subscriber:d,context:f})),this.schedule(a,b))}function e(a){a.subscriber.closeContext(a.context)}var f=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.bufferTime=
  function(a){var b=arguments.length,c=cb.async;uc.isScheduler(arguments[arguments.length-1])&&(c=arguments[arguments.length-1],b--);var d=null;2<=b&&(d=arguments[1]);var e=Number.POSITIVE_INFINITY;3<=b&&(e=arguments[2]);return this.lift(new g(a,d,e,c))};var g=function(){function a(a,b,c,d){this.bufferTimeSpan=a;this.bufferCreationInterval=b;this.maxBufferSize=c;this.scheduler=d}a.prototype.call=function(a,b){return b._subscribe(new m(a,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,
  this.scheduler))};return a}(),h=function(){return function(){this.buffer=[]}}(),m=function(a){function b(b,g,f,h,m){a.call(this,b);this.bufferTimeSpan=g;this.bufferCreationInterval=f;this.maxBufferSize=h;this.scheduler=m;this.contexts=[];b=this.openContext();(this.timespanOnly=null==f||0>f)?this.add(b.closeAction=m.schedule(c,g,{subscriber:this,context:b,bufferTimeSpan:g})):(h={bufferTimeSpan:g,bufferCreationInterval:f,subscriber:this,scheduler:m},this.add(b.closeAction=m.schedule(e,g,{subscriber:this,
  context:b})),this.add(m.schedule(d,f,h)))}f(b,a);b.prototype._next=function(a){for(var b=this.contexts,c=b.length,d,g=0;g<c;g++){var e=b[g],f=e.buffer;f.push(a);f.length==this.maxBufferSize&&(d=e)}if(d)this.onBufferFull(d)};b.prototype._error=function(b){this.contexts.length=0;a.prototype._error.call(this,b)};b.prototype._complete=function(){for(var b=this.contexts,c=this.destination;0<b.length;){var d=b.shift();c.next(d.buffer)}a.prototype._complete.call(this)};b.prototype._unsubscribe=function(){this.contexts=
  null};b.prototype.onBufferFull=function(a){this.closeContext(a);a=a.closeAction;a.unsubscribe();this.remove(a);if(this.timespanOnly){a=this.openContext();var b=this.bufferTimeSpan;this.add(a.closeAction=this.scheduler.schedule(c,b,{subscriber:this,context:a,bufferTimeSpan:b}))}};b.prototype.openContext=function(){var a=new h;this.contexts.push(a);return a};b.prototype.closeContext=function(a){this.destination.next(a.buffer);var b=this.contexts;0<=(b?b.indexOf(a):-1)&&b.splice(b.indexOf(a),1)};return b}(J.Subscriber)});
  k(function(b){t.Observable.prototype.bufferTime=cA.bufferTime});var dA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.bufferToggle=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.openings=a;this.closingSelector=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.openings,this.closingSelector))};
  return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.openings=c;this.closingSelector=d;this.contexts=[];this.add(aa.subscribeToResult(this,c))}c(b,a);b.prototype._next=function(a){for(var b=this.contexts,c=b.length,d=0;d<c;d++)b[d].buffer.push(a)};b.prototype._error=function(b){for(var c=this.contexts;0<c.length;){var d=c.shift();d.subscription.unsubscribe();d.buffer=null;d.subscription=null}this.contexts=null;a.prototype._error.call(this,b)};b.prototype._complete=function(){for(var b=
  this.contexts;0<b.length;){var c=b.shift();this.destination.next(c.buffer);c.subscription.unsubscribe();c.buffer=null;c.subscription=null}this.contexts=null;a.prototype._complete.call(this)};b.prototype.notifyNext=function(a,b,c,d,g){a?this.closeBuffer(a):this.openBuffer(b)};b.prototype.notifyComplete=function(a){this.closeBuffer(a.context)};b.prototype.openBuffer=function(a){try{var b=this.closingSelector.call(this,a);b&&this.trySubscribe(b)}catch(r){this._error(r)}};b.prototype.closeBuffer=function(a){var b=
  this.contexts;if(b&&a){var c=a.subscription;this.destination.next(a.buffer);b.splice(b.indexOf(a),1);this.remove(c);c.unsubscribe()}};b.prototype.trySubscribe=function(a){var b=this.contexts,c=new Ba.Subscription,d={buffer:[],subscription:c};b.push(d);a=aa.subscribeToResult(this,a,d);!a||a.closed?this.closeBuffer(d):(a.context=d,this.add(a),c.add(a))};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.bufferToggle=dA.bufferToggle});var eA=k(function(b,a){var c=n&&n.__extends||function(a,
  b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.bufferWhen=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.closingSelector=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.closingSelector))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.closingSelector=c;this.subscribing=!1;this.openBuffer()}c(b,a);b.prototype._next=function(a){this.buffer.push(a)};
  b.prototype._complete=function(){var b=this.buffer;b&&this.destination.next(b);a.prototype._complete.call(this)};b.prototype._unsubscribe=function(){this.buffer=null;this.subscribing=!1};b.prototype.notifyNext=function(a,b,c,d,g){this.openBuffer()};b.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()};b.prototype.openBuffer=function(){var a=this.closingSubscription;a&&(this.remove(a),a.unsubscribe());(a=this.buffer)&&this.destination.next(a);this.buffer=[];var b=
  qa.tryCatch(this.closingSelector)();b===M.errorObject?this.error(M.errorObject.e):(this.closingSubscription=a=new Ba.Subscription,this.add(a),this.subscribing=!0,a.add(aa.subscribeToResult(this,b)),this.subscribing=!1)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.bufferWhen=eA.bufferWhen});var fA=k(function(b,a){a.cache=function(a,b,e){void 0===a&&(a=Number.POSITIVE_INFINITY);void 0===b&&(b=Number.POSITIVE_INFINITY);var c,d=this,h=0,m,r=function(){return c=new Yc.ReplaySubject(a,
  b,e)};return new t.Observable(function(a){c||(c=r(),m=d.subscribe(function(a){return c.next(a)},function(a){var b=c;c=null;b.error(a)},function(){return c.complete()}));h++;c||(c=r());var b=c.subscribe(a);return function(){h--;b&&b.unsubscribe();0===h&&m.unsubscribe()}})}});k(function(b){t.Observable.prototype.cache=fA.cache});var so=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):
  (c.prototype=b.prototype,new c)};a._catch=function(a){a=new d(a);var b=this.lift(a);return a.caught=b};var d=function(){function a(a){this.selector=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.selector,this.caught))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.selector=c;this.caught=d}c(b,a);b.prototype.error=function(a){if(!this.isStopped){var b=void 0;try{b=this.selector(a,this.caught)}catch(r){this.destination.error(r);return}this.unsubscribe();this.destination.remove(this);
  aa.subscribeToResult(this,b)}};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.catch=so._catch;t.Observable.prototype._catch=so._catch});var gA=k(function(b,a){a.combineAll=function(a){return this.lift(new Hi.CombineLatestOperator(a))}});k(function(b){t.Observable.prototype.combineAll=gA.combineAll});k(function(b){t.Observable.prototype.combineLatest=Hi.combineLatest});k(function(b){t.Observable.prototype.concat=Pe.concat});var hA=k(function(b,a){a.concatAll=function(){return this.lift(new ng.MergeAllOperator(1))}});
  k(function(b){t.Observable.prototype.concatAll=hA.concatAll});var Mi=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.mergeMap=function(a,b,c){void 0===c&&(c=Number.POSITIVE_INFINITY);"number"===typeof b&&(c=b,b=null);return this.lift(new d(a,b,c))};var d=function(){function a(a,b,c){void 0===c&&(c=Number.POSITIVE_INFINITY);this.project=a;this.resultSelector=
  b;this.concurrent=c}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.project,this.resultSelector,this.concurrent))};return a}();a.MergeMapOperator=d;var e=function(a){function b(b,c,d,g){void 0===g&&(g=Number.POSITIVE_INFINITY);a.call(this,b);this.project=c;this.resultSelector=d;this.concurrent=g;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0}c(b,a);b.prototype._next=function(a){this.active<this.concurrent?this._tryNext(a):this.buffer.push(a)};b.prototype._tryNext=function(a){var b,
  c=this.index++;try{b=this.project(a,c)}catch(u){this.destination.error(u);return}this.active++;this._innerSub(b,a,c)};b.prototype._innerSub=function(a,b,c){this.add(aa.subscribeToResult(this,a,b,c))};b.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};b.prototype.notifyNext=function(a,b,c,d,g){this.resultSelector?this._notifyResultSelector(a,b,c,d):this.destination.next(b)};b.prototype._notifyResultSelector=function(a,b,c,d){var g;
  try{g=this.resultSelector(a,b,c,d)}catch(Nb){this.destination.error(Nb);return}this.destination.next(g)};b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return b}(ca.OuterSubscriber);a.MergeMapSubscriber=e}),iA=k(function(b,a){a.concatMap=function(a,b){return this.lift(new Mi.MergeMapOperator(a,b,1))}});k(function(b){t.Observable.prototype.concatMap=iA.concatMap});
  var Ni=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.mergeMapTo=function(a,b,c){void 0===c&&(c=Number.POSITIVE_INFINITY);"number"===typeof b&&(c=b,b=null);return this.lift(new d(a,b,c))};var d=function(){function a(a,b,c){void 0===c&&(c=Number.POSITIVE_INFINITY);this.ish=a;this.resultSelector=b;this.concurrent=c}a.prototype.call=function(a,
  b){return b._subscribe(new e(a,this.ish,this.resultSelector,this.concurrent))};return a}();a.MergeMapToOperator=d;var e=function(a){function b(b,c,d,g){void 0===g&&(g=Number.POSITIVE_INFINITY);a.call(this,b);this.ish=c;this.resultSelector=d;this.concurrent=g;this.hasCompleted=!1;this.buffer=[];this.index=this.active=0}c(b,a);b.prototype._next=function(a){if(this.active<this.concurrent){var b=this.resultSelector,c=this.index++,d=this.ish,g=this.destination;this.active++;this._innerSub(d,g,b,a,c)}else this.buffer.push(a)};
  b.prototype._innerSub=function(a,b,c,d,g){this.add(aa.subscribeToResult(this,a,d,g))};b.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&this.destination.complete()};b.prototype.notifyNext=function(a,b,c,d,g){g=this.destination;this.resultSelector?this.trySelectResult(a,b,c,d):g.next(b)};b.prototype.trySelectResult=function(a,b,c,d){var g=this.resultSelector,e=this.destination,f;try{f=g(a,b,c,d)}catch(cd){e.error(cd);return}e.next(f)};b.prototype.notifyError=
  function(a){this.destination.error(a)};b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()};return b}(ca.OuterSubscriber);a.MergeMapToSubscriber=e}),jA=k(function(b,a){a.concatMapTo=function(a,b){return this.lift(new Ni.MergeMapToOperator(a,b,1))}});k(function(b){t.Observable.prototype.concatMapTo=jA.concatMapTo});var kA=k(function(b,a){var c=n&&n.__extends||function(a,
  b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.count=function(a){return this.lift(new d(a,this))};var d=function(){function a(a,b){this.predicate=a;this.source=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate,this.source))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.predicate=c;this.source=d;this.index=this.count=0}c(b,a);b.prototype._next=function(a){this.predicate?
  this._tryPredicate(a):this.count++};b.prototype._tryPredicate=function(a){var b;try{b=this.predicate(a,this.index++,this.source)}catch(r){this.destination.error(r);return}b&&this.count++};b.prototype._complete=function(){this.destination.next(this.count);this.destination.complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.count=kA.count});var lA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);
  a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.dematerialize=function(){return this.lift(new d)};var d=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new e(a))};return a}(),e=function(a){function b(b){a.call(this,b)}c(b,a);b.prototype._next=function(a){a.observe(this.destination)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.dematerialize=lA.dematerialize});var mA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.debounce=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.durationSelector=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.durationSelector))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.durationSelector=c;this.hasValue=!1;this.durationSubscription=null}c(b,a);b.prototype._next=function(a){try{var b=this.durationSelector.call(this,
  a);b&&this._tryNext(a,b)}catch(r){this.destination.error(r)}};b.prototype._complete=function(){this.emitValue();this.destination.complete()};b.prototype._tryNext=function(a,b){var c=this.durationSubscription;this.value=a;this.hasValue=!0;c&&(c.unsubscribe(),this.remove(c));c=aa.subscribeToResult(this,b);c.closed||this.add(this.durationSubscription=c)};b.prototype.notifyNext=function(a,b,c,d,g){this.emitValue()};b.prototype.notifyComplete=function(){this.emitValue()};b.prototype.emitValue=function(){if(this.hasValue){var b=
  this.value,c=this.durationSubscription;c&&(this.durationSubscription=null,c.unsubscribe(),this.remove(c));this.value=null;this.hasValue=!1;a.prototype._next.call(this,b)}};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.debounce=mA.debounce});var nA=k(function(b,a){function c(a){a.debouncedNext()}var d=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};
  a.debounceTime=function(a,b){void 0===b&&(b=cb.async);return this.lift(new e(a,b))};var e=function(){function a(a,b){this.dueTime=a;this.scheduler=b}a.prototype.call=function(a,b){return b._subscribe(new f(a,this.dueTime,this.scheduler))};return a}(),f=function(a){function b(b,c,d){a.call(this,b);this.dueTime=c;this.scheduler=d;this.lastValue=this.debouncedSubscription=null;this.hasValue=!1}d(b,a);b.prototype._next=function(a){this.clearDebounce();this.lastValue=a;this.hasValue=!0;this.add(this.debouncedSubscription=
  this.scheduler.schedule(c,this.dueTime,this))};b.prototype._complete=function(){this.debouncedNext();this.destination.complete()};b.prototype.debouncedNext=function(){this.clearDebounce();this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)};b.prototype.clearDebounce=function(){var a=this.debouncedSubscription;null!==a&&(this.remove(a),a.unsubscribe(),this.debouncedSubscription=null)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.debounceTime=
  nA.debounceTime});var oA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.defaultIfEmpty=function(a){void 0===a&&(a=null);return this.lift(new d(a))};var d=function(){function a(a){this.defaultValue=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.defaultValue))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.defaultValue=
  c;this.isEmpty=!0}c(b,a);b.prototype._next=function(a){this.isEmpty=!1;this.destination.next(a)};b.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue);this.destination.complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.defaultIfEmpty=oA.defaultIfEmpty});var pA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=
  b.prototype,new c)};a.delay=function(a,b){void 0===b&&(b=cb.async);a=og.isDate(a)?+a-b.now():Math.abs(a);return this.lift(new d(a,b))};var d=function(){function a(a,b){this.delay=a;this.scheduler=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.delay,this.scheduler))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.delay=c;this.scheduler=d;this.queue=[];this.errored=this.active=!1}c(b,a);b.dispatch=function(a){for(var b=a.source,c=b.queue,d=a.scheduler,e=a.destination;0<
  c.length&&0>=c[0].time-d.now();)c.shift().notification.observe(e);0<c.length?(b=Math.max(0,c[0].time-d.now()),this.schedule(a,b)):b.active=!1};b.prototype._schedule=function(a){this.active=!0;this.add(a.schedule(b.dispatch,this.delay,{source:this,destination:this.destination,scheduler:a}))};b.prototype.scheduleNotification=function(a){if(!0!==this.errored){var b=this.scheduler;a=new f(b.now()+this.delay,a);this.queue.push(a);!1===this.active&&this._schedule(b)}};b.prototype._next=function(a){this.scheduleNotification(Qa.Notification.createNext(a))};
  b.prototype._error=function(a){this.errored=!0;this.queue=[];this.destination.error(a)};b.prototype._complete=function(){this.scheduleNotification(Qa.Notification.createComplete())};return b}(J.Subscriber),f=function(){return function(a,b){this.time=a;this.notification=b}}()});k(function(b){t.Observable.prototype.delay=pA.delay});var qA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):
  (c.prototype=b.prototype,new c)};a.delayWhen=function(a,b){return b?(new f(this,b)).lift(new d(a)):this.lift(new d(a))};var d=function(){function a(a){this.delayDurationSelector=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.delayDurationSelector))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.delayDurationSelector=c;this.completed=!1;this.delayNotifierSubscriptions=[];this.values=[]}c(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.destination.next(a);this.removeSubscription(e);
  this.tryComplete()};b.prototype.notifyError=function(a,b){this._error(a)};b.prototype.notifyComplete=function(a){(a=this.removeSubscription(a))&&this.destination.next(a);this.tryComplete()};b.prototype._next=function(a){try{var b=this.delayDurationSelector(a);b&&this.tryDelay(b,a)}catch(v){this.destination.error(v)}};b.prototype._complete=function(){this.completed=!0;this.tryComplete()};b.prototype.removeSubscription=function(a){a.unsubscribe();a=this.delayNotifierSubscriptions.indexOf(a);var b=null;
  -1!==a&&(b=this.values[a],this.delayNotifierSubscriptions.splice(a,1),this.values.splice(a,1));return b};b.prototype.tryDelay=function(a,b){a=aa.subscribeToResult(this,a,b);this.add(a);this.delayNotifierSubscriptions.push(a);this.values.push(b)};b.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()};return b}(ca.OuterSubscriber),f=function(a){function b(b,c){a.call(this);this.source=b;this.subscriptionDelay=c}c(b,a);b.prototype._subscribe=
  function(a){this.subscriptionDelay.subscribe(new g(a,this.source))};return b}(t.Observable),g=function(a){function b(b,c){a.call(this);this.parent=b;this.source=c;this.sourceSubscribed=!1}c(b,a);b.prototype._next=function(a){this.subscribeToSource()};b.prototype._error=function(a){this.unsubscribe();this.parent.error(a)};b.prototype._complete=function(){this.subscribeToSource()};b.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))};
  return b}(J.Subscriber)});k(function(b){t.Observable.prototype.delayWhen=qA.delayWhen});var to=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.distinct=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.compare=a;this.flushes=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.compare,this.flushes))};
  return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.values=[];"function"===typeof c&&(this.compare=c);d&&this.add(aa.subscribeToResult(this,d))}c(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.values.length=0};b.prototype.notifyError=function(a,b){this._error(a)};b.prototype._next=function(a){var b=this.values,c=b.length;try{for(var d=0;d<c;d++)if(this.compare(b[d],a))return}catch(v){this.destination.error(v);return}this.values.push(a);this.destination.next(a)};b.prototype.compare=
  function(a,b){return a===b};return b}(ca.OuterSubscriber);a.DistinctSubscriber=e});k(function(b){t.Observable.prototype.distinct=to.distinct});var rA=k(function(b,a){a.distinctKey=function(a,b,e){return to.distinct.call(this,function(c,d){return b?b(c[a],d[a]):c[a]===d[a]},e)}});k(function(b){t.Observable.prototype.distinctKey=rA.distinctKey});var uo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===
  b?Object.create(b):(c.prototype=b.prototype,new c)};a.distinctUntilChanged=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.compare=a;this.keySelector=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.compare,this.keySelector))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.keySelector=d;this.hasKey=!1;"function"===typeof c&&(this.compare=c)}c(b,a);b.prototype.compare=function(a,b){return a===b};b.prototype._next=function(a){var b=
  a;if(this.keySelector&&(b=qa.tryCatch(this.keySelector)(a),b===M.errorObject))return this.destination.error(M.errorObject.e);var c=!1;if(this.hasKey){if(c=qa.tryCatch(this.compare)(this.key,b),c===M.errorObject)return this.destination.error(M.errorObject.e)}else this.hasKey=!0;!1===!!c&&(this.key=b,this.destination.next(a))};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.distinctUntilChanged=uo.distinctUntilChanged});var sA=k(function(b,a){a.distinctUntilKeyChanged=function(a,b){return uo.distinctUntilChanged.call(this,
  function(c,d){return b?b(c[a],d[a]):c[a]===d[a]})}});k(function(b){t.Observable.prototype.distinctUntilKeyChanged=sA.distinctUntilKeyChanged});var vo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a._do=function(a,b,c){return this.lift(new d(a,b,c))};var d=function(){function a(a,b,c){this.nextOrObserver=a;this.error=b;this.complete=c}a.prototype.call=
  function(a,b){return b._subscribe(new e(a,this.nextOrObserver,this.error,this.complete))};return a}(),e=function(a){function b(b,c,d,e){a.call(this,b);b=new J.Subscriber(c,d,e);b.syncErrorThrowable=!0;this.add(b);this.safeSubscriber=b}c(b,a);b.prototype._next=function(a){var b=this.safeSubscriber;b.next(a);b.syncErrorThrown?this.destination.error(b.syncErrorValue):this.destination.next(a)};b.prototype._error=function(a){var b=this.safeSubscriber;b.error(a);b.syncErrorThrown?this.destination.error(b.syncErrorValue):
  this.destination.error(a)};b.prototype._complete=function(){var a=this.safeSubscriber;a.complete();a.syncErrorThrown?this.destination.error(a.syncErrorValue):this.destination.complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.do=vo._do;t.Observable.prototype._do=vo._do});var tA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};
  a.exhaust=function(){return this.lift(new d)};var d=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new e(a))};return a}(),e=function(a){function b(b){a.call(this,b);this.hasSubscription=this.hasCompleted=!1}c(b,a);b.prototype._next=function(a){this.hasSubscription||(this.hasSubscription=!0,this.add(aa.subscribeToResult(this,a)))};b.prototype._complete=function(){this.hasCompleted=!0;this.hasSubscription||this.destination.complete()};b.prototype.notifyComplete=function(a){this.remove(a);
  this.hasSubscription=!1;this.hasCompleted&&this.destination.complete()};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.exhaust=tA.exhaust});var uA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.exhaustMap=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.project=a;this.resultSelector=b}a.prototype.call=
  function(a,b){return b._subscribe(new e(a,this.project,this.resultSelector))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.project=c;this.resultSelector=d;this.hasCompleted=this.hasSubscription=!1;this.index=0}c(b,a);b.prototype._next=function(a){this.hasSubscription||this.tryNext(a)};b.prototype.tryNext=function(a){var b=this.index++,c=this.destination;try{var d=this.project(a,b);this.hasSubscription=!0;this.add(aa.subscribeToResult(this,d,a,b))}catch(v){c.error(v)}};b.prototype._complete=
  function(){this.hasCompleted=!0;this.hasSubscription||this.destination.complete()};b.prototype.notifyNext=function(a,b,c,d,e){e=this.destination;this.resultSelector?this.trySelectResult(a,b,c,d):e.next(b)};b.prototype.trySelectResult=function(a,b,c,d){var e=this.resultSelector,g=this.destination;try{var f=e(a,b,c,d);g.next(f)}catch(cd){g.error(cd)}};b.prototype.notifyError=function(a){this.destination.error(a)};b.prototype.notifyComplete=function(a){this.remove(a);this.hasSubscription=!1;this.hasCompleted&&
  this.destination.complete()};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.exhaustMap=uA.exhaustMap});var vA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.expand=function(a,b,c){void 0===b&&(b=Number.POSITIVE_INFINITY);void 0===c&&(c=void 0);b=1>(b||0)?Number.POSITIVE_INFINITY:b;return this.lift(new d(a,b,c))};var d=function(){function a(a,
  b,c){this.project=a;this.concurrent=b;this.scheduler=c}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.project,this.concurrent,this.scheduler))};return a}();a.ExpandOperator=d;var e=function(a){function b(b,c,d,e){a.call(this,b);this.project=c;this.concurrent=d;this.scheduler=e;this.active=this.index=0;this.hasCompleted=!1;d<Number.POSITIVE_INFINITY&&(this.buffer=[])}c(b,a);b.dispatch=function(a){a.subscriber.subscribeToProjection(a.result,a.value,a.index)};b.prototype._next=function(a){var c=
  this.destination;if(c.closed)this._complete();else{var d=this.index++;if(this.active<this.concurrent){c.next(a);var e=qa.tryCatch(this.project)(a,d);e===M.errorObject?c.error(M.errorObject.e):this.scheduler?this.add(this.scheduler.schedule(b.dispatch,0,{subscriber:this,result:e,value:a,index:d})):this.subscribeToProjection(e,a,d)}else this.buffer.push(a)}};b.prototype.subscribeToProjection=function(a,b,c){this.active++;this.add(aa.subscribeToResult(this,a,b,c))};b.prototype._complete=function(){(this.hasCompleted=
  !0,0===this.active)&&this.destination.complete()};b.prototype.notifyNext=function(a,b,c,d,e){this._next(b)};b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;b&&0<b.length&&this._next(b.shift());this.hasCompleted&&0===this.active&&this.destination.complete()};return b}(ca.OuterSubscriber);a.ExpandSubscriber=e});k(function(b){t.Observable.prototype.expand=vA.expand});var Se=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){var b=a.call(this,"argument out of range");this.name=b.name="ArgumentOutOfRangeError";this.stack=b.stack;this.message=b.message}c(b,a);return b}(Error);a.ArgumentOutOfRangeError=b}),wA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.elementAt=
  function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.index=a;this.defaultValue=b;if(0>a)throw new Se.ArgumentOutOfRangeError;}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.index,this.defaultValue))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.index=c;this.defaultValue=d}c(b,a);b.prototype._next=function(a){0===this.index--&&(this.destination.next(a),this.destination.complete())};b.prototype._complete=function(){var a=this.destination;
  0<=this.index&&("undefined"!==typeof this.defaultValue?a.next(this.defaultValue):a.error(new Se.ArgumentOutOfRangeError));a.complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.elementAt=wA.elementAt});var Oi=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.filter=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,
  b){this.predicate=a;this.thisArg=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate,this.thisArg))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.predicate=c;this.thisArg=d;this.count=0;this.predicate=c}c(b,a);b.prototype._next=function(a){var b;try{b=this.predicate.call(this.thisArg,a,this.count++)}catch(r){this.destination.error(r);return}b&&this.destination.next(a)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.filter=Oi.filter});var wo=
  k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a._finally=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.callback=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.callback))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.add(new Ba.Subscription(c))}c(b,a);return b}(J.Subscriber)});k(function(b){t.Observable.prototype.finally=
  wo._finally;t.Observable.prototype._finally=wo._finally});var xo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.find=function(a,b){if("function"!==typeof a)throw new TypeError("predicate is not a function");return this.lift(new d(a,this,!1,b))};var d=function(){function a(a,b,c,d){this.predicate=a;this.source=b;this.yieldIndex=c;this.thisArg=
  d}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate,this.source,this.yieldIndex,this.thisArg))};return a}();a.FindValueOperator=d;var e=function(a){function b(b,c,d,e,g){a.call(this,b);this.predicate=c;this.source=d;this.yieldIndex=e;this.thisArg=g;this.index=0}c(b,a);b.prototype.notifyComplete=function(a){var b=this.destination;b.next(a);b.complete()};b.prototype._next=function(a){var b=this.predicate,c=this.thisArg,d=this.index++;try{b.call(c||this,a,d,this.source)&&this.notifyComplete(this.yieldIndex?
  d:a)}catch(v){this.destination.error(v)}};b.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)};return b}(J.Subscriber);a.FindValueSubscriber=e});k(function(b){t.Observable.prototype.find=xo.find});var xA=k(function(b,a){a.findIndex=function(a,b){return this.lift(new xo.FindValueOperator(a,this,!0,b))}});k(function(b){t.Observable.prototype.findIndex=xA.findIndex});var qg=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){var b=a.call(this,"no elements in sequence");this.name=b.name="EmptyError";this.stack=b.stack;this.message=b.message}c(b,a);return b}(Error);a.EmptyError=b}),yA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.first=function(a,b,c){return this.lift(new d(a,
  b,c,this))};var d=function(){function a(a,b,c,d){this.predicate=a;this.resultSelector=b;this.defaultValue=c;this.source=d}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate,this.resultSelector,this.defaultValue,this.source))};return a}(),e=function(a){function b(b,c,d,e,g){a.call(this,b);this.predicate=c;this.resultSelector=d;this.defaultValue=e;this.source=g;this.index=0;this.hasCompleted=!1}c(b,a);b.prototype._next=function(a){var b=this.index++;this.predicate?this._tryPredicate(a,
  b):this._emit(a,b)};b.prototype._tryPredicate=function(a,b){var c;try{c=this.predicate(a,b,this.source)}catch(u){this.destination.error(u);return}c&&this._emit(a,b)};b.prototype._emit=function(a,b){this.resultSelector?this._tryResultSelector(a,b):this._emitFinal(a)};b.prototype._tryResultSelector=function(a,b){var c;try{c=this.resultSelector(a,b)}catch(u){this.destination.error(u);return}this._emitFinal(c)};b.prototype._emitFinal=function(a){var b=this.destination;b.next(a);b.complete();this.hasCompleted=
  !0};b.prototype._complete=function(){var a=this.destination;this.hasCompleted||"undefined"===typeof this.defaultValue?this.hasCompleted||a.error(new qg.EmptyError):(a.next(this.defaultValue),a.complete())};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.first=yA.first});var zA=k(function(b,a){b=function(){function a(){this.size=0;this._values=[];this._keys=[]}a.prototype.get=function(a){a=this._keys.indexOf(a);return-1===a?void 0:this._values[a]};a.prototype.set=function(a,b){var c=
  this._keys.indexOf(a);-1===c?(this._keys.push(a),this._values.push(b),this.size++):this._values[c]=b;return this};a.prototype.delete=function(a){a=this._keys.indexOf(a);if(-1===a)return!1;this._values.splice(a,1);this._keys.splice(a,1);this.size--;return!0};a.prototype.clear=function(){this._keys.length=0;this.size=this._values.length=0};a.prototype.forEach=function(a,b){for(var c=0;c<this.size;c++)a.call(b,this._values[c],this._keys[c])};return a}();a.MapPolyfill=b}),AA=k(function(b,a){a.Map=Q.root.Map||
  zA.MapPolyfill}),BA=k(function(b,a){b=function(){function a(){this.values={}}a.prototype.delete=function(a){this.values[a]=null;return!0};a.prototype.set=function(a,b){this.values[a]=b;return this};a.prototype.get=function(a){return this.values[a]};a.prototype.forEach=function(a,b){var c=this.values,d;for(d in c)c.hasOwnProperty(d)&&null!==c[d]&&a.call(b,c[d],d)};a.prototype.clear=function(){this.values={}};return a}();a.FastMap=b}),CA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.groupBy=function(a,b,c){return this.lift(new d(this,a,b,c))};var d=function(){function a(a,b,c,d){this.source=a;this.keySelector=b;this.elementSelector=c;this.durationSelector=d}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.keySelector,this.elementSelector,this.durationSelector))};return a}(),e=function(a){function b(b,c,d,e){a.call(this,b);this.keySelector=
  c;this.elementSelector=d;this.durationSelector=e;this.groups=null;this.attemptedToUnsubscribe=!1;this.count=0}c(b,a);b.prototype._next=function(a){var b;try{b=this.keySelector(a)}catch(Nb){this.error(Nb);return}this._group(a,b)};b.prototype._group=function(a,b){var c=this.groups;c||(c=this.groups="string"===typeof b?new BA.FastMap:new AA.Map);var d=c.get(b),e;if(this.elementSelector)try{e=this.elementSelector(a)}catch(ch){this.error(ch)}else e=a;if(!d&&(c.set(b,d=new Ea.Subject),a=new g(b,d,this),
  this.destination.next(a),this.durationSelector)){a=void 0;try{a=this.durationSelector(new g(b,d))}catch(ch){this.error(ch);return}this.add(a.subscribe(new f(b,d,this)))}d.closed||d.next(e)};b.prototype._error=function(a){var b=this.groups;b&&(b.forEach(function(b,c){b.error(a)}),b.clear());this.destination.error(a)};b.prototype._complete=function(){var a=this.groups;a&&(a.forEach(function(a,b){a.complete()}),a.clear());this.destination.complete()};b.prototype.removeGroup=function(a){this.groups.delete(a)};
  b.prototype.unsubscribe=function(){this.closed||this.attemptedToUnsubscribe||(this.attemptedToUnsubscribe=!0,0===this.count&&a.prototype.unsubscribe.call(this))};return b}(J.Subscriber),f=function(a){function b(b,c,d){a.call(this);this.key=b;this.group=c;this.parent=d}c(b,a);b.prototype._next=function(a){this._complete()};b.prototype._error=function(a){var b=this.group;b.closed||b.error(a);this.parent.removeGroup(this.key)};b.prototype._complete=function(){var a=this.group;a.closed||a.complete();
  this.parent.removeGroup(this.key)};return b}(J.Subscriber),g=function(a){function b(b,c,d){a.call(this);this.key=b;this.groupSubject=c;this.refCountSubscription=d}c(b,a);b.prototype._subscribe=function(a){var b=new Ba.Subscription,c=this.refCountSubscription,d=this.groupSubject;c&&!c.closed&&b.add(new h(c));b.add(d.subscribe(a));return b};return b}(t.Observable);a.GroupedObservable=g;var h=function(a){function b(b){a.call(this);this.parent=b;b.count++}c(b,a);b.prototype.unsubscribe=function(){var b=
  this.parent;b.closed||this.closed||(a.prototype.unsubscribe.call(this),--b.count,0===b.count&&b.attemptedToUnsubscribe&&b.unsubscribe())};return b}(Ba.Subscription)});k(function(b){t.Observable.prototype.groupBy=CA.groupBy});var DA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.ignoreElements=function(){return this.lift(new d)};var d=function(){function a(){}
  a.prototype.call=function(a,b){return b._subscribe(new e(a))};return a}(),e=function(a){function b(){a.apply(this,arguments)}c(b,a);b.prototype._next=function(a){po.noop()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.ignoreElements=DA.ignoreElements});var EA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.isEmpty=function(){return this.lift(new d)};
  var d=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new e(a))};return a}(),e=function(a){function b(b){a.call(this,b)}c(b,a);b.prototype.notifyComplete=function(a){var b=this.destination;b.next(a);b.complete()};b.prototype._next=function(a){this.notifyComplete(!1)};b.prototype._complete=function(){this.notifyComplete(!0)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.isEmpty=EA.isEmpty});var FA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.audit=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.durationSelector=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.durationSelector))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.durationSelector=c;this.hasValue=!1}c(b,a);b.prototype._next=function(a){this.value=a;this.hasValue=!0;this.throttled||(a=qa.tryCatch(this.durationSelector)(a),
  a===M.errorObject?this.destination.error(M.errorObject.e):this.add(this.throttled=aa.subscribeToResult(this,a)))};b.prototype.clearThrottle=function(){var a=this.value,b=this.hasValue,c=this.throttled;c&&(this.remove(c),this.throttled=null,c.unsubscribe());b&&(this.value=null,this.hasValue=!1,this.destination.next(a))};b.prototype.notifyNext=function(a,b,c,d){this.clearThrottle()};b.prototype.notifyComplete=function(){this.clearThrottle()};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.audit=
  FA.audit});var GA=k(function(b,a){function c(a){a.clearThrottle()}var d=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.auditTime=function(a,b){void 0===b&&(b=cb.async);return this.lift(new e(a,b))};var e=function(){function a(a,b){this.duration=a;this.scheduler=b}a.prototype.call=function(a,b){return b._subscribe(new f(a,this.duration,this.scheduler))};return a}(),
  f=function(a){function b(b,c,d){a.call(this,b);this.duration=c;this.scheduler=d;this.hasValue=!1}d(b,a);b.prototype._next=function(a){this.value=a;this.hasValue=!0;this.throttled||this.add(this.throttled=this.scheduler.schedule(c,this.duration,this))};b.prototype.clearThrottle=function(){var a=this.value,b=this.hasValue,c=this.throttled;c&&(this.remove(c),this.throttled=null,c.unsubscribe());b&&(this.value=null,this.hasValue=!1,this.destination.next(a))};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.auditTime=
  GA.auditTime});var HA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.last=function(a,b,c){return this.lift(new d(a,b,c,this))};var d=function(){function a(a,b,c,d){this.predicate=a;this.resultSelector=b;this.defaultValue=c;this.source=d}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate,this.resultSelector,this.defaultValue,
  this.source))};return a}(),e=function(a){function b(b,c,d,e,g){a.call(this,b);this.predicate=c;this.resultSelector=d;this.defaultValue=e;this.source=g;this.hasValue=!1;this.index=0;"undefined"!==typeof e&&(this.lastValue=e,this.hasValue=!0)}c(b,a);b.prototype._next=function(a){var b=this.index++;this.predicate?this._tryPredicate(a,b):this.resultSelector?this._tryResultSelector(a,b):(this.lastValue=a,this.hasValue=!0)};b.prototype._tryPredicate=function(a,b){var c;try{c=this.predicate(a,b,this.source)}catch(u){this.destination.error(u);
  return}c&&(this.resultSelector?this._tryResultSelector(a,b):(this.lastValue=a,this.hasValue=!0))};b.prototype._tryResultSelector=function(a,b){var c;try{c=this.resultSelector(a,b)}catch(u){this.destination.error(u);return}this.lastValue=c;this.hasValue=!0};b.prototype._complete=function(){var a=this.destination;this.hasValue?(a.next(this.lastValue),a.complete()):a.error(new qg.EmptyError)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.last=HA.last});var yo=k(function(b,a){a.letProto=
  function(a){return a(this)}});k(function(b){t.Observable.prototype.let=yo.letProto;t.Observable.prototype.letBind=yo.letProto});var IA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.every=function(a,b){return this.lift(new d(a,b,this))};var d=function(){function a(a,b,c){this.predicate=a;this.thisArg=b;this.source=c}a.prototype.call=function(a,
  b){return b._subscribe(new e(a,this.predicate,this.thisArg,this.source))};return a}(),e=function(a){function b(b,c,d,e){a.call(this,b);this.predicate=c;this.thisArg=d;this.source=e;this.index=0;this.thisArg=d||this}c(b,a);b.prototype.notifyComplete=function(a){this.destination.next(a);this.destination.complete()};b.prototype._next=function(a){var b=!1;try{b=this.predicate.call(this.thisArg,a,this.index++,this.source)}catch(r){this.destination.error(r);return}b||this.notifyComplete(!1)};b.prototype._complete=
  function(){this.notifyComplete(!0)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.every=IA.every});k(function(b){t.Observable.prototype.map=Li.map});var JA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.mapTo=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.value=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,
  this.value))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.value=c}c(b,a);b.prototype._next=function(a){this.destination.next(this.value)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.mapTo=JA.mapTo});var KA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.materialize=function(){return this.lift(new d)};var d=
  function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new e(a))};return a}(),e=function(a){function b(b){a.call(this,b)}c(b,a);b.prototype._next=function(a){this.destination.next(Qa.Notification.createNext(a))};b.prototype._error=function(a){var b=this.destination;b.next(Qa.Notification.createError(a));b.complete()};b.prototype._complete=function(){var a=this.destination;a.next(Qa.Notification.createComplete());a.complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.materialize=
  KA.materialize});var Pi=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.reduce=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.accumulator=a;this.seed=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.accumulator,this.seed))};return a}();a.ReduceOperator=d;var e=function(a){function b(b,c,d){a.call(this,
  b);this.accumulator=c;this.hasValue=!1;this.acc=d;this.accumulator=c;this.hasSeed="undefined"!==typeof d}c(b,a);b.prototype._next=function(a){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(a):(this.acc=a,this.hasValue=!0)};b.prototype._tryReduce=function(a){var b;try{b=this.accumulator(this.acc,a)}catch(r){this.destination.error(r);return}this.acc=b};b.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc);this.destination.complete()};return b}(J.Subscriber);
  a.ReduceSubscriber=e}),LA=k(function(b,a){a.max=function(a){return this.lift(new Pi.ReduceOperator("function"===typeof a?function(b,c){return 0<a(b,c)?b:c}:function(a,b){return a>b?a:b}))}});k(function(b){t.Observable.prototype.max=LA.max});k(function(b){t.Observable.prototype.merge=no.merge});k(function(b){t.Observable.prototype.mergeAll=ng.mergeAll});k(function(b){t.Observable.prototype.mergeMap=Mi.mergeMap;t.Observable.prototype.flatMap=Mi.mergeMap});k(function(b){t.Observable.prototype.flatMapTo=
  Ni.mergeMapTo;t.Observable.prototype.mergeMapTo=Ni.mergeMapTo});var MA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.mergeScan=function(a,b,c){void 0===c&&(c=Number.POSITIVE_INFINITY);return this.lift(new d(a,b,c))};var d=function(){function a(a,b,c){this.project=a;this.seed=b;this.concurrent=c}a.prototype.call=function(a,b){return b._subscribe(new e(a,
  this.project,this.seed,this.concurrent))};return a}();a.MergeScanOperator=d;var e=function(a){function b(b,c,d,e){a.call(this,b);this.project=c;this.acc=d;this.concurrent=e;this.hasCompleted=this.hasValue=!1;this.buffer=[];this.index=this.active=0}c(b,a);b.prototype._next=function(a){if(this.active<this.concurrent){var b=this.index++,c=qa.tryCatch(this.project)(this.acc,a),d=this.destination;c===M.errorObject?d.error(M.errorObject.e):(this.active++,this._innerSub(c,a,b))}else this.buffer.push(a)};
  b.prototype._innerSub=function(a,b,c){this.add(aa.subscribeToResult(this,a,b,c))};b.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())};b.prototype.notifyNext=function(a,b,c,d,e){a=this.destination;this.acc=b;this.hasValue=!0;a.next(b)};b.prototype.notifyComplete=function(a){var b=this.buffer;this.remove(a);this.active--;0<b.length?this._next(b.shift()):0===this.active&&this.hasCompleted&&
  (!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())};return b}(ca.OuterSubscriber);a.MergeScanSubscriber=e});k(function(b){t.Observable.prototype.mergeScan=MA.mergeScan});var NA=k(function(b,a){a.min=function(a){return this.lift(new Pi.ReduceOperator("function"===typeof a?function(b,c){return 0>a(b,c)?b:c}:function(a,b){return a<b?a:b}))}});k(function(b){t.Observable.prototype.min=NA.min});var Qi=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.source=b;this.subjectFactory=c;this._refCount=0}c(b,a);b.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};b.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory();return this._subject};b.prototype.connect=function(){var a=this._connection;a||(a=this._connection=
  new Ba.Subscription,a.add(this.source.subscribe(new d(this.getSubject(),this))),a.closed?(this._connection=null,a=Ba.Subscription.EMPTY):this._connection=a);return a};b.prototype.refCount=function(){return this.lift(new e(this))};return b}(t.Observable);a.ConnectableObservable=b;var d=function(a){function b(b,c){a.call(this,b);this.connectable=c}c(b,a);b.prototype._error=function(b){this._unsubscribe();a.prototype._error.call(this,b)};b.prototype._complete=function(){this._unsubscribe();a.prototype._complete.call(this)};
  b.prototype._unsubscribe=function(){var a=this.connectable;if(a){this.connectable=null;var b=a._connection;a._refCount=0;a._subject=null;a._connection=null;b&&b.unsubscribe()}};return b}(Ea.SubjectSubscriber),e=function(){function a(a){this.connectable=a}a.prototype.call=function(a,b){var c=this.connectable;c._refCount++;a=new f(a,c);b=b._subscribe(a);a.closed||(a.connection=c.connect());return b};return a}(),f=function(a){function b(b,c){a.call(this,b);this.connectable=c}c(b,a);b.prototype._unsubscribe=
  function(){var a=this.connectable;if(a){this.connectable=null;var b=a._refCount;0>=b?this.connection=null:(a._refCount=b-1,1<b?this.connection=null:(b=this.connection,a=a._connection,this.connection=null,!a||b&&a!==b||a.unsubscribe()))}else this.connection=null};return b}(J.Subscriber)}),zo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,
  c,d){a.call(this);this.source=b;this.subjectFactory=c;this.selector=d}c(b,a);b.prototype._subscribe=function(a){var b=this.selector,c=new Qi.ConnectableObservable(this.source,this.subjectFactory);a=b(c).subscribe(a);a.add(c.connect());return a};return b}(t.Observable);a.MulticastObservable=b}),td=k(function(b,a){a.multicast=function(a,b){var c;c="function"===typeof a?a:function(){return a};return b?new zo.MulticastObservable(this,c,b):new Qi.ConnectableObservable(this,c)}});k(function(b){t.Observable.prototype.multicast=
  td.multicast});k(function(b){t.Observable.prototype.observeOn=Ii.observeOn});k(function(b){t.Observable.prototype.onErrorResumeNext=qo.onErrorResumeNext});var OA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.pairwise=function(){return this.lift(new d)};var d=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new e(a))};
  return a}(),e=function(a){function b(b){a.call(this,b);this.hasPrev=!1}c(b,a);b.prototype._next=function(a){this.hasPrev?this.destination.next([this.prev,a]):this.hasPrev=!0;this.prev=a};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.pairwise=OA.pairwise});var PA=k(function(b,a){a.not=function(a,b){function c(){return!c.pred.apply(c.thisArg,arguments)}c.pred=a;c.thisArg=b;return c}}),QA=k(function(b,a){a.partition=function(a,b){return[Oi.filter.call(this,a),Oi.filter.call(this,PA.not(a,
  b))]}});k(function(b){t.Observable.prototype.partition=QA.partition});var RA=k(function(b,a){function c(a,b){return function(c){var d=c;for(c=0;c<b;c++)if(d=d[a[c]],"undefined"===typeof d)return;return d}}a.pluck=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=a.length;if(0===b)throw Error("list of properties cannot be empty.");return Li.map.call(this,c(a,b))}});k(function(b){t.Observable.prototype.pluck=RA.pluck});var SA=k(function(b,a){a.publish=function(a){return a?td.multicast.call(this,
  function(){return new Ea.Subject},a):td.multicast.call(this,new Ea.Subject)}});k(function(b){t.Observable.prototype.publish=SA.publish});var Ao=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b){a.call(this);this._value=b}c(b,a);Object.defineProperty(b.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,
  configurable:!0});b.prototype._subscribe=function(b){var c=a.prototype._subscribe.call(this,b);c&&!c.closed&&b.next(this._value);return c};b.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Wd.ObjectUnsubscribedError;return this._value};b.prototype.next=function(b){a.prototype.next.call(this,this._value=b)};return b}(Ea.Subject);a.BehaviorSubject=b}),TA=k(function(b,a){a.publishBehavior=function(a){return td.multicast.call(this,new Ao.BehaviorSubject(a))}});
  k(function(b){t.Observable.prototype.publishBehavior=TA.publishBehavior});var UA=k(function(b,a){a.publishReplay=function(a,b,e){void 0===a&&(a=Number.POSITIVE_INFINITY);void 0===b&&(b=Number.POSITIVE_INFINITY);return td.multicast.call(this,new Yc.ReplaySubject(a,b,e))}});k(function(b){t.Observable.prototype.publishReplay=UA.publishReplay});var VA=k(function(b,a){a.publishLast=function(){return td.multicast.call(this,new Oe.AsyncSubject)}});k(function(b){t.Observable.prototype.publishLast=VA.publishLast});
  k(function(b){t.Observable.prototype.race=oo.race});k(function(b){t.Observable.prototype.reduce=Pi.reduce});var WA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.repeat=function(a){void 0===a&&(a=-1);return 0===a?new vc.EmptyObservable:0>a?this.lift(new d(-1,this)):this.lift(new d(a-1,this))};var d=function(){function a(a,b){this.count=a;this.source=
  b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.count,this.source))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.count=c;this.source=d}c(b,a);b.prototype.complete=function(){if(!this.isStopped){var b=this.source,c=this.count;if(0===c)return a.prototype.complete.call(this);-1<c&&(this.count=c-1);this.unsubscribe();this.closed=this.isStopped=!1;b.subscribe(this)}};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.repeat=WA.repeat});var XA=k(function(b,
  a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.repeatWhen=function(a){return this.lift(new d(a,this))};var d=function(){function a(a,b){this.notifier=a;this.source=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.notifier,this.source))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.notifier=c;this.source=d}c(b,a);b.prototype.complete=
  function(){if(!this.isStopped){var b=this.notifications,c=this.retries,d=this.retriesSubscription;if(c)this.retriesSubscription=this.notifications=null;else{b=new Ea.Subject;c=qa.tryCatch(this.notifier)(b);if(c===M.errorObject)return a.prototype.complete.call(this);d=aa.subscribeToResult(this,c)}this.unsubscribe();this.closed=!1;this.notifications=b;this.retries=c;this.retriesSubscription=d;b.next()}};b.prototype._unsubscribe=function(){var a=this.notifications,b=this.retriesSubscription;a&&(a.unsubscribe(),
  this.notifications=null);b&&(b.unsubscribe(),this.retriesSubscription=null);this.retries=null};b.prototype.notifyNext=function(a,b,c,d,e){a=this.notifications;b=this.retries;c=this.retriesSubscription;this.retriesSubscription=this.retries=this.notifications=null;this.unsubscribe();this.closed=this.isStopped=!1;this.notifications=a;this.retries=b;this.retriesSubscription=c;this.source.subscribe(this)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.repeatWhen=XA.repeatWhen});var YA=
  k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.retry=function(a){void 0===a&&(a=-1);return this.lift(new d(a,this))};var d=function(){function a(a,b){this.count=a;this.source=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.count,this.source))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.count=c;this.source=
  d}c(b,a);b.prototype.error=function(b){if(!this.isStopped){var c=this.source,d=this.count;if(0===d)return a.prototype.error.call(this,b);-1<d&&(this.count=d-1);this.unsubscribe();this.closed=this.isStopped=!1;c.subscribe(this)}};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.retry=YA.retry});var ZA=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,
  new c)};a.retryWhen=function(a){return this.lift(new d(a,this))};var d=function(){function a(a,b){this.notifier=a;this.source=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.notifier,this.source))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.notifier=c;this.source=d}c(b,a);b.prototype.error=function(b){if(!this.isStopped){var c=this.errors,d=this.retries,e=this.retriesSubscription;if(d)this.retriesSubscription=this.errors=null;else{c=new Ea.Subject;d=qa.tryCatch(this.notifier)(c);
  if(d===M.errorObject)return a.prototype.error.call(this,M.errorObject.e);e=aa.subscribeToResult(this,d)}this.unsubscribe();this.closed=!1;this.errors=c;this.retries=d;this.retriesSubscription=e;c.next(b)}};b.prototype._unsubscribe=function(){var a=this.errors,b=this.retriesSubscription;a&&(a.unsubscribe(),this.errors=null);b&&(b.unsubscribe(),this.retriesSubscription=null);this.retries=null};b.prototype.notifyNext=function(a,b,c,d,e){a=this.errors;b=this.retries;c=this.retriesSubscription;this.retriesSubscription=
  this.retries=this.errors=null;this.unsubscribe();this.closed=this.isStopped=!1;this.errors=a;this.retries=b;this.retriesSubscription=c;this.source.subscribe(this)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.retryWhen=ZA.retryWhen});var $A=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.sample=function(a){return this.lift(new d(a))};
  var d=function(){function a(a){this.notifier=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.notifier))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.hasValue=!1;this.add(aa.subscribeToResult(this,c))}c(b,a);b.prototype._next=function(a){this.value=a;this.hasValue=!0};b.prototype.notifyNext=function(a,b,c,d,e){this.emitValue()};b.prototype.notifyComplete=function(){this.emitValue()};b.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))};
  return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.sample=$A.sample});var aB=k(function(b,a){function c(a){var b=a.period;a.subscriber.notifyNext();this.schedule(a,b)}var d=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.sampleTime=function(a,b){void 0===b&&(b=cb.async);return this.lift(new e(a,b))};var e=function(){function a(a,b){this.period=a;
  this.scheduler=b}a.prototype.call=function(a,b){return b._subscribe(new f(a,this.period,this.scheduler))};return a}(),f=function(a){function b(b,d,e){a.call(this,b);this.period=d;this.scheduler=e;this.hasValue=!1;this.add(e.schedule(c,d,{subscriber:this,period:d}))}d(b,a);b.prototype._next=function(a){this.lastValue=a;this.hasValue=!0};b.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.sampleTime=
  aB.sampleTime});var bB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.scan=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.accumulator=a;this.seed=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.accumulator,this.seed))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.accumulator=
  c;this.index=0;this.accumulatorSet=!1;this.seed=d;this.accumulatorSet="undefined"!==typeof d}c(b,a);Object.defineProperty(b.prototype,"seed",{get:function(){return this._seed},set:function(a){this.accumulatorSet=!0;this._seed=a},enumerable:!0,configurable:!0});b.prototype._next=function(a){if(this.accumulatorSet)return this._tryNext(a);this.seed=a;this.destination.next(a)};b.prototype._tryNext=function(a){var b=this.index++,c;try{c=this.accumulator(this.seed,a,b)}catch(u){this.destination.error(u)}this.seed=
  c;this.destination.next(c)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.scan=bB.scan});var cB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.sequenceEqual=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.compareTo=a;this.comparor=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,
  this.compareTo,this.comparor))};return a}();a.SequenceEqualOperator=d;var e=function(a){function b(b,c,d){a.call(this,b);this.compareTo=c;this.comparor=d;this._a=[];this._b=[];this._oneComplete=!1;this.add(c.subscribe(new f(b,this)))}c(b,a);b.prototype._next=function(a){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(a),this.checkValues())};b.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0};b.prototype.checkValues=
  function(){for(var a=this._a,b=this._b,c=this.comparor;0<a.length&&0<b.length;){var d=a.shift(),e=b.shift();c?(d=qa.tryCatch(c)(d,e),d===M.errorObject&&this.destination.error(M.errorObject.e)):d=d===e;d||this.emit(!1)}};b.prototype.emit=function(a){var b=this.destination;b.next(a);b.complete()};b.prototype.nextB=function(a){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(a),this.checkValues())};return b}(J.Subscriber);a.SequenceEqualSubscriber=e;var f=function(a){function b(b,c){a.call(this,
  b);this.parent=c}c(b,a);b.prototype._next=function(a){this.parent.nextB(a)};b.prototype._error=function(a){this.parent.error(a)};b.prototype._complete=function(){this.parent._complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.sequenceEqual=cB.sequenceEqual});var dB=k(function(b,a){function c(){return new d.Subject}var d=Ea;a.share=function(){return td.multicast.call(this,c).refCount()}});k(function(b){t.Observable.prototype.share=dB.share});var eB=k(function(b,a){var c=n&&
  n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.single=function(a){return this.lift(new d(a,this))};var d=function(){function a(a,b){this.predicate=a;this.source=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate,this.source))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.predicate=c;this.source=d;this.seenValue=!1;this.index=
  0}c(b,a);b.prototype.applySingleValue=function(a){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=a)};b.prototype._next=function(a){var b=this.predicate;this.index++;b?this.tryNext(a):this.applySingleValue(a)};b.prototype.tryNext=function(a){try{this.predicate(a,this.index,this.source)&&this.applySingleValue(a)}catch(m){this.destination.error(m)}};b.prototype._complete=function(){var a=this.destination;0<this.index?(a.next(this.seenValue?
  this.singleValue:void 0),a.complete()):a.error(new qg.EmptyError)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.single=eB.single});var fB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.skip=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.total=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,
  this.total))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.total=c;this.count=0}c(b,a);b.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.skip=fB.skip});var gB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.skipUntil=function(a){return this.lift(new d(a))};
  var d=function(){function a(a){this.notifier=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.notifier))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.isInnerStopped=this.hasValue=!1;this.add(aa.subscribeToResult(this,c))}c(b,a);b.prototype._next=function(b){this.hasValue&&a.prototype._next.call(this,b)};b.prototype._complete=function(){this.isInnerStopped?a.prototype._complete.call(this):this.unsubscribe()};b.prototype.notifyNext=function(a,b,c,d,e){this.hasValue=
  !0};b.prototype.notifyComplete=function(){this.isInnerStopped=!0;this.isStopped&&a.prototype._complete.call(this)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.skipUntil=gB.skipUntil});var hB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.skipWhile=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.predicate=
  a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.predicate=c;this.skipping=!0;this.index=0}c(b,a);b.prototype._next=function(a){var b=this.destination;this.skipping&&this.tryCallPredicate(a);this.skipping||b.next(a)};b.prototype.tryCallPredicate=function(a){try{this.skipping=!!this.predicate(a,this.index++)}catch(m){this.destination.error(m)}};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.skipWhile=
  hB.skipWhile});var iB=k(function(b,a){a.startWith=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];b=a[a.length-1];uc.isScheduler(b)?a.pop():b=null;var e=a.length;return 1===e?Pe.concatStatic(new Gi.ScalarObservable(a[0],b),this):1<e?Pe.concatStatic(new wc.ArrayObservable(a,b),this):Pe.concatStatic(new vc.EmptyObservable(b),this)}});k(function(b){t.Observable.prototype.startWith=iB.startWith});var Bo=k(function(b,a){b=function(){function a(a){this.root=a;a.setImmediate&&"function"===
  typeof a.setImmediate?(this.setImmediate=a.setImmediate.bind(a),this.clearImmediate=a.clearImmediate.bind(a)):(this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():
  this.setImmediate=this.createSetTimeoutSetImmediate(),a=function f(a){delete f.instance.tasksByHandle[a]},a.instance=this,this.clearImmediate=a)}a.prototype.identify=function(a){return this.root.Object.prototype.toString.call(a)};a.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)};a.prototype.canUseMessageChannel=function(){return!!this.root.MessageChannel};a.prototype.canUseReadyStateChange=function(){var a=this.root.document;return!!(a&&"onreadystatechange"in
  a.createElement("script"))};a.prototype.canUsePostMessage=function(){var a=this.root;if(a.postMessage&&!a.importScripts){var b=!0,c=a.onmessage;a.onmessage=function(){b=!1};a.postMessage("","*");a.onmessage=c;return b}return!1};a.prototype.partiallyApplied=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];c=function h(){var a=h.handler,b=h.args;"function"===typeof a?a.apply(void 0,b):(new Function(""+a))()};c.handler=a;c.args=b;return c};a.prototype.addFromSetImmediateArguments=
  function(a){this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,a);return this.nextHandle++};a.prototype.createProcessNextTickSetImmediate=function(){var a=function f(){var a=f.instance,b=a.addFromSetImmediateArguments(arguments);a.root.process.nextTick(a.partiallyApplied(a.runIfPresent,b));return b};a.instance=this;return a};a.prototype.createPostMessageSetImmediate=function(){var a=this.root,b="setImmediate$"+a.Math.random()+"$",c=function h(c){var d=h.instance;c.source===a&&
  "string"===typeof c.data&&0===c.data.indexOf(b)&&d.runIfPresent(+c.data.slice(b.length))};c.instance=this;a.addEventListener("message",c,!1);c=function m(){var a=m,b=a.messagePrefix,a=a.instance,c=a.addFromSetImmediateArguments(arguments);a.root.postMessage(b+c,"*");return c};c.instance=this;c.messagePrefix=b;return c};a.prototype.runIfPresent=function(a){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,a),0);else{var b=this.tasksByHandle[a];if(b){this.currentlyRunningATask=
  !0;try{b()}finally{this.clearImmediate(a),this.currentlyRunningATask=!1}}}};a.prototype.createMessageChannelSetImmediate=function(){var a=this,b=new this.root.MessageChannel;b.port1.onmessage=function(b){a.runIfPresent(b.data)};var c=function h(){var a=h,b=a.channel,a=a.instance.addFromSetImmediateArguments(arguments);b.port2.postMessage(a);return a};c.channel=b;c.instance=this;return c};a.prototype.createReadyStateChangeSetImmediate=function(){var a=function f(){var a=f.instance,b=a.root.document,
  c=b.documentElement,d=a.addFromSetImmediateArguments(arguments),k=b.createElement("script");k.onreadystatechange=function(){a.runIfPresent(d);k.onreadystatechange=null;c.removeChild(k);k=null};c.appendChild(k);return d};a.instance=this;return a};a.prototype.createSetTimeoutSetImmediate=function(){var a=function f(){var a=f.instance,b=a.addFromSetImmediateArguments(arguments);a.root.setTimeout(a.partiallyApplied(a.runIfPresent,b),0);return b};a.instance=this;return a};return a}();a.ImmediateDefinition=
  b;a.Immediate=new b(Q.root)}),jB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this,b,c);this.scheduler=b;this.work=c}c(b,a);b.prototype.requestAsyncId=function(b,c,d){void 0===d&&(d=0);if(null!==d&&0<d)return a.prototype.requestAsyncId.call(this,b,c,d);b.actions.push(this);return b.scheduled||(b.scheduled=
  Bo.Immediate.setImmediate(b.flush.bind(b,null)))};b.prototype.recycleAsyncId=function(b,c,d){void 0===d&&(d=0);if(null!==d&&0<d)return a.prototype.recycleAsyncId.call(this,b,c,d);0===b.actions.length&&(Bo.Immediate.clearImmediate(c),b.scheduled=void 0)};return b}(Qe.AsyncAction);a.AsapAction=b}),kB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};
  b=function(a){function b(){a.apply(this,arguments)}c(b,a);b.prototype.flush=function(){this.active=!0;this.scheduled=void 0;var a=this.actions,b,c=-1,d=a.length,e=a.shift();do if(b=e.execute(e.state,e.delay))break;while(++c<d&&(e=a.shift()));this.active=!1;if(b){for(;++c<d&&(e=a.shift());)e.unsubscribe();throw b;}};return b}(Re.AsyncScheduler);a.AsapScheduler=b}),rg=k(function(b,a){a.asap=new kB.AsapScheduler(jB.AsapAction)}),lB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c,d){void 0===c&&(c=0);void 0===d&&(d=rg.asap);a.call(this);this.source=b;this.delayTime=c;this.scheduler=d;if(!Ji.isNumeric(c)||0>c)this.delayTime=0;d&&"function"===typeof d.schedule||(this.scheduler=rg.asap)}c(b,a);b.create=function(a,c,d){void 0===c&&(c=0);void 0===d&&(d=rg.asap);return new b(a,c,d)};b.dispatch=function(a){return a.source.subscribe(a.subscriber)};
  b.prototype._subscribe=function(a){return this.scheduler.schedule(b.dispatch,this.delayTime,{source:this.source,subscriber:a})};return b}(t.Observable);a.SubscribeOnObservable=b}),mB=k(function(b,a){a.subscribeOn=function(a,b){void 0===b&&(b=0);return new lB.SubscribeOnObservable(this,b,a)}});k(function(b){t.Observable.prototype.subscribeOn=mB.subscribeOn});var Co=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=
  null===b?Object.create(b):(c.prototype=b.prototype,new c)};a._switch=function(){return this.lift(new d)};var d=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new e(a))};return a}(),e=function(a){function b(b){a.call(this,b);this.active=0;this.hasCompleted=!1}c(b,a);b.prototype._next=function(a){this.unsubscribeInner();this.active++;this.add(this.innerSubscription=aa.subscribeToResult(this,a))};b.prototype._complete=function(){this.hasCompleted=!0;0===this.active&&this.destination.complete()};
  b.prototype.unsubscribeInner=function(){this.active=0<this.active?this.active-1:0;var a=this.innerSubscription;a&&(a.unsubscribe(),this.remove(a))};b.prototype.notifyNext=function(a,b,c,d,e){this.destination.next(b)};b.prototype.notifyError=function(a){this.destination.error(a)};b.prototype.notifyComplete=function(){this.unsubscribeInner();this.hasCompleted&&0===this.active&&this.destination.complete()};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.switch=Co._switch;t.Observable.prototype._switch=
  Co._switch});var nB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.switchMap=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.project=a;this.resultSelector=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.project,this.resultSelector))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);
  this.project=c;this.resultSelector=d;this.index=0}c(b,a);b.prototype._next=function(a){var b,c=this.index++;try{b=this.project(a,c)}catch(u){this.destination.error(u);return}this._innerSub(b,a,c)};b.prototype._innerSub=function(a,b,c){var d=this.innerSubscription;d&&d.unsubscribe();this.add(this.innerSubscription=aa.subscribeToResult(this,a,b,c))};b.prototype._complete=function(){var b=this.innerSubscription;b&&!b.closed||a.prototype._complete.call(this)};b.prototype._unsubscribe=function(){this.innerSubscription=
  null};b.prototype.notifyComplete=function(b){this.remove(b);this.innerSubscription=null;this.isStopped&&a.prototype._complete.call(this)};b.prototype.notifyNext=function(a,b,c,d,e){this.resultSelector?this._tryNotifyNext(a,b,c,d):this.destination.next(b)};b.prototype._tryNotifyNext=function(a,b,c,d){var e;try{e=this.resultSelector(a,b,c,d)}catch(Nb){this.destination.error(Nb);return}this.destination.next(e)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.switchMap=nB.switchMap});
  var oB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.switchMapTo=function(a,b){return this.lift(new d(a,b))};var d=function(){function a(a,b){this.observable=a;this.resultSelector=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.observable,this.resultSelector))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.inner=
  c;this.resultSelector=d;this.index=0}c(b,a);b.prototype._next=function(a){var b=this.innerSubscription;b&&b.unsubscribe();this.add(this.innerSubscription=aa.subscribeToResult(this,this.inner,a,this.index++))};b.prototype._complete=function(){var b=this.innerSubscription;b&&!b.closed||a.prototype._complete.call(this)};b.prototype._unsubscribe=function(){this.innerSubscription=null};b.prototype.notifyComplete=function(b){this.remove(b);this.innerSubscription=null;this.isStopped&&a.prototype._complete.call(this)};
  b.prototype.notifyNext=function(a,b,c,d,e){e=this.destination;this.resultSelector?this.tryResultSelector(a,b,c,d):e.next(b)};b.prototype.tryResultSelector=function(a,b,c,d){var e=this.resultSelector,f=this.destination,g;try{g=e(a,b,c,d)}catch(cd){f.error(cd);return}f.next(g)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.switchMapTo=oB.switchMapTo});var pB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.take=function(a){return 0===a?new vc.EmptyObservable:this.lift(new d(a))};var d=function(){function a(a){this.total=a;if(0>this.total)throw new Se.ArgumentOutOfRangeError;}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.total))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.total=c;this.count=0}c(b,a);b.prototype._next=function(a){var b=this.total;++this.count<=b&&(this.destination.next(a),
  this.count===b&&(this.destination.complete(),this.unsubscribe()))};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.take=pB.take});var qB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.takeLast=function(a){return 0===a?new vc.EmptyObservable:this.lift(new d(a))};var d=function(){function a(a){this.total=a;if(0>this.total)throw new Se.ArgumentOutOfRangeError;
  }a.prototype.call=function(a,b){return b._subscribe(new e(a,this.total))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.total=c;this.ring=[];this.count=0}c(b,a);b.prototype._next=function(a){var b=this.ring,c=this.total,d=this.count++;b.length<c?b.push(a):b[d%c]=a};b.prototype._complete=function(){var a=this.destination,b=this.count;if(0<b)for(var c=this.count>=this.total?this.total:this.count,d=this.ring,e=0;e<c;e++){var f=b++%c;a.next(d[f])}a.complete()};return b}(J.Subscriber)});
  k(function(b){t.Observable.prototype.takeLast=qB.takeLast});var rB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.takeUntil=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.notifier=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.notifier))};return a}(),e=function(a){function b(b,c){a.call(this,b);
  this.notifier=c;this.add(aa.subscribeToResult(this,c))}c(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.complete()};b.prototype.notifyComplete=function(){};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.takeUntil=rB.takeUntil});var sB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.takeWhile=function(a){return this.lift(new d(a))};
  var d=function(){function a(a){this.predicate=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.predicate))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.predicate=c;this.index=0}c(b,a);b.prototype._next=function(a){var b=this.destination,c;try{c=this.predicate(a,this.index++)}catch(u){b.error(u);return}this.nextOrComplete(a,c)};b.prototype.nextOrComplete=function(a,b){var c=this.destination;b?c.next(a):c.complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.takeWhile=
  sB.takeWhile});var tB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.throttle=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.durationSelector=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.durationSelector))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.destination=b;this.durationSelector=
  c}c(b,a);b.prototype._next=function(a){this.throttled||this.tryDurationSelector(a)};b.prototype.tryDurationSelector=function(a){var b=null;try{b=this.durationSelector(a)}catch(r){this.destination.error(r);return}this.emitAndThrottle(a,b)};b.prototype.emitAndThrottle=function(a,b){this.add(this.throttled=aa.subscribeToResult(this,b));this.destination.next(a)};b.prototype._unsubscribe=function(){var a=this.throttled;a&&(this.remove(a),this.throttled=null,a.unsubscribe())};b.prototype.notifyNext=function(a,
  b,c,d,e){this._unsubscribe()};b.prototype.notifyComplete=function(){this._unsubscribe()};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.throttle=tB.throttle});var uB=k(function(b,a){function c(a){a.subscriber.clearThrottle()}var d=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.throttleTime=function(a,b){void 0===b&&(b=cb.async);return this.lift(new e(a,
  b))};var e=function(){function a(a,b){this.duration=a;this.scheduler=b}a.prototype.call=function(a,b){return b._subscribe(new f(a,this.duration,this.scheduler))};return a}(),f=function(a){function b(b,c,d){a.call(this,b);this.duration=c;this.scheduler=d}d(b,a);b.prototype._next=function(a){this.throttled||(this.add(this.throttled=this.scheduler.schedule(c,this.duration,{subscriber:this})),this.destination.next(a))};b.prototype.clearThrottle=function(){var a=this.throttled;a&&(a.unsubscribe(),this.remove(a),
  this.throttled=null)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.throttleTime=uB.throttleTime});var Do=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.timeInterval=function(a){void 0===a&&(a=cb.async);return this.lift(new e(a))};var d=function(){return function(a,b){this.value=a;this.interval=b}}();a.TimeInterval=d;var e=function(){function a(a){this.scheduler=
  a}a.prototype.call=function(a,b){return b._subscribe(new f(a,this.scheduler))};return a}(),f=function(a){function b(b,c){a.call(this,b);this.scheduler=c;this.lastTime=0;this.lastTime=c.now()}c(b,a);b.prototype._next=function(a){var b=this.scheduler.now(),c=b-this.lastTime;this.lastTime=b;this.destination.next(new d(a,c))};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.timeInterval=Do.timeInterval});var vB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.timeout=function(a,b,c){void 0===b&&(b=null);void 0===c&&(c=cb.async);var e=og.isDate(a);a=e?+a-c.now():Math.abs(a);return this.lift(new d(a,e,b,c))};var d=function(){function a(a,b,c,d){this.waitFor=a;this.absoluteTimeout=b;this.errorToSend=c;this.scheduler=d}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.absoluteTimeout,this.waitFor,this.errorToSend,this.scheduler))};
  return a}(),e=function(a){function b(b,c,d,e,f){a.call(this,b);this.absoluteTimeout=c;this.waitFor=d;this.errorToSend=e;this.scheduler=f;this._previousIndex=this.index=0;this._hasCompleted=!1;this.scheduleTimeout()}c(b,a);Object.defineProperty(b.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0});b.dispatchTimeout=function(a){var b=
  a.subscriber;a=a.index;b.hasCompleted||b.previousIndex!==a||b.notifyTimeout()};b.prototype.scheduleTimeout=function(){var a=this.index;this.scheduler.schedule(b.dispatchTimeout,this.waitFor,{subscriber:this,index:a});this.index++;this._previousIndex=a};b.prototype._next=function(a){this.destination.next(a);this.absoluteTimeout||this.scheduleTimeout()};b.prototype._error=function(a){this.destination.error(a);this._hasCompleted=!0};b.prototype._complete=function(){this.destination.complete();this._hasCompleted=
  !0};b.prototype.notifyTimeout=function(){this.error(this.errorToSend||Error("timeout"))};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.timeout=vB.timeout});var wB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.timeoutWith=function(a,b,c){void 0===c&&(c=cb.async);var e=og.isDate(a);a=e?+a-c.now():Math.abs(a);return this.lift(new d(a,
  e,b,c))};var d=function(){function a(a,b,c,d){this.waitFor=a;this.absoluteTimeout=b;this.withObservable=c;this.scheduler=d}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))};return a}(),e=function(a){function b(b,c,d,e,f){a.call(this);this.destination=b;this.absoluteTimeout=c;this.waitFor=d;this.withObservable=e;this.scheduler=f;this.timeoutSubscription=void 0;this._previousIndex=this.index=0;this._hasCompleted=!1;b.add(this);
  this.scheduleTimeout()}c(b,a);Object.defineProperty(b.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0});Object.defineProperty(b.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0});b.dispatchTimeout=function(a){var b=a.subscriber;a=a.index;b.hasCompleted||b.previousIndex!==a||b.handleTimeout()};b.prototype.scheduleTimeout=function(){var a=this.index;this.scheduler.schedule(b.dispatchTimeout,this.waitFor,
  {subscriber:this,index:a});this.index++;this._previousIndex=a};b.prototype._next=function(a){this.destination.next(a);this.absoluteTimeout||this.scheduleTimeout()};b.prototype._error=function(a){this.destination.error(a);this._hasCompleted=!0};b.prototype._complete=function(){this.destination.complete();this._hasCompleted=!0};b.prototype.handleTimeout=function(){if(!this.closed){var a=this.withObservable;this.unsubscribe();this.destination.add(this.timeoutSubscription=aa.subscribeToResult(this,a))}};
  return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.timeoutWith=wB.timeoutWith});var Eo=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.timestamp=function(a){void 0===a&&(a=cb.async);return this.lift(new e(a))};var d=function(){return function(a,b){this.value=a;this.timestamp=b}}();a.Timestamp=d;var e=function(){function a(a){this.scheduler=
  a}a.prototype.call=function(a,b){return b._subscribe(new f(a,this.scheduler))};return a}(),f=function(a){function b(b,c){a.call(this,b);this.scheduler=c}c(b,a);b.prototype._next=function(a){var b=this.scheduler.now();this.destination.next(new d(a,b))};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.timestamp=Eo.timestamp});var xB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):
  (c.prototype=b.prototype,new c)};a.toArray=function(){return this.lift(new d)};var d=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new e(a))};return a}(),e=function(a){function b(b){a.call(this,b);this.array=[]}c(b,a);b.prototype._next=function(a){this.array.push(a)};b.prototype._complete=function(){this.destination.next(this.array);this.destination.complete()};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.toArray=xB.toArray});k(function(b){t.Observable.prototype.toPromise=
  xm.toPromise});var yB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.window=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.windowBoundaries=a}a.prototype.call=function(a,b){a=new e(a);b=b._subscribe(a);b.closed||a.add(aa.subscribeToResult(a,this.windowBoundaries));return b};return a}(),e=function(a){function b(b){a.call(this,
  b);this.window=new Ea.Subject;b.next(this.window)}c(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.openWindow()};b.prototype.notifyError=function(a,b){this._error(a)};b.prototype.notifyComplete=function(a){this._complete()};b.prototype._next=function(a){this.window.next(a)};b.prototype._error=function(a){this.window.error(a);this.destination.error(a)};b.prototype._complete=function(){this.window.complete();this.destination.complete()};b.prototype._unsubscribe=function(){this.window=null};b.prototype.openWindow=
  function(){var a=this.window;a&&a.complete();var a=this.destination,b=this.window=new Ea.Subject;a.next(b)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.window=yB.window});var zB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.windowCount=function(a,b){void 0===b&&(b=0);return this.lift(new d(a,b))};var d=function(){function a(a,
  b){this.windowSize=a;this.startWindowEvery=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.windowSize,this.startWindowEvery))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.destination=b;this.windowSize=c;this.startWindowEvery=d;this.windows=[new Ea.Subject];this.count=0;b.next(this.windows[0])}c(b,a);b.prototype._next=function(a){for(var b=0<this.startWindowEvery?this.startWindowEvery:this.windowSize,c=this.destination,d=this.windowSize,e=this.windows,f=e.length,
  g=0;g<f&&!this.closed;g++)e[g].next(a);a=this.count-d+1;0<=a&&0===a%b&&!this.closed&&e.shift().complete();0!==++this.count%b||this.closed||(b=new Ea.Subject,e.push(b),c.next(b))};b.prototype._error=function(a){var b=this.windows;if(b)for(;0<b.length&&!this.closed;)b.shift().error(a);this.destination.error(a)};b.prototype._complete=function(){var a=this.windows;if(a)for(;0<a.length&&!this.closed;)a.shift().complete();this.destination.complete()};b.prototype._unsubscribe=function(){this.count=0;this.windows=
  null};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.windowCount=zB.windowCount});var AB=k(function(b,a){function c(a){var b=a.subscriber,c=a.windowTimeSpan,d=a.window;d&&d.complete();a.window=b.openWindow();this.schedule(a,c)}function d(a){var b=a.windowTimeSpan,c=a.subscriber,d=a.scheduler,f=a.windowCreationInterval,g=c.openWindow(),h={action:this,subscription:null};h.subscription=d.schedule(e,b,{subscriber:c,window:g,context:h});this.add(h.subscription);this.schedule(a,f)}function e(a){var b=
  a.subscriber,c=a.window;(a=a.context)&&a.action&&a.subscription&&a.action.remove(a.subscription);b.closeWindow(c)}var f=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.windowTime=function(a,b,c){void 0===b&&(b=null);void 0===c&&(c=cb.async);return this.lift(new g(a,b,c))};var g=function(){function a(a,b,c){this.windowTimeSpan=a;this.windowCreationInterval=b;this.scheduler=
  c}a.prototype.call=function(a,b){return b._subscribe(new h(a,this.windowTimeSpan,this.windowCreationInterval,this.scheduler))};return a}(),h=function(a){function b(b,f,g,h){a.call(this,b);this.destination=b;this.windowTimeSpan=f;this.windowCreationInterval=g;this.scheduler=h;this.windows=[];if(null!==g&&0<=g){b={subscriber:this,window:this.openWindow(),context:null};var k={windowTimeSpan:f,windowCreationInterval:g,subscriber:this,scheduler:h};this.add(h.schedule(e,f,b));this.add(h.schedule(d,g,k))}else g=
  {subscriber:this,window:this.openWindow(),windowTimeSpan:f},this.add(h.schedule(c,f,g))}f(b,a);b.prototype._next=function(a){for(var b=this.windows,c=b.length,d=0;d<c;d++){var e=b[d];e.closed||e.next(a)}};b.prototype._error=function(a){for(var b=this.windows;0<b.length;)b.shift().error(a);this.destination.error(a)};b.prototype._complete=function(){for(var a=this.windows;0<a.length;){var b=a.shift();b.closed||b.complete()}this.destination.complete()};b.prototype.openWindow=function(){var a=new Ea.Subject;
  this.windows.push(a);this.destination.next(a);return a};b.prototype.closeWindow=function(a){a.complete();var b=this.windows;b.splice(b.indexOf(a),1)};return b}(J.Subscriber)});k(function(b){t.Observable.prototype.windowTime=AB.windowTime});var BB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.windowToggle=function(a,b){return this.lift(new d(a,
  b))};var d=function(){function a(a,b){this.openings=a;this.closingSelector=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.openings,this.closingSelector))};return a}(),e=function(a){function b(b,c,d){a.call(this,b);this.openings=c;this.closingSelector=d;this.contexts=[];this.add(this.openSubscription=aa.subscribeToResult(this,c,c))}c(b,a);b.prototype._next=function(a){var b=this.contexts;if(b)for(var c=b.length,d=0;d<c;d++)b[d].window.next(a)};b.prototype._error=function(b){var c=
  this.contexts;this.contexts=null;if(c)for(var d=c.length,e=-1;++e<d;){var f=c[e];f.window.error(b);f.subscription.unsubscribe()}a.prototype._error.call(this,b)};b.prototype._complete=function(){var b=this.contexts;this.contexts=null;if(b)for(var c=b.length,d=-1;++d<c;){var e=b[d];e.window.complete();e.subscription.unsubscribe()}a.prototype._complete.call(this)};b.prototype._unsubscribe=function(){var a=this.contexts;this.contexts=null;if(a)for(var b=a.length,c=-1;++c<b;){var d=a[c];d.window.unsubscribe();
  d.subscription.unsubscribe()}};b.prototype.notifyNext=function(a,b,c,d,e){if(a===this.openings){d=qa.tryCatch(this.closingSelector)(b);if(d===M.errorObject)return this.error(M.errorObject.e);a=new Ea.Subject;b=new Ba.Subscription;c={window:a,subscription:b};this.contexts.push(c);d=aa.subscribeToResult(this,d,c);d.closed?this.closeWindow(this.contexts.length-1):(d.context=c,b.add(d));this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(a))};b.prototype.notifyError=function(a){this.error(a)};
  b.prototype.notifyComplete=function(a){a!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(a.context))};b.prototype.closeWindow=function(a){if(-1!==a){var b=this.contexts,c=b[a],d=c.window,c=c.subscription;b.splice(a,1);d.complete();c.unsubscribe()}};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.windowToggle=BB.windowToggle});var CB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);
  a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.windowWhen=function(a){return this.lift(new d(a))};var d=function(){function a(a){this.closingSelector=a}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.closingSelector))};return a}(),e=function(a){function b(b,c){a.call(this,b);this.destination=b;this.closingSelector=c;this.openWindow()}c(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.openWindow(e)};b.prototype.notifyError=function(a,b){this._error(a)};
  b.prototype.notifyComplete=function(a){this.openWindow(a)};b.prototype._next=function(a){this.window.next(a)};b.prototype._error=function(a){this.window.error(a);this.destination.error(a);this.unsubscribeClosingNotification()};b.prototype._complete=function(){this.window.complete();this.destination.complete();this.unsubscribeClosingNotification()};b.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()};b.prototype.openWindow=function(a){void 0===
  a&&(a=null);a&&(this.remove(a),a.unsubscribe());(a=this.window)&&a.complete();a=this.window=new Ea.Subject;this.destination.next(a);a=qa.tryCatch(this.closingSelector)();a===M.errorObject?(a=M.errorObject.e,this.destination.error(a),this.window.error(a)):this.add(this.closingNotification=aa.subscribeToResult(this,a))};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.windowWhen=CB.windowWhen});var DB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};a.withLatestFrom=function(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var c;"function"===typeof a[a.length-1]&&(c=a.pop());return this.lift(new d(a,c))};var d=function(){function a(a,b){this.observables=a;this.project=b}a.prototype.call=function(a,b){return b._subscribe(new e(a,this.observables,this.project))};return a}(),e=function(a){function b(b,c,d){a.call(this,
  b);this.observables=c;this.project=d;this.toRespond=[];b=c.length;this.values=Array(b);for(d=0;d<b;d++)this.toRespond.push(d);for(d=0;d<b;d++){var e=c[d];this.add(aa.subscribeToResult(this,e,e,d))}}c(b,a);b.prototype.notifyNext=function(a,b,c,d,e){this.values[c]=b;a=this.toRespond;0<a.length&&(c=a.indexOf(c),-1!==c&&a.splice(c,1))};b.prototype.notifyComplete=function(){};b.prototype._next=function(a){0===this.toRespond.length&&(a=[a].concat(this.values),this.project?this._tryProject(a):this.destination.next(a))};
  b.prototype._tryProject=function(a){var b;try{b=this.project.apply(this,a)}catch(r){this.destination.error(r);return}this.destination.next(b)};return b}(ca.OuterSubscriber)});k(function(b){t.Observable.prototype.withLatestFrom=DB.withLatestFrom});k(function(b){t.Observable.prototype.zip=Ki.zipProto});var EB=k(function(b,a){a.zipAll=function(a){return this.lift(new Ki.ZipOperator(a))}});k(function(b){t.Observable.prototype.zipAll=EB.zipAll});var Te=k(function(b,a){b=function(){return function(a,b){void 0===
  b&&(b=Number.POSITIVE_INFINITY);this.subscribedFrame=a;this.unsubscribedFrame=b}}();a.SubscriptionLog=b}),Fo=k(function(b,a){b=function(){function a(){this.subscriptions=[]}a.prototype.logSubscribedFrame=function(){this.subscriptions.push(new Te.SubscriptionLog(this.scheduler.now()));return this.subscriptions.length-1};a.prototype.logUnsubscribedFrame=function(a){var b=this.subscriptions;b[a]=new Te.SubscriptionLog(b[a].subscribedFrame,this.scheduler.now())};return a}();a.SubscriptionLoggable=b}),
  Go=k(function(b,a){a.applyMixins=function(a,b){for(var c=0,d=b.length;c<d;c++)for(var g=b[c],h=Object.getOwnPropertyNames(g.prototype),k=0,l=h.length;k<l;k++){var n=h[k];a.prototype[n]=g.prototype[n]}}}),Ho=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this,function(a){var b=this,c=b.logSubscribedFrame();a.add(new Ba.Subscription(function(){b.logUnsubscribedFrame(c)}));
  b.scheduleMessages(a);return a});this.messages=b;this.subscriptions=[];this.scheduler=c}c(b,a);b.prototype.scheduleMessages=function(a){for(var b=this.messages.length,c=0;c<b;c++){var d=this.messages[c];a.add(this.scheduler.schedule(function(a){a.message.notification.observe(a.subscriber)},d.frame,{message:d,subscriber:a}))}};return b}(t.Observable);a.ColdObservable=b;Go.applyMixins(b,[Fo.SubscriptionLoggable])}),FB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=
  a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this);this.messages=b;this.subscriptions=[];this.scheduler=c}c(b,a);b.prototype._subscribe=function(b){var c=this,d=c.logSubscribedFrame();b.add(new Ba.Subscription(function(){c.logUnsubscribedFrame(d)}));return a.prototype._subscribe.call(this,b)};b.prototype.setup=function(){for(var a=this,b=a.messages.length,c=0;c<b;c++)(function(){var b=
  a.messages[c];a.scheduler.schedule(function(){b.notification.observe(a)},b.frame)})()};return b}(Ea.Subject);a.HotObservable=b;Go.applyMixins(b,[Fo.SubscriptionLoggable])}),Ri=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){var e=this;void 0===b&&(b=d);void 0===c&&(c=Number.POSITIVE_INFINITY);a.call(this,b,function(){return e.frame});
  this.maxFrames=c;this.frame=0;this.index=-1}c(b,a);b.prototype.flush=function(){for(var a=this.actions,b=this.maxFrames,c,d;(d=a.shift())&&(this.frame=d.delay)<=b&&!(c=d.execute(d.state,d.delay)););if(c){for(;d=a.shift();)d.unsubscribe();throw c;}};b.frameTimeFactor=10;return b}(Re.AsyncScheduler);a.VirtualTimeScheduler=b;var d=function(a){function b(b,c,d){void 0===d&&(d=b.index+=1);a.call(this,b,c);this.scheduler=b;this.work=c;this.index=d;this.index=b.index=d}c(b,a);b.prototype.schedule=function(c,
  d){void 0===d&&(d=0);return this.id?this.add(new b(this.scheduler,this.work)).schedule(c,d):a.prototype.schedule.call(this,c,d)};b.prototype.requestAsyncId=function(a,c,d){void 0===d&&(d=0);this.delay=a.frame+d;a=a.actions;a.push(this);a.sort(b.sortActions);return!0};b.prototype.recycleAsyncId=function(a,b,c){};b.sortActions=function(a,b){return a.delay===b.delay?a.index===b.index?0:a.index>b.index?1:-1:a.delay>b.delay?1:-1};return b}(Qe.AsyncAction);a.VirtualAction=d}),GB=k(function(b,a){var c=n&&
  n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b){a.call(this,Ri.VirtualAction,750);this.assertDeepEqual=b;this.hotObservables=[];this.coldObservables=[];this.flushTests=[]}c(b,a);b.prototype.createTime=function(a){a=a.indexOf("|");if(-1===a)throw Error('marble diagram for time should have a completion marker "|"');return a*b.frameTimeFactor};
  b.prototype.createColdObservable=function(a,c,d){if(-1!==a.indexOf("^"))throw Error('cold observable cannot have subscription offset "^"');if(-1!==a.indexOf("!"))throw Error('cold observable cannot have unsubscription marker "!"');a=b.parseMarbles(a,c,d);a=new Ho.ColdObservable(a,this);this.coldObservables.push(a);return a};b.prototype.createHotObservable=function(a,c,d){if(-1!==a.indexOf("!"))throw Error('hot observable cannot have unsubscription marker "!"');a=b.parseMarbles(a,c,d);a=new FB.HotObservable(a,
  this);this.hotObservables.push(a);return a};b.prototype.materializeInnerObservable=function(a,b){var c=this,d=[];a.subscribe(function(a){d.push({frame:c.frame-b,notification:Qa.Notification.createNext(a)})},function(a){d.push({frame:c.frame-b,notification:Qa.Notification.createError(a)})},function(){d.push({frame:c.frame-b,notification:Qa.Notification.createComplete()})});return d};b.prototype.expectObservable=function(a,c){var d=this;void 0===c&&(c=null);var e=[],f={actual:e,ready:!1};c=b.parseMarblesAsSubscriptions(c).unsubscribedFrame;
  var g;this.schedule(function(){g=a.subscribe(function(a){var b=a;a instanceof t.Observable&&(b=d.materializeInnerObservable(b,d.frame));e.push({frame:d.frame,notification:Qa.Notification.createNext(b)})},function(a){e.push({frame:d.frame,notification:Qa.Notification.createError(a)})},function(){e.push({frame:d.frame,notification:Qa.Notification.createComplete()})})},0);c!==Number.POSITIVE_INFINITY&&this.schedule(function(){return g.unsubscribe()},c);this.flushTests.push(f);return{toBe:function(a,
  c,d){f.ready=!0;f.expected=b.parseMarbles(a,c,d,!0)}}};b.prototype.expectSubscriptions=function(a){var c={actual:a,ready:!1};this.flushTests.push(c);return{toBe:function(a){a="string"===typeof a?[a]:a;c.ready=!0;c.expected=a.map(function(a){return b.parseMarblesAsSubscriptions(a)})}}};b.prototype.flush=function(){for(var b=this.hotObservables;0<b.length;)b.shift().setup();a.prototype.flush.call(this);for(b=this.flushTests.filter(function(a){return a.ready});0<b.length;){var c=b.shift();this.assertDeepEqual(c.actual,
  c.expected)}};b.parseMarblesAsSubscriptions=function(a){if("string"!==typeof a)return new Te.SubscriptionLog(Number.POSITIVE_INFINITY);for(var b=a.length,c=-1,d=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,f=0;f<b;f++){var k=f*this.frameTimeFactor,l=a[f];switch(l){case "-":case " ":break;case "(":c=k;break;case ")":c=-1;break;case "^":if(d!==Number.POSITIVE_INFINITY)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");d=-1<c?c:k;break;
  case "!":if(e!==Number.POSITIVE_INFINITY)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");e=-1<c?c:k;break;default:throw Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+l+"'.");}}return 0>e?new Te.SubscriptionLog(d):new Te.SubscriptionLog(d,e)};b.parseMarbles=function(a,b,c,d){void 0===d&&(d=!1);if(-1!==a.indexOf("!"))throw Error('conventional marble diagrams cannot have the unsubscription marker "!"');
  for(var e=a.length,f=[],g=a.indexOf("^"),g=-1===g?0:g*-this.frameTimeFactor,h="object"!==typeof b?function(a){return a}:function(a){return d&&b[a]instanceof Ho.ColdObservable?b[a].messages:b[a]},k=-1,l=0;l<e;l++){var m=l*this.frameTimeFactor+g,n=void 0,p=a[l];switch(p){case "-":case " ":break;case "(":k=m;break;case ")":k=-1;break;case "|":n=Qa.Notification.createComplete();break;case "^":break;case "#":n=Qa.Notification.createError(c||"error");break;default:n=Qa.Notification.createNext(h(p))}n&&
  f.push({frame:-1<k?k:m,notification:n})}return f};return b}(Ri.VirtualTimeScheduler);a.TestScheduler=b}),Io=k(function(b,a){b=function(){return function(a){a.requestAnimationFrame?(this.cancelAnimationFrame=a.cancelAnimationFrame.bind(a),this.requestAnimationFrame=a.requestAnimationFrame.bind(a)):a.mozRequestAnimationFrame?(this.cancelAnimationFrame=a.mozCancelAnimationFrame.bind(a),this.requestAnimationFrame=a.mozRequestAnimationFrame.bind(a)):a.webkitRequestAnimationFrame?(this.cancelAnimationFrame=
  a.webkitCancelAnimationFrame.bind(a),this.requestAnimationFrame=a.webkitRequestAnimationFrame.bind(a)):a.msRequestAnimationFrame?(this.cancelAnimationFrame=a.msCancelAnimationFrame.bind(a),this.requestAnimationFrame=a.msRequestAnimationFrame.bind(a)):a.oRequestAnimationFrame?(this.cancelAnimationFrame=a.oCancelAnimationFrame.bind(a),this.requestAnimationFrame=a.oRequestAnimationFrame.bind(a)):(this.cancelAnimationFrame=a.clearTimeout.bind(a),this.requestAnimationFrame=function(b){return a.setTimeout(b,
  1E3/60)})}}();a.RequestAnimationFrameDefinition=b;a.AnimationFrame=new b(Q.root)}),HB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(b,c){a.call(this,b,c);this.scheduler=b;this.work=c}c(b,a);b.prototype.requestAsyncId=function(b,c,d){void 0===d&&(d=0);if(null!==d&&0<d)return a.prototype.requestAsyncId.call(this,b,c,d);
  b.actions.push(this);return b.scheduled||(b.scheduled=Io.AnimationFrame.requestAnimationFrame(b.flush.bind(b,null)))};b.prototype.recycleAsyncId=function(b,c,d){void 0===d&&(d=0);if(null!==d&&0<d)return a.prototype.recycleAsyncId.call(this,b,c,d);0===b.actions.length&&(Io.AnimationFrame.cancelAnimationFrame(c),b.scheduled=void 0)};return b}(Qe.AsyncAction);a.AnimationFrameAction=b}),IB=k(function(b,a){var c=n&&n.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&
  (a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)};b=function(a){function b(){a.apply(this,arguments)}c(b,a);b.prototype.flush=function(){this.active=!0;this.scheduled=void 0;var a=this.actions,b,c=-1,d=a.length,e=a.shift();do if(b=e.execute(e.state,e.delay))break;while(++c<d&&(e=a.shift()));this.active=!1;if(b){for(;++c<d&&(e=a.shift());)e.unsubscribe();throw b;}};return b}(Re.AsyncScheduler);a.AnimationFrameScheduler=b}),JB=k(function(b,a){a.animationFrame=new IB.AnimationFrameScheduler(HB.AnimationFrameAction)}),
  he=k(function(b,a){a.Subject=Ea.Subject;a.Observable=t.Observable;a.Subscription=Ba.Subscription;a.Subscriber=J.Subscriber;a.AsyncSubject=Oe.AsyncSubject;a.ReplaySubject=Yc.ReplaySubject;a.BehaviorSubject=Ao.BehaviorSubject;a.MulticastObservable=zo.MulticastObservable;a.ConnectableObservable=Qi.ConnectableObservable;a.Notification=Qa.Notification;a.EmptyError=qg.EmptyError;a.ArgumentOutOfRangeError=Se.ArgumentOutOfRangeError;a.ObjectUnsubscribedError=Wd.ObjectUnsubscribedError;a.UnsubscriptionError=
  Kh.UnsubscriptionError;a.TimeInterval=Do.TimeInterval;a.Timestamp=Eo.Timestamp;a.TestScheduler=GB.TestScheduler;a.VirtualTimeScheduler=Ri.VirtualTimeScheduler;a.AjaxResponse=pg.AjaxResponse;a.AjaxError=pg.AjaxError;a.AjaxTimeoutError=pg.AjaxTimeoutError;a.Scheduler={asap:rg.asap,queue:ro.queue,animationFrame:JB.animationFrame,async:cb.async};a.Symbol={rxSubscriber:ye.$$rxSubscriber,observable:jd.$$observable,iterator:Kb.$$iterator}}).Observable,Ra=function(){};Ra.spaceBar=32;Ra.enter=13;Ra.a=65;Ra.z=
  90;Ra.backSpace=8;Ra.zero=48;Ra.nine=57;var Si=function(b){this.isSelected=this.deleteChar=this.placeHolder=this.lineBreak=this.isCurrent=!1;b===Ra.enter?(this.value="\n",this.lineBreak=!0):-1===b?(this.value="",this.placeHolder=!0):b===Ra.backSpace?this.deleteChar=!0:this.value=String.fromCharCode(b).toLowerCase()},ud=function(){this.characters=[];this.firstSelectedCharacter=-1;this.currentChar=new Si(-1);this.characters.push(this.currentChar);this.characters[0].isCurrent=!0};ud.prototype.deselectPreviousCharacter=
  function(){if(this.currentChar){var b=this.characters.indexOf(this.currentChar);this.characters[b].isCurrent=!1}};ud.prototype.clearSelection=function(b){this.firstSelectedCharacter=-1;b&&(this.firstSelectedCharacter=this.characters.indexOf(b.character));this.characters.forEach(function(a){return a.isSelected=!1})};ud.prototype.edit=function(b,a){b.deleteChar?(a=this.characters.indexOf(this.currentChar),1<=a&&(this.characters.splice(a,1),1<this.characters.length?(this.characters[a-1].isCurrent=!0,
  this.currentChar=this.characters[a-1]):1===this.characters.length&&(this.characters[0].isCurrent=!0,this.currentChar=this.characters[0]))):(this.characters.splice(a,0,b),b.lineBreak&&(this.deselectPreviousCharacter(),b=new Si(-1),this.characters.splice(a+1,0,b)),this.placeCursor(b))};ud.prototype.placeCursor=function(b){this.deselectPreviousCharacter();var a=this.characters.indexOf(b);this.characters[a].isCurrent=!0;this.currentChar=b};ud.prototype.selectCharacter=function(b){b=this.characters.indexOf(b);
  for(var a=this.firstSelectedCharacter;a<=b;a++)this.characters[a].isSelected=!0};ud.prototype.processInput=function(b,a){if("modify"===a){var c=this.characters.indexOf(this.currentChar);0>c&&(c=this.characters.length-1);this.edit(b,c+1)}"select"===a&&this.placeCursor(b);"range"===a&&this.selectCharacter(b)};var sg=function(){this.currentDocument=new ud};sg.prototype.isSuportedCharacter=function(b){return b>=Ra.a&&b<Ra.z||b===Ra.enter||b===Ra.spaceBar||b===Ra.backSpace||b>=Ra.zero&&b<=Ra.nine?!0:!1};
  sg.prototype.getCharacterFromElement=function(b,a){var c=[].slice.call(this.editor.children).indexOf(b.target);return 0<=c?{operation:a,character:this.currentDocument.characters[c],element:b}:null};sg.prototype.ngOnInit=function(){var b=this;this.editor=document.getElementById("page");this.keyUp=he.fromEvent(document,"keyup").filter(function(a){return b.isSuportedCharacter(a.which)}).map(function(a){return{operation:"modify",character:new Si(a.which),element:a}});this.mouseDown=he.fromEvent(this.editor,
  "mousedown").do(function(a){return b.currentDocument.clearSelection(b.getCharacterFromElement(a,"range"))}).flatMap(function(a){return he.fromEvent(b.editor,"mousemove")}).map(function(a){return b.getCharacterFromElement(a,"range")}).filter(function(a){return null!==a}).takeUntil(he.fromEvent(this.editor,"mouseup")).repeat();this.click=he.fromEvent(this.editor,"click").map(function(a){return b.getCharacterFromElement(a,"select")}).filter(function(a){return null!==a});this.keyDown=he.fromEvent(document,
  "keydown").filter(function(a){return a.which===Ra.spaceBar||a.which===Ra.backSpace}).map(function(a){return{element:a}});this.keyUp.merge(this.click).merge(this.mouseDown).merge(this.keyDown).subscribe(function(a){b.currentDocument.processInput(a.character,a.operation);a.element.preventDefault()})};var tg=sg,tg=Sd([Oc({selector:"editor",template:'\n\x3ch1\x3eText editor based on Observables\x3c/h1\x3e\n\n\x3cdiv class\x3d"alert alert-success" role\x3d"alert"\x3e\n    Supports typing of letters and numbers. Basic text selection and cursor placement is also supported.\n\x3c/div\x3e\n\n\x3cdiv class\x3d"editor"\x3e\n\x3cdiv class\x3d"page noselect" id\x3d"page"\x3e\x3cspan *ngFor\x3d"let char of currentDocument.characters" [ngClass]\x3d"{currentChar:char.isCurrent,selectedChar:char.isSelected}"\x3e{{char.value}}\x3c/span\x3e\x3c/div\x3e\n\x3c/div\x3e\n\n\x3ch4\x3e\x3ca href\x3d"http://www.syntaxsuccess.com/viewarticle/observables-in-angular-2.0"\x3eRead more here\x3c/a\x3e\x3c/h4\x3e'}),
  Td("design:paramtypes",[])],tg),ug=function(){},ug=Sd([Oc({selector:"algorithms",template:'\x3ch1\x3eInsertion Sort Demo\x3c/h1\x3e\n\x3cdiv\x3eWatch the list get sorted as the algorithm traverses the list\x3c/div\x3e\n\x3cinsertion-sort\x3e\x3c/insertion-sort\x3e\n\x3ch4\x3e\x3ca href\x3d"http://www.syntaxsuccess.com/viewarticle/timeouts-and-timerwrapper-in-angular-2.0"\x3eRead more here\x3c/a\x3e\x3c/h4\x3e'}),Td("design:paramtypes",[])],ug),Jo=function(){this.questions=[]};Jo.prototype.toGroup=
  function(){var b={};this.questions.forEach(function(a){b[a.key]=a.required?new Ce("",rb.required):new Ce("")});return new zd(b)};var Ko=function(){},vg=function(){this.controlType="textbox"};$jscomp.inherits(vg,Ko);var Lo=function(){this.options=[];this.controlType="dropdown"};$jscomp.inherits(Lo,Ko);var wg=function(){this.questionModel=new Jo;var b=new vg;b.key="lastName";b.text="Last name";b.required=!0;b.order=2;this.questionModel.questions.push(b);b=new vg;b.key="firstName";b.text="First name";
  b.required=!0;b.order=1;this.questionModel.questions.push(b);b=new vg;b.key="emailAddress";b.text="Email";b.required=!1;b.type="email";b.order=3;this.questionModel.questions.push(b);b=new Lo;b.key="country";b.text="Country";b.options.push({key:"usa",value:"USA"});b.options.push({key:"germany",value:"Germany"});b.options.push({key:"canada",value:"Canada"});b.options.push({key:"australia",value:"Australia"});b.order=4;this.questionModel.questions.push(b);this.questionModel.questions.sort(function(a,
  b){return a.order-b.order})},wg=Sd([Oc({selector:"survey-demo",template:'\x3cdiv\x3e\x3ch1\x3eSurvey using Dynamic Form\x3c/h1\x3e\x3csurvey [model]\x3d"questionModel"\x3e\x3c/survey\x3e\x3c/div\x3e'}),Td("design:paramtypes",[])],wg),Ti=function(){this.payLoad=null};Ti.prototype.ngOnInit=function(){this.form=this.model.toGroup()};Ti.prototype.onSubmit=function(){this.payLoad=JSON.stringify(this.form.value)};var xg=Ti;Sd([Y(),Td("design:type",Object)],xg.prototype,"model",void 0);var xg=Sd([Oc({selector:"survey",
  template:'\x3cdiv\x3e\n    \x3cform (ngSubmit)\x3d"onSubmit()" [formGroup]\x3d"form"\x3e\n        \x3cdiv *ngFor\x3d"let question of model.questions" class\x3d"form-row"\x3e\n            \x3cdiv class\x3d"formHeading"\x3e{{question.text}}\x3c/div\x3e\n\n            \x3cdiv [ngSwitch]\x3d"question.controlType"\x3e\n                \x3cdiv *ngSwitchCase\x3d"\'textbox\'"\x3e\x3cinput type\x3d"{{question.type}}" id\x3d"{{question.key}}" [formControlName]\x3d"question.key"\x3e\x3c/div\x3e\n                \x3cdiv *ngSwitchCase\x3d"\'dropdown\'"\x3e\n                    \x3cselect [formControlName]\x3d"question.key"\x3e\n                        \x3coption *ngFor\x3d"let o of question.options" [value]\x3d"o.key"\x3e{{o.value}}\x3c/option\x3e\n                    \x3c/select\x3e\n                \x3c/div\x3e\n            \x3c/div\x3e\n\n            \x3cdiv class\x3d"errorMessage" *ngIf\x3d"!form.controls[question.key].valid"\x3e*required\x3c/div\x3e\n        \x3c/div\x3e\n\n        \x3cdiv class\x3d"form-row"\x3e\n            \x3cbutton type\x3d"submit" [disabled]\x3d"!form.valid"\x3eSave\x3c/button\x3e\n        \x3c/div\x3e\n    \x3c/form\x3e\n\n    \x3cdiv class\x3d"form-row"\x3e\n        \x3cdiv *ngIf\x3d"payLoad"\x3e\x3cstrong\x3eThe form contains the following values\x3c/strong\x3e\x3c/div\x3e\n        \x3cdiv\x3e\n            {{payLoad}}\n        \x3c/div\x3e\n    \x3c/div\x3e\n    \x3ch4\x3e\x3ca href\x3d"http://www.syntaxsuccess.com/viewarticle/dynamic-form-in-angular-2.0"\x3eRead more here\x3c/a\x3e\x3c/h4\x3e\n\x3c/div\x3e'}),
  Td("design:paramtypes",[])],xg),Mo=function(){};Mo.sort=function(b){for(var a=1;a<b.items.length;a++)(function(a){setTimeout(function(){for(var c=b.items[a].val,e=a-1;0<=e&&b.items[e].val>c;)b.items[e+1].val=b.items[e].val,--e;b.items[e+1].val=c;b.setCurrent(b.items[e+1])},1E3*a)})(a)};var No=function(){this.list=new Ui;this.list.items=[new ob(5),new ob(33),new ob(5),new ob(5),new ob(2),new ob(-2),new ob(4),new ob(88),new ob(6),new ob(400),new ob(1),new ob(58),new ob(30)]};No.prototype.sortList=function(){Mo.sort(this.list)};
  var Vi=No,Vi=Sd([Oc({selector:"insertion-sort",inputs:["list: list"],template:'\x3ctable class\x3d"sort"\x3e\n    \x3ctr\x3e\n        \x3ctd *ngFor\x3d"let item of list.items" [ngClass]\x3d"item.getClass()"\x3e\n            \x3cspan\x3e{{item.val}}\x3c/span\x3e\n        \x3c/td\x3e\n    \x3c/tr\x3e\n\x3c/table\x3e\n\x3cdiv style\x3d"margin-top: 10px;"\x3e\n    \x3cbutton (click)\x3d"sortList()"\x3eSort list\x3c/button\x3e\n\x3c/div\x3e'}),Td("design:paramtypes",[])],Vi),Ui=function(){};Ui.prototype.setCurrent=
  function(b){this.clearAll();b.current=!0};Ui.prototype.clearAll=function(){this.items.forEach(function(b){return b.current=!1})};var ob=function(b){this.val=b;this.current=!1};ob.prototype.getClass=function(){return this.current?"current-item":null};var KB=function(b,a,c,d){var e=arguments.length,f=3>e?a:null===d?d=Object.getOwnPropertyDescriptor(a,c):d,g;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)f=Reflect.decorate(b,a,c,d);else for(var h=b.length-1;0<=h;h--)if(g=b[h])f=(3>
  e?g(f):3<e?g(a,c,f):g(a,c))||f;return 3<e&&f&&Object.defineProperty(a,c,f),f},LB=function(b,a){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(b,a)},MB=function(){function b(){}return b=KB([Mc({declarations:[ug,Vi,wg,xg,tg],imports:[ov,aw]}),LB("design:paramtypes",[])],b)}(),yg=new gz(MB);angular.module("angular-legacy").directive("algorithms",yg.downgradeNg2Component(ug));angular.module("angular-legacy").directive("survey",yg.downgradeNg2Component(wg));
  angular.module("angular-legacy").directive("editor",yg.downgradeNg2Component(tg));yg.bootstrap(document.body,["angular-legacy"])})();