webpackJsonp([3],{"+3eL":function(e,t,n){"use strict";var r,o=n("WhVc");function i(){try{return r.apply(this,arguments)}catch(e){return o.errorObject.e=e,o.errorObject}}t.tryCatch=function(e){return r=e,i}},"+4ur":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("wAkD"),i=n("CURp");t._catch=function(e){var t=new a(e),n=this.lift(t);return t.caught=n};var a=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,n,r){e.call(this,t),this.selector=n,this.caught=r}return r(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(i.subscribeToResult(this,n))}},t}(o.OuterSubscriber)},"+G+d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_NODE=t.MaxNode=t.ChildrenNode=void 0;var r,o,i=n("nDT4"),a=n("Pu5a"),s=n("0NSA"),u=n("coin"),c=n("YA2h"),l=n("OfTL"),p=n("7Btn"),h=n("V5hz"),f=n("yImC"),d=n("RLGX"),y=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&(0,c.validatePriorityNode)(this.priorityNode_),this.children_.isEmpty()&&(0,i.assert)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return o||(o=new e(new s.SortedMap(d.NAME_COMPARATOR),null,h.IndexMap.Default))},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||o},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?o:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if((0,i.assert)(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new u.NamedNode(t,n),a=void 0,s=void 0;return n.isEmpty()?(a=this.children_.remove(t),s=this.indexMap_.removeFromIndexes(r,this.children_)):(a=this.children_.insert(t,n),s=this.indexMap_.addToIndexes(r,this.children_)),new e(a,a.isEmpty()?o:this.priorityNode_,s)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;(0,i.assert)(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,o=0,i=!0;if(this.forEachChild(l.PRIORITY_INDEX,function(a,s){n[a]=s.val(t),r++,i&&e.INTEGER_REGEXP_.test(a)?o=Math.max(o,Number(a)):i=!1}),!t&&i&&o<2*r){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+(0,c.priorityHashText)(this.getPriority().val())+":"),this.forEachChild(l.PRIORITY_INDEX,function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)}),this.lazyHash_=""===e?"":(0,a.sha1)(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var o=r.getPredecessorKey(new u.NamedNode(e,t));return o?o.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new u.NamedNode(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new u.NamedNode(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal(function(e){return t(e.name,e.node)}):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,function(e){return e});for(var r=this.children_.getIteratorFrom(e.name,u.NamedNode.Wrap),o=r.peek();null!=o&&t.compare(o,e)<0;)r.getNext(),o=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,function(e){return e});for(var r=this.children_.getReverseIteratorFrom(e.name,u.NamedNode.Wrap),o=r.peek();null!=o&&t.compare(o,e)>0;)r.getNext(),o=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===m?-1:0},e.prototype.withIndex=function(t){if(t===p.KEY_INDEX||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===p.KEY_INDEX||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(l.PRIORITY_INDEX),r=t.getIterator(l.PRIORITY_INDEX),o=n.getNext(),i=r.getNext();o&&i;){if(o.name!==i.name||!o.node.equals(i.node))return!1;o=n.getNext(),i=r.getNext()}return null===o&&null===i}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===p.KEY_INDEX?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}();t.ChildrenNode=v;var g=function(e){function t(){return e.call(this,new s.SortedMap(d.NAME_COMPARATOR),v.EMPTY_NODE,h.IndexMap.Default)||this}return y(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return v.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(v);t.MaxNode=g;var m=t.MAX_NODE=new g;Object.defineProperties(u.NamedNode,{MIN:{value:new u.NamedNode(a.MIN_NAME,v.EMPTY_NODE)},MAX:{value:new u.NamedNode(a.MAX_NAME,m)}}),p.KeyIndex.__EMPTY_NODE=v.EMPTY_NODE,f.LeafNode.__childrenNodeConstructor=v,(0,c.setMaxNode)(m),(0,l.setMaxNode)(m)},"+ayw":function(e,t,n){"use strict";var r=n("emOw"),o=n("EEr4");function i(){return new o.Subject}t.share=function(){return r.multicast.call(this,i).refCount()}},"+pb+":function(e,t,n){"use strict";var r=n("rCTf"),o=n("xAJs");r.Observable.prototype.map=o.map},"/47g":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Overwrite=void 0;var r=n("oo3z"),o=n("AHVm"),i=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=r.OperationType.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,o.Path.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}();t.Overwrite=i},"/A++":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResult=void 0;var r=n("ktV6"),o=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return(0,r.validateArgCount)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}();t.TransactionResult=o},"/wt9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildEventRegistration=t.ValueEventRegistration=void 0;var r=n("udG9"),o=n("oWCc"),i=n("zHK/"),a=n("nDT4"),s=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new o.DataEvent("value",this,new r.DataSnapshot(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){(0,a.assert)(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new o.CancelEvent(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}();t.ValueEventRegistration=s;var u=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,(0,i.contains)(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new o.CancelEvent(this,e,t):null},e.prototype.createEvent=function(e,t){(0,a.assert)(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),i=t.getQueryParams().getIndex();return new o.DataEvent(e.type,this,new r.DataSnapshot(e.snapshotNode,n,i),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){(0,a.assert)(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var n=(0,i.getCount)(t.callbacks_);if(n===(0,i.getCount)(this.callbacks_)){if(1===n){var r=(0,i.getAnyKey)(t.callbacks_),o=(0,i.getAnyKey)(this.callbacks_);return!(o!==r||t.callbacks_[r]&&this.callbacks_[o]&&t.callbacks_[r]!==this.callbacks_[o])}return(0,i.every)(this.callbacks_,function(e,n){return t.callbacks_[e]===n})}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}();t.ChildEventRegistration=u},"0FLc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatabaseInternals=t.Database=void 0;var r=n("Pu5a"),o=n("FW7+"),i=n("AHVm"),a=n("OKkW"),s=n("xl3t"),u=n("lp2h"),c=n("Rdm2"),l=n("ktV6"),p=n("YuqB"),h=function(){function e(e){this.repo_=e,e instanceof u.Repo||(0,r.fatal)("Don't call new Database() directly - please use firebase.database()."),this.root_=new s.Reference(e,i.Path.Empty),this.INTERNAL=new f(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),(0,l.validateArgCount)("database.ref",0,1,arguments.length),void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),(0,l.validateArgCount)(t,1,1,arguments.length);var n=(0,o.parseRepoInfo)(e);(0,p.validateUrl)(t,1,n);var i=n.repoInfo;return i.host!==this.repo_.repoInfo_.host&&(0,r.fatal)(t+": Host name does not match the current database: (found "+i.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&(0,r.fatal)("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){(0,l.validateArgCount)("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){(0,l.validateArgCount)("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"}},e}();t.Database=h;var f=function(){function e(e){this.database=e}return e.prototype.delete=function(){return this.database.checkDeleted_("delete"),c.RepoManager.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,a.PromiseImpl.resolve()},e}();t.DatabaseInternals=f},"0NSA":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r,o){void 0===o&&(o=null),this.isReverse_=r,this.resultGenerator_=o,this.nodeStack_=[];for(var i=1;!e.isEmpty();)if(e=e,i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse_?e.left:e.right;else{if(0===i){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}();t.SortedMapIterator=r;var o=function(){function e(t,n,r,o,i){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=o?o:a.EMPTY_NODE,this.right=null!=i?i:a.EMPTY_NODE}return e.prototype.copy=function(t,n,r,o,i){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=o?o:this.left,null!=i?i:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r,o;return(o=(r=n(e,(o=this).key))<0?o.copy(null,null,null,o.left.insert(e,t,n),null):0===r?o.copy(null,t,null,null,null):o.copy(null,null,null,null,o.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return a.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return a.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){var e;if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");if((e=this.left.check_())!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}();t.LLRBNode=o;var i=function(){function e(){}return e.prototype.copy=function(e,t,n,r,o){return this},e.prototype.insert=function(e,t,n){return new o(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}();t.LLRBEmptyNode=i;var a=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,o.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,o.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new r(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new r(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new r(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new r(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new i,e}();t.SortedMap=a},"0QH/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=void 0;var r=n("Pu5a"),o=n("xfUw"),i=n("DOhx"),a=n("kFtx"),s=function(){function e(e,t,n,o,i,s,u){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=o,this.onDisconnect_=i,this.onKill_=s,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=(0,r.logWrapper)("c:"+this.id+":"),this.transportManager_=new a.TransportManager(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),o=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){e.conn_&&e.conn_.open(n,o)},Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=(0,r.setTimeoutNonBlocking)(function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes. Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes. Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))},Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!=t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=(0,r.requireKey)("t",e),n=(0,r.requireKey)("d",e);if("c"==t)this.onSecondaryControl_(n);else{if("d"!=t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=(0,r.requireKey)("t",e),n=(0,r.requireKey)("d",e);"c"==t?this.onControl_(n):"d"==t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=(0,r.requireKey)("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var o=0;o")&&(e=e.replace(T,">")),-1!=e.indexOf('"')&&(e=e.replace(P,""")),-1!=e.indexOf("'")&&(e=e.replace(N,"'")),-1!=e.indexOf("\0")&&(e=e.replace(A,"�")),e):e},S=/&/g,O=//g,P=/"/g,N=/'/g,A=/\x00/g,I=/[\x00&<>"']/,R=function(e,t){return-1!=e.indexOf(t)},x=function(e,t){return et?1:0},k=function(e,t){t.unshift(e),b.call(this,w.apply(null,t)),t.shift()};_(k,b),k.prototype.name="AssertionError";var D=function(e,t,n,r){var o="Assertion failed";if(n){o+=": "+n;var i=r}else e&&(o+=": "+e,i=t);throw new k(""+o,i||[])},j=function(e,t,n){return e||D("",null,t,Array.prototype.slice.call(arguments,2)),e},M=function(e,t){throw new k("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))},L=function(e,t,n){return"number"==typeof e||D("Expected number but got %s: %s.",[u(e),e],t,Array.prototype.slice.call(arguments,2)),e},F=function(e,t,n){h(e)||D("Expected function but got %s: %s.",[u(e),e],t,Array.prototype.slice.call(arguments,2))},V=function(){this.Uc="",this.gf=B};V.prototype.qb=!0,V.prototype.ob=function(){return this.Uc},V.prototype.toString=function(){return"Const{"+this.Uc+"}"};var U=function(e){return e instanceof V&&e.constructor===V&&e.gf===B?e.Uc:(M("expected object of type Const, got '"+e+"'"),"type_error:Const")},B={},H=function(e){var t=new V;return t.Uc=e,t};H("");var W=function(){this.Mc="",this.hf=X};W.prototype.qb=!0,W.prototype.ob=function(){return this.Mc},W.prototype.toString=function(){return"TrustedResourceUrl{"+this.Mc+"}"};var q,G=function(e){return e instanceof W&&e.constructor===W&&e.hf===X?e.Mc:(M("expected object of type TrustedResourceUrl, got '"+e+"' of type "+u(e)),"type_error:TrustedResourceUrl")},K=function(e,t){return e=z(e,t),(t=new W).Mc=e,t},z=function(e,t){var n=U(e);if(!Y.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return n.replace(Q,function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof V?U(e):encodeURIComponent(String(e))})},Q=/%{(\w+)}/g,Y=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank(#|$)/i,X={},$=Array.prototype.indexOf?function(e,t,n){return j(null!=e.length),Array.prototype.indexOf.call(e,t,n)}:function(e,t,n){if(n=null==n?0:0>n?Math.max(0,e.length+n):n,i(e))return i(t)&&1==t.length?e.indexOf(t,n):-1;for(;nparseFloat(Ne)){_e=String(Ie);break e}}_e=Ne}var Re,xe=_e,ke={},De=function(e){return function(e,t){var n=ke;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(){for(var t=0,n=E(String(xe)).split("."),r=E(String(e)).split("."),o=Math.max(n.length,r.length),i=0;0==t&&i>4),64!=a&&(t(i<<4&240|a>>2),64!=s&&t(a<<6&192|s))}},Ue=function(){if(!Le){Le={},Fe={};for(var e=0;65>e;e++)Le[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),Fe[Le[e]]=e,62<=e&&(Fe["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e)]=e)}},Be=function(e,t){this.Da=-1,this.Da=64,this.rc=r.Uint8Array?new Uint8Array(this.Da):Array(this.Da),this.Yc=this.rb=0,this.l=[],this.$f=e,this.Ee=t,this.Bg=r.Int32Array?new Int32Array(64):Array(64),o(Me)||(Me=r.Int32Array?new Int32Array(Ke):Ke),this.reset()};_(Be,function(){this.Da=-1});for(var He=[],We=0;63>We;We++)He[We]=0;var qe=ie(128,He);Be.prototype.reset=function(){this.Yc=this.rb=0,this.l=r.Int32Array?new Int32Array(this.Ee):ae(this.Ee)};var Ge=function(e){var t=e.rc;j(t.length==e.Da);for(var n=e.Bg,r=0,o=0;ot;t++){o=0|n[t-15],r=0|n[t-2];var i=(0|n[t-16])+((o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3)|0,a=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=i+a|0}r=0|e.l[0],o=0|e.l[1];var s=0|e.l[2],u=0|e.l[3],c=0|e.l[4],l=0|e.l[5],p=0|e.l[6];for(i=0|e.l[7],t=0;64>t;t++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&s^o&s)|0;a=(i=i+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&l^~c&p)+(0|Me[t])|0)+(0|n[t])|0)|0,i=p,p=l,l=c,c=u+a|0,u=s,s=o,o=r,r=a+h|0}e.l[0]=e.l[0]+r|0,e.l[1]=e.l[1]+o|0,e.l[2]=e.l[2]+s|0,e.l[3]=e.l[3]+u|0,e.l[4]=e.l[4]+c|0,e.l[5]=e.l[5]+l|0,e.l[6]=e.l[6]+p|0,e.l[7]=e.l[7]+i|0};Be.prototype.update=function(e,t){o(t)||(t=e.length);var n=0,r=this.rb;if(i(e))for(;n=a&&a==(0|a)))throw Error("message must be a byte array");this.rc[r++]=a,r==this.Da&&(Ge(this),r=0)}}this.rb=r,this.Yc+=t},Be.prototype.digest=function(){var e=[],t=8*this.Yc;56>this.rb?this.update(qe,56-this.rb):this.update(qe,this.Da-(this.rb-56));for(var n=63;56<=n;n--)this.rc[n]=255&t,t/=256;for(Ge(this),n=t=0;n>r&255;return e};var Ke=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ze=function(){Be.call(this,8,Qe)};_(ze,Be);var Qe=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Ye=Object.freeze||function(e){return e},Xe=function(){this.Ma=this.Ma,this.Jc=this.Jc};Xe.prototype.Ma=!1,Xe.prototype.isDisposed=function(){return this.Ma},Xe.prototype.lb=function(){if(this.Jc)for(;this.Jc.length;)this.Jc.shift()()};var $e=!Ee||9<=Number(Re),Je=Ee&&!De("9");!Te||De("528"),Oe&&De("1.9b")||Ee&&De("8")||we&&De("9.5")||Te&&De("528"),Oe&&!De("8")||Ee&&De("9");var Ze=function(){if(!r.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});return r.addEventListener("test",s,t),r.removeEventListener("test",s,t),e}(),et=function(e,t){this.type=e,this.currentTarget=this.target=t,this.defaultPrevented=this.Wa=!1,this.Se=!0};et.prototype.stopPropagation=function(){this.Wa=!0},et.prototype.preventDefault=function(){this.defaultPrevented=!0,this.Se=!1};var tt=function(e,t){et.call(this,e?e.type:""),this.relatedTarget=this.currentTarget=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0,this.key="",this.charCode=this.keyCode=0,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.P=null,e&&this.init(e,t)};_(tt,et);var nt=Ye({2:"touch",3:"pen",4:"mouse"});tt.prototype.init=function(e,t){var n=this.type=e.type,r=e.changedTouches?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.currentTarget=t,t=e.relatedTarget){if(Oe){e:{try{me(t.nodeName);var o=!0;break e}catch(e){}o=!1}o||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,null===r?(this.offsetX=Te||void 0!==e.offsetX?e.offsetX:e.layerX,this.offsetY=Te||void 0!==e.offsetY?e.offsetY:e.layerY,this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0),this.button=e.button,this.keyCode=e.keyCode||0,this.key=e.key||"",this.charCode=e.charCode||("keypress"==n?e.keyCode:0),this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=i(e.pointerType)?e.pointerType:nt[e.pointerType]||"",this.state=e.state,this.P=e,e.defaultPrevented&&this.preventDefault()},tt.prototype.stopPropagation=function(){tt.Vc.stopPropagation.call(this),this.P.stopPropagation?this.P.stopPropagation():this.P.cancelBubble=!0},tt.prototype.preventDefault=function(){tt.Vc.preventDefault.call(this);var e=this.P;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Je)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},tt.prototype.Ef=function(){return this.P};var rt="closure_listenable_"+(1e6*Math.random()|0),ot=0,it=function(e){e.Bb=!0,e.listener=null,e.Nc=null,e.src=null,e.wc=null},at=function(e){this.src=e,this.I={},this.kc=0};at.prototype.add=function(e,t,n,r,o){var i=e.toString();(e=this.I[i])||(e=this.I[i]=[],this.kc++);var a=ut(e,t,r,o);return-1o.keyCode||void 0!=o.returnValue)){e:{var i=!1;if(0==o.keyCode)try{o.keyCode=-1;break e}catch(e){i=!0}(i||void 0==o.returnValue)&&(o.returnValue=!0)}for(o=[],i=t.currentTarget;i;i=i.parentNode)o.push(i);for(e=e.type,i=o.length-1;!t.Wa&&0<=i;i--){t.currentTarget=o[i];var a=mt(o[i],e,!0,t);n=n&&a}for(i=0;!t.Wa&&i>>0),Ct=function(e){return j(e,"Listener can not be null."),h(e)?e:(j(e.handleEvent,"An object listener must have handleEvent method."),e[Et]||(e[Et]=function(t){return e.handleEvent(t)}),e[Et])},St=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/,Ot=function(){this.xa="",this.ff=At};Ot.prototype.qb=!0,Ot.prototype.ob=function(){return this.xa},Ot.prototype.toString=function(){return"SafeUrl{"+this.xa+"}"};var Tt=function(e){return e instanceof Ot&&e.constructor===Ot&&e.ff===At?e.xa:(M("expected object of type SafeUrl, got '"+e+"' of type "+u(e)),"type_error:SafeUrl")},Pt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,Nt=function(e){return e instanceof Ot?e:(e=e.qb?e.ob():String(e),Pt.test(e)||(e="about:invalid#zClosurez"),It(e))},At={},It=function(e){var t=new Ot;return t.xa=e,t};It("about:blank");var Rt=function(e){var t=[];return kt(new xt,e,t),t.join("")},xt=function(){this.Oc=void 0},kt=function(e,t,n){if(null==t)n.push("null");else{if("object"==typeof t){if(l(t)){var r=t;t=r.length,n.push("[");for(var o="",i=0;i=t.hd&&t.cancel())}this.Le?this.Le.call(this.qe,this):this.ae=!0,this.nb||Un(this,new Kn)}},Ln.prototype.oe=function(e,t){this.gd=!1,Fn(this,e,t)};var Fn=function(e,t,n){e.nb=!0,e.za=n,e.Pb=!t,qn(e)},Vn=function(e){if(e.nb){if(!e.ae)throw new Gn;e.ae=!1}};Ln.prototype.callback=function(e){Vn(this),Bn(e),Fn(this,!0,e)};var Un=function(e,t){Vn(e),Bn(t),Fn(e,!1,t)},Bn=function(e){j(!(e instanceof Ln),"An execution sequence may not be initiated with a blocking Deferred.")},Hn=function(e,t,n,r){j(!e.ge,"Blocking Deferreds can not be re-used"),e.Rc.push([t,n,r]),e.nb&&qn(e)};Ln.prototype.then=function(e,t,n){var r,o,i=new vn(function(e,t){r=e,o=t});return Hn(this,r,function(e){e instanceof Kn?i.cancel():o(e)}),i.then(e,t,n)},dn(Ln);var Wn=function(e){return ee(e.Rc,function(e){return h(e[1])})},qn=function(e){if(e.Zc&&e.nb&&Wn(e)){var t=e.Zc,n=Qn[t];n&&(r.clearTimeout(n.Qb),delete Qn[t]),e.Zc=0}e.w&&(e.w.hd--,delete e.w),t=e.za;for(var i=n=!1;e.Rc.length&&!e.gd;){var a=e.Rc.shift(),s=a[0],u=a[1];if(a=a[2],s=e.Pb?u:s)try{var c=s.call(a||e.qe,t);o(c)&&(e.Pb=e.Pb&&(c==t||c instanceof Error),e.za=t=c),(yn(t)||"function"==typeof r.Promise&&t instanceof r.Promise)&&(i=!0,e.gd=!0)}catch(r){t=r,e.Pb=!0,Wn(e)||(n=!0)}}e.za=t,i&&(c=v(e.oe,e,!0),i=v(e.oe,e,!1),t instanceof Ln?(Hn(t,c,i),t.ge=!0):t.then(c,i)),n&&(t=new zn(t),Qn[t.Qb]=t,e.Zc=t.Qb)},Gn=function(){b.call(this)};_(Gn,b),Gn.prototype.message="Deferred has already fired",Gn.prototype.name="AlreadyCalledError";var Kn=function(){b.call(this)};_(Kn,b),Kn.prototype.message="Deferred was canceled",Kn.prototype.name="CanceledError";var zn=function(e){this.Qb=r.setTimeout(v(this.xg,this),0),this.ba=e};zn.prototype.xg=function(){throw j(Qn[this.Qb],"Cannot throw an error that is not scheduled."),delete Qn[this.Qb],this.ba};var Qn={},Yn=function(e){var t={},n=t.document||document,r=G(e),o=document.createElement("SCRIPT"),i={Te:o,jc:void 0},a=new Ln($n,i),s=null,u=null!=t.timeout?t.timeout:5e3;return 0=sr(this).value)for(h(t)&&(t=t()),e=new er(e,String(t),this.Je),n&&(e.se=n),n="log:"+e.Zf,(t=r.console)&&t.timeStamp&&t.timeStamp(n),(t=r.msWriteProfilerMark)&&t(n),n=this;n;){var o=n,i=e;if(o.ze)for(var a=0;t=o.ze[a];a++)t(i);n=n.getParent()}},tr.prototype.info=function(e,t){this.log(or,e,t)},tr.prototype.config=function(e,t){this.log(ir,e,t)};var ur={},cr=null,lr=function(e){var t;if(cr||(cr=new tr(""),ur[""]=cr,cr.Ue(ir)),!(t=ur[e])){t=new tr(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=lr(e.substr(0,n))).kd||(n.kd={}),n.kd[r]=t,t.w=n,ur[e]=t}return t},pr=function(){Xe.call(this),this.ga=new at(this),this.kf=this,this.Kd=null};_(pr,Xe),pr.prototype[rt]=!0,(e=pr.prototype).addEventListener=function(e,t,n,r){pt(this,e,t,n,r)},e.removeEventListener=function(e,t,n,r){yt(this,e,t,n,r)},e.dispatchEvent=function(e){dr(this);var t=this.Kd;if(t)for(var n=[],r=1;t;t=t.Kd)n.push(t),j(1e3>++r,"infinite loop");if(t=this.kf,r=e.type||e,i(e))e=new et(e,t);else if(e instanceof et)e.target=e.target||t;else{var o=e;e=new et(r,t),ge(e,o)}if(o=!0,n)for(var a=n.length-1;!e.Wa&&0<=a;a--){var s=e.currentTarget=n[a];o=fr(s,r,!0,e)&&o}if(e.Wa||(s=e.currentTarget=t,o=fr(s,r,!0,e)&&o,e.Wa||(o=fr(s,r,!1,e)&&o)),n)for(a=0;!e.Wa&&a2*this.u&&_r(this),!0)};var _r=function(e){if(e.u!=e.B.length){for(var t=0,n=0;t=r.B.length)throw yr;var o=r.B[t++];return e?o:r.ja[o]},o};var br=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},wr=function(e){if(e.ha&&"function"==typeof e.ha)return e.ha();if(i(e))return e.split("");if(p(e)){for(var t=[],n=e.length,r=0;rt?null:i(e)?e.charAt(t):e[t]}(a.va()),n=r.FormData&&e instanceof r.FormData,!te(Rr,t)||o||n||a.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),a.forEach(function(e,t){this.b.setRequestHeader(t,e)},this),this.Pc&&(this.b.responseType=this.Pc),"withCredentials"in this.b&&this.b.withCredentials!==this.df&&(this.b.withCredentials=this.df);try{Fr(this),0t)throw Error("Bad port number "+t);e.vb=t}else e.vb=null},Kr=function(e,t,n){Xr(e),e.Ga=n?Zr(t,!0):t},zr=function(e,t,n){Xr(e),t instanceof so?(e.ea=t,e.ea.Zd(e.da)):(n||(t=eo(t,io)),e.ea=new so(t,0,e.da))},Qr=function(e,t,n){Xr(e),e.ea.set(t,n)},Yr=function(e,t){return e.ea.get(t)};Hr.prototype.removeParameter=function(e){return Xr(this),this.ea.remove(e),this};var Xr=function(e){if(e.Uf)throw Error("Tried to modify a read-only Uri")};Hr.prototype.Zd=function(e){return this.da=e,this.ea&&this.ea.Zd(e),this};var $r=function(e){return e instanceof Hr?e.clone():new Hr(e,void 0)},Jr=function(e,t){var n=new Hr(null,void 0);return Wr(n,"https"),e&&qr(n,e),t&&Kr(n,t),n},Zr=function(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""},eo=function(e,t,n){return i(e)?(e=encodeURI(e).replace(t,to),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null},to=function(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)},no=/[#\/\?@]/g,ro=/[\#\?:]/g,oo=/[\#\?]/g,io=/[\#\?@]/g,ao=/#/g,so=function(e,t,n){this.u=this.s=null,this.V=e||null,this.da=!!n},uo=function(e){e.s||(e.s=new mr,e.u=0,e.V&&function(e,t){if(e){e=e.split("&");for(var n=0;n',function(e,t,n){i(e)||D("Expected string but got %s: %s.",[u(e),e],t,Array.prototype.slice.call(arguments,2))}(U(e),"must provide justification"),j(!/^[\s\xa0]*$/.test(U(e)),"must provide non-empty justification"),s.document.write(function(e){return e instanceof sn&&e.constructor===sn&&e.ef===un?e.xa:(M("expected object of type SafeHtml, got '"+e+"' of type "+u(e)),"type_error:SafeHtml")}((new sn).Qf(r))),s.document.close())):s=e.open(Tt(t),n,s),s)try{s.focus()}catch(e){}return s},Eo=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Co=function(){var e=null;return new vn(function(t){"complete"==r.document.readyState?t():(e=function(){t()},dt(window,"load",e))}).g(function(t){throw yt(window,"load",e),t})},So=function(e){return e=e||Ro(),!("file:"!==Mo()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))},Oo=function(){var e=r.window;try{return!(!e||e==e.top)}catch(e){return!1}},To=function(){return t.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":t.INTERNAL.hasOwnProperty("node")?"Node":"Browser"},Po=function(){var e=To();return"ReactNative"===e||"Node"===e},No=function(e){var t=e.toLowerCase();return R(t,"opera/")||R(t,"opr/")||R(t,"opios/")?"Opera":R(t,"iemobile")?"IEMobile":R(t,"msie")||R(t,"trident/")?"IE":R(t,"edge/")?"Edge":R(t,"firefox/")?"Firefox":R(t,"silk/")?"Silk":R(t,"blackberry")?"Blackberry":R(t,"webos")?"Webos":!R(t,"safari/")||R(t,"chrome/")||R(t,"crios/")||R(t,"android")?!R(t,"chrome/")&&!R(t,"crios/")||R(t,"edge/")?R(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":"Chrome":"Safari"},Ao={Eg:"FirebaseCore-web",Gg:"FirebaseUI-web"},Io=function(e,t){t=t||[];var n,r=[],o={};for(n in Ao)o[Ao[n]]=!0;for(n=0;nt)throw Error("Short delay should be less than long delay!");this.tg=e,this.Yf=t,e=n||Ro(),r=r||To(),this.Tf=_o(e)||"ReactNative"===r};Go.prototype.get=function(){return this.Tf?this.Yf:this.tg};var Ko,zo=function(){var e=r.document;return!e||"undefined"==typeof e.visibilityState||"visible"==e.visibilityState},Qo={};try{var Yo={};Object.defineProperty(Yo,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Yo,"abcd",{configurable:!0,enumerable:!0,value:2}),Ko=2==Yo.abcd}catch(be){Ko=!1}var Xo=function(e,t,n){Ko?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n},$o=function(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Xo(e,n,t[n])},Jo=function(e){var t={};return $o(t,e),t},Zo=function(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Xo(t,n,Zo(e[n]));return t},ei="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),ti=["client_id","response_type","scope","redirect_uri","state"],ni={Fg:{Ec:"locale",Zb:500,Yb:600,providerId:"facebook.com",Td:ti},Hg:{Ec:null,Zb:500,Yb:620,providerId:"github.com",Td:ti},Ig:{Ec:"hl",Zb:515,Yb:680,providerId:"google.com",Td:ti},Mg:{Ec:"lang",Zb:485,Yb:705,providerId:"twitter.com",Td:ei}},ri=function(e){for(var t in ni)if(ni[t].providerId==e)return ni[t];return null},oi=function(e,t){this.code="auth/"+e,this.message=t||ai[e]||""};_(oi,Error),oi.prototype.G=function(){return{code:this.code,message:this.message}},oi.prototype.toJSON=function(){return this.G()};var ii=function(e){var t=e&&e.code;return t?new oi(t.substring(5),e.message):null},ai={"argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"The user's credential is no longer valid. The user must sign in again.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The SMS quota for this project has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","user-cancelled":"User did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},si=function(e,t,n,r,o){if(this.ma=e,this.W=t||null,this.Eb=n||null,this.Xd=r||null,this.ba=o||null,!this.Eb&&!this.ba)throw new oi("invalid-auth-event");if(this.Eb&&this.ba)throw new oi("invalid-auth-event");if(this.Eb&&!this.Xd)throw new oi("invalid-auth-event")};si.prototype.uc=function(){return this.Xd},si.prototype.getError=function(){return this.ba},si.prototype.G=function(){return{type:this.ma,eventId:this.W,urlResponse:this.Eb,sessionId:this.Xd,error:this.ba&&this.ba.G()}};var ui=function(e){return(e=e||{}).type?new si(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&ii(e.error)):null},ci=function(e){var t="unauthorized-domain",n=void 0,r=$r(e);e=r.pa,"chrome-extension"==(r=r.qa)?n=w("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=w("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",oi.call(this,t,n)};_(ci,oi);var li=function(e){this.Wf=e.sub,m(),this.Mb=e.email||null,this.gg=e.provider_id||null,this.mf=!!e.is_anonymous||"anonymous"==this.gg};li.prototype.getEmail=function(){return this.Mb},li.prototype.isAnonymous=function(){return this.mf};var pi=function(e,t){return e.then(function(e){if(e.idToken){e:{var n=e.idToken.split(".");if(3==n.length){for(var r=(4-(n=n[1]).length%4)%4,o=0;oe||Ee&&Re&&!(9"),a=a.join("")}return a=o.createElement(a),s&&(i(s)?a.className=s:l(s)?a.className=s.join(" "):ln(a,s)),2e.ee&&(e.Sa=e.ee),t)}(e,t)).then(function(){return e.mg?bn():function(){var e=r.document,t=null;return zo()||!e?bn():new vn(function(n){t=function(){zo()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)}).g(function(n){throw e.removeEventListener("visibilitychange",t,!1),n})}()}).then(function(){return e.dg()}).then(function(){ws(e,!0)}).g(function(t){e.lg(t)&&ws(e,!1)})};bs.prototype.stop=function(){this.ub&&(this.ub.cancel(),this.ub=null)};var Es=function(e){var t={};t["facebook.com"]=Ss,t["google.com"]=Ts,t["github.com"]=Os,t["twitter.com"]=Ps;var n=e&&e.providerId;return n?t[n]?new t[n](e):new Cs(e):null},Cs=function(e){var t=Uo(e.rawUserInfo||"{}");if(!(e=e.providerId))throw Error("Invalid additional user info!");Xo(this,"profile",Zo(t||{})),Xo(this,"providerId",e)},Ss=function(e){if(Cs.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider id!")};_(Ss,Cs);var Os=function(e){if(Cs.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider id!");Xo(this,"username",this.profile&&this.profile.login||null)};_(Os,Cs);var Ts=function(e){if(Cs.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider id!")};_(Ts,Cs);var Ps=function(e){if(Cs.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider id!");Xo(this,"username",e.screenName||null)};_(Ps,Cs);var Ns,As={LOCAL:"local",NONE:"none",SESSION:"session"},Is=function(e,t,n,r){this.Ke=e,this.Wd=t,this.ng=n,this.ec=r,this.X={},hs||(hs=new function(){this.re={Browser:fs,Node:ds,ReactNative:ys}[To()]}),e=hs;try{if(yo()){as||(as=new ss("firebaseLocalStorageDb","firebaseLocalStorage","fbase_key","value",1));var o=as}else o=new e.re.C;this.Qe=o}catch(e){this.Qe=new es,this.ec=!0}try{this.Ye=new e.re.de}catch(e){this.Ye=new es}this.Nf=new es,this.ce=v(this.We,this),this.Y={}},Rs=function(){return Ns||(Ns=new Is("firebase",":",!(Ho(Ro())||!Oo()),Lo())),Ns},xs=function(e,t){switch(t){case"session":return e.Ye;case"none":return e.Nf;default:return e.Qe}};(e=Is.prototype).ca=function(e,t){return this.Ke+this.Wd+e.name+(t?this.Wd+t:"")},e.get=function(e,t){return xs(this,e.C).get(this.ca(e,t))},e.remove=function(e,t){return t=this.ca(e,t),"local"!=e.C||this.ec||(this.Y[t]=null),xs(this,e.C).remove(t)},e.set=function(e,t,n){var r=this.ca(e,n),o=this,i=xs(this,e.C);return i.set(r,t).then(function(){return i.get(r)}).then(function(t){"local"!=e.C||o.ec||(o.Y[r]=t)})},e.addListener=function(e,t,n){e=this.ca(e,t),this.ec||(this.Y[e]=r.localStorage.getItem(e)),fe(this.X)&&this.be(),this.X[e]||(this.X[e]=[]),this.X[e].push(n)},e.removeListener=function(e,t,n){e=this.ca(e,t),this.X[e]&&(oe(this.X[e],function(e){return e==n}),0==this.X[e].length&&delete this.X[e]),fe(this.X)&&this.Tc()},e.be=function(){xs(this,"local").jb(this.ce),this.ec||yo()||ks(this)};var ks=function(e){Ds(e),e.Fd=setInterval(function(){for(var t in e.X){var n=r.localStorage.getItem(t),o=e.Y[t];n!=o&&(e.Y[t]=n,n=new tt({type:"storage",key:t,target:window,oldValue:o,newValue:n,Md:!0}),e.We(n))}},1e3)},Ds=function(e){e.Fd&&(clearInterval(e.Fd),e.Fd=null)};Is.prototype.Tc=function(){xs(this,"local").$a(this.ce),Ds(this)},Is.prototype.We=function(e){if(e&&e.Ef){var t=e.P.key;if(0==t.indexOf(this.Ke+this.Wd)&&this.X[t]){if("undefined"!=typeof e.P.Md?xs(this,"local").$a(this.ce):Ds(this),this.ng){var n=r.localStorage.getItem(t),o=e.P.newValue;if(o!==n)null!==o?r.localStorage.setItem(t,o):r.localStorage.removeItem(t);else if(this.Y[t]===o&&"undefined"==typeof e.P.Md)return}var i=this;n=function(){"undefined"==typeof e.P.Md&&i.Y[t]===r.localStorage.getItem(t)||(i.Y[t]=r.localStorage.getItem(t),i.je(t))},Ee&&Re&&10==Re&&r.localStorage.getItem(t)!==e.P.newValue&&e.P.newValue!==e.P.oldValue?setTimeout(n,10):n()}}else J(e,v(this.je,this))},Is.prototype.je=function(e){this.X[e]&&J(this.X[e],function(e){e()})};var js=function(e,t){this.j=e,this.h=t||Rs()},Ms={name:"authEvent",C:"local"};js.prototype.ib=function(e){this.h.addListener(Ms,this.j,e)},js.prototype.dc=function(e){this.h.removeListener(Ms,this.j,e)};var Ls=function(e){this.h=e||Rs()},Fs={name:"sessionId",C:"session"};Ls.prototype.uc=function(e){return this.h.get(Fs,e)};var Vs=function(e,t,n,r,o,i,a){this.A=e,this.m=t,this.o=n,this.La=r||null,this.O=a||null,this.Xe=t+":"+n,this.og=new Ls,this.we=new js(this.Xe),this.Ad=null,this.ta=[],this.Sf=o||500,this.hg=i||2e3,this.Rb=this.Kc=null},Us=function(e){return new oi("invalid-cordova-configuration",e)};Vs.prototype.Ra=function(){return this.Tb?this.Tb:this.Tb=(So(void 0)?Co().then(function(){return new vn(function(e,t){var n=r.document,o=setTimeout(function(){t(Error("Cordova framework is not ready."))},1e3);n.addEventListener("deviceready",function(){clearTimeout(o),e()},!1)})}):wn(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof xo("universalLinks.subscribe",r))throw Us("cordova-universal-links-plugin is not installed");if("undefined"==typeof xo("BuildInfo.packageName",r))throw Us("cordova-plugin-buildinfo is not installed");if("function"!=typeof xo("cordova.plugins.browsertab.openUrl",r))throw Us("cordova-plugin-browsertab is not installed");if("function"!=typeof xo("cordova.InAppBrowser.open",r))throw Us("cordova-plugin-inappbrowser is not installed")},function(){throw new oi("cordova-not-ready")})};var Bs=function(e){var t=new ze;return t.update(e),function(e){return Z(e,function(e){return 1<(e=e.toString(16)).length?e:"0"+e}).join("")}(t.digest())};(e=Vs.prototype).fc=function(e,t){return t(new oi("operation-not-supported-in-this-environment")),bn()},e.$b=function(){return wn(new oi("operation-not-supported-in-this-environment"))},e.Ze=function(){return!1},e.Ve=function(){return!0},e.Ae=function(){return!0},e.ac=function(e,t,n){if(this.Kc)return wn(new oi("redirect-operation-pending"));var o=this,i=r.document,a=null,s=null,u=null,c=null;return this.Kc=Cn(bn().then(function(){return Ri(t),Ws(o)}).then(function(){return Hs(o,e,t,n)}).then(function(){return new vn(function(e,t){s=function(){var t=xo("cordova.plugins.browsertab.close",r);return e(),"function"==typeof t&&t(),o.Rb&&"function"==typeof o.Rb.close&&(o.Rb.close(),o.Rb=null),!1},o.ib(s),u=function(){a||(a=Or(o.hg).then(function(){t(new oi("redirect-cancelled-by-user"))}))},c=function(){zo()&&u()},i.addEventListener("resume",u,!1),Ro().toLowerCase().match(/android/)||i.addEventListener("visibilitychange",c,!1)}).g(function(e){return qs(o).then(function(){throw e})})}),function(){u&&i.removeEventListener("resume",u,!1),c&&i.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&o.dc(s),o.Kc=null})};var Hs=function(e,t,n,o){var i=function(){for(var e=20,t=[];0this.Na-3e4?this.fa?pu(this,{grant_type:"refresh_token",refresh_token:this.fa}):bn(null):bn({accessToken:this.Ja,expirationTime:this.Na,refreshToken:this.fa})};var hu=function(e,t){for(var n in et.call(this,e),t)this[n]=t[n]};_(hu,et);var fu=function(e,n,r){this.J=[],this.m=e.apiKey,this.o=e.appName,this.A=e.authDomain||null,e=t.SDK_VERSION?Io(t.SDK_VERSION):null,this.f=new Mi(this.m,fo(po),e),this.ra=new uu(this.f),wu(this,n.idToken),cu(this.ra,n),Xo(this,"refreshToken",this.ra.fa),Su(this,r||{}),pr.call(this),this.Lc=!1,this.A&&Do()&&(this.v=tu(this.A,this.m,this.o)),this.Sc=[],this.sa=null,this.wb=mu(this),this.Gb=v(this.wd,this);var o=this;this.ia=null,this.Ne=function(e){o.Cb(e.languageCode)},this.Dd=null,this.M=[],this.Me=function(e){yu(o,e.Cf)},this.sd=null};_(fu,pr),fu.prototype.Cb=function(e){this.ia=e,Bi(this.f,e)};var du=function(e,t){e.Dd&&yt(e.Dd,"languageCodeChanged",e.Ne),(e.Dd=t)&&pt(t,"languageCodeChanged",e.Ne)},yu=function(e,n){e.M=n,Hi(e.f,t.SDK_VERSION?Io(t.SDK_VERSION,e.M):null)},vu=function(e,t){e.sd&&yt(e.sd,"frameworkChanged",e.Me),(e.sd=t)&&pt(t,"frameworkChanged",e.Me)};fu.prototype.wd=function(){this.wb.ub&&(this.wb.stop(),this.wb.start())};var gu=function(e){try{return t.app(e.o).auth()}catch(t){throw new oi("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.o+"'!")}},mu=function(e){return new bs(function(){return e.getIdToken(!0)},function(e){return!(!e||"auth/network-request-failed"!=e.code)},function(){var t=e.ra.Na-m()-3e5;return 0this.Oa&&(this.Oa=0),0==this.Oa&&pc(this)&&bu(pc(this)),this.removeAuthTokenListener(e)},e.addAuthTokenListener=function(e){var t=this;this.Ka.push(e),this.c(this.ya.then(function(){t.Ea||te(t.Ka,e)&&e(hc(t))}))},e.removeAuthTokenListener=function(e){oe(this.Ka,function(t){return t==e})};var fc=function(e,t){e.Fb.push(t),e.c(e.ya.then(function(){!e.Ea&&te(e.Fb,t)&&e.mc!==e.getUid()&&(e.mc=e.getUid(),t(hc(e)))}))};(e=Zu.prototype).delete=function(){this.Ea=!0;for(var e=0;eo||o>=yc.length)throw new oi("internal-error","Argument validator received an unsupported number of arguments.");n=yc[o],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.T+".";break e}r=null}}if(r)throw new oi("argument-error",e+" failed: "+r)},yc="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" "),vc=function(e,t){return{name:e||"",T:"a valid string",optional:!!t,U:i}},gc=function(){return{name:"opt_forceRefresh",T:"a boolean",optional:!0,U:a}},mc=function(e,t){return{name:e||"",T:"a valid object",optional:!!t,U:f}},_c=function(e,t){return{name:e||"",T:"a function",optional:!!t,U:h}},bc=function(e,t){return{name:e||"",T:"null",optional:!!t,U:c}},wc=function(e){return{name:e?e+"Credential":"credential",T:e?"a valid "+e+" credential":"a valid credential",optional:!1,U:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.Ob||!n)}}},Ec=function(){return{name:"applicationVerifier",T:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,U:function(e){return!!(e&&i(e.type)&&h(e.verify))}}},Cc=function(e,t,n,r){return{name:n||"",T:e.T+" or "+t.T,optional:!!r,U:function(n){return e.U(n)||t.U(n)}}},Sc=function(e,t){for(var n in t){var r=t[n].name;e[r]=Tc(r,e[n],t[n].a)}},Oc=function(e,t,n,r){e[t]=Tc(t,n,r)},Tc=function(e,t,n){if(!n)return t;var r=Pc(e);for(var o in e=function(){var e=Array.prototype.slice.call(arguments);return dc(r,n,e),t.apply(this,e)},t)e[o]=t[o];for(o in t.prototype)e.prototype[o]=t.prototype[o];return e},Pc=function(e){return(e=e.split("."))[e.length-1]};Sc(Zu.prototype,{applyActionCode:{name:"applyActionCode",a:[vc("code")]},checkActionCode:{name:"checkActionCode",a:[vc("code")]},confirmPasswordReset:{name:"confirmPasswordReset",a:[vc("code"),vc("newPassword")]},createUserWithEmailAndPassword:{name:"createUserWithEmailAndPassword",a:[vc("email"),vc("password")]},fetchProvidersForEmail:{name:"fetchProvidersForEmail",a:[vc("email")]},getRedirectResult:{name:"getRedirectResult",a:[]},onAuthStateChanged:{name:"onAuthStateChanged",a:[Cc(mc(),_c(),"nextOrObserver"),_c("opt_error",!0),_c("opt_completed",!0)]},onIdTokenChanged:{name:"onIdTokenChanged",a:[Cc(mc(),_c(),"nextOrObserver"),_c("opt_error",!0),_c("opt_completed",!0)]},sendPasswordResetEmail:{name:"sendPasswordResetEmail",a:[vc("email"),Cc(mc("opt_actionCodeSettings",!0),bc(null,!0),"opt_actionCodeSettings",!0)]},setPersistence:{name:"setPersistence",a:[vc("persistence")]},signInAndRetrieveDataWithCredential:{name:"signInAndRetrieveDataWithCredential",a:[wc()]},signInAnonymously:{name:"signInAnonymously",a:[]},signInWithCredential:{name:"signInWithCredential",a:[wc()]},signInWithCustomToken:{name:"signInWithCustomToken",a:[vc("token")]},signInWithEmailAndPassword:{name:"signInWithEmailAndPassword",a:[vc("email"),vc("password")]},signInWithPhoneNumber:{name:"signInWithPhoneNumber",a:[vc("phoneNumber"),Ec()]},signInWithPopup:{name:"signInWithPopup",a:[{name:"authProvider",T:"a valid Auth provider",optional:!1,U:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},signInWithRedirect:{name:"signInWithRedirect",a:[{name:"authProvider",T:"a valid Auth provider",optional:!1,U:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},signOut:{name:"signOut",a:[]},toJSON:{name:"toJSON",a:[vc(null,!0)]},useDeviceLanguage:{name:"useDeviceLanguage",a:[]},verifyPasswordResetCode:{name:"verifyPasswordResetCode",a:[vc("code")]}}),function(e,t){for(var n in t){var r=t[n].name;if(r!==n){var o=t[n].nf;Object.defineProperty(e,r,{get:function(){return this[n]},set:function(e){dc(r,[o],[e],!0),this[n]=e},enumerable:!0})}}}(Zu.prototype,{lc:{name:"languageCode",nf:Cc(vc(),bc(),"languageCode")}}),(Zu.Persistence=As).LOCAL="local",Zu.Persistence.SESSION="session",Zu.Persistence.NONE="none",Sc(fu.prototype,{delete:{name:"delete",a:[]},getIdToken:{name:"getIdToken",a:[gc()]},getToken:{name:"getToken",a:[gc()]},linkAndRetrieveDataWithCredential:{name:"linkAndRetrieveDataWithCredential",a:[wc()]},linkWithCredential:{name:"linkWithCredential",a:[wc()]},linkWithPhoneNumber:{name:"linkWithPhoneNumber",a:[vc("phoneNumber"),Ec()]},linkWithPopup:{name:"linkWithPopup",a:[{name:"authProvider",T:"a valid Auth provider",optional:!1,U:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},linkWithRedirect:{name:"linkWithRedirect",a:[{name:"authProvider",T:"a valid Auth provider",optional:!1,U:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reauthenticateAndRetrieveDataWithCredential:{name:"reauthenticateAndRetrieveDataWithCredential",a:[wc()]},reauthenticateWithCredential:{name:"reauthenticateWithCredential",a:[wc()]},reauthenticateWithPhoneNumber:{name:"reauthenticateWithPhoneNumber",a:[vc("phoneNumber"),Ec()]},reauthenticateWithPopup:{name:"reauthenticateWithPopup",a:[{name:"authProvider",T:"a valid Auth provider",optional:!1,U:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reauthenticateWithRedirect:{name:"reauthenticateWithRedirect",a:[{name:"authProvider",T:"a valid Auth provider",optional:!1,U:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",a:[]},sendEmailVerification:{name:"sendEmailVerification",a:[Cc(mc("opt_actionCodeSettings",!0),bc(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",a:[vc(null,!0)]},unlink:{name:"unlink",a:[vc("provider")]},updateEmail:{name:"updateEmail",a:[vc("email")]},updatePassword:{name:"updatePassword",a:[vc("password")]},updatePhoneNumber:{name:"updatePhoneNumber",a:[wc("phone")]},updateProfile:{name:"updateProfile",a:[mc("profile")]}}),Sc(vn.prototype,{g:{name:"catch"},then:{name:"then"}}),Sc(ms.prototype,{confirm:{name:"confirm",a:[vc("verificationCode")]}}),Oc(Oi,"credential",function(e,t){return new Si(e,t)},[vc("email"),vc("password")]),Sc(vi.prototype,{addScope:{name:"addScope",a:[vc("scope")]},setCustomParameters:{name:"setCustomParameters",a:[mc("customOAuthParameters")]}}),Oc(vi,"credential",gi,[Cc(vc(),mc(),"token")]),Sc(mi.prototype,{addScope:{name:"addScope",a:[vc("scope")]},setCustomParameters:{name:"setCustomParameters",a:[mc("customOAuthParameters")]}}),Oc(mi,"credential",_i,[Cc(vc(),mc(),"token")]),Sc(bi.prototype,{addScope:{name:"addScope",a:[vc("scope")]},setCustomParameters:{name:"setCustomParameters",a:[mc("customOAuthParameters")]}}),Oc(bi,"credential",wi,[Cc(vc(),Cc(mc(),bc()),"idToken"),Cc(vc(),bc(),"accessToken",!0)]),Sc(Ei.prototype,{setCustomParameters:{name:"setCustomParameters",a:[mc("customOAuthParameters")]}}),Oc(Ei,"credential",Ci,[Cc(vc(),mc(),"token"),vc("secret",!0)]),Sc(yi.prototype,{addScope:{name:"addScope",a:[vc("scope")]},credential:{name:"credential",a:[Cc(vc(),bc(),"idToken",!0),Cc(vc(),bc(),"accessToken",!0)]},setCustomParameters:{name:"setCustomParameters",a:[mc("customOAuthParameters")]}}),Oc(Ni,"credential",Ai,[vc("verificationId"),vc("verificationCode")]),Sc(Ni.prototype,{verifyPhoneNumber:{name:"verifyPhoneNumber",a:[vc("phoneNumber"),Ec()]}}),Sc(oi.prototype,{toJSON:{name:"toJSON",a:[vc(null,!0)]}}),Sc(xi.prototype,{toJSON:{name:"toJSON",a:[vc(null,!0)]}}),Sc(ci.prototype,{toJSON:{name:"toJSON",a:[vc(null,!0)]}}),Sc(Ja.prototype,{clear:{name:"clear",a:[]},render:{name:"render",a:[]},verify:{name:"verify",a:[]}}),function(){if("undefined"==typeof t||!t.INTERNAL||!t.INTERNAL.registerService)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={Auth:Zu,Error:oi};Oc(e,"EmailAuthProvider",Oi,[]),Oc(e,"FacebookAuthProvider",vi,[]),Oc(e,"GithubAuthProvider",mi,[]),Oc(e,"GoogleAuthProvider",bi,[]),Oc(e,"TwitterAuthProvider",Ei,[]),Oc(e,"OAuthProvider",yi,[vc("providerId")]),Oc(e,"PhoneAuthProvider",Ni,[{name:"auth",T:"an instance of Firebase Auth",optional:!0,U:function(e){return!!(e&&e instanceof Zu)}}]),Oc(e,"RecaptchaVerifier",Ja,[Cc(vc(),{name:"",T:"an HTML element",optional:!1,U:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),mc("recaptchaParameters",!0),{name:"app",T:"an instance of Firebase App",optional:!0,U:function(e){return!!(e&&e instanceof t.app.App)}}]),t.INTERNAL.registerService("auth",function(e,t){return e=new Zu(e),t({INTERNAL:{getUid:v(e.getUid,e),getToken:v(e.Ff,e),addAuthTokenListener:v(e.lf,e),removeAuthTokenListener:v(e.ig,e)}}),e},e,function(e,t){if("create"===e)try{t.auth()}catch(e){}}),t.INTERNAL.extendNamespace({User:fu})}()}).call(this)}).call(void 0!==typeof e?e:void 0!==typeof self?self:void 0!==typeof window?window:{})}).call(t,n("DuR2"))},"19po":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RepoInfo=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("nDT4"),i=n("zHK/"),a=n("xfUw"),s=n("DOhx"),u=function(){function e(e,t,n,r,o){void 0===o&&(o=""),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=o,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=a.PersistentStorage.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&a.PersistentStorage.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if((0,o.assert)("string"==typeof e,"typeof type must == string"),(0,o.assert)("object"===("undefined"==typeof t?"undefined":r(t)),"typeof params must == object"),e===s.WEBSOCKET)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(e!==s.LONG_POLLING)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var a=[];return(0,i.forEach)(t,function(e,t){a.push(e+"="+t)}),n+a.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();t.RepoInfo=u},"1APj":function(e,t,n){"use strict";var r=n("rCTf"),o=n("lgiQ");r.Observable.of=o.of},"1GJ2":function(e,t,n){"use strict";n.d(t,"a",function(){return w}),n.d(t,"c",function(){return Ae}),n.d(t,"f",function(){return Ie}),n.d(t,"d",function(){return b}),n.d(t,"b",function(){return ot}),n.d(t,"e",function(){return st}),n.d(t,"g",function(){return ut});var r=n("TToO"),o=n("Um43");function i(e){switch(e.length){case 0:return new o.d;case 1:return e[0];default:return new o.g(e)}}function a(e,t,n,r,i,a){void 0===i&&(i={}),void 0===a&&(a={});var s=[],u=[],c=-1,l=null;if(r.forEach(function(e){var n=e.offset,r=n==c,p=r&&l||{};Object.keys(e).forEach(function(n){var r=n,u=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),u){case o.h:u=i[n];break;case o.a:u=a[n];break;default:u=t.normalizeStyleValue(n,r,u,s)}p[r]=u}),r||u.push(p),l=p,c=n}),s.length){throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "))}return u}function s(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&u(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return r(n&&u(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return r(n&&u(n,"destroy",e.totalTime))})}}function u(e,t,n){var r=c(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),o=e._data;return null!=o&&(r._data=o),r}function c(e,t,n,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i}}function l(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function p(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var h=function(e,t){return!1},f=function(e,t){return!1},d=function(e,t,n){return[]};if("undefined"!=typeof Element){if(h=function(e,t){return e.contains(t)},Element.prototype.matches)f=function(e,t){return e.matches(t)};else{var y=Element.prototype,v=y.matchesSelector||y.mozMatchesSelector||y.msMatchesSelector||y.oMatchesSelector||y.webkitMatchesSelector;v&&(f=function(e,t){return v.apply(e,[t])})}d=function(e,t,n){var r=[];if(n)r.push.apply(r,e.querySelectorAll(t));else{var o=e.querySelector(t);o&&r.push(o)}return r}}var g=f,m=h,_=d,b=function(){function e(){}return e.prototype.matchesElement=function(e,t){return g(e,t)},e.prototype.containsElement=function(e,t){return m(e,t)},e.prototype.query=function(e,t,n){return _(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,i,a){return void 0===a&&(a=[]),new o.d},e}(),w=function(){return function(){}}();w.NOOP=new b;var E=1e3,C=".ng-enter",S=".ng-leave",O=".ng-trigger",T=".ng-animating";function P(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:N(parseFloat(t[1]),t[2])}function N(e,t){switch(t){case"s":return e*E;default:return e}}function A(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,o=0,i="";if("string"==typeof e){var a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=N(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(o=N(Math.floor(parseFloat(s)),a[4]));var u=a[5];u&&(i=u)}else r=e;if(!n){var c=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(l,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:o,easing:i}}(e,t,n)}function I(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function R(e){var t={};return Array.isArray(e)?e.forEach(function(e){return x(e,!1,t)}):x(e,!1,t),t}function x(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else I(e,n);return n}function k(e,t){e.style&&Object.keys(t).forEach(function(n){var r=B(n);e.style[r]=t[n]})}function D(e,t){e.style&&Object.keys(t).forEach(function(t){var n=B(t);e.style[n]=""})}function j(e){return Array.isArray(e)?1==e.length?e[0]:Object(o.e)(e):e}var M=new RegExp("{{\\s*(.+?)\\s*}}","g");function L(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=M.exec(n);)t.push(r[1]);M.lastIndex=0}return t}function F(e,t,n){var r=e.toString(),o=r.replace(M,function(e,r){var o=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?e:o}function V(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var U=/-+([a-z0-9])/g;function B(e){return e.replace(U,function(){for(var e=[],t=0;t *";case":leave":return"* => void";default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}(e,n));var r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var o=r[1],i=r[2],a=r[3];t.push(ue(o,a));var s=o==ae&&a==ae;"<"!=i[0]||s||t.push(ue(a,o))}(e,n,t)}):n.push(e),n}function ue(e,t){return function(n,r){var o=e==ae||e==n,i=t==ae||t==r;return o||"boolean"!=typeof n||(o=n?"true"===e:"false"===e),i||"boolean"!=typeof r||(i=r?"true"===t:"false"===t),o&&i}}var ce=":self",le=new RegExp("s*"+ce+"s*,?","g");function pe(e,t){return(new de).build(e,t)}var he=new RegExp(":leave","g"),fe=new RegExp(":enter","g"),de=function(){function e(){}return e.prototype.build=function(e,t){var n=new ye(t);return this._resetContextStyleTimingState(n),ie(this,j(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,r=t.queryCount=0,o=t.depCount=0,i=[],a=[];e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,u=s.name;u.split(/\s*,\s*/).forEach(function(e){s.name=e,i.push(n.visitState(s,t))}),s.name=u}else if(1==e.type){var c=n.visitTransition(e,t);r+=c.queryCount,o+=c.depCount,a.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")});var s=new q(e.name,i,a);return s.options=ge(e.options),s.queryCount=r,s.depCount=o,s},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var o=new Set,i=r||{};if(n.styles.forEach(function(e){if(ve(e)){var t=e;Object.keys(t).forEach(function(e){L(t[e]).forEach(function(e){i.hasOwnProperty(e)||o.add(e)})})}}),o.size){var a=V(o.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+a.join(", "))}}var s=new G(e.name,n);return r&&(s.options={params:r}),s},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n=ie(this,j(e.animation),t),r=se(e.expr,t.errors),o=new K(r,n);return o.options=ge(e.options),o.queryCount=t.queryCount,o.depCount=t.depCount,o},e.prototype.visitSequence=function(e,t){var n=this,r=new z(e.steps.map(function(e){return ie(n,e,t)}));return r.options=ge(e.options),r},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,o=0,i=e.steps.map(function(e){t.currentTime=r;var i=ie(n,e,t);return o=Math.max(o,t.currentTime),i});t.currentTime=o;var a=new Q(i);return a.options=ge(e.options),a},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e){A(e,t).duration;return new re(e,0,"")}var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))return new oe(r);return n=n||A(r,t),new re(n.duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Object(o.f)({});if(5==i.type)n=this.visitKeyframes(i,t);else{var a=e.styles,s=!1;if(!a){s=!0;var u={};r.easing&&(u.easing=r.easing),a=Object(o.f)(u)}t.currentTime+=r.duration+r.delay;var c=this.visitStyle(a,t);c.isEmptyStep=s,n=c}return t.currentAnimateTimings=null,new Y(r,n)},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==o.a?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,i=null;n.forEach(function(e){if(ve(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var o in t){if(t[o].toString().indexOf("{{")>=0){r=!0;break}}}});var a=new X(n,i,e.offset);return a.containsDynamicStyles=r,a},e.prototype._validateStyleAst=function(e,t){var n=t.currentAnimateTimings,r=t.currentTime,o=t.currentTime;n&&o>0&&(o-=n.duration+n.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(n){var i,a,s,u,c,l=t.collectedStyles[t.currentQuerySelector],p=l[n],h=!0;p&&(o!=r&&o>=p.startTime&&r<=p.endTime&&(t.errors.push('The CSS property "'+n+'" that exists between the times of "'+p.startTime+'ms" and "'+p.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),h=!1),o=p.startTime),h&&(l[n]={startTime:o,endTime:r}),t.options&&(i=e[n],a=t.options,s=t.errors,u=a.params||{},(c=L(i)).length&&c.forEach(function(e){u.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))})})},e.prototype.visitKeyframes=function(e,t){var n=this;if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),new $([]);var r=0,o=[],i=!1,a=!1,s=0,u=e.steps.map(function(e){var u=n._makeStyleAst(e,t),c=null!=u.offset?u.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(ve(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(ve(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(u.styles),l=0;return null!=c&&(r++,l=u.offset=c),a=a||l<0||l>1,i=i||l0&&r0?r==p?1:l*r:o[r],a=i*d;t.currentTime=h+f.delay+a,f.duration=a,n._validateStyleAst(e,t),e.offset=i}),new $(u)},e.prototype.visitReference=function(e,t){var n=ie(this,j(e.animation),t),r=new J(n);return r.options=ge(e.options),r},e.prototype.visitAnimateChild=function(e,t){t.depCount++;var n=new Z;return n.options=ge(e.options),n},e.prototype.visitAnimateRef=function(e,t){var n=this.visitReference(e.animation,t),r=new ee(n);return r.options=ge(e.options),r},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==ce});t&&(e=e.replace(le,""));return[e=e.replace(fe,C).replace(he,S).replace(/@\*/g,O).replace(/@\w+/g,function(e){return O+"-"+e.substr(1)}).replace(/:animating/g,T),t]}(e.selector),i=o[0],a=o[1];t.currentQuerySelector=n.length?n+" "+i:i,l(t.collectedStyles,t.currentQuerySelector,{});var s=ie(this,j(e.animation),t);t.currentQuery=null,t.currentQuerySelector=n;var u=new te(i,r.limit||0,!!r.optional,a,s);return u.originalSelector=e.selector,u.options=ge(e.options),u},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:A(e.timings,t.errors,!0),r=ie(this,j(e.animation),t);return new ne(n,r)},e}();var ye=function(){return function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function ve(e){return!Array.isArray(e)&&"object"==typeof e}function ge(e){var t;return e?(e=I(e)).params&&(e.params=(t=e.params)?I(t):null):e={},e}function me(e,t,n,r,o,i,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:a,subTimeline:s}}var _e=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}();function be(e,t,n,r,o,i,a,s){return void 0===r&&(r={}),void 0===o&&(o={}),void 0===s&&(s=[]),(new we).buildKeyframes(e,t,n,r,o,i,a,s)}var we=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,o,i,a,s){void 0===s&&(s=[]),a=a||new _e;var u=new Ce(e,t,a,s,[]);u.options=i,u.currentTimeline.setStyles([r],null,u.errors,i),n.visit(this,u);var c=u.timelines.filter(function(e){return e.containsAnimation()});if(c.length&&Object.keys(o).length){var l=c[c.length-1];l.allowOnlyTimelineStyles()||l.setStyles([o],null,u.errors,i)}return c.length?c.map(function(e){return e.buildKeyframes()}):[me(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,o=null!=n.duration?P(n.duration):null,i=null!=n.delay?P(n.delay):null;return 0!==o&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,o,i);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),e.animation.visit(this,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,o=t,i=e.options;if(i&&(i.params||i.delay)&&((o=t.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){o.previousNode instanceof X&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ee);var a=P(i.delay);o.delayNextStep(a)}e.steps.length&&(e.steps.forEach(function(e){return e.visit(n,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],o=t.currentTimeline.currentTime,i=e.options&&e.options.delay?P(e.options.delay):0;e.steps.forEach(function(a){var s=t.createSubContext(e.options);i&&s.delayNextStep(i),a.visit(n,s),o=Math.max(o,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype.visitTiming=function(e,t){return e instanceof oe?A(t.params?F(e.value,t.params,t.errors):e.value.toString(),t.errors):{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this.visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var o=e.style;o instanceof $?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(function(e){var n=e.offset||0;i.forwardTime(n*o),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,o=e.options||{},i=o.delay?P(o.delay):0;i&&(t.previousNode instanceof X||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ee);var a=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(r,o){t.currentQueryIndex=o;var s=t.createSubContext(e.options,r);i&&s.delayNextStep(i),r===t.element&&(u=s.currentTimeline),e.animation.visit(n,s),s.currentTimeline.applyStylesToKeyframe();var c=s.currentTimeline.currentTime;a=Math.max(a,c)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,o=e.timings,i=Math.abs(o.duration),a=i*(t.currentQueryTotal-1),s=i*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;e.animation.visit(this,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},e}(),Ee={},Ce=function(){function e(e,t,n,r,o,i){this._driver=e,this.element=t,this.subInstructions=n,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ee,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=i||new Se(t,0),o.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,o=this.options;null!=r.duration&&(o.duration=P(r.duration)),null!=r.delay&&(o.delay=P(r.delay));var i=r.params;if(i){var a=o.params;a||(a=this.options.params={}),Object.keys(i).forEach(function(e){t&&a.hasOwnProperty(e)||(a[e]=F(i[e],a,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(this.options.params).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var o=n||this.element,i=new e(this._driver,o,this.subInstructions,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=Ee,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new Oe(e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,o,i){var a=[];if(r&&a.push(this.element),e.length>0){var s=1!=n,u=this._driver.query(this.element,e,s);0!==n&&(u=u.slice(0,n)),a.push.apply(a,u)}return o||0!=a.length||i.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),a},e}(),Se=function(){function e(e,t,n){this.element=e,this.startTime=t,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||o.a,t._currentKeyframe[e]=o.a}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var a=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=o.a}):x(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=F(s[e],a,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:o.a),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=t[n];e._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],o=e._styleSummary[n];(!r||o.time>r.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(a,s){var u=x(a,!0);Object.keys(u).forEach(function(e){var r=u[e];r==o.h?t.add(e):r==o.a&&n.add(e)}),r||(u.offset=s/e.duration),i.push(u)});var a=t.size?V(t.values()):[],s=n.size?V(n.values()):[];if(r){var u=i[0],c=I(u);u.offset=0,c.offset=1,i=[u,c]}return me(this.element,i,a,s,this.duration,this.startTime,this.easing,!1)},e}(),Oe=function(e){function t(t,n,r,o,i,a){void 0===a&&(a=!1);var s=e.call(this,t,i.delay)||this;return s.element=t,s.keyframes=n,s.preStyleProps=r,s.postStyleProps=o,s._stretchStartingKeyframe=a,s.timings={duration:i.duration,delay:i.delay,easing:i.easing},s}return r.a(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var i=[],a=r+n,s=n/a,u=x(e[0],!1);u.offset=0,i.push(u);var c=x(e[0],!1);c.offset=Te(s),i.push(c);for(var l=e.length-1,p=1;p<=l;p++){var h=x(e[p],!1),f=n+h.offset*r;h.offset=Te(f/a),i.push(h)}r=a,n=0,o="",e=i}return me(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)},t}(Se);function Te(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}!function(){function e(e,t){this._driver=e;var n=[],r=pe(t,n);if(n.length){var o="animation validation failed:\n"+n.join("\n");throw new Error(o)}this._animationAst=r}e.prototype.buildTimelines=function(e,t,n,r,o){var i=Array.isArray(t)?R(t):t,a=Array.isArray(n)?R(n):n,s=[];o=o||new _e;var u=be(this._driver,e,this._animationAst,i,a,r,o,s);if(s.length){var c="animation building failed:\n"+s.join("\n");throw new Error(c)}return u}}();var Pe,Ne,Ae=function(){return function(){}}(),Ie=(function(){function e(){}e.prototype.normalizePropertyName=function(e,t){return e},e.prototype.normalizeStyleValue=function(e,t,n,r){return n}}(),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.normalizePropertyName=function(e,t){return B(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var o="",i=n.toString().trim();if(Re[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return i+o},t}(Ae)),Re=(Pe="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),Ne={},Pe.forEach(function(e){return Ne[e]=!0}),Ne);function xe(e,t,n,r,o,i,a,s,u,c,l,p){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:p}}var ke={},De=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],o=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return o?o.buildStyles(t,n):i},e.prototype.build=function(e,t,n,r,o,i,a){var s=[],u=this.ast.options&&this.ast.options.params||ke,c=o&&o.params||ke,p=this.buildStyles(n,c,s),h=i&&i.params||ke,f=this.buildStyles(r,h,s),d=new Set,y=new Map,v=new Map,g="void"===r,m={params:Object.assign({},u,h)},_=be(e,t,this.ast.animation,p,f,m,a,s);if(s.length)return xe(t,this._triggerName,n,r,g,p,f,[],[],y,v,s);_.forEach(function(e){var n=e.element,r=l(y,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var o=l(v,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&d.add(n)});var b=V(d.values());return xe(t,this._triggerName,n,r,g,p,f,_,b,y,v)},e}();var je=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=I(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var i=o[e];i.length>1&&(i=F(i,r,t)),n[e]=i})}}),n},e}();var Me=function(){function e(e,t){var n,r,o,i,a=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){var t=e.options&&e.options.params||{};a.states[e.name]=new je(e.style,t)}),Le(this.states,"true","1"),Le(this.states,"false","0"),t.transitions.forEach(function(t){a.transitionFactories.push(new De(e,t,a.states))}),this.fallbackTransition=(n=e,r=this.states,o=new z([]),i=new K([function(e,t){return!0}],o),new De(n,i,r))}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Le(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Fe=new _e,Ve=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=pe(t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,o=a(this._driver,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var a,s=[],u=this._animations[e],c=new Map;if(u?(a=be(this._driver,t,u,{},{},n,Fe,s)).forEach(function(e){var t=l(c,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(s.push("The requested animation doesn't exist or has already been destroyed"),a=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));c.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,o.a)})});var p=i(a.map(function(e){var t=c.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=p,p.onDestroy(function(){return r.destroy(e)}),this.players.push(p),p},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var o=c(t,"","","");return s(this._getPlayer(e),n,o,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else{var i=r[0]||{};this.create(e,t,i)}else this.register(e,r[0])},e}(),Ue=[],Be={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},He={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},We="__ng_removed",qe=function(){function e(e){var t=e&&e.hasOwnProperty("value"),n=t?e.value:e;if(this.value=function(e){switch(typeof e){case"boolean":return e?"1":"0";default:return null!=e?e.toString():null}}(n),t){var r=I(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Ge=new qe("void"),Ke=new qe("DELETED"),ze=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,et(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var a=l(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};a.push(s);var u=l(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(et(e,"ng-trigger"),et(e,"ng-trigger-"+t),u[t]=null),function(){i._engine.afterFlush(function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),i._triggers[t]||delete u[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(t),a=new Ye(this.id,t,e),s=this._engine.statesByElement.get(e);s||(et(e,"ng-trigger"),et(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new qe(n);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[t]=c,u){if(u===Ke)return a}else u=Ge;if("void"===c.value||u.value!==c.value){var p=l(this._engine.playersByElement,e,[]);p.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var h=i.matchTransition(u.value,c.value),f=!1;if(!h){if(!r)return;h=i.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:f}),f||(et(e,"ng-animate-queued"),a.onStart(function(){tt(e,"ng-animate-queued")})),a.onDone(function(){var t=o.players.indexOf(a);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),p.push(a),a}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var o=0;o=0){for(var r=!1,o=n;o>=0;o--){var i=this._namespaceList[o];if(this.driver.containsElement(i.hostElement,t)){this._namespaceList.splice(o+1,0,e),r=!0;break}}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.trigger=function(e,t,n,r){return!!Xe(t)&&(this._fetchNamespace(e).trigger(t,n,r),!0)},e.prototype.insertNode=function(e,t,n,r){if(Xe(t)){var o=t[We];o&&o.setForRemoval&&(o.setForRemoval=!1),e&&this._fetchNamespace(e).insertNode(t,n),r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),et(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),tt(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n,r){if(Xe(t)){var o=e?this._fetchNamespace(e):null;o?o.removeNode(t,n,r):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[We]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,o){return Xe(t)?this._fetchNamespace(e).listen(t,n,r,o):function(){}},e.prototype._buildInstruction=function(e,t){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,e.fromState.options,e.toState.options,t)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,O,!0);n.forEach(function(e){var n=t.playersByElement.get(e);n&&n.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()});var r=t.statesByElement.get(e);r&&Object.keys(r).forEach(function(e){return r[e]=Ke})}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,T,!0)).length&&n.forEach(function(e){var n=t.playersByQueriedElement.get(e);n&&n.forEach(function(e){return e.finish()})})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return i(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[We];if(n&&n.setForRemoval){if(e[We]=Be,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,e)}finally{for(var o=0;o=0;b--){this._namespaceList[b].drainQueuedTransitions(t).forEach(function(e){var t=e.player;C.push(t);var o=e.element;if(m&&n.driver.containsElement(m,o)){var i=n._buildInstruction(e,r);if(i.errors&&i.errors.length)S.push(i);else{if(e.isFallbackTransition)return t.onStart(function(){return D(o,i.fromStyles)}),t.onDestroy(function(){return k(o,i.toStyles)}),void a.push(t);i.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(o,i.timelines);var s={instruction:i,player:t,element:o};u.push(s),i.queriedElements.forEach(function(e){return l(c,e,[]).push(t)}),i.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=p.get(t);r||p.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),i.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=h.get(t);r||h.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}}else t.destroy()})}if(S.length){var O=[];S.forEach(function(e){O.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return O.push("- "+e+"\n")})}),C.forEach(function(e){return e.destroy()}),this.reportError(O)}var P=new Set;for(b=0;b<_.length;b++){var N=_[b];r.has(N)||P.add(N)}var A=new Map,I=[];u.forEach(function(e){var t=e.element;r.has(t)&&(I.unshift(t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,A))}),a.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){l(A,t,[]).push(e),e.destroy()})});var R=w.filter(function(e){return rt(e,p,h)}),x=Je(this.driver,E,h,o.a),j=x[0];x[1].forEach(function(e){rt(e,p,h)&&R.push(e)});var M=(p.size?Je(this.driver,P,p,o.h):[new Map])[0];R.forEach(function(e){var t=j.get(e),n=M.get(e);j.set(e,Object.assign({},t,n))});var L=[],F=[];u.forEach(function(e){var t=e.element,o=e.player,u=e.instruction;if(r.has(t)){if(f.has(t))return void a.push(o);var c=n._buildAnimation(o.namespaceId,u,A,s,M,j);o.setRealPlayer(c);for(var l=null,p=0;p0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new o.d},e}(),Ye=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new o.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this._destroyed=!1,this.markedForDestroy=!1}return Object.defineProperty(e.prototype,"queued",{get:function(){return 0==this._containsRealPlayer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return s(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0)},e.prototype.getRealPlayer=function(){return this._player},e.prototype._queueEvent=function(e,t){l(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this._destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e}();function Xe(e){return e&&1===e.nodeType}function $e(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Je(e,t,n,r){var o=[];t.forEach(function(e){return o.push($e(e))});var i=new Map,a=[];n.forEach(function(t,n){var o={};t.forEach(function(t){var i=o[t]=e.computeStyle(n,t,r);i&&0!=i.length||(n[We]=He,a.push(n))}),i.set(n,o)});var s=0;return t.forEach(function(e){return $e(e,o[s++])}),[i,a]}var Ze="$$classes";function et(e,t){if(e.classList)e.classList.add(t);else{var n=e[Ze];n||(n=e[Ze]={}),n[t]=!0}}function tt(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Ze];n&&delete n[t]}}function nt(e,t,n){i(n).onDone(function(){return e.processLeaveNode(t)})}function rt(e,t,n){var r=n.get(e);if(!r)return!1;var o=t.get(e);return o?r.forEach(function(e){return o.add(e)}):t.set(e,r),n.delete(e),!0}var ot=function(){function e(e,t){var n=this;this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Qe(e,t),this._timelineEngine=new Ve(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,o){var i=e+"-"+r,a=this._triggerCache[i];if(!a){var s=[],u=pe(o,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(e,t){return new Me(e,t)}(r,u),this._triggerCache[i]=a}this._transitionEngine.registerTrigger(t,r,a)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var o=p(n),i=o[0],a=o[1],s=r;this._timelineEngine.command(i,t,a,s)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,o){if("@"==n.charAt(0)){var i=p(n),a=i[0],s=i[1];return this._timelineEngine.listen(a,t,s,o)}return this._transitionEngine.listen(e,t,n,r,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),it=function(){function e(e,t,n,r){void 0===r&&(r=[]);var o,i,a=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,o=this._duration,i=this._delay,(0===o||0===i)&&r.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return a.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return x(e,!1)}),n=Object.keys(this.previousStyles);if(n.length){var r=t[0],o=[];if(n.forEach(function(t){r.hasOwnProperty(t)||o.push(t),r[t]=e.previousStyles[t]}),o.length)for(var i=this,a=function(){var e=t[s];o.forEach(function(t){e[t]=at(i.element,t)})},s=1;s0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=c.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s);p.decorators=[{type:o.Injectable}],p.ctorParameters=function(){return[{type:i},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[u]}]}]};var h=function(e){function t(t,n){var r=e.call(this)||this;if(r._platformLocation=t,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return r.a(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return c.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+c.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.pushState(e,t,o)},t.prototype.replaceState=function(e,t,n,r){var o=this.prepareExternalUrl(n+c.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,o)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s);h.decorators=[{type:o.Injectable}],h.ctorParameters=function(){return[{type:i},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[u]}]}]};var f=function(){function e(){}return e.prototype.getPluralCategory=function(e){},e}();function d(e,t,n){var r="="+e;if(t.indexOf(r)>-1)return r;if(r=n.getPluralCategory(e),t.indexOf(r)>-1)return r;if(t.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+e+'"')}var y=function(e){function t(t){var n=e.call(this)||this;return n.locale=t,n}return r.a(t,e),t.prototype.getPluralCategory=function(e){switch(function(e,t){"string"==typeof t&&(t=parseInt(t,10));var n=t,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,a=parseInt(r,10),s=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(e.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===n?v.One:v.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?v.One:v.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?v.One:v.Other;case"ar":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?v.Many:v.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===o&&0===i?v.One:v.Other;case"be":return n%10==1&&n%100!=11?v.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?v.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?v.Many:v.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?v.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?v.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?v.Few:0!==n&&n%1e6==0?v.Many:v.Other;case"bs":case"hr":case"sr":return 0===i&&o%10==1&&o%100!=11||a%10==1&&a%100!=11?v.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||a%10===Math.floor(a%10)&&a%10>=2&&a%10<=4&&!(a%100>=12&&a%100<=14)?v.Few:v.Other;case"cs":case"sk":return 1===o&&0===i?v.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?v.Few:0!==i?v.Many:v.Other;case"cy":return 0===n?v.Zero:1===n?v.One:2===n?v.Two:3===n?v.Few:6===n?v.Many:v.Other;case"da":return 1===n||0!==s&&(0===o||1===o)?v.One:v.Other;case"dsb":case"hsb":return 0===i&&o%100==1||a%100==1?v.One:0===i&&o%100==2||a%100==2?v.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||a%100===Math.floor(a%100)&&a%100>=3&&a%100<=4?v.Few:v.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?v.One:v.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!=4&&o%10!=6&&o%10!=9||0!==i&&a%10!=4&&a%10!=6&&a%10!=9?v.One:v.Other;case"ga":return 1===n?v.One:2===n?v.Two:n===Math.floor(n)&&n>=3&&n<=6?v.Few:n===Math.floor(n)&&n>=7&&n<=10?v.Many:v.Other;case"gd":return 1===n||11===n?v.One:2===n||12===n?v.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?v.Few:v.Other;case"gv":return 0===i&&o%10==1?v.One:0===i&&o%10==2?v.Two:0!==i||o%100!=0&&o%100!=20&&o%100!=40&&o%100!=60&&o%100!=80?0!==i?v.Many:v.Other:v.Few;case"he":return 1===o&&0===i?v.One:2===o&&0===i?v.Two:0!==i||n>=0&&n<=10||n%10!=0?v.Other:v.Many;case"is":return 0===s&&o%10==1&&o%100!=11||0!==s?v.One:v.Other;case"ksh":return 0===n?v.Zero:1===n?v.One:v.Other;case"kw":case"naq":case"se":case"smn":return 1===n?v.One:2===n?v.Two:v.Other;case"lag":return 0===n?v.Zero:0!==o&&1!==o||0===n?v.Other:v.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?v.Few:0!==a?v.Many:v.Other:v.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&a%100===Math.floor(a%100)&&a%100>=11&&a%100<=19?v.Zero:n%10==1&&n%100!=11||2===i&&a%10==1&&a%100!=11||2!==i&&a%10==1?v.One:v.Other;case"mk":return 0===i&&o%10==1||a%10==1?v.One:v.Other;case"mt":return 1===n?v.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?v.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?v.Many:v.Other;case"pl":return 1===o&&0===i?v.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?v.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?v.Many:v.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?v.One:v.Other;case"ro":return 1===o&&0===i?v.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?v.Few:v.Other;case"ru":case"uk":return 0===i&&o%10==1&&o%100!=11?v.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?v.Few:0===i&&o%10==0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?v.Many:v.Other;case"shi":return 0===o||1===n?v.One:n===Math.floor(n)&&n>=2&&n<=10?v.Few:v.Other;case"si":return 0===n||1===n||0===o&&1===a?v.One:v.Other;case"sl":return 0===i&&o%100==1?v.One:0===i&&o%100==2?v.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?v.Few:v.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?v.One:v.Other;default:return v.Other}}(this.locale,e)){case v.Zero:return"zero";case v.One:return"one";case v.Two:return"two";case v.Few:return"few";case v.Many:return"many";default:return"other"}},t}(f);y.decorators=[{type:o.Injectable}],y.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var v={};function g(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n1?"short":"narrow":"long",n}function te(e){return e.reduce(function(e,t){return Object.assign({},e,t)},{})}function ne(e){return function(t,n){return X(t,n,e)}}var re=new Map;var oe=function(){function e(){}return e.format=function(e,t,n){return function(e,t,n){var r=K[e];if(r)return r(t,n);var o=e,i=re.get(o);if(!i){i=[];var a=void 0;G.exec(e);for(var s=e;s;)(a=G.exec(s))?s=(i=i.concat(a.slice(1))).pop():(i.push(s),s=null);re.set(o,i)}return i.reduce(function(e,r){var o=z[r];return e+(o?o(t,n):function(e){return"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}(r))},"")}(n,e,t)},e}(),ie=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ae(e,t,n,r,o,i,a){if(void 0===i&&(i=null),void 0===a&&(a=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&pe(n)?+n:n))throw D(e,n);var s=void 0,u=void 0,c=void 0;if(r!==H.Currency&&(s=1,u=0,c=3),o){var l=o.match(ie);if(null===l)throw new Error(o+" is not a valid digit info for number pipes");null!=l[1]&&(s=le(l[1])),null!=l[3]&&(u=le(l[3])),null!=l[5]&&(c=le(l[5]))}return q.format(n,t,r,{minimumIntegerDigits:s,minimumFractionDigits:u,maximumFractionDigits:c,currency:i,currencyAsSymbol:a})}var se=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return ae(e,this._locale,t,H.Decimal,n)},e}();se.decorators=[{type:o.Pipe,args:[{name:"number"}]}],se.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var ue=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){return ae(e,this._locale,t,H.Percent,n)},e}();ue.decorators=[{type:o.Pipe,args:[{name:"percent"}]}],ue.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var ce=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),ae(e,this._locale,t,H.Currency,o,n,r)},e}();function le(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function pe(e){return!isNaN(e-parseFloat(e))}ce.decorators=[{type:o.Pipe,args:[{name:"currency"}]}],ce.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var he=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,fe=function(){function e(e){this._locale=e}return e.prototype.transform=function(t,n){var r,o;if(void 0===n&&(n="mediumDate"),null==(o=t)||""===o||t!=t)return null;if("string"==typeof t&&(t=t.trim()),de(t))r=t;else if(pe(t))r=new Date(parseFloat(t));else if("string"==typeof t&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){var i=t.split("-").map(function(e){return parseInt(e,10)}),a=i[0],s=i[1],u=i[2];r=new Date(a,s-1,u)}else r=new Date(t);if(!de(r)){var c=void 0;if("string"!=typeof t||!(c=t.match(he)))throw D(e,t);r=function(e){var t=new Date(0),n=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=ye(e[9]+e[10]),r=ye(e[9]+e[11]));o.call(t,ye(e[1]),ye(e[2])-1,ye(e[3]));var a=ye(e[4]||"0")-n,s=ye(e[5]||"0")-r,u=ye(e[6]||"0"),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,a,s,u,c),t}(c)}return oe.format(r,this._locale,e._ALIASES[n]||n)},e}();function de(e){return e instanceof Date&&!isNaN(e.valueOf())}function ye(e){return parseInt(e,10)}fe._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},fe.decorators=[{type:o.Pipe,args:[{name:"date",pure:!0}]}],fe.ctorParameters=function(){return[{type:void 0,decorators:[{type:o.Inject,args:[o.LOCALE_ID]}]}]};var ve=/#/g,ge=function(){function e(e){this._localization=e}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||null===n)throw D(e,n);return n[d(t,Object.keys(n),this._localization)].replace(ve,t.toString())},e}();ge.decorators=[{type:o.Pipe,args:[{name:"i18nPlural",pure:!0}]}],ge.ctorParameters=function(){return[{type:f}]};var me=function(){function e(){}return e.prototype.transform=function(t,n){if(null==t)return"";if("object"!=typeof n||"string"!=typeof t)throw D(e,n);return n.hasOwnProperty(t)?n[t]:n.hasOwnProperty("other")?n.other:""},e}();me.decorators=[{type:o.Pipe,args:[{name:"i18nSelect",pure:!0}]}],me.ctorParameters=function(){return[]};var _e=function(){function e(){}return e.prototype.transform=function(e){return JSON.stringify(e,null,2)},e}();_e.decorators=[{type:o.Pipe,args:[{name:"json",pure:!1}]}],_e.ctorParameters=function(){return[]};var be=function(){function e(){}return e.prototype.transform=function(t,n,r){if(null==t)return t;if(!this.supports(t))throw D(e,t);return t.slice(n,r)},e.prototype.supports=function(e){return"string"==typeof e||Array.isArray(e)},e}();be.decorators=[{type:o.Pipe,args:[{name:"slice",pure:!1}]}],be.ctorParameters=function(){return[]};var we=[F,B,V,_e,be,se,ue,U,ce,fe,ge,me],Ee=function(){return function(){}}();Ee.decorators=[{type:o.NgModule,args:[{declarations:[k,we],exports:[k,we],providers:[{provide:f,useClass:y}]}]}],Ee.ctorParameters=function(){return[]};var Ce=function(){return function(){}}();Ce.decorators=[{type:o.NgModule,args:[{declarations:[],exports:[]}]}],Ce.ctorParameters=function(){return[]};var Se=new o.InjectionToken("DocumentToken"),Oe="browser";new o.Version("4.4.4")},"2bpm":function(e,t,n){(function(t){var n=t&&t.pid?t.pid.toString(36):"",r="";function o(){var e=Date.now(),t=o.last||e;return o.last=e>t?e:t+1}e.exports=e.exports.default=function(e){return(e||"")+r+n+o().toString(36)},e.exports.process=function(e){return(e||"")+n+o().toString(36)},e.exports.time=function(e){return(e||"")+o().toString(36)}}).call(t,n("W2nU"))},"337B":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e){var t=new Uint8Array(e);return window.btoa(String.fromCharCode.apply(null,t))}(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.exports=t.default},"3AQ8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n("rsuY")),o=c(n("WUNS")),i=c(n("tY60")),a=c(n("v+bU")),s=c(n("pag3")),u=n("Ejo3");function c(e){return e&&e.__esModule?e:{default:e}}var l,p=(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(e){function t(t){var n=e.call(this,t)||this;return n.registrationToUse_,n.manifestCheckPromise_,n.messageObserver_=null,n.onMessage_=(0,u.createSubscribe)(function(e){n.messageObserver_=e}),n.tokenRefreshObserver_=null,n.onTokenRefresh_=(0,u.createSubscribe)(function(e){n.tokenRefreshObserver_=e}),n.setupSWMessageListener_(),n}return p(t,e),t.prototype.getToken=function(){var t=this;return this.isSupported_()?this.manifestCheck_().then(function(){return e.prototype.getToken.call(t)}):Promise.reject(this.errorFactory_.create(o.default.codes.UNSUPPORTED_BROWSER))},t.prototype.manifestCheck_=function(){var e=this;if(this.manifestCheckPromise_)return this.manifestCheckPromise_;var t=document.querySelector('link[rel="manifest"]');return this.manifestCheckPromise_=t?fetch(t.href).then(function(e){return e.json()}).catch(function(){return Promise.resolve()}).then(function(t){if(t&&t.gcm_sender_id&&"103953800507"!==t.gcm_sender_id)throw e.errorFactory_.create(o.default.codes.INCORRECT_GCM_SENDER_ID)}):Promise.resolve(),this.manifestCheckPromise_},t.prototype.requestPermission=function(){var e=this;return Notification.permission===s.default.granted?Promise.resolve():new Promise(function(t,n){var r=function(r){return r===s.default.granted?t():r===s.default.denied?n(e.errorFactory_.create(o.default.codes.PERMISSION_BLOCKED)):n(e.errorFactory_.create(o.default.codes.PERMISSION_DEFAULT))},i=Notification.requestPermission(function(e){i||r(e)});i&&i.then(r)})},t.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw this.errorFactory_.create(o.default.codes.SW_REGISTRATION_EXPECTED);if("undefined"!=typeof this.registrationToUse_)throw this.errorFactory_.create(o.default.codes.USE_SW_BEFORE_GET_TOKEN);this.registrationToUse_=e},t.prototype.onMessage=function(e,t,n){return this.onMessage_(e,t,n)},t.prototype.onTokenRefresh=function(e,t,n){return this.onTokenRefresh_(e,t,n)},t.prototype.waitForRegistrationToActivate_=function(e){var t=this,n=e.installing||e.waiting||e.active;return new Promise(function(r,i){if(n)if("activated"!==n.state)if("redundant"!==n.state){n.addEventListener("statechange",function a(){if("activated"===n.state)r(e);else{if("redundant"!==n.state)return;i(t.errorFactory_.create(o.default.codes.SW_REG_REDUNDANT))}n.removeEventListener("statechange",a)})}else i(t.errorFactory_.create(o.default.codes.SW_REG_REDUNDANT));else r(e);else i(t.errorFactory_.create(o.default.codes.NO_SW_IN_REG))})},t.prototype.getSWRegistration_=function(){var e=this;return this.registrationToUse_?this.waitForRegistrationToActivate_(this.registrationToUse_):(this.registrationToUse_=null,navigator.serviceWorker.register(a.default.path,{scope:a.default.scope}).catch(function(t){throw e.errorFactory_.create(o.default.codes.FAILED_DEFAULT_REGISTRATION,{browserErrorMessage:t.message})}).then(function(t){return e.waitForRegistrationToActivate_(t).then(function(){return e.registrationToUse_=t,t.update(),t})}))},t.prototype.setupSWMessageListener_=function(){var e=this;"serviceWorker"in navigator&&navigator.serviceWorker.addEventListener("message",function(t){if(t.data&&t.data[i.default.PARAMS.TYPE_OF_MSG]){var n=t.data;switch(n[i.default.PARAMS.TYPE_OF_MSG]){case i.default.TYPES_OF_MSG.PUSH_MSG_RECEIVED:case i.default.TYPES_OF_MSG.NOTIFICATION_CLICKED:var r=n[i.default.PARAMS.DATA];e.messageObserver_.next(r)}}},!1)},t.prototype.isSupported_=function(){return"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")},t}(r.default);t.default=h,e.exports=t.default},"3GJ3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("nDT4"),i=n("xl3t"),a=n("udG9"),s=n("AHVm"),u=n("Fxdn"),c=n("OfTL"),l=n("Pu5a"),p=n("qI4S"),h=n("YuqB"),f=n("zHK/"),d=n("uGuS"),y=n("+G+d"),v=n("lp2h"),g=t.TransactionStatus=void 0;!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(g||(t.TransactionStatus=g={})),v.Repo.MAX_TRANSACTION_RETRIES_=25,v.Repo.prototype.transactions_init_=function(){this.transactionQueueTree_=new u.Tree},v.Repo.prototype.startTransaction=function(e,t,n,s){this.log_("transaction on "+e);var u=function(){},v=new i.Reference(this,e);v.on("value",u);var m={path:e,update:t,onComplete:n,status:null,order:(0,l.LUIDGenerator)(),applyLocally:s,retryCount:0,unwatcher:function(){v.off("value",u)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},_=this.getLatestState_(e);m.currentInputSnapshot=_;var b=m.update(_.val());if(void 0===b){if(m.unwatcher(),m.currentOutputSnapshotRaw=null,m.currentOutputSnapshotResolved=null,m.onComplete){var w=new a.DataSnapshot(m.currentInputSnapshot,new i.Reference(this,m.path),c.PRIORITY_INDEX);m.onComplete(null,!1,w)}}else{(0,h.validateFirebaseData)("transaction failed: Data returned ",b,m.path),m.status=g.RUN;var E=this.transactionQueueTree_.subTree(e),C=E.getValue()||[];C.push(m),E.setValue(C);var S=void 0;if("object"===("undefined"==typeof b?"undefined":r(b))&&null!==b&&(0,f.contains)(b,".priority"))S=(0,f.safeGet)(b,".priority"),(0,o.assert)((0,h.isValidPriority)(S),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else S=(this.serverSyncTree_.calcCompleteEventCache(e)||y.ChildrenNode.EMPTY_NODE).getPriority().val();S=S;var O=this.generateServerValues(),T=(0,d.nodeFromJSON)(b,S),P=(0,p.resolveDeferredValueSnapshot)(T,O);m.currentOutputSnapshotRaw=T,m.currentOutputSnapshotResolved=P,m.currentWriteId=this.getNextWriteId_();var N=this.serverSyncTree_.applyUserOverwrite(e,P,m.currentWriteId,m.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,N),this.sendReadyTransactions_()}},v.Repo.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||y.ChildrenNode.EMPTY_NODE},v.Repo.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);(0,o.assert)(n.length>0,"Sending zero length transaction queue"),n.every(function(e){return e.status===g.RUN})&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild(function(e){t.sendReadyTransactions_(e)})},v.Repo.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map(function(e){return e.currentWriteId}),u=this.getLatestState_(e,r),p=u,h=u.hash(),f=0;f=v.Repo.MAX_TRANSACTION_RETRIES_)E=!0,C="maxretry",y=y.concat(this.serverSyncTree_.ackUserWrite(b.currentWriteId,!0));else{var S=this.getLatestState_(b.path,m);b.currentInputSnapshot=S;var O=e[_].update(S.val());if(void 0!==O){(0,h.validateFirebaseData)("transaction failed: Data returned ",O,b.path);var T=(0,d.nodeFromJSON)(O);"object"===("undefined"==typeof O?"undefined":r(O))&&null!=O&&(0,f.contains)(O,".priority")||(T=T.updatePriority(S.getPriority()));var P=b.currentWriteId,N=this.generateServerValues(),A=(0,p.resolveDeferredValueSnapshot)(T,N);b.currentOutputSnapshotRaw=T,b.currentOutputSnapshotResolved=A,b.currentWriteId=this.getNextWriteId_(),m.splice(m.indexOf(P),1),y=(y=y.concat(this.serverSyncTree_.applyUserOverwrite(b.path,A,b.currentWriteId,b.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(P,!0))}else E=!0,C="nodata",y=y.concat(this.serverSyncTree_.ackUserWrite(b.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,y),y=[],E&&(e[_].status=g.COMPLETED,n=e[_].unwatcher,setTimeout(n,Math.floor(0)),e[_].onComplete))if("nodata"===C){var I=new i.Reference(this,e[_].path),R=e[_].currentInputSnapshot,x=new a.DataSnapshot(R,I,c.PRIORITY_INDEX);u.push(e[_].onComplete.bind(null,null,!1,x))}else u.push(e[_].onComplete.bind(null,new Error(C),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(_=0;_0?n:null)}e.forEachChild(function(e){t.pruneCompletedTransactionsBelowNode_(e)})},v.Repo.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor(function(e){t.abortTransactionsOnNode_(e)}),this.abortTransactionsOnNode_(r),r.forEachDescendant(function(e){t.abortTransactionsOnNode_(e)}),n},v.Repo.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],i=-1,a=0;a1?" ("+function(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return g(e.token)}).join(" -> ")+")":""}function me(e,t,n,r){var o=[t],i=n(o),a=r?function(e,t){var n=e+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[pe]=t,r}(i,r):Error(i);return a.addKey=_e,a.keys=o,a.injectors=[e],a.constructResolvingMessage=n,a[pe]=r,a}function _e(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function be(e,t){for(var n=[],r=0,o=t.length;r=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw t=this,n=e.key,me(t,n,function(e){return"Cannot instantiate cyclic dependency!"+ge(e)});var t,n;return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+g(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},t}(Zt);en.decorators=[{type:Z}],en.ctorParameters=function(){return[{type:ue}]};var tn=function(){function e(){}return e.prototype.bootstrap=function(e,t){},e.prototype.tick=function(){},e.prototype.componentTypes=function(){},e.prototype.components=function(){},e.prototype.attachView=function(e){},e.prototype.detachView=function(e){},e.prototype.viewCount=function(){},e.prototype.isStable=function(){},e}(),nn=function(e){function t(t,n,r,s,u,c){var l=e.call(this)||this;l._zone=t,l._console=n,l._injector=r,l._exceptionHandler=s,l._componentFactoryResolver=u,l._initStatus=c,l._bootstrapListeners=[],l._rootComponents=[],l._rootComponentTypes=[],l._views=[],l._runningTick=!1,l._enforceNoNewChanges=!1,l._stable=!0,l._enforceNoNewChanges=Kt(),l._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var p=new o.Observable(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),h=new o.Observable(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){kt.assertNotInAngularZone(),y(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){kt.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});return l._isStable=Object(i.merge)(p,a.share.call(h)),l}return r.a(t,e),t.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},t.prototype.detachView=function(e){var t=e;rn(this._views,t),t.detachFromAppRef()},t.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof lt?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(n.componentType);var o=n instanceof mt?null:this._injector.get(_t),i=t||n.selector,a=n.create(ue.NULL,[],i,o);a.onDestroy(function(){r._unloadComponent(a)});var s=a.injector.get(Lt,null);return s&&a.injector.get(Ft).registerApplication(a.location.nativeElement,s),this._loadComponent(a),Kt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a},t.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this._rootComponents.push(e),this._injector.get(tt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},t.prototype._unloadComponent=function(e){this.detachView(e.hostView),rn(this._rootComponents,e)},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,At(n)}},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),t}(tn);function rn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}nn._tickScope=Nt("ApplicationRef#tick()"),nn.decorators=[{type:Z}],nn.ctorParameters=function(){return[{type:kt},{type:rt},{type:ue},{type:ve},{type:dt},{type:Qe}]};var on=function(){return function(e,t,n,r,o,i){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}}(),an=function(){function e(){}return e.prototype.injector=function(){},e.prototype.component=function(){},e.prototype.providerTokens=function(){},e.prototype.references=function(){},e.prototype.context=function(){},e.prototype.source=function(){},e}(),sn=function(){function e(){}return e.prototype.selectRootElement=function(e,t){},e.prototype.createElement=function(e,t,n){},e.prototype.createViewRoot=function(e){},e.prototype.createTemplateAnchor=function(e,t){},e.prototype.createText=function(e,t,n){},e.prototype.projectNodes=function(e,t){},e.prototype.attachViewAfter=function(e,t){},e.prototype.detachView=function(e){},e.prototype.destroyView=function(e,t){},e.prototype.listen=function(e,t,n){},e.prototype.listenGlobal=function(e,t,n){},e.prototype.setElementProperty=function(e,t,n){},e.prototype.setElementAttribute=function(e,t,n){},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){},e.prototype.setElementStyle=function(e,t,n){},e.prototype.invokeElementMethod=function(e,t,n){},e.prototype.setText=function(e,t){},e.prototype.animate=function(e,t,n,r,o,i,a){},e}(),un=(new c("Renderer2Interceptor"),function(){function e(){}return e.prototype.renderComponent=function(e){},e}()),cn=function(){function e(){}return e.prototype.createRenderer=function(e,t){},e.prototype.begin=function(){},e.prototype.end=function(){},e.prototype.whenRenderingDone=function(){},e}(),ln={Important:1,DashCase:2};ln[ln.Important]="Important",ln[ln.DashCase]="DashCase";var pn=function(){function e(){}return e.prototype.data=function(){},e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){},e.prototype.createComment=function(e){},e.prototype.createText=function(e){},e.prototype.appendChild=function(e,t){},e.prototype.insertBefore=function(e,t,n){},e.prototype.removeChild=function(e,t){},e.prototype.selectRootElement=function(e){},e.prototype.parentNode=function(e){},e.prototype.nextSibling=function(e){},e.prototype.setAttribute=function(e,t,n,r){},e.prototype.removeAttribute=function(e,t,n){},e.prototype.addClass=function(e,t){},e.prototype.removeClass=function(e,t){},e.prototype.setStyle=function(e,t,n,r){},e.prototype.removeStyle=function(e,t,n){},e.prototype.setProperty=function(e,t,n){},e.prototype.setValue=function(e,t){},e.prototype.listen=function(e,t,n){},e}(),hn=function(){return function(e){this.nativeElement=e}}(),fn=function(){function e(){}return e.prototype.load=function(e){},e}(),dn=new Map;function yn(e,t){var n=dn.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);dn.set(e,t)}function vn(e){var t=dn.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}var gn=function(){function e(){this._dirty=!0,this._results=[],this._emitter=new xt}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[d()]=function(){return this._results[d()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this._dirty=!1},e.prototype.notifyOnChanges=function(){this._emitter.emit(this)},e.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(e.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._emitter.complete(),this._emitter.unsubscribe()},e}();var mn=function(){return function(){}}(),_n={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},bn=function(){function e(e,t){this._compiler=e,this._config=t||_n}return e.prototype.load=function(e){return this._compiler instanceof at?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,r=e.split("#"),o=r[0],i=r[1];return void 0===i&&(i="default"),n("6GLz")(o).then(function(e){return e[i]}).then(function(e){return wn(e,o,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),r=t[0],o=t[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("6GLz")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[o+i]}).then(function(e){return wn(e,r,o)})},e}();function wn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}bn.decorators=[{type:Z}],bn.ctorParameters=function(){return[{type:at},{type:mn,decorators:[{type:J}]}]};var En=function(){function e(){}return e.prototype.elementRef=function(){},e.prototype.createEmbeddedView=function(e){},e}(),Cn=function(){function e(){}return e.prototype.element=function(){},e.prototype.injector=function(){},e.prototype.parentInjector=function(){},e.prototype.clear=function(){},e.prototype.get=function(e){},e.prototype.length=function(){},e.prototype.createEmbeddedView=function(e,t,n){},e.prototype.createComponent=function(e,t,n,r,o){},e.prototype.insert=function(e,t){},e.prototype.move=function(e,t){},e.prototype.indexOf=function(e){},e.prototype.remove=function(e){},e.prototype.detach=function(e){},e}(),Sn=function(){function e(){}return e.prototype.markForCheck=function(){},e.prototype.detach=function(){},e.prototype.detectChanges=function(){},e.prototype.checkNoChanges=function(){},e.prototype.reattach=function(){},e}(),On=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t.prototype.onDestroy=function(e){},t}(Sn),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.context=function(){},t.prototype.rootNodes=function(){},t}(On),Pn=function(){return function(e,t){this.name=e,this.callback=t}}(),Nn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof An?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),e}(),An=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return r.a(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Rn(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return xn(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Nn);function In(e){return e.map(function(e){return e.nativeElement})}function Rn(e,t,n){e.childNodes.forEach(function(e){e instanceof An&&(t(e)&&n.push(e),Rn(e,t,n))})}function xn(e,t,n){e instanceof An&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof An&&xn(e,t,n)})}var kn=new Map;function Dn(e){return kn.get(e)||null}function jn(e){kn.set(e.nativeNode,e)}function Mn(e,t){var n=Un(e),r=Un(t);return n&&r?function(e,t,n){var r=e[d()](),o=t[d()]();for(;;){var i=r.next(),a=o.next();if(i.done&&a.done)return!0;if(i.done||a.done)return!1;if(!n(i.value,a.value))return!1}}(e,t,Mn):!(n||!(e&&("object"==typeof e||"function"==typeof e))||r||!(t&&("object"==typeof t||"function"==typeof t)))||v(e,t)}var Ln=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e}(),Fn=function(){function e(){this.hasWrappedValue=!1}return e.prototype.unwrap=function(e){return e instanceof Ln?(this.hasWrappedValue=!0,e.wrapped):e},e.prototype.reset=function(){this.hasWrappedValue=!1},e}(),Vn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Un(e){return!!Bn(e)&&(Array.isArray(e)||!(e instanceof Map)&&d()in e)}function Bn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Hn=function(){function e(){}return e.prototype.supports=function(e){return Un(e)},e.prototype.create=function(e,t){return new qn(t||e)},e}(),Wn=function(e,t){return t},qn=function(){function e(e){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Wn}return Object.defineProperty(e.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex"+g(this.currentIndex)+"]"},e}(),Kn=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&v(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),zn=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Kn,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=e,r=this.map.get(n);return r?r.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.toString=function(){return"_DuplicateMap("+g(this.map)+")"},e}();function Qn(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r0?o[n-1]:null,r)}function Oo(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Ao(n,t),wr.dirtyParentQueries(r),Po(r),r}function To(e,t,n){var r=t?Br(t,t.def.lastRenderRootNode):e.renderElement;$r(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Po(e){$r(e,3,null,null,void 0)}function No(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ao(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Io=new Object;function Ro(e,t,n,r,o,i){return new ko(e,t,n,r,o,i)}function xo(e){return e.viewDefFactory}var ko=function(e){function t(t,n,r,o,i,a){var s=e.call(this)||this;return s.selector=t,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=a,s.viewDefFactory=r,s}return r.a(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t){var r=t[n];e.push({propName:n,templateName:r})}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs){var n=this._outputs[t];e.push({propName:t,templateName:n})}return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=Xr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,a=wr.createRootView(e,t||[],n,o,r,Io),s=gr(a,i).instance;return n&&a.renderer.setAttribute(vr(a,0).renderElement,"ng-version",X.full),new Do(a,new Fo(a),s)},t}(lt),Do=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o}return r.a(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new hn(vr(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ho(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(ct);function jo(e,t,n){return new Mo(e,t,n)}var Mo=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new hn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ho(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Ur(e),e=e.parent;return e?new Ho(e,t):new Ho(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Oo(this._data,e);wr.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Fo(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof mt||(o=i.get(_t));var a=e.create(i,r,void 0,o);return this.insert(a.hostView,t),a},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e,r=n._view;return So(this._view,this._data,t,r),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,a,s=this._embeddedViews.indexOf(e._view);return n=this._data,r=s,o=t,i=n.viewContainer._embeddedViews,a=i[r],Ao(i,r),null==o&&(o=i.length),No(i,o,a),wr.dirtyParentQueries(a),Po(a),To(n,o>0?i[o-1]:null,a),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Oo(this._data,e);t&&wr.destroyView(t)},e.prototype.detach=function(e){var t=Oo(this._data,e);return t?new Fo(t):null},e}();function Lo(e){return new Fo(e)}var Fo=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return $r(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Mr(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin(),wr.checkAndUpdateView(this._view),e.end&&e.end()},e.prototype.checkNoChanges=function(){wr.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),wr.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Po(this._view),wr.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Vo(e,t){return new Uo(e,t)}var Uo=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return r.a(t,e),t.prototype.createEmbeddedView=function(e){return new Fo(wr.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new hn(vr(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),t}(En);function Bo(e,t){return new Ho(e,t)}var Ho=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){void 0===t&&(t=ue.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return wr.resolveDep(this.view,this.elDef,n,{flags:0,token:e,tokenKey:Pr(e)},t)},e}();function Wo(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=vr(e,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return yr(e,n.index).renderText;if(20240&n.flags)return gr(e,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function qo(e){return new Go(e.renderer)}var Go=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=ro(t),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,r=pi(e,t.parent,n,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o0,o=t.provider;switch(201347067&t.flags){case 512:n=pi(e,t.parent,r,o.value,o.deps);break;case 1024:n=function(e,t,n,r,o){var i,a=o.length;switch(a){case 0:i=r();break;case 1:i=r(fi(e,t,n,o[0]));break;case 2:i=r(fi(e,t,n,o[0]),fi(e,t,n,o[1]));break;case 3:i=r(fi(e,t,n,o[0]),fi(e,t,n,o[1]),fi(e,t,n,o[2]));break;default:for(var s=Array(a),u=0;u0)c=y,Di(y)||(l=y);else for(;c&&d===c.index+c.childCount;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),l=(c=_)&&Di(c)?c.renderParent:c}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Or,updateRenderer:r||Or,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Di(e){return 0!=(1&e.flags)&&null===e.element.name}function ji(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.index+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+t.index+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.index+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.index+"!")}if(t.childCount){var o=e?e.index+e.childCount:n-1;if(t.index<=o&&t.index+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.index+"!")}}function Mi(e,t,n,r){var o=Vi(e.root,e.renderer,e,t,n);return Ui(o,e.component,r),Bi(o),o}function Li(e,t,n){var r=Vi(e,e.renderer,null,null,t);return Ui(r,n,n),Bi(r),r}function Fi(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Vi(e.root,o,e,t.element.componentProvider,n)}function Vi(e,t,n,r,o){var i=new Array(o.nodes.length),a=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:a}}function Ui(e,t,n){e.component=t,e.context=n}function Bi(e){var t;if(Wr(e)){var n=e.parentNodeDef;t=vr(e.parent,n.parent.index).renderElement}for(var r=e.def,o=e.nodes,i=0;i0&&vo(e,t,0,n)&&(f=!0),h>1&&vo(e,t,1,r)&&(f=!0),h>2&&vo(e,t,2,o)&&(f=!0),h>3&&vo(e,t,3,i)&&(f=!0),h>4&&vo(e,t,4,a)&&(f=!0),h>5&&vo(e,t,5,s)&&(f=!0),h>6&&vo(e,t,6,u)&&(f=!0),h>7&&vo(e,t,7,c)&&(f=!0),h>8&&vo(e,t,8,l)&&(f=!0),h>9&&vo(e,t,9,p)&&(f=!0),f}(e,t,n,r,o,i,a,s,u,c,l,p);break;case 2:h=function(e,t,n,r,o,i,a,s,u,c,l,p){var h=!1,f=t.bindings,d=f.length;if(d>0&&Dr(e,t,0,n)&&(h=!0),d>1&&Dr(e,t,1,r)&&(h=!0),d>2&&Dr(e,t,2,o)&&(h=!0),d>3&&Dr(e,t,3,i)&&(h=!0),d>4&&Dr(e,t,4,a)&&(h=!0),d>5&&Dr(e,t,5,s)&&(h=!0),d>6&&Dr(e,t,6,u)&&(h=!0),d>7&&Dr(e,t,7,c)&&(h=!0),d>8&&Dr(e,t,8,l)&&(h=!0),d>9&&Dr(e,t,9,p)&&(h=!0),h){var y=t.text.prefix;d>0&&(y+=xi(n,f[0])),d>1&&(y+=xi(r,f[1])),d>2&&(y+=xi(o,f[2])),d>3&&(y+=xi(i,f[3])),d>4&&(y+=xi(a,f[4])),d>5&&(y+=xi(s,f[5])),d>6&&(y+=xi(u,f[6])),d>7&&(y+=xi(c,f[7])),d>8&&(y+=xi(l,f[8])),d>9&&(y+=xi(p,f[9]));var v=yr(e,t.index).renderText;e.renderer.setValue(v,y)}return h}(e,t,n,r,o,i,a,s,u,c,l,p);break;case 16384:h=function(e,t,n,r,o,i,a,s,u,c,l,p){var h=gr(e,t.index),f=h.instance,d=!1,y=void 0,v=t.bindings.length;return v>0&&kr(e,t,0,n)&&(d=!0,y=yi(e,h,t,0,n,y)),v>1&&kr(e,t,1,r)&&(d=!0,y=yi(e,h,t,1,r,y)),v>2&&kr(e,t,2,o)&&(d=!0,y=yi(e,h,t,2,o,y)),v>3&&kr(e,t,3,i)&&(d=!0,y=yi(e,h,t,3,i,y)),v>4&&kr(e,t,4,a)&&(d=!0,y=yi(e,h,t,4,a,y)),v>5&&kr(e,t,5,s)&&(d=!0,y=yi(e,h,t,5,s,y)),v>6&&kr(e,t,6,u)&&(d=!0,y=yi(e,h,t,6,u,y)),v>7&&kr(e,t,7,c)&&(d=!0,y=yi(e,h,t,7,c,y)),v>8&&kr(e,t,8,l)&&(d=!0,y=yi(e,h,t,8,l,y)),v>9&&kr(e,t,9,p)&&(d=!0,y=yi(e,h,t,9,p,y)),y&&f.ngOnChanges(y),2&e.state&&65536&t.flags&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),d}(e,t,n,r,o,i,a,s,u,c,l,p);break;case 32:case 64:case 128:h=function(e,t,n,r,o,i,a,s,u,c,l,p){var h=t.bindings,f=!1,d=h.length;if(d>0&&Dr(e,t,0,n)&&(f=!0),d>1&&Dr(e,t,1,r)&&(f=!0),d>2&&Dr(e,t,2,o)&&(f=!0),d>3&&Dr(e,t,3,i)&&(f=!0),d>4&&Dr(e,t,4,a)&&(f=!0),d>5&&Dr(e,t,5,s)&&(f=!0),d>6&&Dr(e,t,6,u)&&(f=!0),d>7&&Dr(e,t,7,c)&&(f=!0),d>8&&Dr(e,t,8,l)&&(f=!0),d>9&&Dr(e,t,9,p)&&(f=!0),f){var y=mr(e,t.index),v=void 0;switch(201347067&t.flags){case 32:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=a),d>5&&(v[5]=s),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=p);break;case 64:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=a),d>5&&(v[h[5].name]=s),d>6&&(v[h[6].name]=u),d>7&&(v[h[7].name]=c),d>8&&(v[h[8].name]=l),d>9&&(v[h[9].name]=p);break;case 128:var g=n;switch(d){case 1:v=g.transform(n);break;case 2:v=g.transform(r);break;case 3:v=g.transform(r,o);break;case 4:v=g.transform(r,o,i);break;case 5:v=g.transform(r,o,i,a);break;case 6:v=g.transform(r,o,i,a,s);break;case 7:v=g.transform(r,o,i,a,s,u);break;case 8:v=g.transform(r,o,i,a,s,u,c);break;case 9:v=g.transform(r,o,i,a,s,u,c,l);break;case 10:v=g.transform(r,o,i,a,s,u,c,l,p)}}y.value=v}return f}(e,t,n,r,o,i,a,s,u,c,l,p)}return h}(e,t,r,o,i,a,s,u,c,l,p,h):function(e,t,n){var r=!1;switch(201347067&t.flags){case 1:r=function(e,t,n){for(var r=!1,o=0;o0&&jr(e,t,0,n);h>1&&jr(e,t,1,r);h>2&&jr(e,t,2,o);h>3&&jr(e,t,3,i);h>4&&jr(e,t,4,a);h>5&&jr(e,t,5,s);h>6&&jr(e,t,6,u);h>7&&jr(e,t,7,c);h>8&&jr(e,t,8,l);h>9&&jr(e,t,9,p)}(e,t,r,o,i,a,s,u,c,l,p,h):function(e,t,n){for(var r=0;rdocument.domain="'+document.domain+'";<\/script>';var u=""+s+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(u),this.myIFrame.doc.close()}catch(e){(0,r.log)("frame writing exception"),e.stack&&(0,r.log)(e.stack),(0,r.log)(e)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||(0,r.log)("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var t=this;if(this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==t.myIFrame&&(document.body.removeChild(t.myIFrame),t.myIFrame=null)},Math.floor(0))),(0,c.isNodeSdk)()&&this.myID){var n={};n[w]="t",n[d]=this.myID,n[y]=this.myPW;var r=this.urlFn(n);e.nodeRestRequest(r)}var o=this.onDisconnect;o&&(this.onDisconnect=null,o())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.count()<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e[d]=this.myID,e[y]=this.myPW,e[v]=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var o=this.pendingSegs.shift();n=n+"&"+m+r+"="+o.seg+"&"+_+r+"="+o.ts+"&"+b+r+"="+o.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t,1);var r=function(){n.outstandingRequests.remove(t),n.newRequest_()},o=setTimeout(r,Math.floor(25e3));this.addTag(e,function(){clearTimeout(o),r()})},e.prototype.addTag=function(e,t){var n=this;(0,c.isNodeSdk)()?this.doNodeLongPoll(e,t):setTimeout(function(){try{if(!n.sendNewPolls)return;var o=n.myIFrame.doc.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.onload=o.onreadystatechange=function(){var e=o.readyState;e&&"loaded"!==e&&"complete"!==e||(o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),t())},o.onerror=function(){(0,r.log)("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(o)}catch(e){}},Math.floor(1))},e}();t.FirebaseIFrameScriptHolder=S},"400e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeNormalUrl=function(e){return r.domainBase+r.apiBaseUrl+e},t.makeDownloadUrl=function(e){return r.downloadBase+r.apiBaseUrl+e},t.makeUploadUrl=function(e){return r.domainBase+r.apiUploadBaseUrl+e},t.makeQueryString=function(e){var t=encodeURIComponent,n="?";return o.forEach(e,function(e,r){var o=t(e)+"="+t(r);n=n+o+"&"}),n=n.slice(0,-1)};var r=i(n("GzZx")),o=i(n("i2g2"));function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}},"4fh5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}();t.ServerActions=r},"5+/9":function(e,t,n){"use strict";var r=n("3j3K"),o=n("2Je8"),i=n("Lb4t"),a=n("yvov"),s=n("R5hM"),u=n("P2My"),c=n("uV14"),l=n("tvuF"),p=n("VaDQ"),h=n("E44l"),f=n("ePrV"),d=n("Jd2A"),y=n("lOHh"),v=n("Wdvj"),g=n("ozdG"),m=n("W45A"),_=n("Upv3"),b=n("LnSv"),w=n("FBV2"),E=n("J/eP"),C=n("Oltd"),S=n("k9HW");n("mzAu");n.d(t,"c",function(){return O}),n.d(t,!1,function(){return u.a}),n.d(t,!1,function(){return c.a}),n.d(t,!1,function(){return l.a}),n.d(t,!1,function(){return p.a}),n.d(t,"b",function(){return a.a}),n.d(t,"a",function(){return s.a}),n.d(t,!1,function(){return h.a}),n.d(t,!1,function(){return f.a}),n.d(t,!1,function(){return d.a}),n.d(t,!1,function(){return y.a}),n.d(t,!1,function(){return E.a}),n.d(t,!1,function(){return C.a}),n.d(t,!1,function(){return g.a}),n.d(t,!1,function(){return m.a}),n.d(t,!1,function(){return v.a}),n.d(t,!1,function(){return _.a}),n.d(t,!1,function(){return w.a});var O=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{declarations:[f.a,d.a,y.a,h.a,E.a,C.a,g.a,m.a,v.a,_.a,w.a,b.a,S.a],exports:[f.a,d.a,y.a,h.a,E.a,C.a,g.a,m.a,v.a,_.a,w.a,b.a,S.a],imports:[o.b,i.a],providers:[l.a]}]}],e.ctorParameters=function(){return[]},e}()},"5Gco":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SparseSnapshotTree=void 0;var r=n("AHVm"),o=n("OfTL"),i=n("V/iH"),a=function(){function e(){this.value_=null,this.children_=null}return e.prototype.find=function(e){if(null!=this.value_)return this.value_.getChild(e);if(e.isEmpty()||null==this.children_)return null;var t=e.getFront();return e=e.popFront(),this.children_.contains(t)?this.children_.get(t).find(e):null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value_=n,this.children_=null;else if(null!==this.value_)this.value_=this.value_.updateChild(t,n);else{null==this.children_&&(this.children_=new i.CountedSet);var r=t.getFront();this.children_.contains(r)||this.children_.add(r,new e);var o=this.children_.get(r);t=t.popFront(),o.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value_=null,this.children_=null,!0;if(null!==this.value_){if(this.value_.isLeafNode())return!1;var t=this.value_;this.value_=null;var n=this;return t.forEachChild(o.PRIORITY_INDEX,function(e,t){n.remember(new r.Path(e),t)}),this.forget(e)}if(null!==this.children_){var i=e.getFront();if(e=e.popFront(),this.children_.contains(i))this.children_.get(i).forget(e)&&this.children_.remove(i);return!!this.children_.isEmpty()&&(this.children_=null,!0)}return!0},e.prototype.forEachTree=function(e,t){null!==this.value_?t(e,this.value_):this.forEachChild(function(n,o){var i=new r.Path(e.toString()+"/"+n);o.forEachTree(i,t)})},e.prototype.forEachChild=function(e){null!==this.children_&&this.children_.each(function(t,n){e(t,n)})},e}();t.SparseSnapshotTree=a},"5oXY":function(e,t,n){"use strict";n.d(t,"m",function(){return It}),n.d(t,"j",function(){return ct}),n.d(t,"k",function(){return gt}),n.d(t,"i",function(){return pt}),n.d(t,"g",function(){return Lt}),n.d(t,"h",function(){return Xt}),n.d(t,"l",function(){return Bt}),n.d(t,"b",function(){return At}),n.d(t,"d",function(){return Dt}),n.d(t,"e",function(){return kt}),n.d(t,"f",function(){return xt}),n.d(t,"n",function(){return jt}),n.d(t,"a",function(){return ke}),n.d(t,"o",function(){return ft}),n.d(t,"c",function(){return ie}),n.d(t,"p",function(){return oe}),n.d(t,"q",function(){return Ft}),n.d(t,"w",function(){return zt}),n.d(t,"x",function(){return Qt}),n.d(t,"y",function(){return Yt}),n.d(t,"t",function(){return Wt}),n.d(t,"s",function(){return Ht}),n.d(t,"v",function(){return Kt}),n.d(t,"r",function(){return Ut}),n.d(t,"u",function(){return Gt});var r=n("TToO"),o=n("2Je8"),i=n("3j3K"),a=n("TfWX"),s=(n.n(a),n("EEr4")),u=(n.n(s),n("PKvP")),c=(n.n(u),n("lgiQ")),l=(n.n(c),n("bE1M")),p=(n.n(l),n("83T1")),h=(n.n(p),n("bBiI")),f=(n.n(h),n("7nvF")),d=(n.n(f),n("xAJs")),y=(n.n(d),n("XO5T")),v=(n.n(y),n("pgP5")),g=(n.n(v),n("rCTf")),m=(n.n(g),n("+4ur")),_=(n.n(m),n("CfHE")),b=(n.n(_),n("F7Al")),w=(n.n(b),n("ioK+")),E=(n.n(w),n("cbuX")),C=(n.n(E),n("Qbdm")),S=n("ack3"),O=(n.n(S),function(){function e(e,t){this.id=e,this.url=t}return e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}()),T=function(){function e(e,t,n){this.id=e,this.url=t,this.urlAfterRedirects=n}return e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(),P=function(){function e(e,t,n){this.id=e,this.url=t,this.reason=n}return e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(),N=function(){function e(e,t,n){this.id=e,this.url=t,this.error=n}return e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(),A=function(){function e(e,t,n,r){this.id=e,this.url=t,this.urlAfterRedirects=n,this.state=r}return e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(),I=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),R=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),x=function(){function e(e,t,n,r){this.id=e,this.url=t,this.urlAfterRedirects=n,this.state=r}return e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(),k=function(){function e(e,t,n,r,o){this.id=e,this.url=t,this.urlAfterRedirects=n,this.state=r,this.shouldActivate=o}return e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(),D=function(){function e(e,t,n,r){this.id=e,this.url=t,this.urlAfterRedirects=n,this.state=r}return e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(),j=function(){function e(e,t,n,r){this.id=e,this.url=t,this.urlAfterRedirects=n,this.state=r}return e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(),M="primary",L=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function F(e){return new L(e)}var V="ngNavigationCancelingError";function U(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Q(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Y(e){var t=E.mergeAll.call(e);return p.every.call(t,function(e){return!0===e})}function X(e){return Object(i["\u0275isObservable"])(e)?e:Object(i["\u0275isPromise"])(e)?Object(w.fromPromise)(Promise.resolve(e)):Object(c.of)(e)}function $(e,t,n){return n?function(e,t){return G(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!ne(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&J(e.root,t.root)}function J(e,t){return function e(t,n,r){if(t.segments.length>r.length){var o=t.segments.slice(0,r.length);return!!ne(o,r)&&!n.hasChildren()}if(t.segments.length===r.length){if(!ne(t.segments,r))return!1;for(var i in n.children){if(!t.children[i])return!1;if(!J(t.children[i],n.children[i]))return!1}return!0}var o=r.slice(0,t.segments.length),a=r.slice(t.segments.length);return!!ne(t.segments,o)&&(!!t.children[M]&&e(t.children[M],n,a))}(e,t,t.segments)}var Z=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=F(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ae.serialize(this)},e}(),ee=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,Q(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return se(this)},e}(),te=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=F(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return le(this)},e}();function ne(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function re(e,t){var n=[];return Q(e.children,function(e,r){r===M&&(n=n.concat(t(e,r)))}),Q(e.children,function(e,r){r!==M&&(n=n.concat(t(e,r)))}),n}var oe=function(){function e(){}return e.prototype.parse=function(e){},e.prototype.serialize=function(e){},e}(),ie=function(){function e(){}return e.prototype.parse=function(e){var t=new ye(e);return new Z(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return""+("/"+function e(t,n){if(!t.hasChildren())return se(t);if(n){var r=t.children[M]?e(t.children[M],!1):"",o=[];return Q(t.children,function(t,n){n!==M&&o.push(n+":"+e(t,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=re(t,function(n,r){return r===M?[e(t.children[M],!1)]:[r+":"+e(n,!1)]});return se(t)+"/("+i.join("//")+")"}(e.root,!0))+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return ue(e)+"="+ue(t)}).join("&"):ue(e)+"="+ue(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),ae=new ie;function se(e){return e.segments.map(function(e){return le(e)}).join("/")}function ue(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function ce(e){return decodeURIComponent(e)}function le(e){return""+ue(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+ue(e)+"="+ue(t[e])}).join(""));var t}var pe=/^[^\/()?;=&#]+/;function he(e){var t=e.match(pe);return t?t[0]:""}var fe=/^[^=?&#]+/;var de=/^[^?&#]+/;var ye=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ee([],{}):new ee([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[M]=new ee(e,t)),n},e.prototype.parseSegment=function(){var e=he(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new te(ce(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=he(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=he(this.remaining);r&&(n=r,this.capture(n))}e[ce(t)]=ce(n)}},e.prototype.parseQueryParam=function(e){var t,n,r=(t=this.remaining,(n=t.match(fe))?n[0]:"");if(r){this.capture(r);var o="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(de);return t?t[0]:""}(this.remaining);i&&(o=i,this.capture(o))}var a=ce(r),s=ce(o);if(e.hasOwnProperty(a)){var u=e[a];Array.isArray(u)||(u=[u],e[a]=u),u.push(s)}else e[a]=s}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=he(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=M);var i=this.parseChildren();t[o]=1===Object.keys(i).length?i[M]:new ee([],i),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),ve=function(){return function(e){this.segmentGroup=e||null}}(),ge=function(){return function(e){this.urlTree=e}}();function me(e){return new g.Observable(function(t){return t.error(new ve(e))})}function _e(e){return new g.Observable(function(t){return t.error(new ge(e))})}function be(e){return new g.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}function we(e){return new g.Observable(function(t){return t.error((n="Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false",(r=Error("NavigationCancelingError: "+n))[V]=!0,r));var n,r})}var Ee=function(){function e(e,t,n,r,o){this.configLoader=t,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(i.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,M),n=d.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return m._catch.call(n,function(t){if(t instanceof ge)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof ve)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.ngModule,this.config,e.root,M),r=d.map.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return m._catch.call(r,function(e){if(e instanceof ve)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var r,o=e.segments.length>0?new ee([],((r={})[M]=e,r)):e;return new Z(o,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?d.map.call(this.expandChildren(e,t,n),function(e){return new ee([],e)}):this.expandSegment(e,n,t,n.segments,r,!0)},e.prototype.expandChildren=function(e,t,n){var r=this;return function(e,t){if(0===Object.keys(e).length)return Object(c.of)({});var n=[],r=[],o={};Q(e,function(e,i){var a=d.map.call(t(i,e),function(e){return o[i]=e});i===M?n.push(a):r.push(a)});var i=_.concatAll.call(c.of.apply(void 0,n.concat(r))),a=f.last.call(i);return d.map.call(a,function(){return o})}(n.children,function(n,o){return r.expandSegmentGroup(e,t,o,n)})},e.prototype.expandSegment=function(e,t,n,r,o,i){var a=this,s=c.of.apply(void 0,n),u=d.map.call(s,function(s){var u=a.expandSegmentAgainstRoute(e,t,n,s,r,o,i);return m._catch.call(u,function(e){if(e instanceof ve)return Object(c.of)(null);throw e})}),l=_.concatAll.call(u),p=h.first.call(l,function(e){return!!e});return m._catch.call(p,function(e,n){if(e instanceof b.EmptyError){if(a.noLeftoversInUrl(t,r,o))return Object(c.of)(new ee([],{}));throw new ve(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,r,o,i,a){return Te(r)!==i?me(t):void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i):me(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,o,i)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?_e(i):y.mergeMap.call(this.lineralizeSegments(n,i),function(n){var i=new ee(n,{});return o.expandSegment(e,i,t,n,r,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,o,i){var a=this,s=Ce(t,r,o),u=s.matched,c=s.consumedSegments,l=s.lastChild,p=s.positionalParamSegments;if(!u)return me(t);var h=this.applyRedirectCommands(c,r.redirectTo,p);return r.redirectTo.startsWith("/")?_e(h):y.mergeMap.call(this.lineralizeSegments(r,h),function(r){return a.expandSegment(e,t,n,r.concat(o.slice(l)),i,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var o=this;if("**"===n.path)return n.loadChildren?d.map.call(this.configLoader.load(e.injector,n),function(e){return n._loadedConfig=e,new ee(r,{})}):Object(c.of)(new ee(r,{}));var i=Ce(t,n,r),a=i.matched,s=i.consumedSegments,u=i.lastChild;if(!a)return me(t);var l=r.slice(u),p=this.getChildConfig(e,n);return y.mergeMap.call(p,function(e){var n=e.module,r=e.routes,i=function(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some(function(n){return Oe(e,t,n)&&Te(n)!==M})}(e,n,r)){var o=new ee(t,function(e,t){var n={};n[M]=t;for(var r=0,o=e;r1||!r.children[M])return be(e.redirectTo);r=r.children[M]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,r){var o=this.createSegmentGroup(e,t.root,n,r);return new Z(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return Q(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var o=e.substring(1);n[r]=t[o]}else n[r]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,r){var o=this,i=this.createSegments(e,t.segments,n,r),a={};return Q(t.children,function(t,i){a[i]=o.createSegmentGroup(e,t,n,r)}),new ee(i,a)},e.prototype.createSegments=function(e,t,n,r){var o=this;return t.map(function(t){return t.path.startsWith(":")?o.findPosParam(e,t,r):o.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return r},e.prototype.findOrReturn=function(e,t){for(var n=0,r=0,o=t;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(t.matcher||U)(n,e,t);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Se(e){if(1===e.numberOfChildren&&e.children[M]){var t=e.children[M];return new ee(e.segments.concat(t.segments),t.children)}return e}function Oe(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Te(e){return e.outlet||M}var Pe=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=Ne(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=Ne(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Ae(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Ae(e,this._root).map(function(e){return e.value})},e}();function Ne(e,t){if(e===t.value)return t;for(var n=0,r=t.children;n=1;){var r=t[n],o=t[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return t.slice(n).reduce(function(e,t){return{params:Object.assign({},e.params,t.params),data:Object.assign({},e.data,t.data),resolve:Object.assign({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}var je=function(){function e(e,t,n,r,o,i,a,s,u,c,l){this.url=e,this.params=t,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=a,this._routeConfig=s,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=F(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=F(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},e}(),Me=function(e){function t(t,n){var r=e.call(this,n)||this;return r.url=t,Le(r,n),r}return r.a(t,e),t.prototype.toString=function(){return Fe(this._root)},t}(Pe);function Le(e,t){t.value._routerState=e,t.children.forEach(function(t){return Le(e,t)})}function Fe(e){var t=e.children.length>0?" { "+e.children.map(Fe).join(", ")+" } ":"";return""+e.value+t}function Ve(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,G(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),G(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;no;){if(i-=o,!(r=r.parent))throw new Error("Invalid number of '../'");o=r.segments.length}return new Ke(r,!1,o-i)}(n.snapshot._urlSegment,o,e.numberOfDoubleDots)}(i,t,e),s=a.processChildren?Ye(a.segmentGroup,a.index,i.commands):Qe(a.segmentGroup,a.index,i.commands);return qe(a.segmentGroup,s,t,r,o)}function We(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function qe(e,t,n,r,o){var i={};return r&&Q(r,function(e,t){i[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),n.root===e?new Z(t,i,o):new Z(function e(t,n,r){var o={};Q(t.children,function(t,i){o[i]=t===n?r:e(t,n,r)});return new ee(t.segments,o)}(n.root,e,t),i,o)}var Ge=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&We(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(r&&r!==z(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}();var Ke=function(){return function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}}();function ze(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[M]:""+e}function Qe(e,t,n){if(e||(e=new ee([],{})),0===e.segments.length&&e.hasChildren())return Ye(e,t,n);var r=function(e,t,n){var r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;var a=e.segments[o],s=ze(n[r]),u=r0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Ze(s,u,a))return i;r+=2}else{if(!Ze(s,{},a))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?z(n).parameters:{},i=new je(n,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,st(e),r,e.component,e,nt(t),rt(t)+n.length,ut(e));return[new Ie(i,[])]}var a=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new et;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(t.matcher||U)(n,e,t);if(!r)throw new et;var o={};Q(r.posParams,function(e,t){o[t]=e.path});var i=r.consumed.length>0?Object.assign({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(t,e,n),s=a.consumedSegments,u=a.parameters,c=a.lastChild,l=n.slice(c),p=function(e){if(e.children)return e.children;if(e.loadChildren)return e._loadedConfig.routes;return[]}(e),h=ot(t,s,l,p),f=h.segmentGroup,d=h.slicedSegments,y=new je(s,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,st(e),r,e.component,e,nt(t),rt(t)+s.length,ut(e));if(0===d.length&&f.hasChildren()){var v=this.processChildren(p,f);return[new Ie(y,v)]}if(0===p.length&&0===d.length)return[new Ie(y,[])];var g=this.processSegment(p,f,d,M);return[new Ie(y,g)]},e}();function nt(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function rt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function ot(e,t,n,r){if(n.length>0&&function(e,t,n){return n.some(function(n){return it(e,t,n)&&at(n)!==M})}(e,n,r)){var o=new ee(t,function(e,t,n,r){var o={};o[M]=r,r._sourceSegment=e,r._segmentIndexShift=t.length;for(var i=0,a=n;i0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function at(e){return e.outlet||M}function st(e){return e.data||{}}function ut(e){return e.resolve||{}}var ct=function(){function e(){}return e.prototype.shouldDetach=function(e){},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){},e.prototype.retrieve=function(e){},e.prototype.shouldReuseRoute=function(e,t){},e}(),lt=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),pt=new i.InjectionToken("ROUTES"),ht=function(){function e(e,t,n,r){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=r}return e.prototype.load=function(e,t){var n=this;this.onLoadStartListener&&this.onLoadStartListener(t);var r=this.loadModuleFactory(t.loadChildren);return d.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var o=r.create(e);return new B(K(o.injector.get(pt)),o)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(w.fromPromise)(this.loader.load(e)):y.mergeMap.call(X(e()),function(e){return e instanceof i.NgModuleFactory?Object(c.of)(e):Object(w.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),ft=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){},e.prototype.extract=function(e){},e.prototype.merge=function(e,t){},e}(),dt=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function yt(e){throw e}function vt(e){return Object(c.of)(null)}var gt=function(){function e(e,t,n,r,o,u,c,l){var p=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=r,this.config=l,this.navigations=new a.BehaviorSubject(null),this.routerEvents=new s.Subject,this.navigationId=0,this.errorHandler=yt,this.navigated=!1,this.hooks={beforePreactivation:vt,afterPreactivation:vt},this.urlHandlingStrategy=new dt,this.routeReuseStrategy=new lt;this.ngModule=o.get(i.NgModuleRef),this.resetConfig(l),this.currentUrlTree=new Z(new ee([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new ht(u,c,function(e){return p.triggerEvent(new I(e))},function(e){return p.triggerEvent(new R(e))}),this.currentRouterState=xe(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.currentRouterState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(t){var n=e.urlSerializer.parse(t.url),r="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(e.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.routerEvents.next(e)},e.prototype.resetConfig=function(e){H(e),this.config=e,this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,r=t.queryParams,o=t.fragment,a=t.preserveQueryParams,s=t.queryParamsHandling,u=t.preserveFragment;Object(i.isDevMode)()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,l=u?this.currentUrlTree.fragment:o,p=null;if(s)switch(s){case"merge":p=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=r||null}else p=a?this.currentUrlTree.queryParams:r||null;return He(c,this.currentUrlTree,e,p,l)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof Z?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t262144},e.prototype.start_=function(){this.state_===r.InternalTaskState.RUNNING&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then(function(n){switch(t.state_){case r.InternalTaskState.RUNNING:e(n);break;case r.InternalTaskState.CANCELING:t.transition_(r.InternalTaskState.CANCELED);break;case r.InternalTaskState.PAUSING:t.transition_(r.InternalTaskState.PAUSED)}})},e.prototype.createResumable_=function(){var e=this;this.resolveToken_(function(t){var n=h.createResumableUpload(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then(function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()},e.errorHandler_)})},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_(function(n){var r=h.getResumableUploadStatus(e.authWrapper_,e.location_,t,e.blob_),o=e.authWrapper_.makeRequest(r,n);e.request_=o,o.getPromise().then(function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()},e.errorHandler_)})},e.prototype.continueUpload_=function(){var e=this,t=h.resumableUploadChunkSize*this.chunkMultiplier_,n=new h.ResumableUploadStatus(this.transferred_,this.blob_.size()),o=this.uploadUrl_;this.resolveToken_(function(i){var a;try{a=h.continueResumableUpload(e.location_,e.authWrapper_,o,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(t){return e.error_=t,void e.transition_(r.InternalTaskState.ERROR)}var s=e.authWrapper_.makeRequest(a,i);e.request_=s,s.getPromise().then(function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(r.InternalTaskState.SUCCESS)):e.completeTransitions_()},e.errorHandler_)})},e.prototype.increaseMultiplier_=function(){h.resumableUploadChunkSize*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_(function(t){var n=h.getMetadata(e.authWrapper_,e.location_,e.mappings_),o=e.authWrapper_.makeRequest(n,t);e.request_=o,o.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.transition_(r.InternalTaskState.SUCCESS)},e.metadataErrorHandler_)})},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_(function(t){var n=h.multipartUpload(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),o=e.authWrapper_.makeRequest(n,t);e.request_=o,o.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(r.InternalTaskState.SUCCESS)},e.errorHandler_)})},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case r.InternalTaskState.CANCELING:case r.InternalTaskState.PAUSING:this.state_=e,null!==this.request_&&this.request_.cancel();break;case r.InternalTaskState.RUNNING:var t=this.state_===r.InternalTaskState.PAUSED;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case r.InternalTaskState.PAUSED:this.state_=e,this.notifyObservers_();break;case r.InternalTaskState.CANCELED:this.error_=l.canceled(),this.state_=e,this.notifyObservers_();break;case r.InternalTaskState.ERROR:case r.InternalTaskState.SUCCESS:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case r.InternalTaskState.PAUSING:this.transition_(r.InternalTaskState.PAUSED);break;case r.InternalTaskState.CANCELING:this.transition_(r.InternalTaskState.CANCELED);break;case r.InternalTaskState.RUNNING:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=o.taskStateFromInternalTaskState(this.state_);return new a.UploadTaskSnapshot(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,o){void 0===t&&(t=void 0),void 0===n&&(n=void 0),void 0===o&&(o=void 0);var a="Expected a function or an Object with one of `next`, `error`, `complete` properties.",u=s.nullFunctionSpec(!0).validator,c=s.looseObjectSpec(null,!0).validator;function l(e){try{return void u(e)}catch(e){}try{if(c(e),!(f.isJustDef(e.next)||f.isJustDef(e.error)||f.isJustDef(e.complete)))throw"";return}catch(e){throw a}}var p=[s.stringSpec(function(t){if(e!==r.TaskEvent.STATE_CHANGED)throw"Expected one of the event types: ["+r.TaskEvent.STATE_CHANGED+"]."}),s.looseObjectSpec(l,!0),s.nullFunctionSpec(!0),s.nullFunctionSpec(!0)];s.validate("on",p,arguments);var h=this;function d(e){return function(t,n,r){null!==e&&s.validate("on",e,arguments);var a=new i.Observer(t,n,o);return h.addObserver_(a),function(){h.removeObserver_(a)}}}var y=[s.looseObjectSpec(function(e){if(null===e)throw a;l(e)}),s.nullFunctionSpec(!0),s.nullFunctionSpec(!0)];return!(f.isJustDef(t)||f.isJustDef(n)||f.isJustDef(o))?d(y):d(null)(t,n,o)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){u.remove(this.observers_,e)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),u.clone(this.observers_).forEach(function(t){e.notifyObserver_(t)})},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(o.taskStateFromInternalTaskState(this.state_)){case r.TaskState.SUCCESS:(0,c.async)(this.resolve_.bind(null,this.snapshot))();break;case r.TaskState.CANCELED:case r.TaskState.ERROR:var t=this.reject_;(0,c.async)(t.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(o.taskStateFromInternalTaskState(this.state_)){case r.TaskState.RUNNING:case r.TaskState.PAUSED:null!==e.next&&(0,c.async)(e.next.bind(e,this.snapshot))();break;case r.TaskState.SUCCESS:null!==e.complete&&(0,c.async)(e.complete.bind(e))();break;case r.TaskState.CANCELED:case r.TaskState.ERROR:null!==e.error&&(0,c.async)(e.error.bind(e,this.error_))();break;default:null!==e.error&&(0,c.async)(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){s.validate("resume",[],arguments);var e=this.state_===r.InternalTaskState.PAUSED||this.state_===r.InternalTaskState.PAUSING;return e&&this.transition_(r.InternalTaskState.RUNNING),e},e.prototype.pause=function(){s.validate("pause",[],arguments);var e=this.state_===r.InternalTaskState.RUNNING;return e&&this.transition_(r.InternalTaskState.PAUSING),e},e.prototype.cancel=function(){s.validate("cancel",[],arguments);var e=this.state_===r.InternalTaskState.RUNNING||this.state_===r.InternalTaskState.PAUSING;return e&&this.transition_(r.InternalTaskState.CANCELING),e},e}();t.UploadTask=y},"7Btn":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_INDEX=t.KeyIndex=void 0;var r,o,i=n("sevV"),a=n("coin"),s=n("Pu5a"),u=n("nDT4"),c=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return o},set:function(e){o=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return(0,s.nameCompare)(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw(0,u.assertionError)("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return a.NamedNode.MIN},t.prototype.maxPost=function(){return new a.NamedNode(s.MAX_NAME,o)},t.prototype.makePost=function(e,t){return(0,u.assert)("string"==typeof e,"KeyIndex indexValue must always be a string."),new a.NamedNode(e,o)},t.prototype.toString=function(){return".key"},t}(i.Index);t.KeyIndex=l;t.KEY_INDEX=new l},"7dUB":function(e,t,n){"use strict";n("0jrq");var r=n("3j3K"),o=n("rCTf"),i=n("Ji1B"),a=n("iKb+"),s=(n("uCY4"),n("1APj"),n("c3t5"),function(){function e(e){var t=this;this.app=e,this.auth=e.auth();var n=new o.Observable(function(e){return{unsubscribe:t.auth.onAuthStateChanged(e)}});this.authState=i.observeOn.call(n,new a.e(Zone.current));var r=new o.Observable(function(e){return{unsubscribe:t.auth.onIdTokenChanged(e)}}).switchMap(function(e){return e?o.Observable.fromPromise(e.getIdToken()):o.Observable.of(null)});this.idToken=i.observeOn.call(r,new a.e(Zone.current))}return e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:a.b}]},e}());function u(e){return new s(e)}var c={provide:s,useFactory:u,deps:[a.b]},l=[c],p=function(){function e(){}return e.decorators=[{type:r.NgModule,args:[{imports:[a.a],providers:[l]}]}],e.ctorParameters=function(){return[]},e}();n.d(t,"a",function(){return s}),n.d(t,!1,function(){return u}),n.d(t,!1,function(){return c}),n.d(t,!1,function(){return l}),n.d(t,!1,function(){return p})},"7nvF":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("mmVS"),i=n("F7Al");t.last=function(e,t,n){return this.lift(new a(e,t,n,this))};var a=function(){function e(e,t,n,r){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=r}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),s=function(e){function t(t,n,r,o,i){e.call(this,t),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,"undefined"!=typeof o&&(this.lastValue=o,this.hasValue=!0)}return r(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(n){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=n,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new i.EmptyError)},t}(o.Subscriber)},"7rB9":function(e,t,n){"use strict";var r=n("t2qv");t.forkJoin=r.ForkJoinObservable.create},"7xV2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha1=void 0;var r,o=n("MxH5"),i=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=function(e){function t(){var t=e.call(this)||this;t.chain_=[],t.buf_=[],t.W_=[],t.pad_=[],t.inbuf_=0,t.total_=0,t.blockSize=64,t.pad_[0]=128;for(var n=1;n>>31)}var i,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],p=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(i=l^u&(c^l),a=1518500249):(i=u^c^l,a=1859775393):r<60?(i=u&c|l&(u|c),a=2400959708):(i=u^c^l,a=3395469782);o=(s<<5|s>>>27)+i+p+a+n[r]&4294967295;p=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=o}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+p&4294967295},t.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,o=this.buf_,i=this.inbuf_;r=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var o=24;o>=0;o-=8)e[r]=this.chain_[n]>>o&255,++r;return e},t}(o.Hash);t.Sha1=a},"83T1":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("mmVS");t.every=function(e,t){return this.lift(new i(e,t,this))};var i=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg,this.source))},e}(),a=function(e){function t(t,n,r,o){e.call(this,t),this.predicate=n,this.thisArg=r,this.source=o,this.index=0,this.thisArg=r||this}return r(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(o.Subscriber)},"8GmM":function(e,t,n){"use strict";var r=n("rCTf"),o=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return"undefined"!=typeof t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();t.Notification=o},"8Z8y":function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return r(t,e),t}(Error);t.ArgumentOutOfRangeError=o},"8jKy":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("dHoF"),o=s(n("WUNS")),i=s(n("337B")),a=s(n("gFBI"));function s(e){return e&&e.__esModule?e:{default:e}}var u="fcm_token_object_Store",c=function(){function e(){this.errorFactory_=new r.ErrorFactory("messaging","Messaging",o.default.map),this.openDbPromise_=null}return e.prototype.openDatabase_=function(){return this.openDbPromise_?this.openDbPromise_:(this.openDbPromise_=new Promise(function(e,t){var n=indexedDB.open("fcm_token_details_db",1);n.onerror=function(e){t(e.target.error)},n.onsuccess=function(t){e(t.target.result)},n.onupgradeneeded=function(e){var t=e.target.result.createObjectStore(u,{keyPath:"swScope"});t.createIndex("fcmSenderId","fcmSenderId",{unique:!1}),t.createIndex("fcmToken","fcmToken",{unique:!0})}}),this.openDbPromise_)},e.prototype.closeDatabase=function(){var e=this;return this.openDbPromise_?this.openDbPromise_.then(function(t){t.close(),e.openDbPromise_=null}):Promise.resolve()},e.prototype.getTokenDetailsFromToken=function(e){return this.openDatabase_().then(function(t){return new Promise(function(n,r){var o=t.transaction([u]).objectStore(u).index("fcmToken").get(e);o.onerror=function(e){r(e.target.error)},o.onsuccess=function(e){n(e.target.result)}})})},e.prototype.getTokenDetailsFromSWScope_=function(e){return this.openDatabase_().then(function(t){return new Promise(function(n,r){var o=t.transaction([u]).objectStore(u).get(e);o.onerror=function(e){r(e.target.error)},o.onsuccess=function(e){n(e.target.result)}})})},e.prototype.getAllTokenDetailsForSenderId_=function(e){return this.openDatabase_().then(function(t){return new Promise(function(n,r){var o=[],i=t.transaction([u]).objectStore(u).openCursor();i.onerror=function(e){r(e.target.error)},i.onsuccess=function(t){var r=t.target.result;r?(r.value.fcmSenderId===e&&o.push(r.value),r.continue()):n(o)}})})},e.prototype.subscribeToFCM=function(e,t,n){var r=this,s=(0,i.default)(t.getKey("p256dh")),u=(0,i.default)(t.getKey("auth")),c="authorized_entity="+e+"&endpoint="+t.endpoint+"&encryption_key="+s+"&encryption_auth="+u;n&&(c+="&pushSet="+n);var l=new Headers;l.append("Content-Type","application/x-www-form-urlencoded");var p={method:"POST",headers:l,body:c};return fetch(a.default.ENDPOINT+"/fcm/connect/subscribe",p).then(function(e){return e.json()}).then(function(e){var t=e;if(t.error){var n=t.error.message;throw r.errorFactory_.create(o.default.codes.TOKEN_SUBSCRIBE_FAILED,{message:n})}if(!t.token)throw r.errorFactory_.create(o.default.codes.TOKEN_SUBSCRIBE_NO_TOKEN);if(!t.pushSet)throw r.errorFactory_.create(o.default.codes.TOKEN_SUBSCRIBE_NO_PUSH_SET);return{token:t.token,pushSet:t.pushSet}})},e.prototype.isSameSubscription_=function(e,t){return e.endpoint===t.endpoint&&(0,i.default)(e.getKey("auth"))===t.auth&&(0,i.default)(e.getKey("p256dh"))===t.p256dh},e.prototype.saveTokenDetails_=function(e,t,n,r,o){var a={swScope:t.scope,endpoint:n.endpoint,auth:(0,i.default)(n.getKey("auth")),p256dh:(0,i.default)(n.getKey("p256dh")),fcmToken:r,fcmPushSet:o,fcmSenderId:e};return this.openDatabase_().then(function(e){return new Promise(function(t,n){var r=e.transaction([u],"readwrite").objectStore(u).put(a);r.onerror=function(e){n(e.target.error)},r.onsuccess=function(e){t()}})})},e.prototype.getSavedToken=function(e,t){var n=this;return t instanceof ServiceWorkerRegistration?"string"!=typeof e||0===e.length?Promise.reject(this.errorFactory_.create(o.default.codes.BAD_SENDER_ID)):this.getAllTokenDetailsForSenderId_(e).then(function(n){if(0!==n.length){var r=n.findIndex(function(n){return t.scope===n.swScope&&e===n.fcmSenderId});if(-1!==r)return n[r]}}).then(function(e){if(e)return t.pushManager.getSubscription().catch(function(e){throw n.errorFactory_.create(o.default.codes.GET_SUBSCRIPTION_FAILED)}).then(function(t){if(t&&n.isSameSubscription_(t,e))return e.fcmToken})}):Promise.reject(this.errorFactory_.create(o.default.codes.SW_REGISTRATION_EXPECTED))},e.prototype.createToken=function(e,t){var n,r,i=this;return"string"!=typeof e||0===e.length?Promise.reject(this.errorFactory_.create(o.default.codes.BAD_SENDER_ID)):t instanceof ServiceWorkerRegistration?t.pushManager.getSubscription().then(function(e){return e||t.pushManager.subscribe(a.default.SUBSCRIPTION_OPTIONS)}).then(function(t){return n=t,i.subscribeToFCM(e,n)}).then(function(o){return r=o,i.saveTokenDetails_(e,t,n,r.token,r.pushSet)}).then(function(){return r.token}):Promise.reject(this.errorFactory_.create(o.default.codes.SW_REGISTRATION_EXPECTED))},e.prototype.deleteToken=function(e){var t=this;return"string"!=typeof e||0===e.length?Promise.reject(this.errorFactory_.create(o.default.codes.INVALID_DELETE_TOKEN)):this.getTokenDetailsFromToken(e).then(function(e){if(!e)throw t.errorFactory_.create(o.default.codes.DELETE_TOKEN_NOT_FOUND);return t.openDatabase_().then(function(n){return new Promise(function(r,i){var a=n.transaction([u],"readwrite").objectStore(u).delete(e.swScope);a.onerror=function(e){i(e.target.error)},a.onsuccess=function(n){0!==n.target.result?r(e):i(t.errorFactory_.create(o.default.codes.FAILED_TO_DELETE_TOKEN))}})})})},e}();t.default=c,e.exports=t.default},"9A6/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnDisconnect=void 0;var r=n("ktV6"),o=n("YuqB"),i=n("Pu5a"),a=n("OKkW"),s=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){(0,r.validateArgCount)("OnDisconnect.cancel",0,1,arguments.length),(0,r.validateCallback)("OnDisconnect.cancel",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){(0,r.validateArgCount)("OnDisconnect.remove",0,1,arguments.length),(0,o.validateWritablePath)("OnDisconnect.remove",this.path_),(0,r.validateCallback)("OnDisconnect.remove",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){(0,r.validateArgCount)("OnDisconnect.set",1,2,arguments.length),(0,o.validateWritablePath)("OnDisconnect.set",this.path_),(0,o.validateFirebaseDataArg)("OnDisconnect.set",1,e,this.path_,!1),(0,r.validateCallback)("OnDisconnect.set",2,t,!0);var n=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){(0,r.validateArgCount)("OnDisconnect.setWithPriority",2,3,arguments.length),(0,o.validateWritablePath)("OnDisconnect.setWithPriority",this.path_),(0,o.validateFirebaseDataArg)("OnDisconnect.setWithPriority",1,e,this.path_,!1),(0,o.validatePriority)("OnDisconnect.setWithPriority",2,t,!1),(0,r.validateCallback)("OnDisconnect.setWithPriority",3,n,!0);var i=new a.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,i.wrapCallback(n)),i.promise},e.prototype.update=function(e,t){if((0,r.validateArgCount)("OnDisconnect.update",1,2,arguments.length),(0,o.validateWritablePath)("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},s=0;s0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n0&&n.push(o[r])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),o=n.getFront();if(null===r)return n;if(r===o)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),o=t.slice(),i=0;ie.getLength())return!1;for(;t0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=(0,o.stringLength)(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=(0,o.stringLength)(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0==this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}();t.ValidationPath=a},B00U:function(e,t,n){"use strict";var r=n("Xajo"),o=n("ICpg"),i=n("SKH6"),a=n("+3eL"),s=n("WhVc"),u=n("GIjk"),c=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,c=this._parents,p=this._unsubscribe,h=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,d=c?c.length:0;n;)n.remove(this),n=++floading...\n \n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={template:[{type:r.Input}],node:[{type:r.Input}]},e}()},EEr4:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("rCTf"),i=n("mmVS"),a=n("B00U"),s=n("IZVw"),u=n("ZJf8"),c=n("r8ZY"),l=function(e){function t(t){e.call(this,t),this.destination=t}return r(t,e),t}(i.Subscriber);t.SubjectSubscriber=l;var p=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(t,e),t.prototype[c.rxSubscriber]=function(){return new l(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var o=n("3j3K"),i=n("s7hI"),a=function(){return function(){}}();a=r([o.NgModule({declarations:[i.RecaptchaComponent],exports:[i.RecaptchaComponent]})],a),t.RecaptchaCommonModule=a},F7Al:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return r(t,e),t}(Error);t.EmptyError=o},FA5e:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("rCTf"),i=n("RRVv"),a=n("jBEF"),s=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return r(t,e),t.create=function(e,n){var r=e.length;return 0===r?new a.EmptyObservable:1===r?new i.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,r=e.length,o=e.subscriber;o.closed||(n>=r?o.complete():(o.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,r=this.scheduler,o=n.length;if(r)return r.schedule(t.dispatch,0,{arrayLike:n,index:0,length:o,subscriber:e});for(var i=0;i\n
\n \n
\n \n '}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:o.a}]},e.propDecorators={onScroll:[{type:r.HostListener,args:["scroll",["$event"]]}]},e}()},FM3S:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventList=t.EventQueue=void 0;var r=n("Pu5a"),o=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n.firebaseio.com instead"),n&&"undefined"!=n||(0,i.fatal)("Cannot parse Firebase url. Please use https://.firebaseio.com"),t.secure||(0,i.warnIfPageIsSecure)();var s="ws"===t.scheme||"wss"===t.scheme;return{repoInfo:new o.RepoInfo(t.host,t.secure,n,s),path:new r.Path(t.pathString)}};var a=t.parseURL=function(e){var t="",n="",r="",o="",i=!0,a="https",s=443;if("string"==typeof e){var u=e.indexOf("//");u>=0&&(a=e.substring(0,u-1),e=e.substring(u+2));var c=e.indexOf("/");-1===c&&(c=e.length),t=e.substring(0,c),o=function(e){for(var t="",n=e.split("/"),r=0;r0){var o=n[r];try{o=decodeURIComponent(o.replace(/\+/g," "))}catch(e){}t+="/"+o}return t}(e.substring(c));var l=t.split(".");3===l.length?(n=l[1],r=l[0].toLowerCase()):2===l.length&&(n=l[0]),(u=t.indexOf(":"))>=0&&(i="https"===a||"wss"===a,s=parseInt(t.substring(u+1),10))}return{host:t,port:s,domain:n,subdomain:r,secure:i,scheme:a,pathString:o}}},Fa9E:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",focus:"focus",blur:"blur",initialized:"initialized",updateData:"updateData",moveNode:"moveNode",copyNode:"copyNode",event:"event",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",stateChange:"stateChange"}},Fj6c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.start=function(e,t,n){var r=1,o=null,i=!1,a=0;function s(){return 2===a}var u=!1;function c(){u||(u=!0,t.apply(null,arguments))}function l(t){o=setTimeout(function(){o=null,e(p,s())},t)}function p(e){for(var t=[],n=1;n=0))throw"Expected a number 0 or greater."})},t.looseObjectSpec=function(e,t){return new s(function(t){if(!(null===t||i.isDef(t)&&t instanceof Object))throw"Expected an Object.";void 0!==e&&null!==e&&e(t)},t)},t.nullFunctionSpec=function(e){return new s(function(e){if(null!==e&&!i.isFunction(e))throw"Expected a Function."},e)};var r=a(n("pkaK")),o=a(n("MZj/")),i=a(n("BjtA"));function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var s=function(){return function(e,t){var n=this;this.validator=function(t){n.optional&&!i.isJustDef(t)||e(t)},this.optional=!!t}}();function u(e,t){return function(n){e(n),t(n)}}t.ArgSpec=s},Fxdn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tree=t.TreeNode=void 0;var r=n("nDT4"),o=n("AHVm"),i=n("zHK/"),a=function(){return function(){this.children={},this.childCount=0,this.value=null}}();t.TreeNode=a;var s=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new a),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n,r=t instanceof o.Path?t:new o.Path(t),s=this;null!==(n=r.getFront());){s=new e(n,s,(0,i.safeGet)(s.node_.children,n)||new a),r=r.popFront()}return s},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){(0,r.assert)("undefined"!=typeof e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;(0,i.forEach)(this.node_.children,function(r,o){t(new e(r,n,o))})},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild(function(t){t.forEachDescendant(e,!0,n)}),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild(function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)})},e.prototype.path=function(){return new o.Path(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=(0,i.contains)(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();t.Tree=s},Fzro:function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"i",function(){return F}),n.d(t,"a",function(){return U}),n.d(t,"g",function(){return V}),n.d(t,"b",function(){return y}),n.d(t,"h",function(){return d}),n.d(t,"d",function(){return f}),n.d(t,"e",function(){return Y}),n.d(t,"f",function(){return Z}),n.d(t,"j",function(){return g}),n.d(t,"k",function(){return $}),n.d(t,"l",function(){return J});var r=n("TToO"),o=n("3j3K"),i=n("rCTf"),a=(n.n(i),n("Qbdm")),s=function(){function e(){}return e.prototype.build=function(){return new XMLHttpRequest},e}();s.decorators=[{type:o.Injectable}],s.ctorParameters=function(){return[]};var u={Get:0,Post:1,Put:2,Delete:3,Options:4,Head:5,Patch:6};u[u.Get]="Get",u[u.Post]="Post",u[u.Put]="Put",u[u.Delete]="Delete",u[u.Options]="Options",u[u.Head]="Head",u[u.Patch]="Patch";var c={Unsent:0,Open:1,HeadersReceived:2,Loading:3,Done:4,Cancelled:5};c[c.Unsent]="Unsent",c[c.Open]="Open",c[c.HeadersReceived]="HeadersReceived",c[c.Loading]="Loading",c[c.Done]="Done",c[c.Cancelled]="Cancelled";var l={Basic:0,Cors:1,Default:2,Error:3,Opaque:4};l[l.Basic]="Basic",l[l.Cors]="Cors",l[l.Default]="Default",l[l.Error]="Error",l[l.Opaque]="Opaque";var p={NONE:0,JSON:1,FORM:2,FORM_DATA:3,TEXT:4,BLOB:5,ARRAY_BUFFER:6};p[p.NONE]="NONE",p[p.JSON]="JSON",p[p.FORM]="FORM",p[p.FORM_DATA]="FORM_DATA",p[p.TEXT]="TEXT",p[p.BLOB]="BLOB",p[p.ARRAY_BUFFER]="ARRAY_BUFFER";var h={Text:0,Json:1,ArrayBuffer:2,Blob:3};h[h.Text]="Text",h[h.Json]="Json",h[h.ArrayBuffer]="ArrayBuffer",h[h.Blob]="Blob";var f=function(){function e(t){var n=this;this._headers=new Map,this._normalizedNames=new Map,t&&(t instanceof e?t.forEach(function(e,t){e.forEach(function(e){return n.append(t,e)})}):Object.keys(t).forEach(function(e){var r=Array.isArray(t[e])?t[e]:[t[e]];n.delete(e),r.forEach(function(t){return n.append(e,t)})}))}return e.fromResponseHeaderString=function(t){var n=new e;return t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var r=e.slice(0,t),o=e.slice(t+1).trim();n.set(r,o)}}),n},e.prototype.append=function(e,t){var n=this.getAll(e);null===n?this.set(e,t):n.push(t)},e.prototype.delete=function(e){var t=e.toLowerCase();this._normalizedNames.delete(t),this._headers.delete(t)},e.prototype.forEach=function(e){var t=this;this._headers.forEach(function(n,r){return e(n,t._normalizedNames.get(r),t._headers)})},e.prototype.get=function(e){var t=this.getAll(e);return null===t?null:t.length>0?t[0]:null},e.prototype.has=function(e){return this._headers.has(e.toLowerCase())},e.prototype.keys=function(){return Array.from(this._normalizedNames.values())},e.prototype.set=function(e,t){Array.isArray(t)?t.length&&this._headers.set(e.toLowerCase(),[t.join(",")]):this._headers.set(e.toLowerCase(),[t]),this.mayBeSetNormalizedName(e)},e.prototype.values=function(){return Array.from(this._headers.values())},e.prototype.toJSON=function(){var e=this,t={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(e){return o.push.apply(o,e.split(","))}),t[e._normalizedNames.get(r)]=o}),t},e.prototype.getAll=function(e){return this.has(e)&&this._headers.get(e.toLowerCase())||null},e.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},e.prototype.mayBeSetNormalizedName=function(e){var t=e.toLowerCase();this._normalizedNames.has(t)||this._normalizedNames.set(t,e)},e}(),d=function(){function e(e){void 0===e&&(e={});var t=e.body,n=e.status,r=e.headers,o=e.statusText,i=e.type,a=e.url;this.body=null!=t?t:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=o?o:null,this.type=null!=i?i:null,this.url=null!=a?a:null}return e.prototype.merge=function(t){return new e({body:t&&null!=t.body?t.body:this.body,status:t&&null!=t.status?t.status:this.status,headers:t&&null!=t.headers?t.headers:this.headers,statusText:t&&null!=t.statusText?t.statusText:this.statusText,type:t&&null!=t.type?t.type:this.type,url:t&&null!=t.url?t.url:this.url})},e}(),y=function(e){function t(){return e.call(this,{status:200,statusText:"Ok",type:l.Default,headers:new f})||this}return r.a(t,e),t}(d);y.decorators=[{type:o.Injectable}],y.ctorParameters=function(){return[]};var v=function(){function e(){}return e.prototype.createConnection=function(e){},e}(),g=(function(){}(),function(){function e(){}return e.prototype.configureRequest=function(e){},e}());function m(e){if("string"!=typeof e)return e;switch(e.toUpperCase()){case"GET":return u.Get;case"POST":return u.Post;case"PUT":return u.Put;case"DELETE":return u.Delete;case"OPTIONS":return u.Options;case"HEAD":return u.Head;case"PATCH":return u.Patch}throw new Error('Invalid request method. The method "'+e+'" is not supported.')}var _=function(e){return e>=200&&e<300};var b=function(){function e(){}return e.prototype.encodeKey=function(e){return w(e)},e.prototype.encodeValue=function(e){return w(e)},e}();function w(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var E=function(){function e(e,t){void 0===e&&(e=""),void 0===t&&(t=new b),this.rawParams=e,this.queryEncoder=t,this.paramsMap=function(e){void 0===e&&(e="");var t=new Map;return e.length>0&&e.split("&").forEach(function(e){var n=e.indexOf("="),r=-1==n?[e,""]:[e.slice(0,n),e.slice(n+1)],o=r[0],i=r[1],a=t.get(o)||[];a.push(i),t.set(o,a)}),t}(e)}return e.prototype.clone=function(){var t=new e("",this.queryEncoder);return t.appendAll(this),t},e.prototype.has=function(e){return this.paramsMap.has(e)},e.prototype.get=function(e){var t=this.paramsMap.get(e);return Array.isArray(t)?t[0]:null},e.prototype.getAll=function(e){return this.paramsMap.get(e)||[]},e.prototype.set=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.length=0,n.push(t),this.paramsMap.set(e,n)}else this.delete(e)},e.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){var r=t.paramsMap.get(n)||[];r.length=0,r.push(e[0]),t.paramsMap.set(n,r)})},e.prototype.append=function(e,t){if(void 0!==t&&null!==t){var n=this.paramsMap.get(e)||[];n.push(t),this.paramsMap.set(e,n)}},e.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,n){for(var r=t.paramsMap.get(n)||[],o=0;o=200&&n.status<=299,n.statusText=t.statusText,n.headers=t.headers,n.type=t.type,n.url=t.url,n}return r.a(t,e),t.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},t}(C),O=0,T="__ng_jsonp__",P=null;function N(){var e="object"==typeof window?window:{};return null===P&&(P=e[T]={}),P}var A=function(){function e(){}return e.prototype.build=function(e){var t=document.createElement("script");return t.src=e,t},e.prototype.nextRequestID=function(){return"__req"+O++},e.prototype.requestCallback=function(e){return T+"."+e+".finished"},e.prototype.exposeConnection=function(e,t){N()[e]=t},e.prototype.removeConnection=function(e){N()[e]=null},e.prototype.send=function(e){document.body.appendChild(e)},e.prototype.cleanup=function(e){e.parentNode&&e.parentNode.removeChild(e)},e}();A.decorators=[{type:o.Injectable}],A.ctorParameters=function(){return[]};var I="JSONP injected script did not invoke callback.",R="JSONP requests must use GET request method.",x=function(e){function t(t,n,r){var o=e.call(this)||this;if(o._dom=n,o.baseResponseOptions=r,o._finished=!1,t.method!==u.Get)throw new TypeError(R);return o.request=t,o.response=new i.Observable(function(e){o.readyState=c.Loading;var i=o._id=n.nextRequestID();n.exposeConnection(i,o);var a=n.requestCallback(o._id),s=t.url;s.indexOf("=JSONP_CALLBACK&")>-1?s=s.replace("=JSONP_CALLBACK&","="+a+"&"):s.lastIndexOf("=JSONP_CALLBACK")===s.length-"=JSONP_CALLBACK".length&&(s=s.substring(0,s.length-"=JSONP_CALLBACK".length)+"="+a);var u=o._script=n.build(s),p=function(t){if(o.readyState!==c.Cancelled){if(o.readyState=c.Done,n.cleanup(u),!o._finished){var i=new d({body:I,type:l.Error,url:s});return r&&(i=r.merge(i)),void e.error(new S(i))}var a=new d({body:o._responseData,url:s});o.baseResponseOptions&&(a=o.baseResponseOptions.merge(a)),e.next(new S(a)),e.complete()}},h=function(t){if(o.readyState!==c.Cancelled){o.readyState=c.Done,n.cleanup(u);var i=new d({body:t.message,type:l.Error});r&&(i=r.merge(i)),e.error(new S(i))}};return u.addEventListener("load",p),u.addEventListener("error",h),n.send(u),function(){o.readyState=c.Cancelled,u.removeEventListener("load",p),u.removeEventListener("error",h),o._dom.cleanup(u)}}),o}return r.a(t,e),t.prototype.finished=function(e){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==c.Cancelled&&(this._responseData=e)},t}(function(){function e(){}return e.prototype.finished=function(e){},e}()),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t}(v),D=function(e){function t(t,n){var r=e.call(this)||this;return r._browserJSONP=t,r._baseResponseOptions=n,r}return r.a(t,e),t.prototype.createConnection=function(e){return new x(e,this._browserJSONP,this._baseResponseOptions)},t}(k);D.decorators=[{type:o.Injectable}],D.ctorParameters=function(){return[{type:A},{type:d}]};var j=/^\)\]\}',?\n/,M=function(){function e(e,t,n){var r=this;this.request=e,this.response=new i.Observable(function(o){var i=t.build();i.open(u[e.method].toUpperCase(),e.url),null!=e.withCredentials&&(i.withCredentials=e.withCredentials);var a=function(){var t=1223===i.status?204:i.status,r=null;204!==t&&"string"==typeof(r="undefined"==typeof i.response?i.responseText:i.response)&&(r=r.replace(j,"")),0===t&&(t=r?200:0);var a,s=f.fromResponseHeaderString(i.getAllResponseHeaders()),u=("responseURL"in(a=i)?a.responseURL:/^X-Request-URL:/m.test(a.getAllResponseHeaders())?a.getResponseHeader("X-Request-URL"):null)||e.url,c=i.statusText||"OK",l=new d({body:r,status:t,headers:s,statusText:c,url:u});null!=n&&(l=n.merge(l));var p=new S(l);if(p.ok=_(t),p.ok)return o.next(p),void o.complete();o.error(p)},s=function(e){var t=new d({body:e,type:l.Error,status:i.status,statusText:i.statusText});null!=n&&(t=n.merge(t)),o.error(new S(t))};if(r.setDetectedContentType(e,i),null==e.headers&&(e.headers=new f),e.headers.has("Accept")||e.headers.append("Accept","application/json, text/plain, */*"),e.headers.forEach(function(e,t){return i.setRequestHeader(t,e.join(","))}),null!=e.responseType&&null!=i.responseType)switch(e.responseType){case h.ArrayBuffer:i.responseType="arraybuffer";break;case h.Json:i.responseType="json";break;case h.Text:i.responseType="text";break;case h.Blob:i.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return i.addEventListener("load",a),i.addEventListener("error",s),i.send(r.request.getBody()),function(){i.removeEventListener("load",a),i.removeEventListener("error",s),i.abort()}})}return e.prototype.setDetectedContentType=function(e,t){if(null==e.headers||null==e.headers.get("Content-Type"))switch(e.contentType){case p.NONE:break;case p.JSON:t.setRequestHeader("content-type","application/json");break;case p.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case p.TEXT:t.setRequestHeader("content-type","text/plain");break;case p.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}},e}(),L=function(){function e(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return e.prototype.configureRequest=function(e){var t=Object(a.u)().getCookie(this._cookieName);t&&e.headers.set(this._headerName,t)},e}(),F=function(){function e(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}return e.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new M(e,this._browserXHR,this._baseResponseOptions)},e}();F.decorators=[{type:o.Injectable}],F.ctorParameters=function(){return[{type:s},{type:d},{type:g}]};var V=function(){function e(e){void 0===e&&(e={});var t=e.method,n=e.headers,r=e.body,o=e.url,i=e.search,a=e.params,s=e.withCredentials,u=e.responseType;this.method=null!=t?m(t):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(a||i),this.withCredentials=null!=s?s:null,this.responseType=null!=u?u:null}return Object.defineProperty(e.prototype,"search",{get:function(){return this.params},set:function(e){this.params=e},enumerable:!0,configurable:!0}),e.prototype.merge=function(t){return new e({method:t&&null!=t.method?t.method:this.method,headers:t&&null!=t.headers?t.headers:new f(this.headers),body:t&&null!=t.body?t.body:this.body,url:t&&null!=t.url?t.url:this.url,params:t&&this._mergeSearchParams(t.params||t.search),withCredentials:t&&null!=t.withCredentials?t.withCredentials:this.withCredentials,responseType:t&&null!=t.responseType?t.responseType:this.responseType})},e.prototype._mergeSearchParams=function(e){return e?e instanceof E?e.clone():"string"==typeof e?new E(e):this._parseParams(e):this.params},e.prototype._parseParams=function(e){var t=this;void 0===e&&(e={});var n=new E;return Object.keys(e).forEach(function(r){var o=e[r];Array.isArray(o)?o.forEach(function(e){return t._appendParam(r,e,n)}):t._appendParam(r,o,n)}),n},e.prototype._appendParam=function(e,t,n){"string"!=typeof t&&(t=JSON.stringify(t)),n.append(e,t)},e}(),U=function(e){function t(){return e.call(this,{method:u.Get,headers:new f})||this}return r.a(t,e),t}(V);U.decorators=[{type:o.Injectable}],U.ctorParameters=function(){return[]};var B=function(e){function t(t){var n=e.call(this)||this,r=t.url;n.url=t.url;var o=t.params||t.search;if(o){var i=void 0;if((i="object"!=typeof o||o instanceof E?o.toString():function(e){var t=new E;return Object.keys(e).forEach(function(n){var r=e[n];r&&Array.isArray(r)?r.forEach(function(e){return t.append(n,e.toString())}):t.append(n,r.toString())}),t}(o).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+i}}return n._body=t.body,n.method=m(t.method),n.headers=new f(t.headers),n.contentType=n.detectContentType(),n.withCredentials=t.withCredentials,n.responseType=t.responseType,n}return r.a(t,e),t.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return p.JSON;case"application/x-www-form-urlencoded":return p.FORM;case"multipart/form-data":return p.FORM_DATA;case"text/plain":case"text/html":return p.TEXT;case"application/octet-stream":return this._body instanceof K?p.ARRAY_BUFFER:p.BLOB;default:return this.detectContentTypeFromBody()}},t.prototype.detectContentTypeFromBody=function(){return null==this._body?p.NONE:this._body instanceof E?p.FORM:this._body instanceof q?p.FORM_DATA:this._body instanceof G?p.BLOB:this._body instanceof K?p.ARRAY_BUFFER:this._body&&"object"==typeof this._body?p.JSON:p.TEXT},t.prototype.getBody=function(){switch(this.contentType){case p.JSON:case p.FORM:return this.text();case p.FORM_DATA:return this._body;case p.TEXT:return this.text();case p.BLOB:return this.blob();case p.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},t}(C);var H=function(){},W="object"==typeof window?window:H,q=W.FormData||H,G=W.Blob||H,K=W.ArrayBuffer||H;function z(e,t){return e.createConnection(t).response}function Q(e,t,n,r){var o=e;return t?o.merge(new V({method:t.method||n,url:t.url||r,search:t.search,params:t.params,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):o.merge(new V({method:n,url:r}))}var Y=function(){function e(e,t){this._backend=e,this._defaultOptions=t}return e.prototype.request=function(e,t){var n;if("string"==typeof e)n=z(this._backend,new B(Q(this._defaultOptions,t,u.Get,e)));else{if(!(e instanceof B))throw new Error("First argument must be a url string or Request instance.");n=z(this._backend,e)}return n},e.prototype.get=function(e,t){return this.request(new B(Q(this._defaultOptions,t,u.Get,e)))},e.prototype.post=function(e,t,n){return this.request(new B(Q(this._defaultOptions.merge(new V({body:t})),n,u.Post,e)))},e.prototype.put=function(e,t,n){return this.request(new B(Q(this._defaultOptions.merge(new V({body:t})),n,u.Put,e)))},e.prototype.delete=function(e,t){return this.request(new B(Q(this._defaultOptions,t,u.Delete,e)))},e.prototype.patch=function(e,t,n){return this.request(new B(Q(this._defaultOptions.merge(new V({body:t})),n,u.Patch,e)))},e.prototype.head=function(e,t){return this.request(new B(Q(this._defaultOptions,t,u.Head,e)))},e.prototype.options=function(e,t){return this.request(new B(Q(this._defaultOptions,t,u.Options,e)))},e}();Y.decorators=[{type:o.Injectable}],Y.ctorParameters=function(){return[{type:v},{type:V}]};var X=function(e){function t(t,n){return e.call(this,t,n)||this}return r.a(t,e),t.prototype.request=function(e,t){if("string"==typeof e&&(e=new B(Q(this._defaultOptions,t,u.Get,e))),!(e instanceof B))throw new Error("First argument must be a url string or Request instance.");if(e.method!==u.Get)throw new Error("JSONP requests must use GET request method.");return z(this._backend,e)},t}(Y);function $(){return new L}function J(e,t){return new Y(e,t)}X.decorators=[{type:o.Injectable}],X.ctorParameters=function(){return[{type:v},{type:V}]};var Z=function(){return function(){}}();Z.decorators=[{type:o.NgModule,args:[{providers:[{provide:Y,useFactory:J,deps:[F,V]},s,{provide:V,useClass:U},{provide:d,useClass:y},F,{provide:g,useFactory:$}]}]}],Z.ctorParameters=function(){return[]};var ee=function(){return function(){}}();ee.decorators=[{type:o.NgModule,args:[{providers:[{provide:X,useFactory:function(e,t){return new X(e,t)},deps:[k,V]},A,{provide:V,useClass:U},{provide:d,useClass:y},{provide:k,useClass:D}]}]}],ee.ctorParameters=function(){return[]};new o.Version("4.4.4")},GIjk:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(t,e),t}(Error);t.UnsubscriptionError=o},GjuT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerMessaging=a;var r=i(n("3AQ8")),o=i(n("xcnj"));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t={Messaging:r.default};e.INTERNAL.registerService("messaging",function(e){return self&&"ServiceWorkerGlobalScope"in self?new o.default(e):new r.default(e)},t)}a(i(n("OPUS")).default)},GoyY:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryParams=void 0;var r=n("nDT4"),o=n("Pu5a"),i=n("7Btn"),a=n("OfTL"),s=n("nicw"),u=n("Ku1h"),c=n("n2bm"),l=n("ScRC"),p=n("v1qo"),h=n("p0Bl"),f=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=a.PRIORITY_INDEX}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return(0,r.assert)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return(0,r.assert)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:o.MIN_NAME},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return(0,r.assert)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return(0,r.assert)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:o.MAX_NAME},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return(0,r.assert)(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==a.PRIORITY_INDEX&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_==a.PRIORITY_INDEX},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new c.IndexedFilter(this.getIndex()):this.hasLimit()?new l.LimitedFilter(this):new p.RangedFilter(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,o={};return this.isDefault()?o:(this.index_===a.PRIORITY_INDEX?t=n.PRIORITY_INDEX:this.index_===s.VALUE_INDEX?t=n.VALUE_INDEX:this.index_===i.KEY_INDEX?t=n.KEY_INDEX:((0,r.assert)(this.index_ instanceof u.PathIndex,"Unrecognized index type!"),t=this.index_.toString()),o[n.ORDER_BY]=(0,h.stringify)(t),this.startSet_&&(o[n.START_AT]=(0,h.stringify)(this.indexStartValue_),this.startNameSet_&&(o[n.START_AT]+=","+(0,h.stringify)(this.indexStartName_))),this.endSet_&&(o[n.END_AT]=(0,h.stringify)(this.indexEndValue_),this.endNameSet_&&(o[n.END_AT]+=","+(0,h.stringify)(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?o[n.LIMIT_TO_FIRST]=this.limit_:o[n.LIMIT_TO_LAST]=this.limit_),o)},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}();t.QueryParams=f},GzZx:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setDomainBase=function(e){e=e};t.domainBase="https://firebasestorage.googleapis.com",t.downloadBase="https://firebasestorage.googleapis.com",t.apiBaseUrl="/v0",t.apiUploadBaseUrl="/v0";t.configOption="storageBucket",t.shortMaxOperationRetryTime=6e4,t.defaultMaxOperationRetryTime=12e4,t.defaultMaxUploadRetryTime=6e4,t.minSafeInteger=-9007199254740991},HqEV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerStorage=h;var r,o=n("XzHM"),i=n("u3lF"),a=n("BIXH"),s=n("Mfcu"),u=n("1f+k"),c=n("OPUS");var l="storage";function p(e,t,n){return new u.Service(e,new a.XhrIoPool,n)}function h(e){var t={TaskState:i.TaskState,TaskEvent:i.TaskEvent,StringFormat:o.StringFormat,Storage:u.Service,Reference:s.Reference};e.INTERNAL.registerService(l,p,t,void 0,!0)}h(((r=c)&&r.__esModule?r:{default:r}).default)},ICpg:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},IZVw:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return r(t,e),t}(Error);t.ObjectUnsubscribedError=o},"J/eP":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("3j3K"),o=n("tvuF"),i=function(){function e(e,t,n){this.el=e,this.renderer=t,this.treeDraggedElement=n,this.onDropCallback=new r.EventEmitter,this.onDragOverCallback=new r.EventEmitter,this.onDragLeaveCallback=new r.EventEmitter,this.onDragEnterCallback=new r.EventEmitter,this._allowDrop=function(e,t){return!0}}return Object.defineProperty(e.prototype,"treeAllowDrop",{set:function(e){e instanceof Function?this._allowDrop=e:this._allowDrop=function(t,n){return e}},enumerable:!0,configurable:!0}),e.prototype.allowDrop=function(e){return this._allowDrop(this.treeDraggedElement.get(),e)},e.prototype.onDragOver=function(e){if(!this.allowDrop(e))return this.addDisabledClass();this.onDragOverCallback.emit({event:e,element:this.treeDraggedElement.get()}),e.preventDefault(),this.addClass()},e.prototype.onDragEnter=function(e){this.allowDrop(e)&&this.onDragEnterCallback.emit({event:e,element:this.treeDraggedElement.get()})},e.prototype.onDragLeave=function(e){if(!this.allowDrop(e))return this.removeDisabledClass();this.onDragLeaveCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.removeClass()},e.prototype.onDrop=function(e){this.allowDrop(e)&&(e.preventDefault(),this.onDropCallback.emit({event:e,element:this.treeDraggedElement.get()}),this.removeClass(),this.treeDraggedElement.set(null))},e.prototype.addClass=function(){this.renderer.setElementClass(this.el.nativeElement,"is-dragging-over",!0)},e.prototype.removeClass=function(){this.renderer.setElementClass(this.el.nativeElement,"is-dragging-over",!1)},e.prototype.addDisabledClass=function(){this.renderer.setElementClass(this.el.nativeElement,"is-dragging-over-disabled",!0)},e.prototype.removeDisabledClass=function(){this.renderer.setElementClass(this.el.nativeElement,"is-dragging-over-disabled",!1)},e.decorators=[{type:r.Directive,args:[{selector:"[treeDrop]"}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer},{type:o.a}]},e.propDecorators={onDropCallback:[{type:r.Output,args:["treeDrop"]}],onDragOverCallback:[{type:r.Output,args:["treeDropDragOver"]}],onDragLeaveCallback:[{type:r.Output,args:["treeDropDragLeave"]}],onDragEnterCallback:[{type:r.Output,args:["treeDropDragEnter"]}],treeAllowDrop:[{type:r.Input}],onDragOver:[{type:r.HostListener,args:["dragover",["$event"]]}],onDragEnter:[{type:r.HostListener,args:["dragenter",["$event"]]}],onDragLeave:[{type:r.HostListener,args:["dragleave",["$event"]]}],onDrop:[{type:r.HostListener,args:["drop",["$event"]]}]},e}()},J83w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListenComplete=void 0;var r=n("AHVm"),o=n("oo3z"),i=function(){function e(e,t){this.source=e,this.path=t,this.type=o.OperationType.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,r.Path.Empty):new e(this.source,this.path.popFront())},e}();t.ListenComplete=i},JCre:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.querystringDecode=t.querystring=void 0;var r=n("zHK/");t.querystring=function(e){var t=[];return(0,r.forEach)(e,function(e,n){Array.isArray(n)?n.forEach(function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach(function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}}),t}},JEIk:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChildChangeAccumulator=void 0;var r=n("zHK/"),o=n("uj1K"),i=n("nDT4"),a=function(){function e(){this.changeMap_={}}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;(0,i.assert)(t==o.Change.CHILD_ADDED||t==o.Change.CHILD_CHANGED||t==o.Change.CHILD_REMOVED,"Only child changes supported for tracking"),(0,i.assert)(".priority"!==n,"Only non-priority child changes can be tracked.");var a=(0,r.safeGet)(this.changeMap_,n);if(a){var s=a.type;if(t==o.Change.CHILD_ADDED&&s==o.Change.CHILD_REMOVED)this.changeMap_[n]=o.Change.childChangedChange(n,e.snapshotNode,a.snapshotNode);else if(t==o.Change.CHILD_REMOVED&&s==o.Change.CHILD_ADDED)delete this.changeMap_[n];else if(t==o.Change.CHILD_REMOVED&&s==o.Change.CHILD_CHANGED)this.changeMap_[n]=o.Change.childRemovedChange(n,a.oldSnap);else if(t==o.Change.CHILD_CHANGED&&s==o.Change.CHILD_ADDED)this.changeMap_[n]=o.Change.childAddedChange(n,e.snapshotNode);else{if(t!=o.Change.CHILD_CHANGED||s!=o.Change.CHILD_CHANGED)throw(0,i.assertionError)("Illegal combination of changes: "+e+" occurred after "+a);this.changeMap_[n]=o.Change.childChangedChange(n,e.snapshotNode,a.oldSnap)}}else this.changeMap_[n]=e},e.prototype.getChanges=function(){return(0,r.getValues)(this.changeMap_)},e}();t.ChildChangeAccumulator=a},Jd2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("3j3K"),o=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"TreeNode, tree-node",encapsulation:r.ViewEncapsulation.None,styles:[],template:'\n \n \n\n \n\n \n\n \n \n \n \n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={node:[{type:r.Input}],index:[{type:r.Input}],templates:[{type:r.Input}]},e}()},Ji1B:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("mmVS"),i=n("8GmM");t.observeOn=function(e,t){return void 0===t&&(t=0),this.lift(new a(e,t))};var a=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=a;var s=function(e){function t(t,n,r){void 0===r&&(r=0),e.call(this,t),this.scheduler=n,this.delay=r}return r(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new u(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(i.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(i.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(i.Notification.createComplete())},t}(o.Subscriber);t.ObserveOnSubscriber=s;var u=function(){return function(e,t){this.notification=e,this.destination=t}}();t.ObserveOnMessage=u},JkZN:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("Xajo"),i=n("1r8+"),a=n("aQl7"),s=n("hYBY"),u=n("U15Z"),c=n("Yh8Q"),l=n("FA5e"),p=n("cdmN"),h=n("rCTf"),f=n("Ji1B"),d=n("mbVC"),y=function(e){function t(t,n){e.call(this,null),this.ish=t,this.scheduler=n}return r(t,e),t.create=function(e,n){if(null!=e){if("function"==typeof e[d.observable])return e instanceof h.Observable&&!n?e:new t(e,n);if(o.isArray(e))return new c.ArrayObservable(e,n);if(a.isPromise(e))return new s.PromiseObservable(e,n);if("function"==typeof e[p.iterator]||"string"==typeof e)return new u.IteratorObservable(e,n);if(i.isArrayLike(e))return new l.ArrayLikeObservable(e,n)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")},t.prototype._subscribe=function(e){var t=this.ish,n=this.scheduler;return null==n?t[d.observable]().subscribe(e):t[d.observable]().subscribe(new f.ObserveOnSubscriber(e,n,0))},t}(h.Observable);t.FromObservable=y},Jukj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;var r=n("lmz0");t.base64={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof r.globalScope.atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],o=0;o>2,p=(3&i)<<4|s>>4,h=(15&s)<<2|c>>6,f=63&c;u||(f=64,a||(h=64)),r.push(n[l],n[p],n[h],n[f])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(function(e){for(var t=[],n=0,r=0;r255;)t[n++]=255&o,o>>=8;t[n++]=o}return t}(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){if(e.length<8192)return String.fromCharCode.apply(null,e);for(var t="",n=0;n>4;if(r.push(c),64!=s){var l=a<<4&240|s>>2;if(r.push(l),64!=u){var p=s<<6&192|u;r.push(p)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}}},KN8t:function(e,t,n){"use strict";n.d(t,"a",function(){return E}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return y}),n.d(t,"e",function(){return g}),n.d(t,"f",function(){return m}),n.d(t,"d",function(){return v});var r=n("TToO"),o=n("3j3K"),i=n("Qbdm"),a=n("Um43"),s=n("1GJ2"),u=function(e){function t(t,n){var r=e.call(this)||this;r._nextAnimationId=0;var i={id:"0",encapsulation:o.ViewEncapsulation.None,styles:[],data:{animation:[]}};return r._renderer=t.createRenderer(n.body,i),r}return r.a(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Object(a.e)(e):e;return p(this._renderer,null,t,"register",[n]),new c(t,this._renderer)},t}(a.b);u.decorators=[{type:o.Injectable}],u.ctorParameters=function(){return[{type:o.RendererFactory2},{type:void 0,decorators:[{type:o.Inject,args:[i.b]}]}]};var c=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return r.a(t,e),t.prototype.create=function(e,t){return new l(this._id,e,t||{},this._renderer)},t}(a.c),l=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n=0&&e0}).join("/");return 0===e.length?n:e+"/"+n},t.lastComponent=function(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}},Ku1h:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathIndex=void 0;var r,o=n("nDT4"),i=n("Pu5a"),a=n("sevV"),s=n("+G+d"),u=n("coin"),c=n("uGuS"),l=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,(0,o.assert)(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return l(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),o=n.compareTo(r);return 0===o?(0,i.nameCompare)(e.name,t.name):o},t.prototype.makePost=function(e,t){var n=(0,c.nodeFromJSON)(e),r=s.ChildrenNode.EMPTY_NODE.updateChild(this.indexPath_,n);return new u.NamedNode(t,r)},t.prototype.maxPost=function(){var e=s.ChildrenNode.EMPTY_NODE.updateChild(this.indexPath_,s.MAX_NODE);return new u.NamedNode(i.MAX_NAME,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(a.Index);t.PathIndex=p},L3Eg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewProcessor=t.ProcessorResult=void 0;var r=n("oo3z"),o=n("nDT4"),i=n("JEIk"),a=n("uj1K"),s=n("+G+d"),u=n("7Btn"),c=n("oltN"),l=n("AHVm"),p=n("iHWZ"),h=function(){return function(e,t){this.viewCache=e,this.changes=t}}();t.ProcessorResult=h;var f=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){(0,o.assert)(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),(0,o.assert)(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,a,s){var u,c,l=new i.ChildChangeAccumulator;if(n.type===r.OperationType.OVERWRITE){var p=n;p.source.fromUser?u=this.applyUserOverwrite_(t,p.path,p.snap,a,s,l):((0,o.assert)(p.source.fromServer,"Unknown source."),c=p.source.tagged||t.getServerCache().isFiltered()&&!p.path.isEmpty(),u=this.applyServerOverwrite_(t,p.path,p.snap,a,s,c,l))}else if(n.type===r.OperationType.MERGE){var f=n;f.source.fromUser?u=this.applyUserMerge_(t,f.path,f.children,a,s,l):((0,o.assert)(f.source.fromServer,"Unknown source."),c=f.source.tagged||t.getServerCache().isFiltered(),u=this.applyServerMerge_(t,f.path,f.children,a,s,c,l))}else if(n.type===r.OperationType.ACK_USER_WRITE){var d=n;u=d.revert?this.revertUserWrite_(t,d.path,a,s,l):this.ackUserWrite_(t,d.path,d.affectedTree,a,s,l)}else{if(n.type!==r.OperationType.LISTEN_COMPLETE)throw(0,o.assertionError)("Unknown operation type: "+n.type);u=this.listenComplete_(t,n.path,a,l)}var y=l.getChanges();return e.maybeAddValueEvent_(t,u,y),new h(u,y)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var o=r.getNode().isLeafNode()||r.getNode().isEmpty(),i=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||o&&!r.getNode().equals(i)||!r.getNode().getPriority().equals(i.getPriority()))&&n.push(a.Change.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var a=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var u=void 0,c=void 0;if(t.isEmpty())if((0,o.assert)(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var l=e.getCompleteServerSnap(),p=l instanceof s.ChildrenNode?l:s.ChildrenNode.EMPTY_NODE,h=n.calcCompleteEventChildren(p);u=this.filter_.updateFullNode(e.getEventCache().getNode(),h,i)}else{var f=n.calcCompleteEventCache(e.getCompleteServerSnap());u=this.filter_.updateFullNode(e.getEventCache().getNode(),f,i)}else{var d=t.getFront();if(".priority"==d){(0,o.assert)(1==t.getLength(),"Can't have a priority with additional path components");var y=a.getNode();c=e.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(t,y,c);u=null!=v?this.filter_.updatePriority(y,v):a.getNode()}else{var g=t.popFront(),m=void 0;if(a.isCompleteForChild(d)){c=e.getServerCache().getNode();var _=n.calcEventCacheAfterServerOverwrite(t,a.getNode(),c);m=null!=_?a.getNode().getImmediateChild(d).updateChild(g,_):a.getNode().getImmediateChild(d)}else m=n.calcCompleteChild(d,e.getServerCache());u=null!=m?this.filter_.updateChild(a.getNode(),d,m,g,r,i):a.getNode()}}return e.updateEventSnap(u,a.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,o,i,a){var s,u=e.getServerCache(),c=i?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=c.updateFullNode(u.getNode(),n,null);else if(c.filtersNodes()&&!u.isFiltered()){var l=u.getNode().updateChild(t,n);s=c.updateFullNode(u.getNode(),l,null)}else{var h=t.getFront();if(!u.isCompleteForPath(t)&&t.getLength()>1)return e;var f=t.popFront(),d=u.getNode().getImmediateChild(h).updateChild(f,n);s=".priority"==h?c.updatePriority(u.getNode(),d):c.updateChild(u.getNode(),h,d,f,p.NO_COMPLETE_CHILD_SOURCE,null)}var y=e.updateServerSnap(s,u.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),v=new p.WriteTreeCompleteChildSource(r,y,o);return this.generateEventCacheAfterServerEvent_(y,t,r,v,a)},e.prototype.applyUserOverwrite_=function(e,t,n,r,o,i){var a,u,c=e.getEventCache(),l=new p.WriteTreeCompleteChildSource(r,e,o);if(t.isEmpty())u=this.filter_.updateFullNode(e.getEventCache().getNode(),n,i),a=e.updateEventSnap(u,!0,this.filter_.filtersNodes());else{var h=t.getFront();if(".priority"===h)u=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(u,c.isFullyInitialized(),c.isFiltered());else{var f=t.popFront(),d=c.getNode().getImmediateChild(h),y=void 0;if(f.isEmpty())y=n;else{var v=l.getCompleteChild(h);y=null!=v?".priority"===f.getBack()&&v.getChild(f.parent()).isEmpty()?v:v.updateChild(f,n):s.ChildrenNode.EMPTY_NODE}if(d.equals(y))a=e;else{var g=this.filter_.updateChild(c.getNode(),h,y,f,l,i);a=e.updateEventSnap(g,c.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,o,i,a){var s=this,u=t;return r.foreach(function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())&&(u=s.applyUserOverwrite_(u,l,c,o,i,a))}),r.foreach(function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())||(u=s.applyUserOverwrite_(u,l,c,o,i,a))}),u},e.prototype.applyMerge_=function(e,t){return t.foreach(function(t,n){e=e.updateChild(t,n)}),e},e.prototype.applyServerMerge_=function(e,t,n,r,o,i,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var u,p=e;u=t.isEmpty()?n:c.ImmutableTree.Empty.setTree(t,n);var h=e.getServerCache().getNode();return u.children.inorderTraversal(function(t,n){if(h.hasChild(t)){var u=e.getServerCache().getNode().getImmediateChild(t),c=s.applyMerge_(u,n);p=s.applyServerOverwrite_(p,new l.Path(t),c,r,o,i,a)}}),u.children.inorderTraversal(function(t,n){var u=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!h.hasChild(t)&&!u){var c=e.getServerCache().getNode().getImmediateChild(t),f=s.applyMerge_(c,n);p=s.applyServerOverwrite_(p,new l.Path(t),f,r,o,i,a)}}),p},e.prototype.ackUserWrite_=function(e,t,n,r,o,i){if(null!=r.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,o,a,i);if(t.isEmpty()){var p=c.ImmutableTree.Empty;return s.getNode().forEachChild(u.KEY_INDEX,function(e,t){p=p.set(new l.Path(e),t)}),this.applyServerMerge_(e,t,p,r,o,a,i)}return e}var h=c.ImmutableTree.Empty;return n.foreach(function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(h=h.set(e,s.getNode().getChild(r)))}),this.applyServerMerge_(e,t,h,r,o,a,i)},e.prototype.listenComplete_=function(e,t,n,r){var o=e.getServerCache(),i=e.updateServerSnap(o.getNode(),o.isFullyInitialized()||t.isEmpty(),o.isFiltered());return this.generateEventCacheAfterServerEvent_(i,t,n,p.NO_COMPLETE_CHILD_SOURCE,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var a;if(null!=n.shadowingWrite(t))return e;var u=new p.WriteTreeCompleteChildSource(n,e,r),c=e.getEventCache().getNode(),h=void 0;if(t.isEmpty()||".priority"===t.getFront()){var f=void 0;if(e.getServerCache().isFullyInitialized())f=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var d=e.getServerCache().getNode();(0,o.assert)(d instanceof s.ChildrenNode,"serverChildren would be complete if leaf node"),f=n.calcCompleteEventChildren(d)}f=f,h=this.filter_.updateFullNode(c,f,i)}else{var y=t.getFront(),v=n.calcCompleteChild(y,e.getServerCache());null==v&&e.getServerCache().isCompleteForChild(y)&&(v=c.getImmediateChild(y)),(h=null!=v?this.filter_.updateChild(c,y,v,t.popFront(),u,i):e.getEventCache().getNode().hasChild(y)?this.filter_.updateChild(c,y,s.ChildrenNode.EMPTY_NODE,t.popFront(),u,i):c).isEmpty()&&e.getServerCache().isFullyInitialized()&&(a=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(h=this.filter_.updateFullNode(h,a,i))}return a=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(l.Path.Empty),e.updateEventSnap(h,a,this.filter_.filtersNodes())},e}();t.ViewProcessor=f},Lb4t:function(e,t,n){"use strict";var r,o=n("3j3K"),i=n("XneF"),a=n("y986"),s=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.templateRef=t,o.viewContainer=n,o.renderer=r,o}return s(t,e),t.prototype.autoDetect=function(e){console.warn("mobxAutorunSync is deprected, please use mobxAutorun instead - it's doing exactly the same thing"),this.dispose=Object(a.b)(function(){e.detectChanges()})},t.decorators=[{type:o.Directive,args:[{selector:"[mobxAutorunSync]"}]}],t.ctorParameters=function(){return[{type:o.TemplateRef},{type:o.ViewContainerRef},{type:o.Renderer}]},t}(i.a),c=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.templateRef=t,o.viewContainer=n,o.renderer=r,o}return c(t,e),t.prototype.autoDetect=function(e){this.dispose=Object(a.h)(this.mobxReaction,function(){e.detectChanges()},{fireImmediately:!0})},t.decorators=[{type:o.Directive,args:[{selector:"[mobxReaction]"}]}],t.ctorParameters=function(){return[{type:o.TemplateRef},{type:o.ViewContainerRef},{type:o.Renderer}]},t.propDecorators={mobxReaction:[{type:o.Input}]},t}(i.a);n.d(t,"a",function(){return h}),t.b=function(){for(var e=[],t=0;t>>1,U=[["ary",S],["bind",g],["bindKey",m],["curry",b],["curryRight",w],["flip",T],["partial",E],["partialRight",C],["rearg",O]],B="[object Arguments]",H="[object Array]",W="[object AsyncFunction]",q="[object Boolean]",G="[object Date]",K="[object DOMException]",z="[object Error]",Q="[object Function]",Y="[object GeneratorFunction]",X="[object Map]",$="[object Number]",J="[object Null]",Z="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",pe="[object Float64Array]",he="[object Int8Array]",fe="[object Int16Array]",de="[object Int32Array]",ye="[object Uint8Array]",ve="[object Uint8ClampedArray]",ge="[object Uint16Array]",me="[object Uint32Array]",_e=/\b__p \+= '';/g,be=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,Se=RegExp(Ee.source),Oe=RegExp(Ce.source),Te=/<%-([\s\S]+?)%>/g,Pe=/<%([\s\S]+?)%>/g,Ne=/<%=([\s\S]+?)%>/g,Ae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ie=/^\w*$/,Re=/^\./,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ke=/[\\^$.*+?()[\]{}|]/g,De=RegExp(ke.source),je=/^\s+|\s+$/g,Me=/^\s+/,Le=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ve=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,He=/\\(\\)?/g,We=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Ge=/^[-+]0x[0-9a-f]+$/i,Ke=/^0b[01]+$/i,ze=/^\[object .+?Constructor\]$/,Qe=/^0o[0-7]+$/i,Ye=/^(?:0|[1-9]\d*)$/,Xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tt="[\\ud800-\\udfff]",nt="["+et+"]",rt="["+Ze+"]",ot="\\d+",it="[\\u2700-\\u27bf]",at="[a-z\\xdf-\\xf6\\xf8-\\xff]",st="[^\\ud800-\\udfff"+et+ot+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ut="\\ud83c[\\udffb-\\udfff]",ct="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",pt="[\\ud800-\\udbff][\\udc00-\\udfff]",ht="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ft="(?:"+at+"|"+st+")",dt="(?:"+ht+"|"+st+")",yt="(?:"+rt+"|"+ut+")"+"?",vt="[\\ufe0e\\ufe0f]?"+yt+("(?:\\u200d(?:"+[ct,lt,pt].join("|")+")[\\ufe0e\\ufe0f]?"+yt+")*"),gt="(?:"+[it,lt,pt].join("|")+")"+vt,mt="(?:"+[ct+rt+"?",rt,lt,pt,tt].join("|")+")",_t=RegExp("['\u2019]","g"),bt=RegExp(rt,"g"),wt=RegExp(ut+"(?="+ut+")|"+mt+vt,"g"),Et=RegExp([ht+"?"+at+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[nt,ht,"$"].join("|")+")",dt+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[nt,ht+ft,"$"].join("|")+")",ht+"?"+ft+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ht+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",ot,gt].join("|"),"g"),Ct=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tt=-1,Pt={};Pt[le]=Pt[pe]=Pt[he]=Pt[fe]=Pt[de]=Pt[ye]=Pt[ve]=Pt[ge]=Pt[me]=!0,Pt[B]=Pt[H]=Pt[ue]=Pt[q]=Pt[ce]=Pt[G]=Pt[z]=Pt[Q]=Pt[X]=Pt[$]=Pt[Z]=Pt[te]=Pt[ne]=Pt[re]=Pt[ae]=!1;var Nt={};Nt[B]=Nt[H]=Nt[ue]=Nt[ce]=Nt[q]=Nt[G]=Nt[le]=Nt[pe]=Nt[he]=Nt[fe]=Nt[de]=Nt[X]=Nt[$]=Nt[Z]=Nt[te]=Nt[ne]=Nt[re]=Nt[oe]=Nt[ye]=Nt[ve]=Nt[ge]=Nt[me]=!0,Nt[z]=Nt[Q]=Nt[ae]=!1;var At={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},It=parseFloat,Rt=parseInt,xt="object"==typeof e&&e&&e.Object===Object&&e,kt="object"==typeof self&&self&&self.Object===Object&&self,Dt=xt||kt||Function("return this")(),jt="object"==typeof t&&t&&!t.nodeType&&t,Mt=jt&&"object"==typeof r&&r&&!r.nodeType&&r,Lt=Mt&&Mt.exports===jt,Ft=Lt&&xt.process,Vt=function(){try{return Ft&&Ft.binding&&Ft.binding("util")}catch(e){}}(),Ut=Vt&&Vt.isArrayBuffer,Bt=Vt&&Vt.isDate,Ht=Vt&&Vt.isMap,Wt=Vt&&Vt.isRegExp,qt=Vt&&Vt.isSet,Gt=Vt&&Vt.isTypedArray;function Kt(e,t){return e.set(t[0],t[1]),e}function zt(e,t){return e.add(t),e}function Qt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function tn(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function Sn(e,t){for(var n=e.length;n--&&pn(t,e[n],0)>-1;);return n}var On=vn({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Tn=vn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Pn(e){return"\\"+At[e]}function Nn(e){return Ct.test(e)}function An(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function In(e,t){return function(n){return e(t(n))}}function Rn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Ln=function e(t){var n,r=(t=null==t?Dt:Ln.defaults(Dt.Object(),t,Ln.pick(Dt,Ot))).Array,o=t.Date,Ze=t.Error,et=t.Function,tt=t.Math,nt=t.Object,rt=t.RegExp,ot=t.String,it=t.TypeError,at=r.prototype,st=et.prototype,ut=nt.prototype,ct=t["__core-js_shared__"],lt=st.toString,pt=ut.hasOwnProperty,ht=0,ft=(n=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",dt=ut.toString,yt=lt.call(nt),vt=Dt._,gt=rt("^"+lt.call(pt).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Lt?t.Buffer:i,wt=t.Symbol,Ct=t.Uint8Array,At=mt?mt.allocUnsafe:i,xt=In(nt.getPrototypeOf,nt),kt=nt.create,jt=ut.propertyIsEnumerable,Mt=at.splice,Ft=wt?wt.isConcatSpreadable:i,Vt=wt?wt.iterator:i,un=wt?wt.toStringTag:i,vn=function(){try{var e=Hi(nt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Fn=t.clearTimeout!==Dt.clearTimeout&&t.clearTimeout,Vn=o&&o.now!==Dt.Date.now&&o.now,Un=t.setTimeout!==Dt.setTimeout&&t.setTimeout,Bn=tt.ceil,Hn=tt.floor,Wn=nt.getOwnPropertySymbols,qn=mt?mt.isBuffer:i,Gn=t.isFinite,Kn=at.join,zn=In(nt.keys,nt),Qn=tt.max,Yn=tt.min,Xn=o.now,$n=t.parseInt,Jn=tt.random,Zn=at.reverse,er=Hi(t,"DataView"),tr=Hi(t,"Map"),nr=Hi(t,"Promise"),rr=Hi(t,"Set"),or=Hi(t,"WeakMap"),ir=Hi(nt,"create"),ar=or&&new or,sr={},ur=fa(er),cr=fa(tr),lr=fa(nr),pr=fa(rr),hr=fa(or),fr=wt?wt.prototype:i,dr=fr?fr.valueOf:i,yr=fr?fr.toString:i;function vr(e){if(Is(e)&&!_s(e)&&!(e instanceof br)){if(e instanceof _r)return e;if(pt.call(e,"__wrapped__"))return da(e)}return new _r(e)}var gr=function(){function e(){}return function(t){if(!As(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function mr(){}function _r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function br(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Fr(e,t,n,r,o,a){var s,u=t&h,c=t&f,l=t&d;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!As(e))return e;var p=_s(e);if(p){if(s=function(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&pt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ai(e,s)}else{var y=Gi(e),v=y==Q||y==Y;if(Cs(e))return ei(e,u);if(y==Z||y==B||v&&!o){if(s=c||v?{}:zi(e),!u)return c?function(e,t){return si(e,qi(e),t)}(e,function(e,t){return e&&si(t,su(t),e)}(s,e)):function(e,t){return si(e,Wi(e),t)}(e,Dr(s,e))}else{if(!Nt[y])return o?e:{};s=function(e,t,n,r){var o,i,a,s=e.constructor;switch(t){case ue:return ti(e);case q:case G:return new s(+e);case ce:return function(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case le:case pe:case he:case fe:case de:case ye:case ve:case ge:case me:return ni(e,r);case X:return function(e,t,n){return on(t?n(An(e),h):An(e),Kt,new e.constructor)}(e,r,n);case $:case re:return new s(e);case te:return(a=new(i=e).constructor(i.source,qe.exec(i))).lastIndex=i.lastIndex,a;case ne:return function(e,t,n){return on(t?n(xn(e),h):xn(e),zt,new e.constructor)}(e,r,n);case oe:return o=e,dr?nt(dr.call(o)):{}}}(e,y,Fr,u)}}a||(a=new Or);var g=a.get(e);if(g)return g;a.set(e,s);var m=p?i:(l?c?ji:Di:c?su:au)(e);return Xt(m||e,function(r,o){m&&(r=e[o=r]),Rr(s,o,Fr(r,t,n,o,e,a))}),s}function Vr(e,t,n){var r=n.length;if(null==e)return!r;for(e=nt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Ur(e,t,n){if("function"!=typeof e)throw new it(u);return aa(function(){e.apply(i,n)},t)}function Br(e,t,n,r){var o=-1,i=en,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=nn(t,bn(n))),r?(i=tn,s=!1):t.length>=a&&(i=En,s=!1,t=new Sr(t));e:for(;++o-1},Er.prototype.set=function(e,t){var n=this.__data__,r=xr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Cr.prototype.clear=function(){this.size=0,this.__data__={hash:new wr,map:new(tr||Er),string:new wr}},Cr.prototype.delete=function(e){var t=Ui(this,e).delete(e);return this.size-=t?1:0,t},Cr.prototype.get=function(e){return Ui(this,e).get(e)},Cr.prototype.has=function(e){return Ui(this,e).has(e)},Cr.prototype.set=function(e,t){var n=Ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Sr.prototype.add=Sr.prototype.push=function(e){return this.__data__.set(e,c),this},Sr.prototype.has=function(e){return this.__data__.has(e)},Or.prototype.clear=function(){this.__data__=new Er,this.size=0},Or.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Or.prototype.get=function(e){return this.__data__.get(e)},Or.prototype.has=function(e){return this.__data__.has(e)},Or.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Er){var r=n.__data__;if(!tr||r.length0&&n(s)?t>1?zr(s,t-1,n,r,o):rn(o,s):r||(o[o.length]=s)}return o}var Qr=pi(),Yr=pi(!0);function Xr(e,t){return e&&Qr(e,t,au)}function $r(e,t){return e&&Yr(e,t,au)}function Jr(e,t){return Zt(t,function(t){return Ts(e[t])})}function Zr(e,t){for(var n=0,r=(t=Xo(t,e)).length;null!=e&&nt}function ro(e,t){return null!=e&&pt.call(e,t)}function oo(e,t){return null!=e&&t in nt(e)}function io(e,t,n){for(var o=n?tn:en,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,p=[];u--;){var h=e[u];u&&t&&(h=nn(h,bn(t))),l=Yn(h.length,l),c[u]=!n&&(t||a>=120&&h.length>=120)?new Sr(u&&h):i}h=e[0];var f=-1,d=c[0];e:for(;++f=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function Eo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Mt.call(s,u,1),Mt.call(e,u,1);return e}function So(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Yi(o)?Mt.call(e,o,1):Ho(e,o)}}return e}function Oo(e,t){return e+Hn(Jn()*(t-e+1))}function To(e,t){var n="";if(!e||t<1||t>D)return n;do{t%2&&(n+=e),(t=Hn(t/2))&&(e+=e)}while(t);return n}function Po(e,t){return sa(ra(e,t,xu),e+"")}function No(e){return Pr(yu(e))}function Ao(e,t){var n=yu(e);return la(n,Lr(t,0,n.length))}function Io(e,t,n,r){if(!As(e))return e;for(var o=-1,a=(t=Xo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Ls(a)&&(n?a<=t:a=a){var l=t?null:Ti(e);if(l)return xn(l);s=!1,o=En,c=new Sr}else c=t?[]:u;e:for(;++r=r?e:Do(e,t,n)}var Zo=Fn||function(e){return Dt.clearTimeout(e)};function ei(e,t){if(t)return e.slice();var n=e.length,r=At?At(n):new e.constructor(n);return e.copy(r),r}function ti(e){var t=new e.constructor(e.byteLength);return new Ct(t).set(new Ct(e)),t}function ni(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ri(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Ls(e),s=t!==i,u=null===t,c=t==t,l=Ls(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Xi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=nt(t);++r-1?o[a?t[s]:s]:i}}function vi(e){return ki(function(t){var n=t.length,r=n,o=_r.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new it(u);if(o&&!s&&"wrapper"==Li(a))var s=new _r([],!0)}for(r=s?r:n;++r1&&b.reverse(),h&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var p=-1,h=!0,f=n&v?new Sr:i;for(a.set(e,t),a.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(U,function(n){var r="_."+n[0];t&n[1]&&!en(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ve);return t?t[1].split(Ue):[]}(r),n)))}function ca(e){var t=0,n=0;return function(){var r=Xn(),o=I-(r-n);if(n=r,o>0){if(++t>=A)return arguments[0]}else t=0;return e.apply(i,arguments)}}function la(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return Da(e,n="function"==typeof n?(e.pop(),n):i)});function Ba(e){var t=vr(e);return t.__chain__=!0,t}function Ha(e,t){return t(e)}var Wa=ki(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Mr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof br&&Yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ha,args:[o],thisArg:i}),new _r(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var qa=ui(function(e,t,n){pt.call(e,n)?++e[n]:jr(e,n,1)});var Ga=yi(ma),Ka=yi(_a);function za(e,t){return(_s(e)?Xt:Hr)(e,Vi(t,3))}function Qa(e,t){return(_s(e)?$t:Wr)(e,Vi(t,3))}var Ya=ui(function(e,t,n){pt.call(e,n)?e[n].push(t):jr(e,n,[t])});var Xa=Po(function(e,t,n){var o=-1,i="function"==typeof t,a=ws(e)?r(e.length):[];return Hr(e,function(e){a[++o]=i?Qt(t,e,n):ao(e,t,n)}),a}),$a=ui(function(e,t,n){jr(e,n,t)});function Ja(e,t){return(_s(e)?nn:vo)(e,Vi(t,3))}var Za=ui(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var es=Po(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Xi(e,t[0],t[1])?t=[]:n>2&&Xi(t[0],t[1],t[2])&&(t=[t[0]]),wo(e,zr(t,1),[])}),ts=Vn||function(){return Dt.Date.now()};function ns(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ni(e,S,i,i,i,i,t)}function rs(e,t){var n;if("function"!=typeof t)throw new it(u);return e=Ws(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var os=Po(function(e,t,n){var r=g;if(n.length){var o=Rn(n,Fi(os));r|=E}return Ni(e,r,t,n,o)}),is=Po(function(e,t,n){var r=g|m;if(n.length){var o=Rn(n,Fi(is));r|=E}return Ni(t,r,e,n,o)});function as(e,t,n){var r,o,a,s,c,l,p=0,h=!1,f=!1,d=!0;if("function"!=typeof e)throw new it(u);function y(t){var n=r,a=o;return r=o=i,p=t,s=e.apply(a,n)}function v(e){var n=e-l;return l===i||n>=t||n<0||f&&e-p>=a}function g(){var e=ts();if(v(e))return m(e);c=aa(g,function(e){var n=t-(e-l);return f?Yn(n,a-(e-p)):n}(e))}function m(e){return c=i,d&&r?y(e):(r=o=i,s)}function _(){var e=ts(),n=v(e);if(r=arguments,o=this,l=e,n){if(c===i)return function(e){return p=e,c=aa(g,t),h?y(e):s}(l);if(f)return c=aa(g,t),y(l)}return c===i&&(c=aa(g,t)),s}return t=Gs(t)||0,As(n)&&(h=!!n.leading,a=(f="maxWait"in n)?Qn(Gs(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),_.cancel=function(){c!==i&&Zo(c),p=0,r=l=o=c=i},_.flush=function(){return c===i?s:m(ts())},_}var ss=Po(function(e,t){return Ur(e,1,t)}),us=Po(function(e,t,n){return Ur(e,Gs(t)||0,n)});function cs(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(cs.Cache||Cr),n}function ls(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}cs.Cache=Cr;var ps=$o(function(e,t){var n=(t=1==t.length&&_s(t[0])?nn(t[0],bn(Vi())):nn(zr(t,1),bn(Vi()))).length;return Po(function(r){for(var o=-1,i=Yn(r.length,n);++o=t}),ms=so(function(){return arguments}())?so:function(e){return Is(e)&&pt.call(e,"callee")&&!jt.call(e,"callee")},_s=r.isArray,bs=Ut?bn(Ut):function(e){return Is(e)&&to(e)==ue};function ws(e){return null!=e&&Ns(e.length)&&!Ts(e)}function Es(e){return Is(e)&&ws(e)}var Cs=qn||Gu,Ss=Bt?bn(Bt):function(e){return Is(e)&&to(e)==G};function Os(e){if(!Is(e))return!1;var t=to(e);return t==z||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!ks(e)}function Ts(e){if(!As(e))return!1;var t=to(e);return t==Q||t==Y||t==W||t==ee}function Ps(e){return"number"==typeof e&&e==Ws(e)}function Ns(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Is(e){return null!=e&&"object"==typeof e}var Rs=Ht?bn(Ht):function(e){return Is(e)&&Gi(e)==X};function xs(e){return"number"==typeof e||Is(e)&&to(e)==$}function ks(e){if(!Is(e)||to(e)!=Z)return!1;var t=xt(e);if(null===t)return!0;var n=pt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&<.call(n)==yt}var Ds=Wt?bn(Wt):function(e){return Is(e)&&to(e)==te};var js=qt?bn(qt):function(e){return Is(e)&&Gi(e)==ne};function Ms(e){return"string"==typeof e||!_s(e)&&Is(e)&&to(e)==re}function Ls(e){return"symbol"==typeof e||Is(e)&&to(e)==oe}var Fs=Gt?bn(Gt):function(e){return Is(e)&&Ns(e.length)&&!!Pt[to(e)]};var Vs=Ci(yo),Us=Ci(function(e,t){return e<=t});function Bs(e){if(!e)return[];if(ws(e))return Ms(e)?jn(e):ai(e);if(Vt&&e[Vt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Vt]());var t=Gi(e);return(t==X?An:t==ne?xn:yu)(e)}function Hs(e){return e?(e=Gs(e))===k||e===-k?(e<0?-1:1)*j:e==e?e:0:0===e?e:0}function Ws(e){var t=Hs(e),n=t%1;return t==t?n?t-n:t:0}function qs(e){return e?Lr(Ws(e),0,L):0}function Gs(e){if("number"==typeof e)return e;if(Ls(e))return M;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=Ke.test(e);return n||Qe.test(e)?Rt(e.slice(2),n?2:8):Ge.test(e)?M:+e}function Ks(e){return si(e,su(e))}function zs(e){return null==e?"":Uo(e)}var Qs=ci(function(e,t){if(ea(t)||ws(t))si(t,au(t),e);else for(var n in t)pt.call(t,n)&&Rr(e,n,t[n])}),Ys=ci(function(e,t){si(t,su(t),e)}),Xs=ci(function(e,t,n,r){si(t,su(t),e,r)}),$s=ci(function(e,t,n,r){si(t,au(t),e,r)}),Js=ki(Mr);var Zs=Po(function(e){return e.push(i,Ai),Qt(Xs,i,e)}),eu=Po(function(e){return e.push(i,Ii),Qt(cu,i,e)});function tu(e,t,n){var r=null==e?i:Zr(e,t);return r===i?n:r}function nu(e,t){return null!=e&&Ki(e,t,oo)}var ru=mi(function(e,t,n){e[t]=n},Au(xu)),ou=mi(function(e,t,n){pt.call(e,t)?e[t].push(n):e[t]=[n]},Vi),iu=Po(ao);function au(e){return ws(e)?Tr(e):ho(e)}function su(e){return ws(e)?Tr(e,!0):fo(e)}var uu=ci(function(e,t,n){_o(e,t,n)}),cu=ci(function(e,t,n,r){_o(e,t,n,r)}),lu=ki(function(e,t){var n={};if(null==e)return n;var r=!1;t=nn(t,function(t){return t=Xo(t,e),r||(r=t.length>1),t}),si(e,ji(e),n),r&&(n=Fr(n,h|f|d,Ri));for(var o=t.length;o--;)Ho(n,t[o]);return n});var pu=ki(function(e,t){return null==e?{}:function(e,t){return Eo(e,t,function(t,n){return nu(e,n)})}(e,t)});function hu(e,t){if(null==e)return{};var n=nn(ji(e),function(e){return[e]});return t=Vi(t),Eo(e,n,function(e,n){return t(e,n[0])})}var fu=Pi(au),du=Pi(su);function yu(e){return null==e?[]:wn(e,au(e))}var vu=fi(function(e,t,n){return t=t.toLowerCase(),e+(n?gu(t):t)});function gu(e){return Ou(zs(e).toLowerCase())}function mu(e){return(e=zs(e))&&e.replace(Xe,On).replace(bt,"")}var _u=fi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bu=fi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),wu=hi("toLowerCase");var Eu=fi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var Cu=fi(function(e,t,n){return e+(n?" ":"")+Ou(t)});var Su=fi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ou=hi("toUpperCase");function Tu(e,t,n){return e=zs(e),(t=n?i:t)===i?function(e){return St.test(e)}(e)?function(e){return e.match(Et)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Pu=Po(function(e,t){try{return Qt(e,i,t)}catch(e){return Os(e)?e:new Ze(e)}}),Nu=ki(function(e,t){return Xt(t,function(t){t=ha(t),jr(e,t,os(e[t],e))}),e});function Au(e){return function(){return e}}var Iu=vi(),Ru=vi(!0);function xu(e){return e}function ku(e){return po("function"==typeof e?e:Fr(e,h))}var Du=Po(function(e,t){return function(n){return ao(n,e,t)}}),ju=Po(function(e,t){return function(n){return ao(e,n,t)}});function Mu(e,t,n){var r=au(t),o=Jr(t,r);null!=n||As(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Jr(t,au(t)));var i=!(As(n)&&"chain"in n&&!n.chain),a=Ts(e);return Xt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ai(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,rn([this.value()],arguments))})}),e}function Lu(){}var Fu=bi(nn),Vu=bi(Jt),Uu=bi(sn);function Bu(e){return $i(e)?yn(ha(e)):function(e){return function(t){return Zr(t,e)}}(e)}var Hu=Ei(),Wu=Ei(!0);function qu(){return[]}function Gu(){return!1}var Ku=_i(function(e,t){return e+t},0),zu=Oi("ceil"),Qu=_i(function(e,t){return e/t},1),Yu=Oi("floor");var Xu,$u=_i(function(e,t){return e*t},1),Ju=Oi("round"),Zu=_i(function(e,t){return e-t},0);return vr.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=Ws(e),function(){if(--e<1)return t.apply(this,arguments)}},vr.ary=ns,vr.assign=Qs,vr.assignIn=Ys,vr.assignInWith=Xs,vr.assignWith=$s,vr.at=Js,vr.before=rs,vr.bind=os,vr.bindAll=Nu,vr.bindKey=is,vr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return _s(e)?e:[e]},vr.chain=Ba,vr.chunk=function(e,t,n){t=(n?Xi(e,t,n):t===i)?1:Qn(Ws(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(Bn(o/t));ao?0:o+n),(r=r===i||r>o?o:Ws(r))<0&&(r+=o),r=n>r?0:qs(r);n>>0)?(e=zs(e))&&("string"==typeof t||null!=t&&!Ds(t))&&!(t=Uo(t))&&Nn(e)?Jo(jn(e),0,n):e.split(t,n):[]},vr.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:Qn(Ws(t),0),Po(function(n){var r=n[t],o=Jo(n,0,t);return r&&rn(o,r),Qt(e,this,o)})},vr.tail=function(e){var t=null==e?0:e.length;return t?Do(e,1,t):[]},vr.take=function(e,t,n){return e&&e.length?Do(e,0,(t=n||t===i?1:Ws(t))<0?0:t):[]},vr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Do(e,(t=r-(t=n||t===i?1:Ws(t)))<0?0:t,r):[]},vr.takeRightWhile=function(e,t){return e&&e.length?qo(e,Vi(t,3),!1,!0):[]},vr.takeWhile=function(e,t){return e&&e.length?qo(e,Vi(t,3)):[]},vr.tap=function(e,t){return t(e),e},vr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new it(u);return As(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),as(e,t,{leading:r,maxWait:t,trailing:o})},vr.thru=Ha,vr.toArray=Bs,vr.toPairs=fu,vr.toPairsIn=du,vr.toPath=function(e){return _s(e)?nn(e,ha):Ls(e)?[e]:ai(pa(zs(e)))},vr.toPlainObject=Ks,vr.transform=function(e,t,n){var r=_s(e),o=r||Cs(e)||Fs(e);if(t=Vi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:As(e)&&Ts(i)?gr(xt(e)):{}}return(o?Xt:Xr)(e,function(e,r,o){return t(n,e,r,o)}),n},vr.unary=function(e){return ns(e,1)},vr.union=Ia,vr.unionBy=Ra,vr.unionWith=xa,vr.uniq=function(e){return e&&e.length?Bo(e):[]},vr.uniqBy=function(e,t){return e&&e.length?Bo(e,Vi(t,2)):[]},vr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Bo(e,i,t):[]},vr.unset=function(e,t){return null==e||Ho(e,t)},vr.unzip=ka,vr.unzipWith=Da,vr.update=function(e,t,n){return null==e?e:Wo(e,t,Yo(n))},vr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Wo(e,t,Yo(n),r)},vr.values=yu,vr.valuesIn=function(e){return null==e?[]:wn(e,su(e))},vr.without=ja,vr.words=Tu,vr.wrap=function(e,t){return hs(Yo(t),e)},vr.xor=Ma,vr.xorBy=La,vr.xorWith=Fa,vr.zip=Va,vr.zipObject=function(e,t){return zo(e||[],t||[],Rr)},vr.zipObjectDeep=function(e,t){return zo(e||[],t||[],Io)},vr.zipWith=Ua,vr.entries=fu,vr.entriesIn=du,vr.extend=Ys,vr.extendWith=Xs,Mu(vr,vr),vr.add=Ku,vr.attempt=Pu,vr.camelCase=vu,vr.capitalize=gu,vr.ceil=zu,vr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Gs(n))==n?n:0),t!==i&&(t=(t=Gs(t))==t?t:0),Lr(Gs(e),t,n)},vr.clone=function(e){return Fr(e,d)},vr.cloneDeep=function(e){return Fr(e,h|d)},vr.cloneDeepWith=function(e,t){return Fr(e,h|d,t="function"==typeof t?t:i)},vr.cloneWith=function(e,t){return Fr(e,d,t="function"==typeof t?t:i)},vr.conformsTo=function(e,t){return null==t||Vr(e,t,au(t))},vr.deburr=mu,vr.defaultTo=function(e,t){return null==e||e!=e?t:e},vr.divide=Qu,vr.endsWith=function(e,t,n){e=zs(e),t=Uo(t);var r=e.length,o=n=n===i?r:Lr(Ws(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},vr.eq=ys,vr.escape=function(e){return(e=zs(e))&&Oe.test(e)?e.replace(Ce,Tn):e},vr.escapeRegExp=function(e){return(e=zs(e))&&De.test(e)?e.replace(ke,"\\$&"):e},vr.every=function(e,t,n){var r=_s(e)?Jt:qr;return n&&Xi(e,t,n)&&(t=i),r(e,Vi(t,3))},vr.find=Ga,vr.findIndex=ma,vr.findKey=function(e,t){return cn(e,Vi(t,3),Xr)},vr.findLast=Ka,vr.findLastIndex=_a,vr.findLastKey=function(e,t){return cn(e,Vi(t,3),$r)},vr.floor=Yu,vr.forEach=za,vr.forEachRight=Qa,vr.forIn=function(e,t){return null==e?e:Qr(e,Vi(t,3),su)},vr.forInRight=function(e,t){return null==e?e:Yr(e,Vi(t,3),su)},vr.forOwn=function(e,t){return e&&Xr(e,Vi(t,3))},vr.forOwnRight=function(e,t){return e&&$r(e,Vi(t,3))},vr.get=tu,vr.gt=vs,vr.gte=gs,vr.has=function(e,t){return null!=e&&Ki(e,t,ro)},vr.hasIn=nu,vr.head=wa,vr.identity=xu,vr.includes=function(e,t,n,r){e=ws(e)?e:yu(e),n=n&&!r?Ws(n):0;var o=e.length;return n<0&&(n=Qn(o+n,0)),Ms(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&pn(e,t,n)>-1},vr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ws(n);return o<0&&(o=Qn(r+o,0)),pn(e,t,o)},vr.inRange=function(e,t,n){return t=Hs(t),n===i?(n=t,t=0):n=Hs(n),function(e,t,n){return e>=Yn(t,n)&&e=-D&&e<=D},vr.isSet=js,vr.isString=Ms,vr.isSymbol=Ls,vr.isTypedArray=Fs,vr.isUndefined=function(e){return e===i},vr.isWeakMap=function(e){return Is(e)&&Gi(e)==ae},vr.isWeakSet=function(e){return Is(e)&&to(e)==se},vr.join=function(e,t){return null==e?"":Kn.call(e,t)},vr.kebabCase=_u,vr.last=Oa,vr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ws(n))<0?Qn(r+o,0):Yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):ln(e,fn,o,!0)},vr.lowerCase=bu,vr.lowerFirst=wu,vr.lt=Vs,vr.lte=Us,vr.max=function(e){return e&&e.length?Gr(e,xu,no):i},vr.maxBy=function(e,t){return e&&e.length?Gr(e,Vi(t,2),no):i},vr.mean=function(e){return dn(e,xu)},vr.meanBy=function(e,t){return dn(e,Vi(t,2))},vr.min=function(e){return e&&e.length?Gr(e,xu,yo):i},vr.minBy=function(e,t){return e&&e.length?Gr(e,Vi(t,2),yo):i},vr.stubArray=qu,vr.stubFalse=Gu,vr.stubObject=function(){return{}},vr.stubString=function(){return""},vr.stubTrue=function(){return!0},vr.multiply=$u,vr.nth=function(e,t){return e&&e.length?bo(e,Ws(t)):i},vr.noConflict=function(){return Dt._===this&&(Dt._=vt),this},vr.noop=Lu,vr.now=ts,vr.pad=function(e,t,n){e=zs(e);var r=(t=Ws(t))?Dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return wi(Hn(o),n)+e+wi(Bn(o),n)},vr.padEnd=function(e,t,n){e=zs(e);var r=(t=Ws(t))?Dn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Jn();return Yn(e+o*(t-e+It("1e-"+((o+"").length-1))),t)}return Oo(e,t)},vr.reduce=function(e,t,n){var r=_s(e)?on:gn,o=arguments.length<3;return r(e,Vi(t,4),n,o,Hr)},vr.reduceRight=function(e,t,n){var r=_s(e)?an:gn,o=arguments.length<3;return r(e,Vi(t,4),n,o,Wr)},vr.repeat=function(e,t,n){return t=(n?Xi(e,t,n):t===i)?1:Ws(t),To(zs(e),t)},vr.replace=function(){var e=arguments,t=zs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},vr.result=function(e,t,n){var r=-1,o=(t=Xo(t,e)).length;for(o||(o=1,e=i);++rD)return[];var n=L,r=Yn(e,L);t=Vi(t),e-=L;for(var o=_n(r,t);++n=a)return e;var u=n-Dn(r);if(u<1)return r;var c=s?Jo(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),Ds(o)){if(e.slice(u).search(o)){var l,p=c;for(o.global||(o=rt(o.source,zs(qe.exec(o))+"g")),o.lastIndex=0;l=o.exec(p);)var h=l.index;c=c.slice(0,h===i?u:h)}}else if(e.indexOf(Uo(o),u)!=u){var f=c.lastIndexOf(o);f>-1&&(c=c.slice(0,f))}return c+r},vr.unescape=function(e){return(e=zs(e))&&Se.test(e)?e.replace(Ee,Mn):e},vr.uniqueId=function(e){var t=++ht;return zs(e)+t},vr.upperCase=Su,vr.upperFirst=Ou,vr.each=za,vr.eachRight=Qa,vr.first=wa,Mu(vr,(Xu={},Xr(vr,function(e,t){pt.call(vr.prototype,t)||(Xu[t]=e)}),Xu),{chain:!1}),vr.VERSION="4.17.4",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){vr[e].placeholder=vr}),Xt(["drop","take"],function(e,t){br.prototype[e]=function(n){n=n===i?1:Qn(Ws(n),0);var r=this.__filtered__&&!t?new br(this):this.clone();return r.__filtered__?r.__takeCount__=Yn(n,r.__takeCount__):r.__views__.push({size:Yn(n,L),type:e+(r.__dir__<0?"Right":"")}),r},br.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==R||3==n;br.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Vi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");br.prototype[e]=function(){return this[n](1).value()[0]}}),Xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");br.prototype[e]=function(){return this.__filtered__?new br(this):this[n](1)}}),br.prototype.compact=function(){return this.filter(xu)},br.prototype.find=function(e){return this.filter(e).head()},br.prototype.findLast=function(e){return this.reverse().find(e)},br.prototype.invokeMap=Po(function(e,t){return"function"==typeof e?new br(this):this.map(function(n){return ao(n,e,t)})}),br.prototype.reject=function(e){return this.filter(ls(Vi(e)))},br.prototype.slice=function(e,t){e=Ws(e);var n=this;return n.__filtered__&&(e>0||t<0)?new br(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ws(t))<0?n.dropRight(-t):n.take(t-e)),n)},br.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},br.prototype.toArray=function(){return this.take(L)},Xr(br.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=vr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(vr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof br,c=s[0],l=u||_s(t),p=function(e){var t=o.apply(vr,rn([e],s));return r&&h?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,f=!!this.__actions__.length,d=a&&!h,y=u&&!f;if(!a&&l){t=y?t:new br(this);var v=e.apply(t,s);return v.__actions__.push({func:Ha,args:[p],thisArg:i}),new _r(v,h)}return d&&y?e.apply(this,s):(v=this.thru(p),d?r?v.value()[0]:v.value():v)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=at[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);vr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(_s(o)?o:[],e)}return this[n](function(n){return t.apply(_s(n)?n:[],e)})}}),Xr(br.prototype,function(e,t){var n=vr[t];if(n){var r=n.name+"";(sr[r]||(sr[r]=[])).push({name:t,func:n})}}),sr[gi(i,m).name]=[{name:"wrapper",func:i}],br.prototype.clone=function(){var e=new br(this.__wrapped__);return e.__actions__=ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ai(this.__views__),e},br.prototype.reverse=function(){if(this.__filtered__){var e=new br(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},br.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=_s(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},vr.prototype.plant=function(e){for(var t,n=this;n instanceof mr;){var r=da(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},vr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof br){var t=e;return this.__actions__.length&&(t=new br(this)),(t=t.reverse()).__actions__.push({func:Ha,args:[Aa],thisArg:i}),new _r(t,this.__chain__)}return this.thru(Aa)},vr.prototype.toJSON=vr.prototype.valueOf=vr.prototype.value=function(){return Go(this.__wrapped__,this.__actions__)},vr.prototype.first=vr.prototype.head,Vt&&(vr.prototype[Vt]=function(){return this}),vr}();Dt._=Ln,(o=(function(){return Ln}).call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(t,n("DuR2"),n("3IRH")(e))},LnSv:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("3j3K"),o=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"tree-node-wrapper",encapsulation:r.ViewEncapsulation.None,styles:[],template:'\n
\n \n
\n\n \n \n
\n
\n \n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={node:[{type:r.Input}],index:[{type:r.Input}],templates:[{type:r.Input}]},e}()},"MZj/":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mapping=void 0,t.noXform_=c,t.xformPath=h,t.getMappings=function(){if(p)return p;var e=[];e.push(new l("bucket")),e.push(new l("generation")),e.push(new l("metageneration")),e.push(new l("name","fullPath",!0));var t=new l("name");t.xform=function(e,t){return h(t)},e.push(t);var n=new l("size");return n.xform=function(e,t){return a.isDef(t)?+t:t},e.push(n),e.push(new l("timeCreated")),e.push(new l("updated")),e.push(new l("md5Hash",null,!0)),e.push(new l("cacheControl",null,!0)),e.push(new l("contentDisposition",null,!0)),e.push(new l("contentEncoding",null,!0)),e.push(new l("contentLanguage",null,!0)),e.push(new l("contentType",null,!0)),e.push(new l("metadata","customMetadata",!0)),e.push(new l("downloadTokens","downloadURLs",!1,function(e,t){if(!(a.isString(t)&&t.length>0))return[];var n=encodeURIComponent;return t.split(",").map(function(t){var r=e.bucket,o=e.fullPath,i="/b/"+n(r)+"/o/"+n(o),a=s.makeDownloadUrl(i),u=s.makeQueryString({alt:"media",token:t});return a+u})})),p=e},t.addRef=f,t.fromResource=d,t.fromResourceString=function(e,t,n){var o=r.jsonObjectOrNull(t);if(null===o)return null;return d(e,o,n)},t.toResourceString=function(e,t){for(var n={},r=t.length,o=0;oe?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return p(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return d.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(p(t.value))return null;var n=t.value?t.value.length:0;return ne?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="^"+t+"$",n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(p(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(v);return 0==t.length?null:function(e){return m(function(e,t){return t.map(function(t){return t(e)})}(e,t))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(v);return 0==t.length?null:function(e){var n=function(e,t){return t.map(function(t){return t(e)})}(e,t).map(g);return s.map.call(Object(i.forkJoin)(n),m)}},e}();function v(e){return null!=e}function g(e){var t=Object(o["\u0275isPromise"])(e)?Object(a.fromPromise)(e):e;if(!Object(o["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function m(e){var t=e.reduce(function(e,t){return null!=t?Object.assign({},e,t):e},{});return 0===Object.keys(t).length?null:t}var _=new o.InjectionToken("NgValueAccessor"),b={provide:_,useExisting:Object(o.forwardRef)(function(){return w}),multi:!0},w=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();w.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[b]}]}],w.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]};var E={provide:_,useExisting:Object(o.forwardRef)(function(){return S}),multi:!0};var C=new o.InjectionToken("CompositionEventMode"),S=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(u.u)()?Object(u.u)().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function O(e){return e.validate?function(t){return e.validate(t)}:e}function T(e){return e.validate?function(t){return e.validate(t)}:e}S.decorators=[{type:o.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[E]}]}],S.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:void 0,decorators:[{type:o.Optional},{type:o.Inject,args:[C]}]}]};var P={provide:_,useExisting:Object(o.forwardRef)(function(){return N}),multi:!0},N=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){var t=null==e?"":e;this._renderer.setProperty(this._elementRef.nativeElement,"value",t)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function A(){throw new Error("unimplemented")}N.decorators=[{type:o.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[P]}]}],N.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]};var I=function(e){function t(){var t=e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return r.a(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return A()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return A()},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){},t}(c),R={provide:_,useExisting:Object(o.forwardRef)(function(){return k}),multi:!0},x=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&(e[0]._parent===t._control._parent&&e[1].name===t.name)},e}();x.decorators=[{type:o.Injectable}],x.ctorParameters=function(){return[]};var k=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(I),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},e}();k.decorators=[{type:o.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[R]}]}],k.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef},{type:x},{type:o.Injector}]},k.propDecorators={name:[{type:o.Input}],formControlName:[{type:o.Input}],value:[{type:o.Input}]};var D={provide:_,useExisting:Object(o.forwardRef)(function(){return j}),multi:!0},j=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();j.decorators=[{type:o.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[D]}]}],j.ctorParameters=function(){return[{type:o.Renderer2},{type:o.ElementRef}]};var M={provide:_,useExisting:Object(o.forwardRef)(function(){return F}),multi:!0};function L(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var F=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=o["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=L(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Y(e){return null!=e?y.compose(e.map(O)):null}function X(e){return null!=e?y.composeAsync(e.map(T)):null}function $(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(o["\u0275looseIdentical"])(t,n.currentValue)}W.decorators=[{type:o.Directive,args:[{selector:"option"}]}],W.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2},{type:H,decorators:[{type:o.Optional},{type:o.Host}]}]},W.propDecorators={ngValue:[{type:o.Input,args:["ngValue"]}],value:[{type:o.Input,args:["value"]}]};var J=[w,j,N,F,H,k];function Z(e,t){if(!t)return null;var n=void 0,r=void 0,o=void 0;return t.forEach(function(t){var i;t.constructor===S?n=t:(i=t,J.some(function(e){return i.constructor===e})?(r&&Q(e,"More than one built-in value accessor matches form control with"),r=t):(o&&Q(e,"More than one custom value accessor matches form control with"),o=t))}),o||(r||(n||(Q(e,"No valid value accessor for form control with"),null)))}var ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Y(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return X(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(l),te=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),ne={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},re=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t}(te);re.decorators=[{type:o.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ne}]}],re.ctorParameters=function(){return[{type:I,decorators:[{type:o.Self}]}]};var oe=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t}(te);oe.decorators=[{type:o.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ne}]}],oe.ctorParameters=function(){return[{type:l,decorators:[{type:o.Self}]}]};function ie(e){return Array.isArray(e)?Y(e):e||null}function ae(e){return Array.isArray(e)?X(e):e||null}var se=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ie(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ae(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this._touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this._touched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this._pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this._pristine=!0,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this._status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this._status="DISABLED",this._errors=null,this._forEachChild(function(e){e.disable({onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this._status="VALID",this._forEachChild(function(e){e.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.setValue=function(e,t){},e.prototype.patchValue=function(e,t){},e.prototype.reset=function(e,t){},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this._status="PENDING";var n=g(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this._errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(n)),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof ce?e.controls[t]||null:e instanceof le&&e.at(t)||null},e))}(this,e,".")},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n._errors?n._errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this._status=this._calculateStatus(),e&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this._valueChanges=new o.EventEmitter,this._statusChanges=new o.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._updateValue=function(){},e.prototype._forEachChild=function(e){},e.prototype._anyControls=function(e){},e.prototype._allControlsDisabled=function(){},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this._pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this._touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e}(),ue=function(e){function t(t,n,r){void 0===t&&(t=null);var o=e.call(this,ie(n),ae(r))||this;return o._onChange=[],o._applyFormState(t),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return r.a(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._value=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n._value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this._value,t)},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this._value=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=e},t}(se),ce=function(e){function t(t,n,r){var o=e.call(this,n||null,r||null)||this;return o.controls=t,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return r.a(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof ue?t.value:t.getRawValue(),e})},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new 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[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this._value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,o){n=n||t.contains(o)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(se),le=function(e){function t(t,n,r){var o=e.call(this,n||null,r||null)||this;return o.controls=t,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return r.a(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof ue?e.value:e.getRawValue()})},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new 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(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this._value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(se),pe={provide:l,useExisting:Object(o.forwardRef)(function(){return fe})},he=Promise.resolve(null),fe=function(e){function t(t,n){var r=e.call(this)||this;return r._submitted=!1,r.ngSubmit=new o.EventEmitter,r.form=new ce({},Y(t),X(n)),r}return r.a(t,e),Object.defineProperty(t.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;he.then(function(){var n=t._findContainer(e.path);e._control=n.registerControl(e.name,e.control),G(e.control,e),e.control.updateValueAndValidity({emitEvent:!1})})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;he.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.addFormGroup=function(e){var t=this;he.then(function(){var n=t._findContainer(e.path),r=new ce({});K(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;he.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;he.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this._submitted=!1},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(l);fe.decorators=[{type:o.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[pe],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],fe.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]}]};var de='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',ye='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ve='\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ge='\n
\n
\n \n
\n
',me='\n
\n \n \n
\n ',_e=function(){function e(){}return e.modelParentException=function(){throw new 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 '+de+"\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 "+me)},e.formGroupNameException=function(){throw new 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 "+ye+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ge)},e.missingNameException=function(){throw new 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: \n Example 2: ')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+ye+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ge)},e}(),be={provide:l,useExisting:Object(o.forwardRef)(function(){return we})},we=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return r.a(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof fe||_e.modelGroupParentException()},t}(ee);we.decorators=[{type:o.Directive,args:[{selector:"[ngModelGroup]",providers:[be],exportAs:"ngModelGroup"}]}],we.ctorParameters=function(){return[{type:l,decorators:[{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]}]},we.propDecorators={name:[{type:o.Input,args:["ngModelGroup"]}]};var Ee={provide:I,useExisting:Object(o.forwardRef)(function(){return Se})},Ce=Promise.resolve(null),Se=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a._control=new ue,a._registered=!1,a.update=new o.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=Z(a,i),a}return r.a(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),$(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?q(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Y(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return X(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){G(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof we)&&this._parent instanceof ee?_e.formGroupNameException():this._parent instanceof we||this._parent instanceof fe||_e.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_e.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ce.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Ce.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(I);Se.decorators=[{type:o.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ee],exportAs:"ngModel"}]}],Se.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]}]},Se.propDecorators={name:[{type:o.Input}],isDisabled:[{type:o.Input,args:["disabled"]}],model:[{type:o.Input,args:["ngModel"]}],options:[{type:o.Input,args:["ngModelOptions"]}],update:[{type:o.Output,args:["ngModelChange"]}]};var Oe=function(){function e(){}return e.controlParentException=function(){throw new 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 "+de)},e.ngModelGroupException=function(){throw new 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 '+ye+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ge)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+de)},e.groupParentException=function(){throw new 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 "+ye)},e.arrayParentException=function(){throw new 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 "+ve)},e.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 = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),Te={provide:I,useExisting:Object(o.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n,r){var i=e.call(this)||this;return i.update=new o.EventEmitter,i._rawValidators=t||[],i._rawAsyncValidators=n||[],i.valueAccessor=Z(i,r),i}return r.a(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),$(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Y(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return X(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(I);Pe.decorators=[{type:o.Directive,args:[{selector:"[formControl]",providers:[Te],exportAs:"ngForm"}]}],Pe.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]}]},Pe.propDecorators={form:[{type:o.Input,args:["formControl"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]};var Ne={provide:l,useExisting:Object(o.forwardRef)(function(){return Ae})},Ae=function(e){function t(t,n){var r=e.call(this)||this;return r._validators=t,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new o.EventEmitter,r}return r.a(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return G(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t,n,r;t=this.directives,n=e,(r=t.indexOf(n))>-1&&t.splice(r,1)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);K(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);K(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this._submitted=!0,this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this._submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t._control!==n&&(!function(e,t){t.valueAccessor.registerOnChange(function(){return z(t)}),t.valueAccessor.registerOnTouched(function(){return z(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t._control,t),n&&G(n,t),t._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Y(this._validators);this.form.validator=y.compose([this.form.validator,e]);var t=X(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Oe.missingFormException()},t}(l);Ae.decorators=[{type:o.Directive,args:[{selector:"[formGroup]",providers:[Ne],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Ae.ctorParameters=function(){return[{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]}]},Ae.propDecorators={form:[{type:o.Input,args:["formGroup"]}],ngSubmit:[{type:o.Output}]};var Ie={provide:l,useExisting:Object(o.forwardRef)(function(){return Re})},Re=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return r.a(t,e),t.prototype._checkParentType=function(){De(this._parent)&&Oe.groupParentException()},t}(ee);Re.decorators=[{type:o.Directive,args:[{selector:"[formGroupName]",providers:[Ie]}]}],Re.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]}]},Re.propDecorators={name:[{type:o.Input,args:["formGroupName"]}]};var xe={provide:l,useExisting:Object(o.forwardRef)(function(){return ke})},ke=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return r.a(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Y(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return X(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){De(this._parent)&&Oe.arrayParentException()},t}(l);function De(e){return!(e instanceof Re||e instanceof Ae||e instanceof ke)}ke.decorators=[{type:o.Directive,args:[{selector:"[formArrayName]",providers:[xe]}]}],ke.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]}]},ke.propDecorators={name:[{type:o.Input,args:["formArrayName"]}]};var je={provide:I,useExisting:Object(o.forwardRef)(function(){return Me})},Me=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a._added=!1,a.update=new o.EventEmitter,a._parent=t,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=Z(a,i),a}return r.a(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),$(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Y(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return X(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Re)&&this._parent instanceof ee?Oe.ngModelGroupException():this._parent instanceof Re||this._parent instanceof Ae||this._parent instanceof ke||Oe.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(I);Me.decorators=[{type:o.Directive,args:[{selector:"[formControlName]",providers:[je]}]}],Me.ctorParameters=function(){return[{type:l,decorators:[{type:o.Optional},{type:o.Host},{type:o.SkipSelf}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[h]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[f]}]},{type:Array,decorators:[{type:o.Optional},{type:o.Self},{type:o.Inject,args:[_]}]}]},Me.propDecorators={name:[{type:o.Input,args:["formControlName"]}],model:[{type:o.Input,args:["ngModel"]}],update:[{type:o.Output,args:["ngModelChange"]}],isDisabled:[{type:o.Input,args:["disabled"]}]};var Le={provide:h,useExisting:Object(o.forwardRef)(function(){return Ve}),multi:!0},Fe={provide:h,useExisting:Object(o.forwardRef)(function(){return Ue}),multi:!0},Ve=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?y.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}();Ve.decorators=[{type:o.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Le],host:{"[attr.required]":'required ? "" : null'}}]}],Ve.ctorParameters=function(){return[]},Ve.propDecorators={required:[{type:o.Input}]};var Ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.a(t,e),t.prototype.validate=function(e){return this.required?y.requiredTrue(e):null},t}(Ve);Ue.decorators=[{type:o.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Fe],host:{"[attr.required]":'required ? "" : null'}}]}],Ue.ctorParameters=function(){return[]};var Be={provide:h,useExisting:Object(o.forwardRef)(function(){return He}),multi:!0},He=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?y.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}();He.decorators=[{type:o.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Be]}]}],He.ctorParameters=function(){return[]},He.propDecorators={email:[{type:o.Input}]};var We={provide:h,useExisting:Object(o.forwardRef)(function(){return qe}),multi:!0},qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},e}();qe.decorators=[{type:o.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[We],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],qe.ctorParameters=function(){return[]},qe.propDecorators={minlength:[{type:o.Input}]};var Ge={provide:h,useExisting:Object(o.forwardRef)(function(){return Ke}),multi:!0},Ke=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},e}();Ke.decorators=[{type:o.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Ge],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Ke.ctorParameters=function(){return[]},Ke.propDecorators={maxlength:[{type:o.Input}]};var ze={provide:h,useExisting:Object(o.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},e}();Qe.decorators=[{type:o.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[ze],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],Qe.ctorParameters=function(){return[]},Qe.propDecorators={pattern:[{type:o.Input}]};var Ye=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=null!=t?t.validator:null,o=null!=t?t.asyncValidator:null;return new ce(n,r,o)},e.prototype.control=function(e,t,n){return new ue(e,t,n)},e.prototype.array=function(e,t,n){var r=this,o=e.map(function(e){return r._createControl(e)});return new le(o,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){n[r]=t._createControl(e[r])}),n},e.prototype._createControl=function(e){if(e instanceof ue||e instanceof ce||e instanceof le)return e;if(Array.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)},e}();Ye.decorators=[{type:o.Injectable}],Ye.ctorParameters=function(){return[]};var Xe=new o.Version("4.4.4"),$e=function(){return function(){}}();$e.decorators=[{type:o.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],$e.ctorParameters=function(){return[]};var Je=[$e,V,W,S,N,j,w,F,H,k,re,oe,Ve,qe,Ke,Qe,Ue,He],Ze=[Se,we,fe],et=[Pe,Ae,Me,Re,ke],tt=function(){return function(){}}();tt.decorators=[{type:o.NgModule,args:[{declarations:Je,exports:Je}]}],tt.ctorParameters=function(){return[]};var nt=function(){return function(){}}();nt.decorators=[{type:o.NgModule,args:[{declarations:Ze,providers:[x],exports:[tt,Ze]}]}],nt.ctorParameters=function(){return[]};var rt=function(){return function(){}}();rt.decorators=[{type:o.NgModule,args:[{declarations:[et],providers:[Ye,x],exports:[tt,et]}]}],rt.ctorParameters=function(){return[]}},NlDC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Query=void 0;var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n("nDT4"),a=n("7Btn"),s=n("OfTL"),u=n("nicw"),c=n("Ku1h"),l=n("Pu5a"),p=n("AHVm"),h=n("YuqB"),f=n("ktV6"),d=n("/wt9"),y=n("OKkW"),v=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return(0,i.assert)(r,"Reference.ts has not been loaded"),r},set:function(e){r=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===a.KEY_INDEX){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",p="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!=l.MIN_NAME)throw new Error(r);if("string"!=typeof t)throw new Error(p)}if(e.hasEnd()){if(e.getIndexEndName()!=l.MAX_NAME)throw new Error(r);if("string"!=typeof n)throw new Error(p)}}else if(e.getIndex()===s.PRIORITY_INDEX){if(null!=t&&!(0,h.isValidPriority)(t)||null!=n&&!(0,h.isValidPriority)(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if((0,i.assert)(e.getIndex()instanceof c.PathIndex||e.getIndex()===u.VALUE_INDEX,"unknown index type."),null!=t&&"object"===("undefined"==typeof t?"undefined":o(t))||null!=n&&"object"===("undefined"==typeof n?"undefined":o(n)))throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return(0,f.validateArgCount)("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,o){(0,f.validateArgCount)("Query.on",2,4,arguments.length),(0,h.validateEventType)("Query.on",1,t,!1),(0,f.validateCallback)("Query.on",2,n,!1);var i=e.getCancelAndContextArgs_("Query.on",r,o);if("value"===t)this.onValueEvent(n,i.cancel,i.context);else{var a={};a[t]=n,this.onChildEvent(a,i.cancel,i.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new d.ValueEventRegistration(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new d.ChildEventRegistration(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){(0,f.validateArgCount)("Query.off",0,3,arguments.length),(0,h.validateEventType)("Query.off",1,e,!0),(0,f.validateCallback)("Query.off",2,t,!0),(0,f.validateContextObject)("Query.off",3,n,!0);var r=null,o=null;if("value"===e){var i=t||null;r=new d.ValueEventRegistration(i,null,n||null)}else e&&(t&&((o={})[e]=t),r=new d.ChildEventRegistration(o,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,o){var i=this;(0,f.validateArgCount)("Query.once",1,4,arguments.length),(0,h.validateEventType)("Query.once",1,t,!1),(0,f.validateCallback)("Query.once",2,n,!0);var a=e.getCancelAndContextArgs_("Query.once",r,o),s=!0,u=new y.Deferred;(0,y.attachDummyErrorHandler)(u.promise);var c=function e(r){s&&(s=!1,i.off(t,e),n&&n.bind(a.context)(r),u.resolve(r))};return this.on(t,c,function(e){i.off(t,c),a.cancel&&a.cancel.bind(a.context)(e),u.reject(e)}),u.promise},e.prototype.limitToFirst=function(t){if((0,f.validateArgCount)("Query.limitToFirst",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if((0,f.validateArgCount)("Query.limitToLast",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if((0,f.validateArgCount)("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');(0,h.validatePathString)("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new p.Path(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var r=new c.PathIndex(n),o=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(o),new e(this.repo,this.path,o,!0)},e.prototype.orderByKey=function(){(0,f.validateArgCount)("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(a.KEY_INDEX);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){(0,f.validateArgCount)("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(s.PRIORITY_INDEX);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){(0,f.validateArgCount)("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(u.VALUE_INDEX);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),(0,f.validateArgCount)("Query.startAt",0,2,arguments.length),(0,h.validateFirebaseDataArg)("Query.startAt",1,t,this.path,!0),(0,h.validateKey)("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),(0,f.validateArgCount)("Query.endAt",0,2,arguments.length),(0,h.validateFirebaseDataArg)("Query.endAt",1,t,this.path,!0),(0,h.validateKey)("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if((0,f.validateArgCount)("Query.equalTo",1,2,arguments.length),(0,h.validateFirebaseDataArg)("Query.equalTo",1,e,this.path,!1),(0,h.validateKey)("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return(0,f.validateArgCount)("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return(0,f.validateArgCount)("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=(0,l.ObjectToUniqueKey)(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if((0,f.validateArgCount)("Query.isEqual",1,1,arguments.length),!(t instanceof e)){throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.")}var n=this.repo===t.repo,r=this.path.equals(t.path),o=this.queryIdentifier()===t.queryIdentifier();return n&&r&&o},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,(0,f.validateCallback)(e,3,r.cancel,!0),r.context=n,(0,f.validateContextObject)(e,4,r.context,!0);else if(t)if("object"===("undefined"==typeof t?"undefined":o(t))&&null!==t)r.context=t;else{if("function"!=typeof t)throw new Error((0,f.errorPrefix)(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}();t.Query=v},O591:function(e,t,n){"use strict";var r=n("3j3K"),o=n("Wdvj"),i=n("J/eP"),a=n("tvuF"),s=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function u(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](0,null,null,2,"div",[["class","node-drop-slot"]],null,[[null,"treeDrop"],[null,"dragover"],[null,"dragenter"],[null,"dragleave"],[null,"drop"]],function(e,t,n){var o=!0,i=e.component;"dragover"===t&&(o=!1!==r["\u0275nov"](e,2).onDragOver(n)&&o);"dragenter"===t&&(o=!1!==r["\u0275nov"](e,2).onDragEnter(n)&&o);"dragleave"===t&&(o=!1!==r["\u0275nov"](e,2).onDragLeave(n)&&o);"drop"===t&&(o=!1!==r["\u0275nov"](e,2).onDrop(n)&&o);"treeDrop"===t&&(o=!1!==i.onDrop(n)&&o);return o},null,null)),r["\u0275did"](16384,null,0,i.a,[r.ElementRef,r.Renderer,a.a],{treeAllowDrop:[0,"treeAllowDrop"]},{onDropCallback:"treeDrop"}),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,2,0,n.allowDrop.bind(n))},null)}r["\u0275ccf"]("TreeNodeDropSlot, tree-node-drop-slot",o.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"TreeNodeDropSlot",[],null,null,null,u,s)),r["\u0275did"](49152,null,0,o.a,[],null,null)],null,null)},{node:"node",dropIndex:"dropIndex"},{},[]);var c=n("2Je8"),l=n("XneF"),p=n("ozdG"),h=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function f(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,3,"span",[["class","toggle-children-wrapper"]],[[2,"toggle-children-wrapper-expanded",null],[2,"toggle-children-wrapper-collapsed",null]],[[null,"click"]],function(e,t,n){var r=!0,o=e.component;"click"===t&&(r=!1!==o.node.mouseAction("expanderClick",n)&&r);return r},null,null)),(e()(),r["\u0275ted"](null,["\n\n "])),(e()(),r["\u0275eld"](0,null,null,0,"span",[["class","toggle-children"]],null,null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "]))],null,function(e,t){var n=t.component;e(t,0,0,n.node.isExpanded,n.node.isCollapsed)})}function d(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"span",[["class","toggle-children-placeholder"]],null,null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "]))],null,null)}function y(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,7,null,null,null,null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,f)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,d)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.node.hasChildren),e(t,6,0,!n.node.hasChildren)},null)}function v(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,y)),r["\u0275did"](212992,null,0,l.a,[r.TemplateRef,r.ViewContainerRef,r.Renderer],null,null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){e(t,2,0)},null)}r["\u0275ccf"]("TreeNodeExpander, tree-node-expander",p.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"TreeNodeExpander",[],null,null,null,v,h)),r["\u0275did"](49152,null,0,p.a,[],null,null)],null,null)},{node:"node"},{},[]);var g=n("Oltd"),m=n("lOHh"),_=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function b(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](null,["",""]))],null,function(e,t){e(t,1,0,t.component.node.displayField)})}function w(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,b)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](16777216,null,null,3,null,null,null,null,null,null,null)),r["\u0275did"](540672,null,0,c.l,[r.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r["\u0275pod"]({$implicit:0,node:1,index:2}),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,2,0,!n.template),e(t,5,0,e(t,6,0,n.node,n.node,n.index),n.template)},null)}r["\u0275ccf"]("tree-node-content",m.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"tree-node-content",[],null,null,null,w,_)),r["\u0275did"](49152,null,0,m.a,[],null,null)],null,null)},{node:"node",index:"index",template:"template"},{},[]);var E=n("LnSv"),C=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function S(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,13,"div",[["class","node-wrapper"]],[[4,"padding-left",null]],null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](0,null,null,1,"tree-node-expander",[],null,null,null,v,h)),r["\u0275did"](49152,null,0,p.a,[],{node:[0,"node"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](0,null,null,7,"div",[["class","node-content-wrapper"]],[[2,"node-content-wrapper-active",null],[2,"node-content-wrapper-focused",null]],[[null,"click"],[null,"dblclick"],[null,"contextmenu"],[null,"treeDrop"],[null,"treeDropDragOver"],[null,"treeDropDragLeave"],[null,"treeDropDragEnter"],[null,"dragover"],[null,"dragenter"],[null,"dragleave"],[null,"drop"],[null,"dragstart"],[null,"drag"],[null,"dragend"]],function(e,t,n){var o=!0,i=e.component;"dragover"===t&&(o=!1!==r["\u0275nov"](e,6).onDragOver(n)&&o);"dragenter"===t&&(o=!1!==r["\u0275nov"](e,6).onDragEnter(n)&&o);"dragleave"===t&&(o=!1!==r["\u0275nov"](e,6).onDragLeave(n)&&o);"drop"===t&&(o=!1!==r["\u0275nov"](e,6).onDrop(n)&&o);"dragstart"===t&&(o=!1!==r["\u0275nov"](e,7).onDragStart(n)&&o);"drag"===t&&(o=!1!==r["\u0275nov"](e,7).onDrag(n)&&o);"dragend"===t&&(o=!1!==r["\u0275nov"](e,7).onDragEnd()&&o);"click"===t&&(o=!1!==i.node.mouseAction("click",n)&&o);"dblclick"===t&&(o=!1!==i.node.mouseAction("dblClick",n)&&o);"contextmenu"===t&&(o=!1!==i.node.mouseAction("contextMenu",n)&&o);"treeDrop"===t&&(o=!1!==i.node.onDrop(n)&&o);"treeDropDragOver"===t&&(o=!1!==i.node.mouseAction("dragOver",n)&&o);"treeDropDragLeave"===t&&(o=!1!==i.node.mouseAction("dragLeave",n)&&o);"treeDropDragEnter"===t&&(o=!1!==i.node.mouseAction("dragEnter",n)&&o);return o},null,null)),r["\u0275did"](16384,null,0,i.a,[r.ElementRef,r.Renderer,a.a],{treeAllowDrop:[0,"treeAllowDrop"]},{onDropCallback:"treeDrop",onDragOverCallback:"treeDropDragOver",onDragLeaveCallback:"treeDropDragLeave",onDragEnterCallback:"treeDropDragEnter"}),r["\u0275did"](278528,null,0,g.a,[r.ElementRef,r.Renderer,a.a],{draggedElement:[0,"draggedElement"],treeDragEnabled:[1,"treeDragEnabled"]},null),(e()(),r["\u0275ted"](null,["\n\n "])),(e()(),r["\u0275eld"](0,null,null,2,"tree-node-content",[],null,null,null,w,_)),r["\u0275did"](49152,null,0,m.a,[],{node:[0,"node"],index:[1,"index"],template:[2,"template"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.node),e(t,6,0,n.node.allowDrop),e(t,7,0,n.node,n.node.allowDrag()),e(t,10,0,n.node,n.index,n.templates.treeNodeTemplate)},function(e,t){var n=t.component;e(t,0,0,n.node.getNodePadding()),e(t,5,0,n.node.isActive,n.node.isFocused)})}function O(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,S)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](16777216,null,null,3,null,null,null,null,null,null,null)),r["\u0275did"](540672,null,0,c.l,[r.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r["\u0275pod"]({$implicit:0,node:1,index:2,templates:3}),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,2,0,!n.templates.treeNodeWrapperTemplate),e(t,5,0,e(t,6,0,n.node,n.node,n.index,n.templates),n.templates.treeNodeWrapperTemplate)},null)}r["\u0275ccf"]("tree-node-wrapper",E.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"tree-node-wrapper",[],null,null,null,O,C)),r["\u0275did"](49152,null,0,E.a,[],null,null)],null,null)},{node:"node",index:"index",templates:"templates"},{},[]);var T=n("Upv3"),P=n("E44l"),N=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function A(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"span",[],null,null,null,null,null)),(e()(),r["\u0275ted"](null,["loading..."]))],null,null)}function I(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,A)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](16777216,null,null,3,null,null,null,null,null,null,null)),r["\u0275did"](540672,null,0,c.l,[r.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r["\u0275pod"]({$implicit:0}),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,2,0,!n.template),e(t,5,0,e(t,6,0,n.node),n.template)},null)}r["\u0275ccf"]("tree-loading-component",P.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"tree-loading-component",[],null,null,null,I,N)),r["\u0275did"](49152,null,0,P.a,[],null,null)],null,null)},{template:"template",node:"node"},{},[]);var R=n("k9HW"),x=n("W45A"),k=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function D(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,2,"tree-node-collection",[],null,null,null,Q,G)),r["\u0275did"](245760,null,0,T.a,[],{nodes:[0,"nodes"],treeModel:[1,"treeModel"],templates:[2,"templates"]},null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.node.children,n.node.treeModel,n.templates)},null)}function j(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"tree-loading-component",[["class","tree-node-loading"]],[[4,"padding-left",null]],null,null,I,N)),r["\u0275did"](49152,null,0,P.a,[],{template:[0,"template"],node:[1,"node"]},null)],function(e,t){var n=t.component;e(t,1,0,n.templates.loadingTemplate,n.node)},function(e,t){e(t,0,0,t.component.node.getNodePadding())})}function M(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,7,"div",[],[[2,"tree-children",null],[2,"tree-children-no-padding",null]],null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,D)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,j)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.node.children),e(t,6,0,!n.node.children)},function(e,t){e(t,0,0,!0,t.component.node.options.levelPadding)})}function L(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,4,null,null,null,null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,M)),r["\u0275did"](16384,null,0,R.a,[r.Renderer,r.TemplateRef,r.ViewContainerRef],{animateSpeed:[0,"animateSpeed"],animateAcceleration:[1,"animateAcceleration"],isEnabled:[2,"isEnabled"],isOpen:[3,"isOpen"]},null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.node.options.animateExpand,n.node.options.animateAcceleration,n.node.options.animateExpand,n.node.isExpanded)},null)}function F(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,L)),r["\u0275did"](212992,null,0,l.a,[r.TemplateRef,r.ViewContainerRef,r.Renderer],null,null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){e(t,2,0)},null)}r["\u0275ccf"]("tree-node-children",x.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"tree-node-children",[],null,null,null,F,k)),r["\u0275did"](49152,null,0,x.a,[],null,null)],null,null)},{node:"node",templates:"templates"},{},[]);var V=n("Jd2A"),U=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function B(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"tree-node-drop-slot",[],null,null,null,u,s)),r["\u0275did"](49152,null,0,o.a,[],{node:[0,"node"],dropIndex:[1,"dropIndex"]},null)],function(e,t){var n=t.component;e(t,1,0,n.node.parent,n.node.index)},null)}function H(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,13,"div",[],[[8,"className",0],[2,"tree-node",null],[2,"tree-node-expanded",null],[2,"tree-node-collapsed",null],[2,"tree-node-leaf",null],[2,"tree-node-active",null],[2,"tree-node-focused",null]],null,null,null,null)),(e()(),r["\u0275ted"](null,["\n\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,B)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n\n "])),(e()(),r["\u0275eld"](0,null,null,1,"tree-node-wrapper",[],null,null,null,O,C)),r["\u0275did"](49152,null,0,E.a,[],{node:[0,"node"],index:[1,"index"],templates:[2,"templates"]},null),(e()(),r["\u0275ted"](null,["\n\n "])),(e()(),r["\u0275eld"](0,null,null,1,"tree-node-children",[],null,null,null,F,k)),r["\u0275did"](49152,null,0,x.a,[],{node:[0,"node"],templates:[1,"templates"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](0,null,null,1,"tree-node-drop-slot",[],null,null,null,u,s)),r["\u0275did"](49152,null,0,o.a,[],{node:[0,"node"],dropIndex:[1,"dropIndex"]},null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,0===n.index),e(t,6,0,n.node,n.index,n.templates),e(t,9,0,n.node,n.templates),e(t,12,0,n.node.parent,n.node.index+1)},function(e,t){var n=t.component;e(t,0,0,n.node.getClass(),!0,n.node.isExpanded&&n.node.hasChildren,n.node.isCollapsed&&n.node.hasChildren,n.node.isLeaf,n.node.isActive,n.node.isFocused)})}function W(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,9,null,null,null,null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,H)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](16777216,null,null,3,null,null,null,null,null,null,null)),r["\u0275did"](540672,null,0,c.l,[r.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),r["\u0275pod"]({$implicit:0,node:1,index:2,templates:3}),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,!n.templates.treeNodeFullTemplate),e(t,6,0,e(t,7,0,n.node,n.node,n.index,n.templates),n.templates.treeNodeFullTemplate)},null)}function q(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,W)),r["\u0275did"](212992,null,0,l.a,[r.TemplateRef,r.ViewContainerRef,r.Renderer],null,null)],function(e,t){e(t,2,0)},null)}r["\u0275ccf"]("TreeNode, tree-node",V.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"TreeNode",[],null,null,null,q,U)),r["\u0275did"](49152,null,0,V.a,[],null,null)],null,null)},{node:"node",index:"index",templates:"templates"},{},[]);var G=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function K(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,2,"tree-node",[],null,null,null,q,U)),r["\u0275did"](49152,null,0,V.a,[],{node:[0,"node"],index:[1,"index"],templates:[2,"templates"]},null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit,t.context.index,n.templates)},null)}function z(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,7,null,null,null,null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](0,null,null,4,"div",[],[[4,"margin-top",null]],null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,K)),r["\u0275did"](802816,null,0,c.h,[r.ViewContainerRef,r.TemplateRef,r.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,5,0,n.viewportNodes,n.trackNode)},function(e,t){e(t,2,0,t.component.marginTop)})}function Q(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,z)),r["\u0275did"](212992,null,0,l.a,[r.TemplateRef,r.ViewContainerRef,r.Renderer],null,null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){e(t,2,0)},null)}r["\u0275ccf"]("tree-node-collection",T.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"tree-node-collection",[],null,null,null,Q,G)),r["\u0275did"](245760,null,0,T.a,[],null,null)],function(e,t){e(t,1,0)},null)},{nodes:"nodes",treeModel:"treeModel",templates:"templates"},{},[]);var Y=n("VaDQ"),X=n("P2My"),$=n("FBV2"),J=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Z(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,6,null,null,null,null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](0,null,null,3,"div",[],[[4,"height",null]],null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),r["\u0275ncd"](null,0),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],null,function(e,t){e(t,2,0,t.component.getTotalHeight())})}function ee(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,Z)),r["\u0275did"](212992,null,0,l.a,[r.TemplateRef,r.ViewContainerRef,r.Renderer],null,null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){e(t,2,0)},null)}r["\u0275ccf"]("tree-viewport",$.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,2,"tree-viewport",[],null,[[null,"scroll"]],function(e,t,n){var o=!0;return"scroll"===t&&(o=!1!==r["\u0275nov"](e,2).onScroll(n)&&o),o},ee,J)),r["\u0275prd"](512,null,Y.a,Y.a,[X.a]),r["\u0275did"](4440064,null,0,$.a,[r.ElementRef,Y.a],null,null)],function(e,t){e(t,2,0)},null)},{},{},["*"]);var te=n("ePrV");n.d(t,"a",function(){return ne}),t.b=ie;var ne=r["\u0275crt"]({encapsulation:2,styles:[],data:{}});function re(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,3,"tree-node-collection",[],null,null,null,Q,G)),r["\u0275did"](245760,null,0,T.a,[],{nodes:[0,"nodes"],treeModel:[1,"treeModel"],templates:[2,"templates"]},null),r["\u0275pod"]({loadingTemplate:0,treeNodeTemplate:1,treeNodeWrapperTemplate:2,treeNodeFullTemplate:3}),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.treeModel.roots,n.treeModel,e(t,2,0,n.loadingTemplate,n.treeNodeTemplate,n.treeNodeWrapperTemplate,n.treeNodeFullTemplate))},null)}function oe(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,2,"tree-node-drop-slot",[["class","empty-tree-drop-slot"]],null,null,null,u,s)),r["\u0275did"](49152,null,0,o.a,[],{node:[0,"node"],dropIndex:[1,"dropIndex"]},null),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){e(t,1,0,t.component.treeModel.virtualRoot,0)},null)}function ie(e){return r["\u0275vid"](0,[(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275eld"](0,null,null,12,"tree-viewport",[],null,[[null,"scroll"]],function(e,t,n){var o=!0;"scroll"===t&&(o=!1!==r["\u0275nov"](e,3).onScroll(n)&&o);return o},ee,J)),r["\u0275prd"](512,null,Y.a,Y.a,[X.a]),r["\u0275did"](4440064,null,0,$.a,[r.ElementRef,Y.a],null,null),(e()(),r["\u0275ted"](0,["\n "])),(e()(),r["\u0275eld"](0,null,0,7,"div",[["class","angular-tree-component"]],[[2,"node-dragging",null],[2,"angular-tree-component-rtl",null]],null,null,null,null)),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,re)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275and"](16777216,null,null,1,null,oe)),r["\u0275did"](16384,null,0,c.i,[r.ViewContainerRef,r.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),r["\u0275ted"](null,["\n "])),(e()(),r["\u0275ted"](0,["\n "])),(e()(),r["\u0275ted"](null,["\n "]))],function(e,t){var n=t.component;e(t,3,0),e(t,8,0,n.treeModel.roots),e(t,11,0,n.treeModel.isEmptyTree())},function(e,t){var n=t.component;e(t,5,0,n.treeDraggedElement.isDragging(),n.treeModel.options.rtl)})}r["\u0275ccf"]("Tree, tree-root",te.a,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,6,"Tree",[],null,[["body","keydown"],["body","mousedown"]],function(e,t,n){var o=!0;return"body:keydown"===t&&(o=!1!==r["\u0275nov"](e,2).onKeydown(n)&&o),"body:mousedown"===t&&(o=!1!==r["\u0275nov"](e,2).onMousedown(n)&&o),o},ie,ne)),r["\u0275prd"](512,null,X.a,X.a,[]),r["\u0275did"](573440,null,4,te.a,[X.a,a.a,r.Renderer],null,null),r["\u0275qud"](335544320,1,{loadingTemplate:0}),r["\u0275qud"](335544320,2,{treeNodeTemplate:0}),r["\u0275qud"](335544320,3,{treeNodeWrapperTemplate:0}),r["\u0275qud"](335544320,4,{treeNodeFullTemplate:0})],null,null)},{nodes:"nodes",options:"options",focused:"focused",state:"state"},{toggleExpanded:"toggleExpanded",activate:"activate",deactivate:"deactivate",focus:"focus",blur:"blur",updateData:"updateData",initialized:"initialized",moveNode:"moveNode",copyNode:"copyNode",loadNodeChildren:"loadNodeChildren",changeFilter:"changeFilter",event:"event",stateChange:"stateChange"},[])},OKkW:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attachDummyErrorHandler=t.Deferred=t.PromiseImpl=void 0;var r=n("lmz0"),o=t.PromiseImpl=r.globalScope.Promise||n("Viqd"),i=function(){function e(){var e=this;this.resolve=null,this.reject=null,this.promise=new o(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(a(t.promise),1===e.length?e(n):e(n,r))}},e}();t.Deferred=i;var a=t.attachDummyErrorHandler=function(e){e.catch(function(){})}},OPUS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("QY0+");var r=(0,n("QW0G").createFirebaseNamespace)();t.default=r,e.exports=t.default},OfTL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PRIORITY_INDEX=t.PriorityIndex=void 0,t.setNodeFromJSON=function(e){o=e},t.setMaxNode=function(e){i=e};var r,o,i,a=n("sevV"),s=n("Pu5a"),u=n("coin"),c=n("yImC"),l=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),o=n.compareTo(r);return 0===o?(0,s.nameCompare)(e.name,t.name):o},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return u.NamedNode.MIN},t.prototype.maxPost=function(){return new u.NamedNode(s.MAX_NAME,new c.LeafNode("[PRIORITY-POST]",i))},t.prototype.makePost=function(e,t){var n=o(e);return new u.NamedNode(t,new c.LeafNode("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(a.Index);t.PriorityIndex=p;t.PRIORITY_INDEX=new p},Oltd:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("3j3K"),o=n("tvuF"),i=function(){function e(e,t,n){this.el=e,this.renderer=t,this.treeDraggedElement=n}return e.prototype.ngDoCheck=function(){this.renderer.setElementAttribute(this.el.nativeElement,"draggable",this.treeDragEnabled?"true":"false")},e.prototype.onDragStart=function(e){e.dataTransfer.setData("text",e.target.id),this.treeDraggedElement.set(this.draggedElement),this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragStart",e)},e.prototype.onDrag=function(e){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("drag",e)},e.prototype.onDragEnd=function(){this.draggedElement.mouseAction&&this.draggedElement.mouseAction("dragEnd"),this.treeDraggedElement.set(null)},e.decorators=[{type:r.Directive,args:[{selector:"[treeDrag]"}]}],e.ctorParameters=function(){return[{type:r.ElementRef},{type:r.Renderer},{type:o.a}]},e.propDecorators={draggedElement:[{type:r.Input,args:["treeDrag"]}],treeDragEnabled:[{type:r.Input}],onDragStart:[{type:r.HostListener,args:["dragstart",["$event"]]}],onDrag:[{type:r.HostListener,args:["drag",["$event"]]}],onDragEnd:[{type:r.HostListener,args:["dragend"]}]},e}()},P2My:function(e,t,n){"use strict";n.d(t,"a",function(){return g});var r=n("3j3K"),o=n("y986"),i=n("uV14"),a=n("yvov"),s=n("Fa9E"),u=n("LffQ"),c=(n.n(u),this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}),l=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},p=u.first,h=u.last,f=u.compact,d=u.find,y=(u.includes,u.isString),v=u.isFunction,g=function(){function e(){this.options=new a.b,this.eventNames=Object.keys(s.a),this.expandedNodeIds={},this.activeNodeIds={},this.hiddenNodeIds={},this.focusedNodeId=null,this.firstUpdate=!0}return e.prototype.fireEvent=function(e){e.treeModel=this,this.events[e.eventName].emit(e),this.events.event.emit(e)},e.prototype.subscribe=function(e,t){this.events[e].subscribe(t)},e.prototype.getFocusedNode=function(){return this.focusedNode},e.prototype.getActiveNode=function(){return this.activeNodes[0]},e.prototype.getActiveNodes=function(){return this.activeNodes},e.prototype.getVisibleRoots=function(){return this.virtualRoot.visibleChildren},e.prototype.getFirstRoot=function(e){return void 0===e&&(e=!1),p(e?this.getVisibleRoots():this.roots)},e.prototype.getLastRoot=function(e){return void 0===e&&(e=!1),h(e?this.getVisibleRoots():this.roots)},Object.defineProperty(e.prototype,"isFocused",{get:function(){return e.focusedTree===this},enumerable:!0,configurable:!0}),e.prototype.isNodeFocused=function(e){return this.focusedNode===e},e.prototype.isEmptyTree=function(){return this.roots&&0===this.roots.length},Object.defineProperty(e.prototype,"focusedNode",{get:function(){return this.focusedNodeId?this.getNodeById(this.focusedNodeId):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expandedNodes",{get:function(){var e=this,t=Object.keys(this.expandedNodeIds).filter(function(t){return e.expandedNodeIds[t]}).map(function(t){return e.getNodeById(t)});return f(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeNodes",{get:function(){var e=this,t=Object.keys(this.activeNodeIds).filter(function(t){return e.activeNodeIds[t]}).map(function(t){return e.getNodeById(t)});return f(t)},enumerable:!0,configurable:!0}),e.prototype.getNodeByPath=function(e,t){if(void 0===t&&(t=null),!e)return null;if(t=t||this.virtualRoot,0===e.length)return t;if(!t.children)return null;var n=e.shift(),r=d(t.children,{id:n});return r?this.getNodeByPath(e,r):null},e.prototype.getNodeById=function(e){var t=e.toString();return this.getNodeBy(function(e){return e.id.toString()===t})},e.prototype.getNodeBy=function(e,t){if(void 0===t&&(t=null),!(t=t||this.virtualRoot).children)return null;var n=d(t.children,e);if(n)return n;for(var r=0,o=t.children;rn?t.index-1:t.index;i.splice(u,0,a),r.treeModel.update(),t.parent.treeModel!==r.treeModel&&t.parent.treeModel.update(),this.fireEvent({eventName:s.a.moveNode,node:a,to:{parent:t.parent.data,index:u}})}},e.prototype.copyNode=function(e,t){var n=e.getIndexInParent();if(this._canMoveNode(e,n,t)){t.parent.getField("children")||t.parent.setField("children",[]);var r=t.parent.getField("children"),o=this.options.getNodeClone(e);r.splice(t.index,0,o),e.treeModel.update(),t.parent.treeModel!==e.treeModel&&t.parent.treeModel.update(),this.fireEvent({eventName:s.a.copyNode,node:o,to:{parent:t.parent.data,index:t.index}})}},e.prototype.getState=function(){return{expandedNodeIds:this.expandedNodeIds,activeNodeIds:this.activeNodeIds,hiddenNodeIds:this.hiddenNodeIds,focusedNodeId:this.focusedNodeId}},e.prototype.setState=function(e){e&&Object.assign(this,{expandedNodeIds:e.expandedNodeIds||{},activeNodeIds:e.activeNodeIds||{},hiddenNodeIds:e.hiddenNodeIds||{},focusedNodeId:e.focusedNodeId})},e.prototype.subscribeToState=function(e){var t=this;Object(o.b)(function(){return e(t.getState())})},e.prototype._canMoveNode=function(e,t,n){return(e.parent!==n.parent||t!==n.index)&&!n.parent.isDescendantOf(e)},e.prototype._filterNode=function(e,t,n,r){var o=this,i=n(t);return t.children&&t.children.forEach(function(t){o._filterNode(e,t,n,r)&&(i=!0)}),i||(e[t.id]=!0),r&&i&&t.ensureVisible(),i},e.prototype._calculateExpandedNodes=function(e){var t,n=this;void 0===e&&(e=null),(e=e||this.virtualRoot).data[this.options.isExpandedField]&&(this.expandedNodeIds=Object.assign({},this.expandedNodeIds,((t={})[e.id]=!0,t))),e.children&&e.children.forEach(function(e){return n._calculateExpandedNodes(e)})},e.prototype._setActiveNodeSingle=function(e,t){var n,r=this;this.activeNodes.filter(function(t){return t!==e}).forEach(function(e){r.fireEvent({eventName:s.a.deactivate,node:e})}),this.activeNodeIds=t?((n={})[e.id]=!0,n):{}},e.prototype._setActiveNodeMulti=function(e,t){var n;this.activeNodeIds=Object.assign({},this.activeNodeIds,((n={})[e.id]=t,n))},e.focusedTree=null,e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},c([o.g,l("design:type",Array)],e.prototype,"roots",void 0),c([o.g,l("design:type",Object)],e.prototype,"expandedNodeIds",void 0),c([o.g,l("design:type",Object)],e.prototype,"activeNodeIds",void 0),c([o.g,l("design:type",Object)],e.prototype,"hiddenNodeIds",void 0),c([o.g,l("design:type",Object)],e.prototype,"focusedNodeId",void 0),c([o.g,l("design:type",i.a)],e.prototype,"virtualRoot",void 0),c([o.c,l("design:type",Object),l("design:paramtypes",[])],e.prototype,"focusedNode",null),c([o.c,l("design:type",Object),l("design:paramtypes",[])],e.prototype,"expandedNodes",null),c([o.c,l("design:type",Object),l("design:paramtypes",[])],e.prototype,"activeNodes",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],e.prototype,"setData",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"update",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],e.prototype,"setFocusedNode",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],e.prototype,"setFocus",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],e.prototype,"doForAll",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"focusNextNode",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"focusPreviousNode",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"focusDrillDown",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"focusDrillUp",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object,Object,Object]),l("design:returntype",void 0)],e.prototype,"setActiveNode",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object,Object]),l("design:returntype",void 0)],e.prototype,"setExpandedNode",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"expandAll",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"collapseAll",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object,Object]),l("design:returntype",void 0)],e.prototype,"setIsHidden",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],e.prototype,"setHiddenNodeIds",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object,Object]),l("design:returntype",void 0)],e.prototype,"filterNodes",null),c([o.a,l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],e.prototype,"clearFilter",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object,Object]),l("design:returntype",void 0)],e.prototype,"moveNode",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object,Object]),l("design:returntype",void 0)],e.prototype,"copyNode",null),c([o.a,l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],e.prototype,"setState",null),e}()},PKvP:function(e,t,n){"use strict";var r=n("JkZN");t.from=r.FromObservable.create},POFt:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("mmVS"),i=n("8Z8y"),a=n("jBEF");t.take=function(e){return 0===e?new a.EmptyObservable:this.lift(new s(e))};var s=function(){function e(e){if(this.total=e,this.total<0)throw new i.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.total))},e}(),u=function(e){function t(t,n){e.call(this,t),this.total=n,this.count=0}return r(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(o.Subscriber)},Pu5a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTimeoutNonBlocking=t.exportPropGetter=t.beingCrawled=t.callUserCallback=t.exceptionGuard=t.tryParseInt=t.INTEGER_REGEXP_=t.errorForServerCode=t.isWindowsStoreApp=t.isChromeExtensionContentScript=t.doubleToIEEE754String=t.bindCallback=t.each=t.splitStringBySize=t.ObjectToUniqueKey=t.requireKey=t.stringCompare=t.nameCompare=t.MAX_NAME=t.MIN_NAME=t.executeWhenDOMReady=t.isInvalidJSONNumber=t.warnAboutUnsupportedMethod=t.warnIfPageIsSecure=t.warn=t.fatal=t.error=t.logWrapper=t.log=t.enableLogging=t.logger=t.sha1=t.base64Decode=t.base64Encode=t.LUIDGenerator=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.setBufferImpl=function(e){i=e};var o,i,a=n("nDT4"),s=n("zHK/"),u=n("Jukj"),c=n("7xV2"),l=n("pEfg"),p=n("p0Bl"),h=n("xfUw"),f=n("Vj55");t.LUIDGenerator=(o=1,function(){return o++}),t.base64Encode=function(e){var t=(0,l.stringToByteArray)(e);return u.base64.encodeByteArray(t,!0)};t.base64Decode=function(e){try{return i?new i(e,"base64").toString("utf8"):u.base64.decodeString(e,!0)}catch(e){m("base64Decode failed: ",e)}return null},t.sha1=function(e){var t=(0,l.stringToByteArray)(e),n=new c.Sha1;n.update(t);var r=n.digest();return u.base64.encodeByteArray(r)};var d=function e(){for(var t=[],n=0;nn?r.push(e.substring(o,n)):r.push(e.substring(o,o+t));return r},t.each=function(e,t){if(Array.isArray(e))for(var n=0;n=Math.pow(2,-1022)?(n=(o=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,r=Math.round(e*Math.pow(2,52-o)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074)))),s=[],i=52;i;i-=1)s.push(r%2?1:0),r=Math.floor(r/2);for(i=11;i;i-=1)s.push(n%2?1:0),n=Math.floor(n/2);s.push(t?1:0),s.reverse(),u=s.join("");var c="";for(i=0;i<64;i+=8){var l=parseInt(u.substr(i,8),2).toString(16);1===l.length&&(l="0"+l),c+=l}return c.toLowerCase()},t.isChromeExtensionContentScript=function(){return!("object"!==("undefined"==typeof window?"undefined":r(window))||!window.chrome||!window.chrome.extension||/^chrome/.test(window.location.href))},t.isWindowsStoreApp=function(){return"object"===("undefined"==typeof Windows?"undefined":r(Windows))&&"object"===r(Windows.UI)},t.errorForServerCode=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"==e?n="Client doesn't have permission to access the desired data.":"unavailable"==e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r},t.INTEGER_REGEXP_=new RegExp("^-?\\d{1,10}$")),S=t.tryParseInt=function(e){if(C.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},O=t.exceptionGuard=function(e){try{e()}catch(e){setTimeout(function(){var t=e.stack||"";throw _("Exception was thrown by user callback.",t),e},Math.floor(0))}};t.callUserCallback=function(e){for(var t=[],n=1;n=0},t.exportPropGetter=function(e,t,n){Object.defineProperty(e,t,{get:n})},t.setTimeoutNonBlocking=function(e,t){var n=setTimeout(e,t);return"object"===("undefined"==typeof n?"undefined":r(n))&&n.unref&&n.unref(),n}},PutI:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return r(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n("cwzr").AsyncAction);t.QueueAction=o},QH7q:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatsReporter=void 0;var r=n("zHK/"),o=n("Pu5a"),i=n("UiLV"),a=1e4,s=3e4,u=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new i.StatsListener(e);var n=a+(s-a)*Math.random();(0,o.setTimeoutNonBlocking)(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},i=!1;(0,r.forEach)(t,function(t,o){o>0&&(0,r.contains)(e.statsToReport_,t)&&(n[t]=o,i=!0)}),i&&this.server_.reportStats(n),(0,o.setTimeoutNonBlocking)(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}();t.StatsReporter=u},QW0G:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFirebaseNamespace=function e(){var t={};var n={};var c={};var h={__esModule:!0,initializeApp:function(e,n){void 0===n?n=u:"string"==typeof n&&""!==n||p("bad-app-name",{name:n+""});s(t,n)&&p("duplicate-app",{name:n});var r=new l(e,n,h);return t[n]=r,y(r,"create"),r},app:f,apps:null,Promise:i.PromiseImpl,SDK_VERSION:"4.5.0",INTERNAL:{registerService:function(e,t,r,o,i){n[e]&&p("duplicate-service",{name:e});n[e]=t,o&&(c[e]=o,d().forEach(function(e){o("create",e)}));var s=function(t){return void 0===t&&(t=f()),"function"!=typeof t[e]&&p("invalid-app-argument",{name:e}),t[e]()};void 0!==r&&(0,a.deepExtend)(s,r);return h[e]=s,l.prototype[e]=function(){for(var t=[],n=0;n>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r-1},t}(j);ee.decorators=[{type:i.Injectable}],ee.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[v]}]},{type:Z,decorators:[{type:i.Inject,args:[J]}]}]};var te=["alt","control","meta","shift"],ne={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},re=function(e){function t(t){return e.call(this,t)||this}return r.a(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(te.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var a={};return a.domEventName=r,a.fullKey=i,a},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),te.forEach(function(r){r!=n&&((0,ne[r])(e)&&(t+=r+"."))}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(j);re.decorators=[{type:i.Injectable}],re.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[v]}]}]};var oe=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ie=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ae(e){return(e=String(e)).match(oe)||e.match(ie)?e:(Object(i.isDevMode)()&&s().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}var se=null,ue=null;function ce(e){for(var t={},n=0,r=e.split(",");n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=ue.nodeName(e).toLowerCase();ge.hasOwnProperty(t)&&!pe.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(Te(e))},e}();function Ce(e,t){if(t&&ue.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+ue.getOuterHTML(e));return t}var Se=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Oe=/([^\#-~ |!])/g;function Te(e){return e.replace(/&/g,"&").replace(Se,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Oe,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Pe(e){ue.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||ue.removeAttribute(e,n)});for(var t=0,n=ue.childNodesAsList(e);t0&&!r)if(l){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach(function(t){var n=o.queryToTagMap_[e.makeQueryKey_(t)];o.listenProvider_.stopListening(e.queryForListening_(t),n)});this.removeTags_(c)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,function(t,n){var r=f.Path.relativePath(t,e),o=n.getCompleteServerCache(r);if(o)return o});return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold(function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var r=[];return t&&(r=t.getQueryViews()),(0,s.forEach)(n,function(e,t){r=r.concat(t)}),r})},e.prototype.removeTags_=function(t){for(var n=0;n=0)return null!=u&&u.trackChildChange(s.Change.childChangedChange(t,n,y)),p.updateImmediateChild(t,n);null!=u&&u.trackChildChange(s.Change.childRemovedChange(t,y));var m=p.updateImmediateChild(t,o.ChildrenNode.EMPTY_NODE);return null!=v&&this.rangedFilter_.matches(v)?(null!=u&&u.trackChildChange(s.Change.childAddedChange(v.name,v.node)),m.updateImmediateChild(v.name,v.node)):m}return n.isEmpty()?e:d&&c(f,h)>=0?(null!=u&&(u.trackChildChange(s.Change.childRemovedChange(f.name,f.node)),u.trackChildChange(s.Change.childAddedChange(t,n))),p.updateImmediateChild(t,n).updateImmediateChild(f.name,o.ChildrenNode.EMPTY_NODE)):e},e}();t.LimitedFilter=u},SiCN:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FailRequest=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("RCtH"));var o=function(){function e(e){this.promise_=r.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){void 0===e&&(e=!1)},e}();t.FailRequest=o},TToO:function(e,t,n){"use strict";t.a=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};Object.assign},TfWX:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("EEr4"),i=n("IZVw"),a=function(e){function t(t){e.call(this),this._value=t}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(o.Subject);t.BehaviorSubject=a},U15Z:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("VOfZ"),i=n("rCTf"),a=n("cdmN"),s=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=function(e){var t=e[a.iterator];if(!t&&"string"==typeof e)return new u(e);if(!t&&void 0!==e.length)return new c(e);if(!t)throw new TypeError("object is not iterable");return e[a.iterator]()}(t)}return r(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.hasError,r=e.iterator,o=e.subscriber;if(n)o.error(e.error);else{var i=r.next();i.done?o.complete():(o.next(i.value),e.index=t+1,o.closed?"function"==typeof r.return&&r.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(i.Observable);t.IteratorObservable=s;var u=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[a.iterator]=function(){return this},e.prototype.next=function(){return this.idxl)return l;return t}(e)),this.arr=e,this.idx=t,this.len=n}return e.prototype[a.iterator]=function(){return this},e.prototype.next=function(){return this.idx3e4&&(this.reconnectDelay_=w),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),o=this.id+":"+t.nextConnectionId_++,i=this,a=this.lastSessionId,s=!1,u=null,p=function(){u?u.close():(s=!0,r())};this.realtime_={close:p,sendRequest:function(e){(0,c.assert)(u,"sendRequest call when we're not connected not allowed."),u.sendRequest(e)}};var h=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(h).then(function(t){s?(0,l.log)("getToken() completed but was canceled"):((0,l.log)("getToken() completed. Creating connection."),i.authToken_=t&&t.accessToken,u=new y.Connection(o,i.repoInfo_,e,n,r,function(e){(0,l.warn)(e+" ("+i.repoInfo_.toString()+")"),i.interrupt("server_kill")},a))}).then(null,function(e){i.log_("Failed to get token: "+e),s||(v.CONSTANTS.NODE_ADMIN&&(0,l.warn)(e),p())})}},t.prototype.interrupt=function(e){(0,l.log)("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){(0,l.log)("Resuming connection for reason: "+e),delete this.interruptReasons_[e],(0,s.isEmpty)(this.interruptReasons_)&&(this.reconnectDelay_=w,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&"undefined"!=typeof console&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e=this;this.tryAuth(),(0,s.forEach)(this.listens_,function(t,n){(0,s.forEach)(n,function(t,n){e.sendListen_(n)})});for(var t=0;t=i&&t._onFinish()}),e.onDestroy(function(){++r>=i&&t._onDestroy()}),e.onStart(function(){++o>=i&&t._onStart()})}),this.totalTime=this._players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this._players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this._players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this._players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this._players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this._players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this._players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this._players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},Object.defineProperty(e.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e}(),p="!"},Upv3:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("3j3K"),o=n("y986"),i=n("Lb4t"),a=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function e(){this._dispose=[]}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},set:function(e){this.setNodes(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"marginTop",{get:function(){var e=this.viewportNodes&&this.viewportNodes.length&&this.viewportNodes[0];return(e?e.position-e.parent.position-e.parent.getSelfHeight():0)+"px"},enumerable:!0,configurable:!0}),e.prototype.setNodes=function(e){this._nodes=e},e.prototype.ngOnInit=function(){var e=this;this.virtualScroll=this.treeModel.virtualScroll,this._dispose=[Object(o.h)(function(){return e.virtualScroll.getViewportNodes(e.nodes).map(function(e){return e.index})},function(t){e.viewportNodes=t.map(function(t){return e.nodes[t]})},{compareStructural:!0,fireImmediately:!0}),Object(o.h)(function(){return e.nodes},function(t){e.viewportNodes=e.virtualScroll.getViewportNodes(t)})]},e.prototype.ngOnDestroy=function(){this._dispose.forEach(function(e){return e()})},e.prototype.trackNode=function(e,t){return t.id},e.decorators=[{type:r.Component,args:[{selector:"tree-node-collection",encapsulation:r.ViewEncapsulation.None,template:'\n \n \n \n \n \n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={nodes:[{type:r.Input}],treeModel:[{type:r.Input}],templates:[{type:r.Input}]},a([i.d,s("design:type",Object)],e.prototype,"_nodes",void 0),a([i.d,s("design:type",Array)],e.prototype,"viewportNodes",void 0),a([i.c,s("design:type",String),s("design:paramtypes",[])],e.prototype,"marginTop",null),a([i.b,s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],e.prototype,"setNodes",null),e}()},"V/iH":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountedSet=void 0;var r=n("zHK/"),o=function(){function e(){this.set={}}return e.prototype.add=function(e,t){this.set[e]=null===t||t},e.prototype.contains=function(e){return(0,r.contains)(this.set,e)},e.prototype.get=function(e){return this.contains(e)?this.set[e]:void 0},e.prototype.remove=function(e){delete this.set[e]},e.prototype.clear=function(){this.set={}},e.prototype.isEmpty=function(){return(0,r.isEmpty)(this.set)},e.prototype.count=function(){return(0,r.getCount)(this.set)},e.prototype.each=function(e){(0,r.forEach)(this.set,function(t,n){return e(t,n)})},e.prototype.keys=function(){var e=[];return(0,r.forEach)(this.set,function(t){e.push(t)}),e},e}();t.CountedSet=o},V5hz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexMap=void 0;var r,o=n("nDT4"),i=n("WV0u"),a=n("zHK/"),s=n("coin"),u=n("OfTL"),c=n("7Btn"),l={},p=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return(0,o.assert)(l&&u.PRIORITY_INDEX,"ChildrenNode.ts has not been loaded"),r=r||new e({".priority":l},{".priority":u.PRIORITY_INDEX})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=(0,a.safeGet)(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t===l?null:t},e.prototype.hasIndex=function(e){return(0,a.contains)(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){(0,o.assert)(t!==c.KEY_INDEX,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,u=[],p=!1,h=n.getIterator(s.NamedNode.Wrap),f=h.getNext();f;)p=p||t.isDefinedOn(f.node),u.push(f),f=h.getNext();r=p?(0,i.buildChildSet)(u,t.getCompare()):l;var d=t.toString(),y=(0,a.clone)(this.indexSet_);y[d]=t;var v=(0,a.clone)(this.indexes_);return v[d]=r,new e(v,y)},e.prototype.addToIndexes=function(t,n){var r=this;return new e((0,a.map)(this.indexes_,function(e,u){var c=(0,a.safeGet)(r.indexSet_,u);if((0,o.assert)(c,"Missing index implementation for "+u),e===l){if(c.isDefinedOn(t.node)){for(var p=[],h=n.getIterator(s.NamedNode.Wrap),f=h.getNext();f;)f.name!=t.name&&p.push(f),f=h.getNext();return p.push(t),(0,i.buildChildSet)(p,c.getCompare())}return l}var d=n.get(t.name),y=e;return d&&(y=y.remove(new s.NamedNode(t.name,d))),y.insert(t,t.node)}),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e((0,a.map)(this.indexes_,function(e){if(e===l)return e;var r=n.get(t.name);return r?e.remove(new s.NamedNode(t.name,r)):e}),this.indexSet_)},e}();t.IndexMap=p},VEfc:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("wAkD"),i=n("CURp");t.switchMap=function(e,t){return this.lift(new a(e,t))};var a=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector))},e}(),s=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.resultSelector=r,this.index=0}return r(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=i.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,r,o){this.resultSelector?this._tryNotifyNext(e,t,n,r):this.destination.next(t)},t.prototype._tryNotifyNext=function(e,t,n,r){var o;try{o=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(o)},t}(o.OuterSubscriber)},VOfZ:function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,o=n||"undefined"!=typeof e&&e||r;t.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(t,n("DuR2"))},VaDQ:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("3j3K"),o=n("y986"),i=n("P2My"),a=n("Fa9E"),s=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},u=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(){function e(e){var t=this;this.treeModel=e,this.yBlocks=0,this.x=0,this.viewportHeight=null,this.viewport=null,e.virtualScroll=this,this._dispose=[Object(o.b)(function(){return t.fixScroll()})]}return Object.defineProperty(e.prototype,"y",{get:function(){return 50*this.yBlocks},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalHeight",{get:function(){return this.treeModel.virtualRoot?this.treeModel.virtualRoot.height:0},enumerable:!0,configurable:!0}),e.prototype.fireEvent=function(e){this.treeModel.fireEvent(e)},e.prototype.init=function(){var e=this,t=this.recalcPositions.bind(this);t(),this._dispose=this._dispose.concat([Object(o.h)(function(){return e.treeModel.roots},t),Object(o.h)(function(){return e.treeModel.expandedNodeIds},t),Object(o.h)(function(){return e.treeModel.hiddenNodeIds},t)]),this.treeModel.subscribe(a.a.loadNodeChildren,t)},e.prototype.isEnabled=function(){return this.treeModel.options.useVirtualScroll},e.prototype._setYBlocks=function(e){this.yBlocks=e},e.prototype.recalcPositions=function(){this.treeModel.virtualRoot.height=this._getPositionAfter(this.treeModel.getVisibleRoots(),0)},e.prototype._getPositionAfter=function(e,t){var n=this,r=t;return e.forEach(function(e){e.position=r,r=n._getPositionAfterNode(e,r)}),r},e.prototype._getPositionAfterNode=function(e,t){var n=e.getSelfHeight()+t;return e.children&&e.isExpanded&&(n=this._getPositionAfter(e.visibleChildren,n)),e.height=n-t,n},e.prototype.clear=function(){this._dispose.forEach(function(e){return e()})},e.prototype.setViewport=function(e){Object.assign(this,{viewport:e,x:e.scrollLeft,yBlocks:Math.round(e.scrollTop/50),viewportHeight:e.getBoundingClientRect?e.getBoundingClientRect().height:0})},e.prototype.scrollIntoView=function(e,t,n){void 0===n&&(n=!0),(t||e.positionthis.y+this.viewportHeight)&&this.viewport&&(this.viewport.scrollTop=n?e.position-this.viewportHeight/2:e.position,this._setYBlocks(Math.floor(this.viewport.scrollTop/50)))},e.prototype.getViewportNodes=function(e){var t=this;if(!e)return[];var n=e.filter(function(e){return!e.isHidden});if(!this.isEnabled())return n;if(!this.viewportHeight||!n.length)return[];for(var r=l(n,function(e){return e.position+300>t.y||e.position+e.height>t.y}),o=l(n,function(e){return e.position-300>t.y+t.viewportHeight},r),i=[],a=r;a<=o;a++)i.push(n[a]);return i},e.prototype.fixScroll=function(){var e=Math.max(0,this.totalHeight-this.viewportHeight);this.y<0&&this._setYBlocks(0),this.y>e&&this._setYBlocks(e/50)},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[{type:i.a}]},s([o.g,u("design:type",Object)],e.prototype,"yBlocks",void 0),s([o.g,u("design:type",Object)],e.prototype,"x",void 0),s([o.g,u("design:type",Object)],e.prototype,"viewportHeight",void 0),s([o.c,u("design:type",Object),u("design:paramtypes",[])],e.prototype,"y",null),s([o.c,u("design:type",Object),u("design:paramtypes",[])],e.prototype,"totalHeight",null),s([o.a,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],e.prototype,"_setYBlocks",null),s([o.a,u("design:type",Function),u("design:paramtypes",[]),u("design:returntype",void 0)],e.prototype,"recalcPositions",null),s([o.a,u("design:type",Function),u("design:paramtypes",[Object]),u("design:returntype",void 0)],e.prototype,"setViewport",null),s([o.a,u("design:type",Function),u("design:paramtypes",[Object,Object,Object]),u("design:returntype",void 0)],e.prototype,"scrollIntoView",null),e}();function l(e,t,n){void 0===n&&(n=0);for(var r=n,o=e.length-1;r!==o;){var i=Math.floor((r+o)/2);t(e[i])?o=i:r=r===i?o:i}return r}},Viqd:function(e,t){!function(t){var n=setTimeout;function r(){}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void s(t.promise,e)}a(t.promise,r)}else(1===e._state?a:s)(t.promise,e._value)})):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"==typeof n)return void c((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){s(e,t)}var r,i}function s(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t1)for(var n=1;n\n
\n \n \n \n
\n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={node:[{type:r.Input}],templates:[{type:r.Input}]},e}()},WD8g:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=function(e){return function(){for(var t=[],n=0;n\n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={node:[{type:r.Input}],dropIndex:[{type:r.Input}]},e}()},WhVc:function(e,t,n){"use strict";t.errorObject={e:{}}},X2NH:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerDatabase=y;var r,o=n("OPUS"),i=(r=o)&&r.__esModule?r:{default:r},a=n("0FLc"),s=n("NlDC"),u=n("xl3t"),c=n("Pu5a"),l=n("Rdm2"),p=d(n("nNfA")),h=d(n("mie3")),f=n("Vj55");function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(t){var n=t.INTERNAL.registerService("database",function(e,t,n){return l.RepoManager.getInstance().databaseFromApp(e,n)},{Reference:u.Reference,Query:s.Query,Database:a.Database,enableLogging:c.enableLogging,INTERNAL:p,ServerValue:a.Database.ServerValue,TEST_ACCESS:h},null,!0);(0,f.isNodeSdk)()&&(e.exports=n)}y(i.default)},XGdJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyncPoint=void 0;var r,o=n("dc2B"),i=n("+G+d"),a=n("nDT4"),s=n("zHK/"),u=n("qM+a"),c=n("ncE1"),l=function(){function e(){this.views_={}}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return(0,a.assert)(r,"Reference.ts has not been loaded"),r},set:function(e){(0,a.assert)(!r,"__referenceConstructor has already been defined"),r=e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return(0,s.isEmpty)(this.views_)},e.prototype.applyOperation=function(e,t,n){var r=e.source.queryId;if(null!==r){var o=(0,s.safeGet)(this.views_,r);return(0,a.assert)(null!=o,"SyncTree gave us an op for an invalid query."),o.applyOperation(e,t,n)}var i=[];return(0,s.forEach)(this.views_,function(r,o){i=i.concat(o.applyOperation(e,t,n))}),i},e.prototype.addEventRegistration=function(e,t,n,r,a){var l=e.queryIdentifier(),p=(0,s.safeGet)(this.views_,l);if(!p){var h=n.calcCompleteEventCache(a?r:null),f=!1;h?f=!0:r instanceof i.ChildrenNode?(h=n.calcCompleteEventChildren(r),f=!1):(h=i.ChildrenNode.EMPTY_NODE,f=!1);var d=new u.ViewCache(new o.CacheNode(h,f,!1),new o.CacheNode(r,a,!1));p=new c.View(e,d),this.views_[l]=p}return p.addEventRegistration(t),p.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var o=t.queryIdentifier(),i=[],a=[],u=this.hasCompleteView();if("default"===o){var c=this;(0,s.forEach)(this.views_,function(e,t){a=a.concat(t.removeEventRegistration(n,r)),t.isEmpty()&&(delete c.views_[e],t.getQuery().getQueryParams().loadsAllData()||i.push(t.getQuery()))})}else{var l=(0,s.safeGet)(this.views_,o);l&&(a=a.concat(l.removeEventRegistration(n,r)),l.isEmpty()&&(delete this.views_[o],l.getQuery().getQueryParams().loadsAllData()||i.push(l.getQuery())))}return u&&!this.hasCompleteView()&&i.push(new e.__referenceConstructor(t.repo,t.path)),{removed:i,events:a}},e.prototype.getQueryViews=function(){var e=this;return Object.keys(this.views_).map(function(t){return e.views_[t]}).filter(function(e){return!e.getQuery().getQueryParams().loadsAllData()})},e.prototype.getCompleteServerCache=function(e){var t=null;return(0,s.forEach)(this.views_,function(n,r){t=t||r.getCompleteServerCache(e)}),t},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return(0,s.safeGet)(this.views_,t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){return(0,s.findValue)(this.views_,function(e){return e.getQuery().getQueryParams().loadsAllData()})||null},e}();t.SyncPoint=l},XO5T:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("CURp"),i=n("wAkD");t.mergeMap=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new a(e,t,n))};var a=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=a;var s=function(e){function t(t,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(t,e),t.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(i.OuterSubscriber);t.MergeMapSubscriber=s},Xajo:function(e,t,n){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},XneF:function(e,t,n){"use strict";var r=n("3j3K"),o=n("y986"),i=function(){if("undefined"==typeof localStorage||"undefined"==typeof console||"undefined"==typeof window)return function(){};if(!localStorage||!console||!window)return function(){};function e(){return localStorage["mobx-angular-debug"]}window.mobxAngularDebug=function(e){e?localStorage["mobx-angular-debug"]=!0:delete localStorage["mobx-angular-debug"]},Object(o.i)(function(i){return e()&&function(e,i){!1===t&&"undefined"!=typeof navigator&&-1===navigator.userAgent.indexOf("Chrome")&&(console.warn("The output of the MobX logger is optimized for Chrome"),t=!0);var h,g=!0===e.spyReportStart,m=!0===e.spyReportEnd;0===n?(h=i(e),g&&!h&&(r=!0)):m&&r&&1===n?(h=!1,r=!1):h=!0!==r;if(h&&m)u(e.time);else if(h){var _=g?s:c;switch(e.type){case"action":_("%caction '%s' %s","color:dodgerblue",e.name,f("(",v(e.target))),c(e.arguments),p();break;case"transaction":_("%ctransaction '%s' %s","color:gray",e.name,f("(",v(e.target)));break;case"scheduled-reaction":_("%cscheduled async reaction '%s'","color:#10a210",d(e.object));break;case"reaction":_("%creaction '%s'","color:#10a210",d(e.object)),p();break;case"compute":s("%ccomputed '%s' %s","color:#10a210",d(e.object),f("(",v(e.target))),u();break;case"error":_("%cerror: %s","color:tomato",e.message),p(),function(){for(var e=0,t=a;e100?e.substr(0,97)+"...":e:f("(",v(e))}function v(e){if(null===e||void 0===e)return"";if(e&&"object"==typeof e){if(e&&e.$mobx)return e.$mobx.name;if(e.constructor)return e.constructor.name||"object"}return typeof e}return function(t,n,r){if(e()){var i=t.rootNodes[0];n.listen(i,"contextmenu",function(){console.log(o.d.getDependencyTree(r))})}}}();n.d(t,"a",function(){return a});var a=function(){function e(e,t,n){this.templateRef=e,this.viewContainer=t,this.renderer=n,this.templateBindings={}}return e.prototype.ngOnInit=function(){this.view=this.viewContainer.createEmbeddedView(this.templateRef),this.dispose&&this.dispose(),this.autoDetect(this.view),i(this.view,this.renderer,this.dispose)},e.prototype.autoDetect=function(e){var t=e._view.component?e._view.component.constructor.name+".detectChanges()":e._view.parentView.context.constructor.name+".detectChanges()";this.dispose=Object(o.b)(t,function(){return e.detectChanges()})},e.prototype.ngOnDestroy=function(){this.dispose&&this.dispose()},e.decorators=[{type:r.Directive,args:[{selector:"[mobxAutorun]"}]}],e.ctorParameters=function(){return[{type:r.TemplateRef},{type:r.ViewContainerRef},{type:r.Renderer}]},e}()},XzHM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringData=t.StringFormat=void 0,t.formatValidator=function(e){switch(e){case o.RAW:case o.BASE64:case o.BASE64URL:case o.DATA_URL:return;default:throw"Expected one of the event types: ["+o.RAW+", "+o.BASE64+", "+o.BASE64URL+", "+o.DATA_URL+"]."}},t.dataFromString=function(e,t){switch(e){case o.RAW:return new i(a(t));case o.BASE64:case o.BASE64URL:return new i(u(e,t));case o.DATA_URL:return new i(l(t),p(t))}throw r.unknown()},t.utf8Bytes_=a,t.percentEncodedBytes_=s,t.base64Bytes_=u,t.dataURLBytes_=l,t.dataURLContentType_=p;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n("pkaK"));var o=t.StringFormat={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};var i=function(){return function(e,t){this.data=e,this.contentType=t||null}}();function a(e){for(var t=[],n=0;n>6,128|63&r);else if(55296==(64512&r))if(n>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function s(e){var t;try{t=decodeURIComponent(e)}catch(e){throw r.invalidFormat(o.DATA_URL,"Malformed data URL.")}return a(t)}function u(e,t){switch(e){case o.BASE64:var n=-1!==t.indexOf("-"),i=-1!==t.indexOf("_");if(n||i){var a=n?"-":"_";throw r.invalidFormat(e,"Invalid character '"+a+"' found: is it base64url encoded?")}break;case o.BASE64URL:var s=-1!==t.indexOf("+"),u=-1!==t.indexOf("/");if(s||u){a=s?"+":"/";throw r.invalidFormat(e,"Invalid character '"+a+"' found: is it base64 encoded?")}t=t.replace(/-/g,"+").replace(/_/g,"/")}var c;try{c=atob(t)}catch(t){throw r.invalidFormat(e,"Invalid character found")}for(var l=new Uint8Array(c.length),p=0;p][;base64],");var n=t[1]||null;null!=n&&(this.base64=(i=n,a=";base64",i.length>=a.length&&i.substring(i.length-a.length)===a),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var i,a}}();function l(e){var t=new c(e);return t.base64?u(o.BASE64,t.rest):s(t.rest)}function p(e){return new c(e).contentType}},YA2h:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validatePriorityNode=t.priorityHashText=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.setMaxNode=function(e){o=e};var o,i=n("nDT4"),a=n("Pu5a"),s=n("zHK/");t.priorityHashText=function(e){return"number"==typeof e?"number:"+(0,a.doubleToIEEE754String)(e):"string:"+e},t.validatePriorityNode=function(e){if(e.isLeafNode()){var t=e.val();(0,i.assert)("string"==typeof t||"number"==typeof t||"object"===("undefined"==typeof t?"undefined":r(t))&&(0,s.contains)(t,".sv"),"Priority must be a string or number.")}else(0,i.assert)(e===o||e.isEmpty(),"priority of unexpected type.");(0,i.assert)(e===o||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")}},YW5C:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resumableUploadChunkSize=t.ResumableUploadStatus=void 0,t.handlerCheck=h,t.metadataHandler=f,t.sharedErrorHandler=d,t.objectErrorHandler=y,t.getMetadata=function(e,t,n){var r=t.fullServerUrl(),o=l.makeNormalUrl(r),i=e.maxOperationRetryTime(),a=new u.RequestInfo(o,"GET",f(e,n),i);return a.errorHandler=y(t),a},t.updateMetadata=function(e,t,n,r){var o=t.fullServerUrl(),i=l.makeNormalUrl(o),s=a.toResourceString(n,r),c=e.maxOperationRetryTime(),p=new u.RequestInfo(i,"PATCH",f(e,r),c);return p.headers={"Content-Type":"application/json; charset=utf-8"},p.body=s,p.errorHandler=y(t),p},t.deleteObject=function(e,t){var n=t.fullServerUrl(),r=l.makeNormalUrl(n),o=e.maxOperationRetryTime();var i=new u.RequestInfo(r,"DELETE",function(e,t){},o);return i.successCodes=[200,204],i.errorHandler=y(t),i},t.determineContentType_=v,t.metadataForUpload_=g,t.multipartUpload=function(e,t,n,r,s){var c=t.bucketOnlyServerUrl(),p={"X-Goog-Upload-Protocol":"multipart"};var h=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();p["Content-Type"]="multipart/related; boundary="+h;var y=g(t,r,s),v=a.toResourceString(y,n),m="--"+h+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+v+"\r\n--"+h+"\r\nContent-Type: "+y.contentType+"\r\n\r\n",_="\r\n--"+h+"--",b=o.FbsBlob.getBlob(m,r,_);if(null===b)throw i.cannotSliceBlob();var w={name:y.fullPath},E=l.makeUploadUrl(c),C=e.maxUploadRetryTime(),S=new u.RequestInfo(E,"POST",f(e,n),C);return S.urlParams=w,S.headers=p,S.body=b.uploadData(),S.errorHandler=d(t),S},t.checkResumeHeader_=_,t.createResumableUpload=function(e,t,n,r,o){var i=t.bucketOnlyServerUrl(),s=g(t,r,o),p={name:s.fullPath},f=l.makeUploadUrl(i),y={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},v=a.toResourceString(s,n),m=e.maxUploadRetryTime();var b=new u.RequestInfo(f,"POST",function(e,t){var n;_(e);try{n=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){h(!1)}return h(c.isString(n)),n},m);return b.urlParams=p,b.headers=y,b.body=v,b.errorHandler=d(t),b},t.getResumableUploadStatus=function(e,t,n,r){var o=e.maxUploadRetryTime(),i=new u.RequestInfo(n,"POST",function(e,t){var n,o=_(e,["active","final"]);try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){h(!1)}var i=parseInt(n,10);return h(!isNaN(i)),new m(i,r.size(),"final"===o)},o);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=d(t),i},t.continueResumableUpload=function(e,t,n,r,o,a,s,c){var l=new m(0,0);s?(l.current=s.current,l.total=s.total):(l.current=0,l.total=r.size());if(r.size()!==l.total)throw i.serverFileWrongSize();var p=l.total-l.current,h=p;o>0&&(h=Math.min(h,o));var y=l.current,v=y+h,g={"X-Goog-Upload-Command":h===p?"upload, finalize":"upload","X-Goog-Upload-Offset":l.current},b=r.slice(y,v);if(null===b)throw i.cannotSliceBlob();var w=t.maxUploadRetryTime(),E=new u.RequestInfo(n,"POST",function(e,n){var o,i=_(e,["active","final"]),s=l.current+h,u=r.size();o="final"===i?f(t,a)(e,n):null;return new m(s,u,"final"===i,o)},w);return E.headers=g,E.body=b.uploadData(),E.progressCallback=c||null,E.errorHandler=d(e),E};var r=p(n("y50t")),o=n("g2LE"),i=p(n("pkaK")),a=p(n("MZj/")),s=p(n("i2g2")),u=n("mISJ"),c=p(n("BjtA")),l=p(n("400e"));function p(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function h(e){if(!e)throw i.unknown()}function f(e,t){return function(n,r){var o=a.fromResourceString(e,r,t);return h(null!==o),o}}function d(e){return function(t,n){var r;return(r=401===t.getStatus()?i.unauthenticated():402===t.getStatus()?i.quotaExceeded(e.bucket):403===t.getStatus()?i.unauthorized(e.path):n).setServerResponseProp(n.serverResponseProp()),r}}function y(e){var t=d(e);return function(n,r){var o=t(n,r);return 404===n.getStatus()&&(o=i.objectNotFound(e.path)),o.setServerResponseProp(r.serverResponseProp()),o}}function v(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}function g(e,t,n){var r=s.clone(n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=v(null,t)),r}var m=function(){return function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null}}();function _(e,t){var n;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){h(!1)}var o=t||["active"];return h(r.contains(o,n)),n}t.ResumableUploadStatus=m;t.resumableUploadChunkSize=262144},YdOc:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i,a=n("3j3K"),s=n("NVOs"),u=n("s7hI"),c=i=function(){function e(e){this.host=e}return e.prototype.writeValue=function(e){e||this.host.reset()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.onResolve=function(e){this.onChange&&this.onChange(e),this.onTouched&&this.onTouched()},e}();r([a.HostListener("resolved",["$event"]),o("design:type",Function),o("design:paramtypes",[String]),o("design:returntype",void 0)],c.prototype,"onResolve",null),c=i=r([a.Directive({providers:[{multi:!0,provide:s.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return i})}],selector:"recaptcha"}),o("design:paramtypes",[u.RecaptchaComponent])],c),t.RecaptchaValueAccessorDirective=c},Yh8Q:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("rCTf"),i=n("RRVv"),a=n("jBEF"),s=n("fWbP"),u=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return r(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n1?new t(e,r):1===o?new i.ScalarObservable(e[0],r):new a.EmptyObservable(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.count,o=e.subscriber;n>=r?o.complete():(o.next(t[n]),o.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;ip/3&&(0,u.stringLength)(n)>p)throw new Error(t+"contains a string greater than "+p+" utf8 bytes "+c.toErrorString()+" ('"+n.substring(0,50)+"...')");if(n&&"object"===("undefined"==typeof n?"undefined":r(n))){var l=!1,f=!1;if((0,i.forEach)(n,function(n,r){if(".value"===n)l=!0;else if(".priority"!==n&&".sv"!==n&&(f=!0,!h(n)))throw new Error(t+" contains an invalid key ("+n+") "+c.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');c.push(n),e(t,r,c),c.pop()}),l&&f)throw new Error(t+' contains ".value" child '+c.toErrorString()+" in addition to actual children.")}}),g=t.validateFirebaseMergePaths=function(e,t){var n,r;for(n=0;n0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.OuterSubscriber);t.MergeAllSubscriber=s},ccDS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMap=void 0;var r=i(n("i2g2")),o=i(n("GzZx"));function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var a=function(){function e(){this.map_={},this.id_=o.minSafeInteger}return e.prototype.addRequest=function(e){var t=this.id_;this.id_++,this.map_[t]=e;var n=this;function r(){delete n.map_[t]}e.getPromise().then(r,r)},e.prototype.clear=function(){r.forEach(this.map_,function(e,t){t&&t.cancel(!0)}),this.map_={}},e}();t.RequestMap=a},cdmN:function(e,t,n){"use strict";var r=n("VOfZ");function o(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i"}),n=this.serviceName+": "+n+" ("+o+").";var a=new i(o,n);for(var s in t)t.hasOwnProperty(s)&&"_"!==s.slice(-1)&&(a[s]=t[s]);return a},e}();t.ErrorFactory=a},dc2B:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}();t.CacheNode=r},drxG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventEmitter=void 0;var r=n("nDT4"),o=function(){function e(e){this.allowedEvents_=e,this.listeners_={},(0,r.assert)(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n\n \n \n \n \n \n \n \n '}]}],e.ctorParameters=function(){return[{type:o.a},{type:i.a},{type:r.Renderer}]},e.propDecorators={loadingTemplate:[{type:r.ContentChild,args:["loadingTemplate"]}],treeNodeTemplate:[{type:r.ContentChild,args:["treeNodeTemplate"]}],treeNodeWrapperTemplate:[{type:r.ContentChild,args:["treeNodeWrapperTemplate"]}],treeNodeFullTemplate:[{type:r.ContentChild,args:["treeNodeFullTemplate"]}],nodes:[{type:r.Input}],options:[{type:r.Input}],focused:[{type:r.Input}],state:[{type:r.Input}],toggleExpanded:[{type:r.Output}],activate:[{type:r.Output}],deactivate:[{type:r.Output}],focus:[{type:r.Output}],blur:[{type:r.Output}],updateData:[{type:r.Output}],initialized:[{type:r.Output}],moveNode:[{type:r.Output}],copyNode:[{type:r.Output}],loadNodeChildren:[{type:r.Output}],changeFilter:[{type:r.Output}],event:[{type:r.Output}],stateChange:[{type:r.Output}],onKeydown:[{type:r.HostListener,args:["body: keydown",["$event"]]}],onMousedown:[{type:r.HostListener,args:["body: mousedown",["$event"]]}]},e}()},emOw:function(e,t,n){"use strict";var r=n("sIYO");t.multicast=function(e,t){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof t)return this.lift(new o(n,t));var i=Object.create(this,r.connectableObservableDescriptor);return i.source=this,i.subjectFactory=n,i};var o=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(e);return o.add(t.subscribe(r)),o},e}();t.MulticastOperator=o},eoHB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteTreeRef=t.WriteTree=void 0;var r=n("zHK/"),o=n("nDT4"),i=n("AHVm"),a=n("tR24"),s=n("OfTL"),u=n("+G+d"),c=function(){function e(){this.visibleWrites_=a.CompoundWrite.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new l(e,this)},e.prototype.addOverwrite=function(e,t,n,r){(0,o.assert)(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){(0,o.assert)(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t=0,"removeWrite called with nonexistent writeId.");var i=this.allWrites_[n];this.allWrites_.splice(n,1);for(var a=i.visible,s=!1,u=this.allWrites_.length-1;a&&u>=0;){var c=this.allWrites_[u];c.visible&&(u>=n&&this.recordContainsPath_(c,i.path)?a=!1:i.path.contains(c.path)&&(s=!0)),u--}if(a){if(s)return this.resetTree_(),!0;if(i.snap)this.visibleWrites_=this.visibleWrites_.removeWrite(i.path);else{var l=i.children;(0,r.forEach)(l,function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(i.path.child(e))})}return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,o){if(r||o){var a=this.visibleWrites_.childCompoundWrite(t);if(!o&&a.isEmpty())return n;if(o||null!=n||a.hasCompleteWrite(i.Path.Empty)){var s=e.layerTree_(this.allWrites_,function(e){return(e.visible||o)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))},t);p=n||u.ChildrenNode.EMPTY_NODE;return s.apply(p)}return null}var c=this.visibleWrites_.getCompleteNode(t);if(null!=c)return c;var l=this.visibleWrites_.childCompoundWrite(t);if(l.isEmpty())return n;if(null!=n||l.hasCompleteWrite(i.Path.Empty)){var p=n||u.ChildrenNode.EMPTY_NODE;return l.apply(p)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=u.ChildrenNode.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild(s.PRIORITY_INDEX,function(e,t){n=n.updateImmediateChild(e,t)}),n;if(t){var o=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(s.PRIORITY_INDEX,function(e,t){var r=o.childCompoundWrite(new i.Path(e)).apply(t);n=n.updateImmediateChild(e,r)}),o.getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){(0,o.assert)(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var a=this.visibleWrites_.childCompoundWrite(i);return a.isEmpty()?r.getChild(t):a.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),o=this.visibleWrites_.getCompleteNode(r);return null!=o?o:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,o,a){var s,u=this.visibleWrites_.childCompoundWrite(e),c=u.getCompleteNode(i.Path.Empty);if(null!=c)s=c;else{if(null==t)return[];s=u.apply(t)}if((s=s.withIndex(a)).isEmpty()||s.isLeafNode())return[];for(var l=[],p=a.getCompare(),h=o?s.getReverseIteratorFrom(n,a):s.getIteratorFrom(n,a),f=h.getNext();f&&l.length0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var s=a.CompoundWrite.Empty,u=0;u0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}();t.TransportManager=a},kkb0:function(e,t,n){"use strict";var r=n("rCTf"),o=n("Yh8Q"),i=n("cbuX"),a=n("fWbP");function s(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof r.Observable?e[0]:new o.ArrayObservable(e,s).lift(new i.MergeAllOperator(n))}t.merge=function(){for(var e=[],t=0;tn&&(o=0===n?"none":"no more than "+n),o)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+o+".")};function o(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}var o=e+" failed: ";return o+=r+" argument "}t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(o(e,t,r)+"must be a valid firebase namespace.")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(o(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,i){if((!i||n)&&("object"!==("undefined"==typeof n?"undefined":r(n))||null===n))throw new Error(o(e,t,i)+"must be a valid context object.")}},lHsB:function(e,t,n){"use strict";var r=n("mmVS"),o=n("r8ZY"),i=n("yrou");t.toSubscriber=function(e,t,n){if(e){if(e instanceof r.Subscriber)return e;if(e[o.rxSubscriber])return e[o.rxSubscriber]()}return e||t||n?new r.Subscriber(e,t,n):new r.Subscriber(i.empty)}},lOHh:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("3j3K"),o=function(){function e(){}return e.decorators=[{type:r.Component,args:[{selector:"tree-node-content",encapsulation:r.ViewEncapsulation.None,template:'\n {{ node.displayField }}\n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={node:[{type:r.Input}],index:[{type:r.Input}],template:[{type:r.Input}]},e}()},lRZB:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadonlyRestClient=void 0;var r,o=n("nDT4"),i=n("Pu5a"),a=n("p0Bl"),s=n("zHK/"),u=n("JCre"),c=n("4fh5"),l=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t,n,r){var o=e.call(this)||this;return o.repoInfo_=t,o.onDataUpdate_=n,o.authTokenProvider_=r,o.log_=(0,i.logWrapper)("p:rest:"),o.listens_={},o}return l(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:((0,o.assert)(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,o){var i=this,a=e.path.toString();this.log_("Listen called for "+a+" "+e.queryIdentifier());var u=t.getListenId_(e,r),c={};this.listens_[u]=c;var l=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(a+".json",l,function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&i.onDataUpdate_(a,n,!1,r),(0,s.safeGet)(i.listens_,u)===c)&&o(e?401==e?"permission_denied":"rest_error:"+e:"ok",null)})},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then(function(o){var s=o&&o.accessToken;s&&(t.auth=s);var c=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?"+(0,u.querystring)(t);r.log_("Sending REST request for "+c);var l=new XMLHttpRequest;l.onreadystatechange=function(){if(n&&4===l.readyState){r.log_("REST Response for "+c+" received. status:",l.status,"response:",l.responseText);var e=null;if(l.status>=200&&l.status<300){try{e=(0,a.jsonEval)(l.responseText)}catch(e){(0,i.warn)("Failed to parse JSON response for "+c+": "+l.responseText)}n(null,e)}else 401!==l.status&&404!==l.status&&(0,i.warn)("Got unsuccessful REST response for "+c+" Status: "+l.status),n(l.status);n=null}},l.open("GET",c,!0),l.send()})},t}(c.ServerActions);t.ReadonlyRestClient=p},lgiQ:function(e,t,n){"use strict";var r=n("Yh8Q");t.of=r.ArrayObservable.of},lh9w:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Merge=void 0;var r=n("oo3z"),o=n("/47g"),i=n("AHVm"),a=n("nDT4"),s=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=r.OperationType.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new i.Path(t));return n.isEmpty()?null:n.value?new o.Overwrite(this.source,i.Path.Empty,n.value):new e(this.source,i.Path.Empty,n)}return(0,a.assert)(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}();t.Merge=s},lm8G:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAdmin=t.isValidFormat=t.issuedAtTime=t.isValidTimestamp=t.decode=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("Pu5a"),i=n("p0Bl"),a=t.decode=function(e){var t={},n={},r={},a="";try{var s=e.split(".");t=(0,i.jsonEval)((0,o.base64Decode)(s[0])||""),n=(0,i.jsonEval)((0,o.base64Decode)(s[1])||""),a=s[2],r=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:r,signature:a}};t.isValidTimestamp=function(e){var t,n,o=a(e).claims,i=Math.floor((new Date).getTime()/1e3);return"object"===("undefined"==typeof o?"undefined":r(o))&&(o.hasOwnProperty("nbf")?t=o.nbf:o.hasOwnProperty("iat")&&(t=o.iat),n=o.hasOwnProperty("exp")?o.exp:t+86400),i&&t&&n&&i>=t&&i<=n},t.issuedAtTime=function(e){var t=a(e).claims;return"object"===("undefined"==typeof t?"undefined":r(t))&&t.hasOwnProperty("iat")?t.iat:null},t.isValidFormat=function(e){var t=a(e),n=t.claims;return!!t.signature&&!!n&&"object"===("undefined"==typeof n?"undefined":r(n))&&n.hasOwnProperty("iat")},t.isAdmin=function(e){var t=a(e).claims;return"object"===("undefined"==typeof t?"undefined":r(t))&&!0===t.admin}},lmz0:function(e,t,n){"use strict";(function(e){var n;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"!=typeof e)n=e;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}t.globalScope=n}).call(t,n("DuR2"))},lp2h:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Repo=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("qI4S"),i=n("uGuS"),a=n("AHVm"),s=n("5Gco"),u=n("QcIQ"),c=n("vw/H"),l=n("p0Bl"),p=n("Pu5a"),h=n("zHK/"),f=n("ywjp"),d=n("jtvX"),y=n("QH7q"),v=n("UiLV"),g=n("FM3S"),m=n("UPil"),_=n("lRZB"),b=n("0FLc"),w=function(){function e(e,t,n){var o=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new g.EventQueue,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new s.SparseSnapshotTree,this.persistentConnection_=null;var i=new f.AuthTokenProvider(n);if(this.stats_=d.StatsManager.getCollection(e),t||(0,p.beingCrawled)())this.server_=new _.ReadonlyRestClient(this.repoInfo_,this.onDataUpdate_.bind(this),i),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var a=n.options.databaseAuthVariableOverride;if("undefined"!=typeof a&&null!==a){if("object"!==("undefined"==typeof a?"undefined":r(a)))throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,l.stringify)(a)}catch(e){throw new Error("Invalid authOverride provided: "+e)}}this.persistentConnection_=new m.PersistentConnection(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),i,a),this.server_=this.persistentConnection_}i.addTokenChangeListener(function(e){o.server_.refreshAuthToken(e)}),this.statsReporter_=d.StatsManager.getOrCreateReporter(e,function(){return new y.StatsReporter(o.stats_,o.server_)}),this.transactions_init_(),this.infoData_=new c.SnapshotHolder,this.infoSyncTree_=new u.SyncTree({startListening:function(e,t,n,r){var i=[],a=o.infoData_.getNode(e.path);return a.isEmpty()||(i=o.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout(function(){r("ok")},0)),i},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new u.SyncTree({startListening:function(e,t,n,r){return o.server_.listen(e,n,t,function(t,n){var i=r(t,n);o.eventQueue_.raiseEventsForChangedPath(e.path,i)}),[]},stopListening:function(e,t){o.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new a.Path(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e},e.prototype.generateServerValues=function(){return(0,o.generateWithValues)({timestamp:this.serverTime()})},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var o=new a.Path(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var s=[];if(r)if(n){var u=(0,h.map)(t,function(e){return(0,i.nodeFromJSON)(e)});s=this.serverSyncTree_.applyTaggedQueryMerge(o,u,r)}else{var c=(0,i.nodeFromJSON)(t);s=this.serverSyncTree_.applyTaggedQueryOverwrite(o,c,r)}else if(n){var l=(0,h.map)(t,function(e){return(0,i.nodeFromJSON)(e)});s=this.serverSyncTree_.applyServerMerge(o,l)}else{var p=(0,i.nodeFromJSON)(t);s=this.serverSyncTree_.applyServerOverwrite(o,p)}var f=o;s.length>0&&(f=this.rerunTransactions_(o)),this.eventQueue_.raiseEventsForChangedPath(f,s)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;(0,p.each)(e,function(e,n){t.updateInfo_(n,e)})},e.prototype.updateInfo_=function(e,t){var n=new a.Path("/.info/"+e),r=(0,i.nodeFromJSON)(t);this.infoData_.updateSnapshot(n,r);var o=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,o)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var a=this;this.log_("set",{path:e.toString(),value:t,priority:n});var s=this.generateServerValues(),u=(0,i.nodeFromJSON)(t,n),c=(0,o.resolveDeferredValueSnapshot)(u,s),l=this.getNextWriteId_(),h=this.serverSyncTree_.applyUserOverwrite(e,c,l,!0);this.eventQueue_.queueEvents(h),this.server_.put(e.toString(),u.val(!0),function(t,n){var o="ok"===t;o||(0,p.warn)("set at "+e+" failed: "+t);var i=a.serverSyncTree_.ackUserWrite(l,!o);a.eventQueue_.raiseEventsForChangedPath(e,i),a.callOnCompleteCallback(r,t,n)});var f=this.abortTransactions_(e);this.rerunTransactions_(f),this.eventQueue_.raiseEventsForChangedPath(f,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var a=!0,s=this.generateServerValues(),u={};if((0,h.forEach)(t,function(e,t){a=!1;var n=(0,i.nodeFromJSON)(t);u[e]=(0,o.resolveDeferredValueSnapshot)(n,s)}),a)(0,p.log)("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var c=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserMerge(e,u,c);this.eventQueue_.queueEvents(l),this.server_.merge(e.toString(),t,function(t,o){var i="ok"===t;i||(0,p.warn)("update at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(c,!i),s=a.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(s,a),r.callOnCompleteCallback(n,t,o)}),(0,h.forEach)(t,function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)}),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=[];(0,o.resolveDeferredValueTree)(this.onDisconnect_,t).forEachTree(a.Path.Empty,function(t,r){n=n.concat(e.serverSyncTree_.applyServerOverwrite(t,r));var o=e.abortTransactions_(t);e.rerunTransactions_(o)}),this.onDisconnect_=new s.SparseSnapshotTree,this.eventQueue_.raiseEventsForChangedPath(a.Path.Empty,n)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),function(r,o){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,o)})},e.prototype.onDisconnectSet=function(e,t,n){var r=this,o=(0,i.nodeFromJSON)(t);this.server_.onDisconnectPut(e.toString(),o.val(!0),function(t,i){"ok"===t&&r.onDisconnect_.remember(e,o),r.callOnCompleteCallback(n,t,i)})},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var o=this,a=(0,i.nodeFromJSON)(t,n);this.server_.onDisconnectPut(e.toString(),a.val(!0),function(t,n){"ok"===t&&o.onDisconnect_.remember(e,a),o.callOnCompleteCallback(r,t,n)})},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if((0,h.isEmpty)(t))return(0,p.log)("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,function(o,a){"ok"===o&&(0,h.forEach)(t,function(t,n){var o=(0,i.nodeFromJSON)(n);r.onDisconnect_.remember(e.child(t),o)}),r.callOnCompleteCallback(n,o,a)})},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!=typeof console){var t;e?(this.statsListener_||(this.statsListener_=new v.StatsListener(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce(function(e,t){return Math.max(t.length,e)},0);(0,h.forEach)(t,function(e,t){for(var r=e.length;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("3j3K"),s=n("TfWX");t.RECAPTCHA_LANGUAGE=new a.OpaqueToken("recaptcha-language");var u,c=u=function(){function e(e){this.language=e,this.init(),this.ready=u.ready.asObservable()}return e.prototype.init=function(){if(!u.ready){window.ng2recaptchaloaded=function(){u.ready.next(grecaptcha)},u.ready=new s.BehaviorSubject(null);var e=document.createElement("script");e.innerHTML="";var t=this.language?"&hl="+this.language:"";e.src="https://www.google.com/recaptcha/api.js?render=explicit&onload=ng2recaptchaloaded"+t,e.async=!0,e.defer=!0,document.head.appendChild(e)}},e}();c=u=r([a.Injectable(),i(0,a.Optional()),i(0,a.Inject(t.RECAPTCHA_LANGUAGE)),o("design:paramtypes",[String])],c),t.RecaptchaLoaderService=c},mRQE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventGenerator=void 0;var r=n("coin"),o=n("uj1K"),i=n("nDT4"),a=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],a=[];return e.forEach(function(e){e.type===o.Change.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&a.push(o.Change.childMovedChange(e.childName,e.snapshotNode))}),this.generateEventsForType_(i,o.Change.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,o.Change.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,o.Change.CHILD_MOVED,a,n,t),this.generateEventsForType_(i,o.Change.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,o.Change.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,o){var i=this,a=n.filter(function(e){return e.type===t});a.sort(this.compareChanges_.bind(this)),a.forEach(function(t){var n=i.materializeSingleChange_(t,o);r.forEach(function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,i.query_))})})},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type?e:(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_),e)},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw(0,i.assertionError)("Should only compare child_ events.");var n=new r.NamedNode(e.childName,e.snapshotNode),o=new r.NamedNode(t.childName,t.snapshotNode);return this.index_.compare(n,o)},e}();t.EventGenerator=a},mbVC:function(e,t,n){"use strict";var r=n("VOfZ");function o(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.getSymbolObservable=o,t.observable=o(r.root),t.$$observable=t.observable},mie3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forceRestClient=t.listens=t.queryIdentifier=t.ConnectionTarget=t.hijackHash=t.RealTimeConnection=t.DataConnection=void 0;var r=n("19po"),o=n("UPil"),i=n("Rdm2"),a=n("0QH/");t.DataConnection=o.PersistentConnection;o.PersistentConnection.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},o.PersistentConnection.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};t.RealTimeConnection=a.Connection,t.hijackHash=function(e){var t=o.PersistentConnection.prototype.put;return o.PersistentConnection.prototype.put=function(n,r,o,i){void 0!==i&&(i=e()),t.call(this,n,r,o,i)},function(){o.PersistentConnection.prototype.put=t}},t.ConnectionTarget=r.RepoInfo,t.queryIdentifier=function(e){return e.queryIdentifier()},t.listens=function(e){return e.repo.persistentConnection_.listens_},t.forceRestClient=function(e){i.RepoManager.getInstance().forceRestClient(e)}},mmVS:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("SKH6"),i=n("B00U"),a=n("yrou"),s=n("r8ZY"),u=function(e){function t(n,r,o){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a.empty;break;case 1:if(!n){this.destination=a.empty;break}if("object"==typeof n){n instanceof t?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return r(t,e),t.prototype[s.rxSubscriber]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(i.Subscription);t.Subscriber=u;var c=function(e){function t(t,n,r,i){var s;e.call(this),this._parentSubscriber=t;var u=this;o.isFunction(n)?s=n:n&&(s=n.next,r=n.error,i=n.complete,n!==a.empty&&(u=Object.create(n),o.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=s,this._error=r,this._complete=i}return r(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u)},mzAu:function(e,t){"undefined"!=typeof Element&&("function"!=typeof Element.prototype.matches&&(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=0;t[n]&&t[n]!==this;)++n;return Boolean(t[n])}),"function"!=typeof Element.prototype.closest&&(Element.prototype.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null}))},n2bm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedFilter=void 0;var r=n("nDT4"),o=n("uj1K"),i=n("+G+d"),a=n("OfTL"),s=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,i,a,s){(0,r.assert)(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var u=e.getImmediateChild(t);return u.getChild(i).equals(n.getChild(i))&&u.isEmpty()==n.isEmpty()?e:(null!=s&&(n.isEmpty()?e.hasChild(t)?s.trackChildChange(o.Change.childRemovedChange(t,u)):(0,r.assert)(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):u.isEmpty()?s.trackChildChange(o.Change.childAddedChange(t,n)):s.trackChildChange(o.Change.childChangedChange(t,n,u))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(a.PRIORITY_INDEX,function(e,r){t.hasChild(e)||n.trackChildChange(o.Change.childRemovedChange(e,r))}),t.isLeafNode()||t.forEachChild(a.PRIORITY_INDEX,function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(o.Change.childChangedChange(t,r,i))}else n.trackChildChange(o.Change.childAddedChange(t,r))})),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?i.ChildrenNode.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}();t.IndexedFilter=s},nDT4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertionError=t.assert=void 0;var r=n("cGm6"),o=(t.assert=function(e,t){if(!e)throw o(t)},t.assertionError=function(e){return new Error("Firebase Database ("+r.CONSTANTS.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)})},nFIP:function(e,t,n){"use strict";var r=n("VOfZ");t.toPromise=function(e){var t=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})}},nNfA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interceptServerData=t.dataUpdateCount=t.statsIncrementCounter=t.stats=t.setSecurityDebugCallback=t.isWebSocketsAvailable=t.forceWebSockets=t.forceLongPolling=void 0;var r=n("qkjB"),o=n("3mJf");t.forceLongPolling=function(){r.WebSocketConnection.forceDisallow(),o.BrowserPollConnection.forceAllow()},t.forceWebSockets=function(){o.BrowserPollConnection.forceDisallow()},t.isWebSocketsAvailable=function(){return r.WebSocketConnection.isAvailable()},t.setSecurityDebugCallback=function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},t.stats=function(e,t){e.repo.stats(t)},t.statsIncrementCounter=function(e,t){e.repo.statsIncrementCounter(t)},t.dataUpdateCount=function(e){return e.repo.dataUpdateCount},t.interceptServerData=function(e,t){return e.repo.interceptServerData_(t)}},ncE1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.View=void 0;var r=n("n2bm"),o=n("L3Eg"),i=n("+G+d"),a=n("dc2B"),s=n("qM+a"),u=n("mRQE"),c=n("nDT4"),l=n("oo3z"),p=n("uj1K"),h=n("OfTL"),f=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),c=new r.IndexedFilter(n.getIndex()),l=n.getNodeFilter();this.processor_=new o.ViewProcessor(l);var p=t.getServerCache(),h=t.getEventCache(),f=c.updateFullNode(i.ChildrenNode.EMPTY_NODE,p.getNode(),null),d=l.updateFullNode(i.ChildrenNode.EMPTY_NODE,h.getNode(),null),y=new a.CacheNode(f,p.isFullyInitialized(),c.filtersNodes()),v=new a.CacheNode(d,h.isFullyInitialized(),l.filtersNodes());this.viewCache_=new s.ViewCache(v,y),this.eventGenerator_=new u.EventGenerator(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){(0,c.assert)(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach(function(e){t=t;var o=e.createCancelEvent(t,r);o&&n.push(o)})}if(e){for(var o=[],i=0;i\n \n\n \n \n \n \n \n '}]}],e.ctorParameters=function(){return[]},e.propDecorators={node:[{type:r.Input}]},e}()},p0Bl:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.jsonEval=function(e){return JSON.parse(e)},t.stringify=function(e){return JSON.stringify(e)}},pEfg:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringLength=t.stringToByteArray=void 0;var r=n("nDT4");t.stringToByteArray=function(e){for(var t=[],n=0,o=0;o=55296&&i<=56319){var a=i-55296;o++,(0,r.assert)(o>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t.stringLength=function(e){for(var t=0,n=0;n=55296&&r<=56319?(t+=4,n++):t+=3}return t}},pag3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={granted:"granted",default:"default",denied:"denied"},e.exports=t.default},pfRk:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),t.b=s;var r=n("3j3K"),o=n("s7hI"),i=(n.n(o),n("mNMN")),a=(n.n(i),r["\u0275crt"]({encapsulation:2,styles:[],data:{}}));function s(e){return r["\u0275vid"](0,[],null,null)}r["\u0275ccf"]("recaptcha",o.RecaptchaComponent,function(e){return r["\u0275vid"](0,[(e()(),r["\u0275eld"](0,null,null,1,"recaptcha",[],[[1,"id",0]],null,null,s,a)),r["\u0275did"](4374528,null,0,o.RecaptchaComponent,[i.RecaptchaLoaderService,r.NgZone],null,null)],null,function(e,t){e(t,0,0,r["\u0275nov"](t,1).id)})},{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex"},{resolved:"resolved"},[])},pgP5:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("mmVS");t.reduce=function(e,t){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new i(e,t,n))};var i=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.accumulator,this.seed,this.hasSeed))},e}();t.ReduceOperator=i;var a=function(e){function t(t,n,r,o){e.call(this,t),this.accumulator=n,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return r(t,e),t.prototype._next=function(e){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(e):(this.acc=e,this.hasValue=!0)},t.prototype._tryReduce=function(e){var t;try{t=this.accumulator(this.acc,e,this.index++)}catch(e){return void this.destination.error(e)}this.acc=t},t.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},t}(o.Subscriber);t.ReduceSubscriber=a},pkaK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Code=t.errors=t.FirebaseStorageError=void 0,t.prependCode=a,t.unknown=function(){return new o(i.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")},t.objectNotFound=function(e){return new o(i.OBJECT_NOT_FOUND,"Object '"+e+"' does not exist.")},t.bucketNotFound=function(e){return new o(i.BUCKET_NOT_FOUND,"Bucket '"+e+"' does not exist.")},t.projectNotFound=function(e){return new o(i.PROJECT_NOT_FOUND,"Project '"+e+"' does not exist.")},t.quotaExceeded=function(e){return new o(i.QUOTA_EXCEEDED,"Quota for bucket '"+e+"' exceeded, please view quota on https://firebase.google.com/pricing/.")},t.unauthenticated=function(){return new o(i.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again.")},t.unauthorized=function(e){return new o(i.UNAUTHORIZED,"User does not have permission to access '"+e+"'.")},t.retryLimitExceeded=function(){return new o(i.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")},t.invalidChecksum=function(e,t,n){return new o(i.INVALID_CHECKSUM,"Uploaded/downloaded object '"+e+"' has checksum '"+t+"' which does not match '"+n+"'. Please retry the upload/download.")},t.canceled=function(){return new o(i.CANCELED,"User canceled the upload/download.")},t.invalidEventName=function(e){return new o(i.INVALID_EVENT_NAME,"Invalid event name '"+e+"'.")},t.invalidUrl=function(e){return new o(i.INVALID_URL,"Invalid URL '"+e+"'.")},t.invalidDefaultBucket=function(e){return new o(i.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")},t.noDefaultBucket=function(){return new o(i.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+r.configOption+"' property when initializing the app?")},t.cannotSliceBlob=function(){return new o(i.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")},t.serverFileWrongSize=function(){return new o(i.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")},t.noDownloadURL=function(){return new o(i.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")},t.invalidArgument=function(e,t,n){return new o(i.INVALID_ARGUMENT,"Invalid argument in `"+t+"` at index "+e+": "+n)},t.invalidArgumentCount=function(e,t,n,r){var a,s;e===t?(a=e,s=1===e?"argument":"arguments"):(a="between "+e+" and "+t,s="arguments");return new o(i.INVALID_ARGUMENT_COUNT,"Invalid argument count in `"+n+"`: Expected "+a+" "+s+", received "+r+".")},t.appDeleted=function(){return new o(i.APP_DELETED,"The Firebase app was deleted.")},t.invalidRootOperation=function(e){return new o(i.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")},t.invalidFormat=function(e,t){return new o(i.INVALID_FORMAT,"String does not match format '"+e+"': "+t)},t.internalError=function(e){throw new o(i.INTERNAL_ERROR,"Internal error: "+e)};var r=n("GzZx"),o=function(){function e(e,t){this.code_=a(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return a(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),e}();t.FirebaseStorageError=o;t.errors={};var i=t.Code={UNKNOWN:"unknown",OBJECT_NOT_FOUND:"object-not-found",BUCKET_NOT_FOUND:"bucket-not-found",PROJECT_NOT_FOUND:"project-not-found",QUOTA_EXCEEDED:"quota-exceeded",UNAUTHENTICATED:"unauthenticated",UNAUTHORIZED:"unauthorized",RETRY_LIMIT_EXCEEDED:"retry-limit-exceeded",INVALID_CHECKSUM:"invalid-checksum",CANCELED:"canceled",INVALID_EVENT_NAME:"invalid-event-name",INVALID_URL:"invalid-url",INVALID_DEFAULT_BUCKET:"invalid-default-bucket",NO_DEFAULT_BUCKET:"no-default-bucket",CANNOT_SLICE_BLOB:"cannot-slice-blob",SERVER_FILE_WRONG_SIZE:"server-file-wrong-size",NO_DOWNLOAD_URL:"no-download-url",INVALID_ARGUMENT:"invalid-argument",INVALID_ARGUMENT_COUNT:"invalid-argument-count",APP_DELETED:"app-deleted",INVALID_ROOT_OPERATION:"invalid-root-operation",INVALID_FORMAT:"invalid-format",INTERNAL_ERROR:"internal-error"};function a(e){return"storage/"+e}},q6Ae:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n("OPUS"),i=(r=o)&&r.__esModule?r:{default:r};n("0jrq"),n("X2NH"),n("HqEV"),n("GjuT"),t.default=i.default,e.exports=t.default},qI4S:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDeferredValueSnapshot=t.resolveDeferredValueTree=t.resolveDeferredValue=t.generateWithValues=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=n("nDT4"),i=n("AHVm"),a=n("5Gco"),s=n("yImC"),u=n("uGuS"),c=n("OfTL"),l=(t.generateWithValues=function(e){return(e=e||{}).timestamp=e.timestamp||(new Date).getTime(),e},t.resolveDeferredValue=function(e,t){return e&&"object"===("undefined"==typeof e?"undefined":r(e))?((0,o.assert)(".sv"in e,"Unexpected leaf node or priority contents"),t[e[".sv"]]):e}),p=(t.resolveDeferredValueTree=function(e,t){var n=new a.SparseSnapshotTree;return e.forEachTree(new i.Path(""),function(e,r){n.remember(e,p(r,t))}),n},t.resolveDeferredValueSnapshot=function e(t,n){var r,o=t.getPriority().val(),i=l(o,n);if(t.isLeafNode()){var a=t,p=l(a.getValue(),n);return p!==a.getValue()||i!==a.getPriority().val()?new s.LeafNode(p,(0,u.nodeFromJSON)(i)):t}var h=t;return r=h,i!==h.getPriority().val()&&(r=r.updatePriority(new s.LeafNode(i))),h.forEachChild(c.PRIORITY_INDEX,function(t,o){var i=e(o,n);i!==o&&(r=r.updateImmediateChild(t,i))}),r})},"qM+a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ViewCache=void 0;var r=n("+G+d"),o=n("dc2B"),i=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new o.CacheNode(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new o.CacheNode(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new o.CacheNode(r.ChildrenNode.EMPTY_NODE,!1,!1),new o.CacheNode(r.ChildrenNode.EMPTY_NODE,!1,!1)),e}();t.ViewCache=i},qbGt:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("3j3K"),a=n("NVOs"),s=n("F+rG"),u=n("mNMN"),c=n("YdOc"),l=n("s7hI"),p=o=function(){function e(){}return e.forRoot=function(){return{ngModule:o,providers:[u.RecaptchaLoaderService]}},e}();p=o=r([i.NgModule({declarations:[c.RecaptchaValueAccessorDirective],exports:[l.RecaptchaComponent,c.RecaptchaValueAccessorDirective],imports:[a.FormsModule,s.RecaptchaCommonModule]})],p),t.RecaptchaModule=p},qkjB:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketConnection=void 0,t.setWebSocketImpl=function(e){d=e};var r,o=n("OPUS"),i=(r=o)&&r.__esModule?r:{default:r},a=n("nDT4"),s=n("Pu5a"),u=n("jtvX"),c=n("DOhx"),l=n("cGm6"),p=n("xfUw"),h=n("p0Bl"),f=n("Vj55");var d=null;"undefined"!=typeof MozWebSocket?d=MozWebSocket:"undefined"!=typeof WebSocket&&(d=WebSocket);var y=function(){function t(e,n,r,o){this.connId=e,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=(0,s.logWrapper)(this.connId),this.stats_=u.StatsManager.getCollection(n),this.connURL=t.connectionURL_(n,r,o)}return t.connectionURL_=function(e,t,n){var r={};return r[c.VERSION_PARAM]=c.PROTOCOL_VERSION,!(0,f.isNodeSdk)()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf(c.FORGE_DOMAIN)&&(r[c.REFERER_PARAM]=c.FORGE_REF),t&&(r[c.TRANSPORT_SESSION_PARAM]=t),n&&(r[c.LAST_SESSION_PARAM]=n),e.connectionURL(c.WEBSOCKET,r)},t.prototype.open=function(t,n){var r=this;this.onDisconnect=n,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,p.PersistentStorage.set("previous_websocket_failure",!0);try{if((0,f.isNodeSdk)()){var o=l.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",a={headers:{"User-Agent":"Firebase/"+c.PROTOCOL_VERSION+"/"+i.default.SDK_VERSION+"/"+e.platform+"/"+o}},s=e.env,u=0==this.connURL.indexOf("wss://")?s.HTTPS_PROXY||s.https_proxy:s.HTTP_PROXY||s.http_proxy;u&&(a.proxy={origin:u}),this.mySock=new d(this.connURL,[],a)}else this.mySock=new d(this.connURL)}catch(e){this.log_("Error instantiating WebSocket.");var h=e.message||e.data;return h&&this.log_(h),void this.onClosed_()}this.mySock.onopen=function(){r.log_("Websocket connected."),r.everConnected_=!0},this.mySock.onclose=function(){r.log_("Websocket connection was disconnected."),r.mySock=null,r.onClosed_()},this.mySock.onmessage=function(e){r.handleIncomingFrame(e)},this.mySock.onerror=function(e){r.log_("WebSocket error. Closing connection.");var t=e.message||e.data;t&&r.log_(t),r.onClosed_()}},t.prototype.start=function(){},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){var e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==d&&!t.forceDisallow_},t.previouslyFailed=function(){return p.PersistentStorage.isInMemoryStorage||!0===p.PersistentStorage.get("previous_websocket_failure")},t.prototype.markConnectionHealthy=function(){p.PersistentStorage.remove("previous_websocket_failure")},t.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length==this.totalFrames){var t=this.frames.join("");this.frames=null;var n=(0,h.jsonEval)(t);this.onMessage(n)}},t.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},t.prototype.extractFrameCount_=function(e){if((0,a.assert)(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},t.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},t.prototype.send=function(e){this.resetKeepAlive();var t=(0,h.stringify)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=(0,s.splitStringBySize)(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0});var i=n("3j3K"),a=n("mNMN"),s=0,u=function(){function e(e,t){this.loader=e,this.zone=t,this.id="ngrecaptcha-"+s++,this.resolved=new i.EventEmitter}return e.prototype.ngAfterViewInit=function(){var e=this;this.subscription=this.loader.ready.subscribe(function(t){null!=t&&(e.grecaptcha=t,e.renderRecaptcha())})},e.prototype.ngOnDestroy=function(){null!=this.widget&&this.grecaptcha.reset(this.widget),this.subscription.unsubscribe()},e.prototype.execute=function(){"invisible"===this.size&&null!=this.widget&&this.grecaptcha.execute(this.widget)},e.prototype.reset=function(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptcha.reset(this.widget))},e.prototype.expired=function(){this.resolved.emit(null)},e.prototype.captchaReponseCallback=function(e){this.resolved.emit(e)},e.prototype.renderRecaptcha=function(){var e=this;this.widget=this.grecaptcha.render(this.id,{callback:function(t){e.zone.run(function(){return e.captchaReponseCallback(t)})},"expired-callback":function(){e.zone.run(function(){return e.expired()})},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type})},e}();r([i.Input(),i.HostBinding("attr.id"),o("design:type",Object)],u.prototype,"id",void 0),r([i.Input(),o("design:type",String)],u.prototype,"siteKey",void 0),r([i.Input(),o("design:type",String)],u.prototype,"theme",void 0),r([i.Input(),o("design:type",String)],u.prototype,"type",void 0),r([i.Input(),o("design:type",String)],u.prototype,"size",void 0),r([i.Input(),o("design:type",Number)],u.prototype,"tabIndex",void 0),r([i.Output(),o("design:type",Object)],u.prototype,"resolved",void 0),u=r([i.Component({exportAs:"reCaptcha",selector:"recaptcha",template:""}),o("design:paramtypes",[a.RecaptchaLoaderService,i.NgZone])],u),t.RecaptchaComponent=u},sIYO:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("EEr4"),i=n("rCTf"),a=n("mmVS"),s=n("B00U"),u=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return r(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.Subscription).add(this.source.subscribe(new l(this.getSubject(),this))),e.closed?(this._connection=null,e=s.Subscription.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return this.lift(new p(this))},t}(i.Observable);t.ConnectableObservable=u;var c=u.prototype;t.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:c._subscribe},_isComplete:{value:c._isComplete,writable:!0},getSubject:{value:c.getSubject},connect:{value:c.connect},refCount:{value:c.refCount}};var l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return r(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.SubjectSubscriber),p=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new h(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),h=function(e){function t(t,n){e.call(this,t),this.connectable=n}return r(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(a.Subscriber)},sNU3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestEndStatus=void 0,t.addAuthHeader_=g,t.addVersionHeader_=m,t.makeRequest=function(e,t,n){var r=l.makeQueryString(e.urlParams),o=e.url+r,i=s.clone(e.headers);return g(i,t),m(i),new y(o,e.method,i,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,n)};var r,o=d(n("y50t")),i=d(n("Fj6c")),a=d(n("pkaK")),s=d(n("i2g2")),u=d(n("RCtH")),c=d(n("BjtA")),l=d(n("400e")),p=d(n("yG43")),h=n("OPUS"),f=(r=h)&&r.__esModule?r:{default:r};function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var y=function(){function e(e,t,n,r,o,i,a,s,c,l,p){this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=o.slice(),this.additionalRetryCodes_=i.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=l,this.timeout_=c,this.pool_=p;var h=this;this.promise_=u.make(function(e,t){h.resolve_=e,h.reject_=t,h.start_()})}return e.prototype.start_=function(){var e=this;function t(t,n){var r,o=e.resolve_,i=e.reject_,s=n.xhr;if(n.wasSuccessCode)try{var u=e.callback_(s,s.getResponseText());c.isJustDef(u)?o(u):o()}catch(e){i(e)}else null!==s?((r=a.unknown()).setServerResponseProp(s.getResponseText()),e.errorCallback_?i(e.errorCallback_(s,r)):i(r)):n.canceled?i(r=e.appDelete_?a.appDeleted():a.canceled()):i(r=a.retryLimitExceeded())}this.canceled_?t(0,new v(!1,null,!0)):this.backoffId_=i.start(function(t,n){if(n)t(!1,new v(!1,null,!0));else{var r=e.pool_.createXhrIo();e.pendingXhr_=r,null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then(function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(i),e.pendingXhr_=null;var r=(n=n).getErrorCode()===p.ErrorCode.NO_ERROR,a=n.getStatus();if(r&&!e.isRetryStatusCode_(a)){var s=o.contains(e.successCodes_,a);t(!0,new v(s,n))}else{var u=n.getErrorCode()===p.ErrorCode.ABORT;t(!1,new v(!1,null,u))}})}function i(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)}},t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&i.stop(this.backoffId_),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=o.contains([408,429],e),r=o.contains(this.additionalRetryCodes_,e);return t||n||r},e}(),v=function(){return function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n}}();function g(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}function m(e){var t="undefined"!=typeof f.default?f.default.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}t.RequestEndStatus=v},sevV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Index=void 0;var r=n("coin"),o=n("Pu5a"),i=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new r.NamedNode(o.MIN_NAME,e),i=new r.NamedNode(o.MIN_NAME,t);return 0!==this.compare(n,i)},e.prototype.minPost=function(){return r.NamedNode.MIN},e}();t.Index=i},t2qv:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("rCTf"),i=n("jBEF"),a=n("Xajo"),s=n("CURp"),u=n("wAkD"),c=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return r(t,e),t.create=function(){for(var e=[],n=0;n=0;t--)s[t]=r.charAt(e%64),e=Math.floor(e/64);(0,a.assert)(0===e,"Cannot push at time == 0");var u=s.join("");if(n){for(t=11;t>=0&&63===i[t];t--)i[t]=0;i[t]++}else for(t=0;t<12;t++)i[t]=Math.floor(64*Math.random());for(t=0;t<12;t++)u+=r.charAt(i[t]);return(0,a.assert)(20===u.length,"nextPushId: Length should be 20."),u})},tR24:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompoundWrite=void 0;var r=n("oltN"),o=n("AHVm"),i=n("zHK/"),a=n("coin"),s=n("OfTL"),u=n("nDT4"),c=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new r.ImmutableTree(n));var i=this.writeTree_.findRootMostValueAndPath(t);if(null!=i){var a=i.path,s=i.value,u=o.Path.relativePath(a,t);return s=s.updateChild(u,n),new e(this.writeTree_.set(a,s))}var c=new r.ImmutableTree(n);return new e(this.writeTree_.setTree(t,c))},e.prototype.addWrites=function(e,t){var n=this;return(0,i.forEach)(t,function(t,r){n=n.addWrite(e.child(t),r)}),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,r.ImmutableTree.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(o.Path.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(s.PRIORITY_INDEX,function(t,n){e.push(new a.NamedNode(t,n))}):this.writeTree_.children.inorderTraversal(function(t,n){null!=n.value&&e.push(new a.NamedNode(t,n.value))}),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new r.ImmutableTree(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(t){return e.applySubtreeWrite_(o.Path.Empty,this.writeTree_,t)},e.Empty=new e(new r.ImmutableTree(null)),e.applySubtreeWrite_=function(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var o=null;return n.children.inorderTraversal(function(n,i){".priority"===n?((0,u.assert)(null!==i.value,"Priority writes must always be leaf nodes"),o=i.value):r=e.applySubtreeWrite_(t.child(n),i,r)}),r.getChild(t).isEmpty()||null===o||(r=r.updateChild(t.child(".priority"),o)),r},e}();t.CompoundWrite=c},tY60:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={TYPE_OF_MSG:"firebase-messaging-msg-type",DATA:"firebase-messaging-msg-data"};t.default={PARAMS:r,TYPES_OF_MSG:{PUSH_MSG_RECEIVED:"push-msg-received",NOTIFICATION_CLICKED:"notification-clicked"},createNewMsg:function(e,t){var n;return(n={})[r.TYPE_OF_MSG]=e,n[r.DATA]=t,n}},e.exports=t.default},tvuF:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("3j3K"),o=function(){function e(){this._draggedElement=null}return e.prototype.set=function(e){this._draggedElement=e},e.prototype.get=function(){return this._draggedElement},e.prototype.isDragging=function(){return!!this.get()},e.decorators=[{type:r.Injectable}],e.ctorParameters=function(){return[]},e}()},u3lF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.taskStateFromInternalTaskState=function(e){switch(e){case r.RUNNING:case r.PAUSING:case r.CANCELING:return o.RUNNING;case r.PAUSED:return o.PAUSED;case r.SUCCESS:return o.SUCCESS;case r.CANCELED:return o.CANCELED;case r.ERROR:default:return o.ERROR}};t.TaskEvent={STATE_CHANGED:"state_changed"};var r=t.InternalTaskState={RUNNING:"running",PAUSING:"pausing",PAUSED:"paused",SUCCESS:"success",CANCELING:"canceling",CANCELED:"canceled",ERROR:"error"},o=t.TaskState={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"}},uCY4:function(e,t,n){"use strict";var r=n("rCTf"),o=n("VEfc");r.Observable.prototype.switchMap=o.switchMap},uGuS:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.nodeFromJSON=d;var o=n("+G+d"),i=n("yImC"),a=n("coin"),s=n("zHK/"),u=n("nDT4"),c=n("WV0u"),l=n("RLGX"),p=n("V5hz"),h=n("OfTL"),f=!0;function d(e,t){if(void 0===t&&(t=null),null===e)return o.ChildrenNode.EMPTY_NODE;if("object"===("undefined"==typeof e?"undefined":r(e))&&".priority"in e&&(t=e[".priority"]),(0,u.assert)(null===t||"string"==typeof t||"number"==typeof t||"object"===("undefined"==typeof t?"undefined":r(t))&&".sv"in t,"Invalid priority type found: "+("undefined"==typeof t?"undefined":r(t))),"object"===("undefined"==typeof e?"undefined":r(e))&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==("undefined"==typeof e?"undefined":r(e))||".sv"in e){var n=e;return new i.LeafNode(n,d(t))}if(e instanceof Array||!f){var y=o.ChildrenNode.EMPTY_NODE,v=e;return(0,s.forEach)(v,function(e,t){if((0,s.contains)(v,e)&&"."!==e.substring(0,1)){var n=d(t);!n.isLeafNode()&&n.isEmpty()||(y=y.updateImmediateChild(e,n))}}),y.updatePriority(d(t))}var g=[],m=!1,_=e;if((0,s.forEach)(_,function(e,t){if("string"!=typeof e||"."!==e.substring(0,1)){var n=d(_[e]);n.isEmpty()||(m=m||!n.getPriority().isEmpty(),g.push(new a.NamedNode(e,n)))}}),0==g.length)return o.ChildrenNode.EMPTY_NODE;var b=(0,c.buildChildSet)(g,l.NAME_ONLY_COMPARATOR,function(e){return e.name},l.NAME_COMPARATOR);if(m){var w=(0,c.buildChildSet)(g,h.PRIORITY_INDEX.getCompare());return new o.ChildrenNode(b,d(t),new p.IndexMap({".priority":w},{".priority":h.PRIORITY_INDEX}))}return new o.ChildrenNode(b,d(t),p.IndexMap.Default)}(0,h.setNodeFromJSON)(d)},uV14:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("y986"),o=n("Fa9E"),i=n("LffQ"),a=(n.n(i),this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}),s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=i.first,c=i.last,l=function(){function e(e,t,n,r){var o=this;this.data=e,this.parent=t,this.treeModel=n,this.position=0,this.allowDrop=function(e,t){return o.options.allowDrop(e,{parent:o,index:0},t)},void 0!==this.id&&null!==this.id||(this.id=Math.floor(1e13*Math.random())),this.index=r,this.getField("children")&&this._initChildren()}return Object.defineProperty(e.prototype,"isHidden",{get:function(){return this.treeModel.isHidden(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return this.treeModel.isExpanded(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.treeModel.isActive(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFocused",{get:function(){return this.treeModel.isNodeFocused(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.parent?this.parent.path.concat([this.id]):[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"elementRef",{get:function(){throw"Element Ref is no longer supported since introducing virtual scroll\n\n You may use a template to obtain a reference to the element"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalNode",{get:function(){return this._originalNode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasChildren",{get:function(){return!!(this.data.hasChildren||this.children&&this.children.length>0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLeaf",{get:function(){return!this.hasChildren},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return this.parent.data.virtual},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"realParent",{get:function(){return this.isRoot?null:this.parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.treeModel.options},enumerable:!0,configurable:!0}),e.prototype.fireEvent=function(e){this.treeModel.fireEvent(e)},Object.defineProperty(e.prototype,"displayField",{get:function(){return this.getField("display")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.getField("id")},set:function(e){this.setField("id",e)},enumerable:!0,configurable:!0}),e.prototype.getField=function(e){return this.data[this.options[e+"Field"]]},e.prototype.setField=function(e,t){this.data[this.options[e+"Field"]]=t},e.prototype._findAdjacentSibling=function(e,t){void 0===t&&(t=!1);var n=this._getParentsChildren(t);return n.length>this.index+e?n[this.index+e]:null},e.prototype.findNextSibling=function(e){return void 0===e&&(e=!1),this._findAdjacentSibling(1,e)},e.prototype.findPreviousSibling=function(e){return void 0===e&&(e=!1),this._findAdjacentSibling(-1,e)},e.prototype.getVisibleChildren=function(){return this.visibleChildren},Object.defineProperty(e.prototype,"visibleChildren",{get:function(){return(this.children||[]).filter(function(e){return!e.isHidden})},enumerable:!0,configurable:!0}),e.prototype.getFirstChild=function(e){void 0===e&&(e=!1);var t=e?this.visibleChildren:this.children;return u(t||[])},e.prototype.getLastChild=function(e){void 0===e&&(e=!1);var t=e?this.visibleChildren:this.children;return c(t||[])},e.prototype.findNextNode=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=!1),e&&this.isExpanded&&this.getFirstChild(t)||this.findNextSibling(t)||this.parent&&this.parent.findNextNode(!1,t)},e.prototype.findPreviousNode=function(e){void 0===e&&(e=!1);var t=this.findPreviousSibling(e);return t?t._getLastOpenDescendant(e):this.realParent},e.prototype._getLastOpenDescendant=function(e){void 0===e&&(e=!1);var t=this.getLastChild(e);return this.isCollapsed||!t?this:t._getLastOpenDescendant(e)},e.prototype._getParentsChildren=function(e){return void 0===e&&(e=!1),this.parent&&(e?this.parent.getVisibleChildren():this.parent.children)||[]},e.prototype.getIndexInParent=function(e){return void 0===e&&(e=!1),this._getParentsChildren(e).indexOf(this)},e.prototype.isDescendantOf=function(e){return this===e||this.parent&&this.parent.isDescendantOf(e)},e.prototype.getNodePadding=function(){return this.options.levelPadding*(this.level-1)+"px"},e.prototype.getClass=function(){return[this.options.nodeClass(this),"tree-node-level-"+this.level].join(" ")},e.prototype.onDrop=function(e){this.mouseAction("drop",e.event,{from:e.element,to:{parent:this,index:0,dropOnNode:!0}})},e.prototype.allowDrag=function(){return this.options.allowDrag(this)},e.prototype.loadNodeChildren=function(){var e=this;return this.options.getChildren?Promise.resolve(this.options.getChildren(this)).then(function(t){t&&(e.setField("children",t),e._initChildren(),e.children.forEach(function(e){e.getField("isExpanded")&&e.hasChildren&&e.expand()}))}).then(function(){e.fireEvent({eventName:o.a.loadNodeChildren,node:e})}):Promise.resolve()},e.prototype.expand=function(){return this.isExpanded?Promise.resolve():this.toggleExpanded()},e.prototype.collapse=function(){return this.isExpanded&&this.toggleExpanded(),this},e.prototype.doForAll=function(e){var t=this;Promise.resolve(e(this)).then(function(){t.children&&t.children.forEach(function(t){return t.doForAll(e)})})},e.prototype.expandAll=function(){this.doForAll(function(e){return e.expand()})},e.prototype.collapseAll=function(){this.doForAll(function(e){return e.collapse()})},e.prototype.ensureVisible=function(){return this.realParent&&(this.realParent.expand(),this.realParent.ensureVisible()),this},e.prototype.toggleExpanded=function(){return this.setIsExpanded(!this.isExpanded)},e.prototype.setIsExpanded=function(e){return this.hasChildren&&(this.treeModel.setExpandedNode(this,e),!this.children&&this.hasChildren&&e)?this.loadNodeChildren():Promise.resolve()},e.prototype.setIsActive=function(e,t){return void 0===t&&(t=!1),this.treeModel.setActiveNode(this,e,t),e&&this.focus(this.options.scrollOnSelect),this},e.prototype.toggleActivated=function(e){return void 0===e&&(e=!1),this.setIsActive(!this.isActive,e),this},e.prototype.setActiveAndVisible=function(e){return void 0===e&&(e=!1),this.setIsActive(!0,e).ensureVisible(),setTimeout(this.scrollIntoView.bind(this)),this},e.prototype.scrollIntoView=function(e){void 0===e&&(e=!1),this.treeModel.virtualScroll.scrollIntoView(this,e)},e.prototype.focus=function(e){void 0===e&&(e=!0);var t=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(this),e&&this.scrollIntoView(),t&&this.fireEvent({eventName:o.a.blur,node:t}),this.fireEvent({eventName:o.a.focus,node:this}),this},e.prototype.blur=function(){var e=this.treeModel.getFocusedNode();return this.treeModel.setFocusedNode(null),e&&this.fireEvent({eventName:o.a.blur,node:this}),this},e.prototype.setIsHidden=function(e){this.treeModel.setIsHidden(this,e)},e.prototype.hide=function(){this.setIsHidden(!0)},e.prototype.show=function(){this.setIsHidden(!1)},e.prototype.mouseAction=function(e,t,n){void 0===n&&(n=null),this.treeModel.setFocus(!0);var r=this.options.actionMapping.mouse[e];r&&r(this.treeModel,this,t,n)},e.prototype.getSelfHeight=function(){return this.options.nodeHeight(this)},e.prototype._initChildren=function(){var t=this;this.children=this.getField("children").map(function(n,r){return new e(n,t,t.treeModel,r)})},a([r.c,s("design:type",Object),s("design:paramtypes",[])],e.prototype,"isHidden",null),a([r.c,s("design:type",Object),s("design:paramtypes",[])],e.prototype,"isExpanded",null),a([r.c,s("design:type",Object),s("design:paramtypes",[])],e.prototype,"isActive",null),a([r.c,s("design:type",Object),s("design:paramtypes",[])],e.prototype,"isFocused",null),a([r.g,s("design:type",Array)],e.prototype,"children",void 0),a([r.g,s("design:type",Number)],e.prototype,"index",void 0),a([r.g,s("design:type",Object)],e.prototype,"position",void 0),a([r.g,s("design:type",Number)],e.prototype,"height",void 0),a([r.c,s("design:type",Number),s("design:paramtypes",[])],e.prototype,"level",null),a([r.c,s("design:type",Array),s("design:paramtypes",[])],e.prototype,"path",null),a([r.c,s("design:type",Object),s("design:paramtypes",[])],e.prototype,"visibleChildren",null),a([r.a,s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],e.prototype,"_initChildren",null),e}()},uaPM:function(e,t,n){"use strict";function r(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=r(e[n],t[n]));return e}Object.defineProperty(t,"__esModule",{value:!0}),t.deepCopy=function(e){return r(void 0,e)},t.deepExtend=r,t.patchProperty=function(e,t,n){e[t]=n}},udG9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataSnapshot=void 0;var r=n("ktV6"),o=n("YuqB"),i=n("AHVm"),a=n("OfTL"),s=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return(0,r.validateArgCount)("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return(0,r.validateArgCount)("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return(0,r.validateArgCount)("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return(0,r.validateArgCount)("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){(0,r.validateArgCount)("DataSnapshot.child",0,1,arguments.length),t=String(t),(0,o.validatePathString)("DataSnapshot.child",1,t,!1);var n=new i.Path(t),s=this.ref_.child(n);return new e(this.node_.getChild(n),s,a.PRIORITY_INDEX)},e.prototype.hasChild=function(e){(0,r.validateArgCount)("DataSnapshot.hasChild",1,1,arguments.length),(0,o.validatePathString)("DataSnapshot.hasChild",1,e,!1);var t=new i.Path(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return(0,r.validateArgCount)("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;return(0,r.validateArgCount)("DataSnapshot.forEach",1,1,arguments.length),(0,r.validateCallback)("DataSnapshot.forEach",1,t,!1),!this.node_.isLeafNode()&&!!this.node_.forEachChild(this.index_,function(r,o){return t(new e(o,n.ref_.child(r),a.PRIORITY_INDEX))})},e.prototype.hasChildren=function(){return(0,r.validateArgCount)("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return(0,r.validateArgCount)("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return(0,r.validateArgCount)("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}();t.DataSnapshot=s},uj1K:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r,o){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=o}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}();t.Change=r},"v+bU":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={path:"/firebase-messaging-sw.js",scope:"/firebase-cloud-messaging-push-scope"},e.exports=t.default},v1qo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RangedFilter=void 0;var r=n("n2bm"),o=n("OfTL"),i=n("coin"),a=n("+G+d"),s=function(){function e(t){this.indexedFilter_=new r.IndexedFilter(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,o,s){return this.matches(new i.NamedNode(t,n))||(n=a.ChildrenNode.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,o,s)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=a.ChildrenNode.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(a.ChildrenNode.EMPTY_NODE);var s=this;return t.forEachChild(o.PRIORITY_INDEX,function(e,t){s.matches(new i.NamedNode(e,t))||(r=r.updateImmediateChild(e,a.ChildrenNode.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}();t.RangedFilter=s},vfnQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOMStorageWrapper=void 0;var r=n("p0Bl"),o=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),(0,r.stringify)(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:(0,r.jsonEval)(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}();t.DOMStorageWrapper=o},"vw/H":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SnapshotHolder=void 0;var r=n("+G+d"),o=function(){function e(){this.rootNode_=r.ChildrenNode.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}();t.SnapshotHolder=o},wAkD:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=function(e){function t(){e.apply(this,arguments)}return r(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("mmVS").Subscriber);t.OuterSubscriber=o},xAJs:function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);function r(){this.constructor=e}e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},o=n("mmVS");t.map=function(e,t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new i(e,t))};var i=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}();t.MapOperator=i;var a=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return r(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(o.Subscriber)},xcnj:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=u(n("rsuY")),i=u(n("WUNS")),a=u(n("tY60")),s=u(n("gFBI"));function u(e){return e&&e.__esModule?e:{default:e}}var c,l=(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),p=function(e){function t(t){var n=e.call(this,t)||this;return self.addEventListener("push",function(e){return n.onPush_(e)},!1),self.addEventListener("pushsubscriptionchange",function(e){return n.onSubChange_(e)},!1),self.addEventListener("notificationclick",function(e){return n.onNotificationClick_(e)},!1),n.bgMessageHandler_=null,n}return l(t,e),t.prototype.onPush_=function(e){var t,n=this;try{t=e.data.json()}catch(e){return}var r=this.hasVisibleClients_().then(function(e){if(e)return t.notification||n.bgMessageHandler_?n.sendMessageToWindowClients_(t):void 0;var r=n.getNotificationData_(t);if(r){var o=r.title||"";return self.registration.showNotification(o,r)}return n.bgMessageHandler_?n.bgMessageHandler_(t):void 0});e.waitUntil(r)},t.prototype.onSubChange_=function(e){var t=this,n=this.getToken().then(function(e){if(!e)throw t.errorFactory_.create(i.default.codes.NO_FCM_TOKEN_FOR_RESUBSCRIBE);var n=null,r=t.getTokenManager();return r.getTokenDetailsFromToken(e).then(function(e){if(!(n=e))throw t.errorFactory_.create(i.default.codes.INVALID_SAVED_TOKEN);return self.registration.pushManager.subscribe(s.default.SUBSCRIPTION_OPTIONS)}).then(function(e){return r.subscribeToFCM(n.fcmSenderId,e,n.fcmPushSet)}).catch(function(e){return r.deleteToken(n.fcmToken).then(function(){throw t.errorFactory_.create(i.default.codes.UNABLE_TO_RESUBSCRIBE,{message:e})})})});e.waitUntil(n)},t.prototype.onNotificationClick_=function(e){var t=this;if(e.notification&&e.notification.data&&e.notification.data.FCM_MSG){e.stopImmediatePropagation(),e.notification.close();var n=e.notification.data.FCM_MSG,r=n.notification.click_action;if(r){var o=this.getWindowClient_(r).then(function(e){return e||self.clients.openWindow(r)}).then(function(e){if(e){n.notification;delete n.notification;var r=a.default.createNewMsg(a.default.TYPES_OF_MSG.NOTIFICATION_CLICKED,n);return t.attemptToMessageClient_(e,r)}});e.waitUntil(o)}}},t.prototype.getNotificationData_=function(e){if(e&&"object"===r(e.notification)){var t,n=Object.assign({},e.notification);return n.data=((t={}).FCM_MSG=e,t),n}},t.prototype.setBackgroundMessageHandler=function(e){if(e&&"function"!=typeof e)throw this.errorFactory_.create(i.default.codes.BG_HANDLER_FUNCTION_EXPECTED);this.bgMessageHandler_=e},t.prototype.getWindowClient_=function(e){var t=new URL(e).href;return self.clients.matchAll({type:"window",includeUncontrolled:!0}).then(function(e){for(var n=null,r=0;r0}function c(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Ye(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function l(e,t){var n=Vt();try{var r=e.interceptors;if(r)for(var o=0,i=r.length;o0}function h(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Ye(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function f(e,t){var n=Vt(),r=e.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o=this.length,value:tt){for(var n=new Array(e-t),r=0;r0&&e+t+1>T&&k(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;jt(this.atom);var o=this.values.length;if(void 0===e?e=0:e>o?e=o:e<0&&(e=Math.max(0,o+e)),t=1===arguments.length?o-e:void 0===t||null===t?0:Math.max(0,Math.min(t,o-e)),void 0===n&&(n=[]),u(this)){var i=l(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!i)return He;t=i.removedCount,n=i.added}var a=(n=n.map(function(e){return r.enhancer(e,void 0)})).length-t;this.updateArrayLength(o,a);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){if(n.length<1e4)return(r=this.values).splice.apply(r,[e,t].concat(n));var r,o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&d(),o=p(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&v(i),this.atom.reportChanged(),o&&f(this,i),r&&m()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&d(),o=p(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&v(i),this.atom.reportChanged(),o&&f(this,i),r&&m()},e}(),A=function(e){function t(t,n,r,o){void 0===r&&(r="ObservableArray@"+qe()),void 0===o&&(o=!1);var i=e.call(this)||this,a=new N(r,n,i,o);return it(i,"$mobx",a),t&&t.length&&i.spliceWithArray(0,0,t),O&&Object.defineProperty(a.array,"0",I),i}return o(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=e0,"actions should have valid names, got: '"+e+"'");var n=function(){return H(e,t,this,arguments)};return n.originalFn=t,n.isMobxAction=!0,n}function H(e,t,n,r){var o=function(e,t,n,r){var o=d()&&!!e,i=0;if(o){i=Date.now();var a=r&&r.length||0,s=new Array(a);if(a>0)for(var u=0;u";ot(e,t,$(i,n))},function(e){return this[e]},function(){Ke(!1,U("m001"))},!1,!0),X=G(function(e,t,n){ee(e,t,n)},function(e){return this[e]},function(){Ke(!1,U("m001"))},!1,!1),$=function(e,t,n,r){return 1===arguments.length&&"function"==typeof e?B(e.name||"",e):2===arguments.length&&"function"==typeof t?B(e,t):1===arguments.length&&"string"==typeof e?J(e):J(t).apply(null,arguments)};function J(e){return function(t,n,r){if(r&&"function"==typeof r.value)return r.value=B(e,r.value),r.enumerable=!1,r.configurable=!0,r;if(void 0!==r&&void 0!==r.get)throw new Error("[mobx] action is not expected to be used with getters");return Y(e).apply(this,arguments)}}function Z(e){return"function"==typeof e&&!0===e.isMobxAction}function ee(e,t,n){var r=function(){return H(t,n,e,arguments)};r.isMobxAction=!0,ot(e,t,r)}function te(e,t){return e===t}$.bound=function(e,t,n){if("function"==typeof e){var r=B("",e);return r.autoBind=!0,r}return X.apply(null,arguments)};var ne={identity:te,structural:function(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||ct(e,t)},default:function(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||te(e,t)}};function re(e,t,n){var r,o,i;"string"==typeof e?(r=e,o=t,i=n):(r=e.name||"Autorun@"+qe(),o=e,i=t),Ke("function"==typeof o,U("m004")),Ke(!1===Z(o),U("m005")),i&&(o=o.bind(i));var a=new Ht(r,function(){this.track(s)});function s(){o(a)}return a.schedule(),a.getDisposer()}function oe(e,t,n){var r;arguments.length>3&&Ge(U("m007")),Re(e)&&Ge(U("m008")),(r="object"==typeof n?n:{}).name=r.name||e.name||t.name||"Reaction@"+qe(),r.fireImmediately=!0===n||!0===r.fireImmediately,r.delay=r.delay||0,r.compareStructural=r.compareStructural||r.struct||!1,t=$(r.name,r.context?t.bind(r.context):t),r.context&&(e=e.bind(r.context));var o,i=!0,a=!1,s=r.equals?r.equals:r.compareStructural||r.struct?ne.structural:ne.default,u=new Ht(r.name,function(){i||r.delay<1?c():a||(a=!0,setTimeout(function(){a=!1,c()},r.delay))});function c(){if(!u.isDisposed){var n=!1;u.track(function(){var t=e(u);n=i||!s(o,t),o=t}),i&&r.fireImmediately&&t(o,u),i||!0!==n||t(o,u),i&&(i=!1)}}return u.schedule(),u.getDisposer()}var ie=function(){function e(e,t,n,r,o){this.derivation=e,this.scope=t,this.equals=n,this.dependenciesState=vt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=vt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+qe(),this.value=new Rt(null),this.isComputing=!1,this.isRunningSetter=!1,this.name=r||"ComputedValue@"+qe(),o&&(this.setter=B(r+"-setter",o))}return e.prototype.onBecomeStale=function(){!function(e){if(e.lowestObserverState!==vt.UP_TO_DATE)return;e.lowestObserverState=vt.POSSIBLY_STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===vt.UP_TO_DATE&&(r.dependenciesState=vt.POSSIBLY_STALE,r.onBecomeStale())}}(this)},e.prototype.onBecomeUnobserved=function(){Lt(this),this.value=void 0},e.prototype.get=function(){Ke(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),0===_t.inBatch?(Nt(),kt(this)&&(this.value=this.computeValue(!1)),At()):(It(this),kt(this)&&this.trackAndCompute()&&function(e){if(e.lowestObserverState===vt.STALE)return;e.lowestObserverState=vt.STALE;var t=e.observers,n=t.length;for(;n--;){var r=t[n];r.dependenciesState===vt.POSSIBLY_STALE?r.dependenciesState=vt.STALE:r.dependenciesState===vt.UP_TO_DATE&&(e.lowestObserverState=vt.UP_TO_DATE)}}(this));var e=this.value;if(xt(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(xt(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){Ke(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else Ke(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){d()&&y({object:this.scope,type:"compute",fn:this.derivation});var e=this.value,t=this.value=this.computeValue(!0);return xt(e)||xt(t)||!this.equals(e,t)},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,_t.computationDepth++,e)t=Mt(this,this.derivation,this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new Rt(e)}return _t.computationDepth--,this.isComputing=!1,t},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return re(function(){var i=n.get();if(!r||t){var a=Vt();e({type:"update",object:n,newValue:i,oldValue:o}),Ut(a)}r=!1,o=i})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return yt(this.get())},e.prototype.whyRun=function(){var e=Boolean(_t.trackingDerivation),t=$e(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=$e(St(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===vt.NOT_TRACKING?U("m032"):" * This computation will re-run if any of the following observables changes:\n "+Je(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+U("m038")+"\n\n * If the outcome of this computation changes, the following observers will be re-run:\n "+Je(n)+"\n")},e}();ie.prototype[dt()]=ie.prototype.valueOf;var ae=lt("ComputedValue",ie),se=function(){function e(e,t){this.target=e,this.name=t,this.values={},this.changeListeners=null,this.interceptors=null}return e.prototype.observe=function(e,t){return Ke(!0!==t,"`observe` doesn't support the fire immediately property for observable objects."),h(this,e)},e.prototype.intercept=function(e){return c(this,e)},e}();function ue(e,t){if(ge(e)&&e.hasOwnProperty("$mobx"))return e.$mobx;Ke(Object.isExtensible(e),U("m035")),et(e)||(t=(e.constructor.name||"ObservableObject")+"@"+qe()),t||(t="ObservableObject@"+qe());var n=new se(e,t);return it(e,"$mobx",n),n}function ce(e,t,n,r){if(e.values[t]&&!ae(e.values[t]))return Ke("value"in n,"The property "+t+" in "+e.name+" is already observable, cannot redefine it as computed property"),void(e.target[t]=n.value);if("value"in n)if(Re(n.value)){var o=n.value;le(e,t,o.initialValue,o.enhancer)}else Z(n.value)&&!0===n.value.autoBind?ee(e.target,t,n.value.originalFn):ae(n.value)?function(e,t,n){var r=e.name+"."+t;n.name=r,n.scope||(n.scope=e.target);e.values[t]=n,Object.defineProperty(e.target,t,de(t))}(e,t,n.value):le(e,t,n.value,r);else pe(e,t,n.get,n.set,ne.default,!0)}function le(e,t,n,r){if(st(e.target,t),u(e)){var o=l(e,{object:e.target,name:t,type:"add",newValue:n});if(!o)return;n=o.newValue}n=(e.values[t]=new L(n,r,e.name+"."+t,!1)).value,Object.defineProperty(e.target,t,function(e){return he[e]||(he[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.values[e].get()},set:function(t){ye(this,e,t)}})}(t)),function(e,t,n,r){var o=p(e),i=d(),a=o||i?{type:"add",object:t,name:n,newValue:r}:null;i&&v(a);o&&f(e,a);i&&m()}(e,e.target,t,n)}function pe(e,t,n,r,o,i){i&&st(e.target,t),e.values[t]=new ie(n,e.target,o,e.name+"."+t,r),i&&Object.defineProperty(e.target,t,de(t))}var he={},fe={};function de(e){return fe[e]||(fe[e]={configurable:!0,enumerable:!1,get:function(){return this.$mobx.values[e].get()},set:function(t){return this.$mobx.values[e].set(t)}})}function ye(e,t,n){var r=e.$mobx,o=r.values[t];if(u(r)){if(!(s=l(r,{type:"update",object:e,name:t,newValue:n})))return;n=s.newValue}if((n=o.prepareNewValue(n))!==M){var i=p(r),a=d(),s=i||a?{type:"update",object:e,oldValue:o.value,name:t,newValue:n}:null;a&&v(s),o.setNewValue(n),i&&f(r,s),a&&m()}}var ve=lt("ObservableObjectAdministration",se);function ge(e){return!!Ze(e)&&(z(e),ve(e.$mobx))}function me(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(j(e)||Be(e))throw new Error(U("m019"));if(ge(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return ge(e)||!!e.$mobx||s(e)||Qt(e)||ae(e)}function _e(e){return Ke(!!e,":("),G(function(t,n,r,o,i){st(t,n),Ke(!i||!i.get,U("m022")),le(ue(t,void 0),n,r,e)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){ye(this,e,t)},!0,!1)}function be(e){for(var t=[],n=1;n=2,U("m014")),Ke("object"==typeof e,U("m015")),Ke(!Be(e),U("m016")),n.forEach(function(e){Ke("object"==typeof e,U("m017")),Ke(!me(e),U("m018"))});for(var r=ue(e),o={},i=n.length-1;i>=0;i--){var a=n[i];for(var s in a)if(!0!==o[s]&&rt(a,s)){if(o[s]=!0,e===a&&!at(e,s))continue;ce(r,s,Object.getOwnPropertyDescriptor(a,s),t)}}return e}var Ce=_e(ke),Se=_e(De),Oe=_e(je),Te=_e(Me),Pe=_e(Le);var Ne=function(){function e(){}return e.prototype.box=function(e,t){return arguments.length>2&&Ie("box"),new L(e,ke,t)},e.prototype.shallowBox=function(e,t){return arguments.length>2&&Ie("shallowBox"),new L(e,je,t)},e.prototype.array=function(e,t){return arguments.length>2&&Ie("array"),new A(e,ke,t)},e.prototype.shallowArray=function(e,t){return arguments.length>2&&Ie("shallowArray"),new A(e,je,t)},e.prototype.map=function(e,t){return arguments.length>2&&Ie("map"),new Ue(e,ke,t)},e.prototype.shallowMap=function(e,t){return arguments.length>2&&Ie("shallowMap"),new Ue(e,je,t)},e.prototype.object=function(e,t){arguments.length>2&&Ie("object");var n={};return ue(n,t),be(n,e),n},e.prototype.shallowObject=function(e,t){arguments.length>2&&Ie("shallowObject");var n={};return ue(n,t),we(n,e),n},e.prototype.ref=function(){return arguments.length<2?xe(je,arguments[0]):Oe.apply(null,arguments)},e.prototype.shallow=function(){return arguments.length<2?xe(De,arguments[0]):Se.apply(null,arguments)},e.prototype.deep=function(){return arguments.length<2?xe(ke,arguments[0]):Ce.apply(null,arguments)},e.prototype.struct=function(){return arguments.length<2?xe(Me,arguments[0]):Te.apply(null,arguments)},e}(),Ae=function(e){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return Ce.apply(null,arguments);if(Ke(arguments.length<=1,U("m021")),Ke(!Re(e),U("m020")),me(e))return e;var t=ke(e,void 0,void 0);return t!==e?t:Ae.box(e)};function Ie(e){Ge("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function Re(e){return"object"==typeof e&&null!==e&&!0===e.isMobxModifierDescriptor}function xe(e,t){return Ke(!Re(t),"Modifiers cannot be nested"),{isMobxModifierDescriptor:!0,initialValue:t,enhancer:e}}function ke(e,t,n){return Re(e)&&Ge("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),me(e)?e:Array.isArray(e)?Ae.array(e,n):et(e)?Ae.object(e,n):ft(e)?Ae.map(e,n):e}function De(e,t,n){return Re(e)&&Ge("You tried to assign a modifier wrapped value to a collection, please define modifiers when creating the collection, not when modifying it"),void 0===e||null===e?e:ge(e)||j(e)||Be(e)?e:Array.isArray(e)?Ae.shallowArray(e,n):et(e)?Ae.shallowObject(e,n):ft(e)?Ae.shallowMap(e,n):Ge("The shallow modifier / decorator can only used in combination with arrays, objects and maps")}function je(e){return e}function Me(e,t,n){if(ct(e,t))return t;if(me(e))return e;if(Array.isArray(e))return new A(e,Me,n);if(ft(e))return new Ue(e,Me,n);if(et(e)){var r={};return ue(r,n),Ee(r,Me,[e]),r}return e}function Le(e,t,n){return ct(e,t)?t:e}function Fe(e,t){void 0===t&&(t=void 0),Nt();try{return e.apply(t)}finally{At()}}Object.getOwnPropertyNames(Ne.prototype).filter(function(e){return"constructor"!==e}).forEach(function(e){return Ae[e]=Ne.prototype[e]}),Ae.deep.struct=Ae.struct,Ae.ref.struct=function(){return arguments.length<2?xe(Le,arguments[0]):Pe.apply(null,arguments)};var Ve={},Ue=function(){function e(e,t,n){void 0===t&&(t=ke),void 0===n&&(n="ObservableMap@"+qe()),this.enhancer=t,this.name=n,this.$mobx=Ve,this._data=Object.create(null),this._hasMap=Object.create(null),this._keys=new A(void 0,je,this.name+".keys()",!0),this.interceptors=null,this.changeListeners=null,this.dehancer=void 0,this.merge(e)}return e.prototype._has=function(e){return"undefined"!=typeof this._data[e]},e.prototype.has=function(e){return!!this.isValidKey(e)&&(e=""+e,this._hasMap[e]?this._hasMap[e].get():this._updateHasMapEntry(e,!1).get())},e.prototype.set=function(e,t){this.assertValidKey(e),e=""+e;var n=this._has(e);if(u(this)){var r=l(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if((this.assertValidKey(e),e=""+e,u(this))&&!(o=l(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=d(),r=p(this),o=r||n?{type:"delete",object:this,oldValue:this._data[e].value,name:e}:null;return n&&v(o),Fe(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data[e].setNewValue(void 0),t._data[e]=void 0}),r&&f(this,o),n&&m(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap[e];return n?n.setNewValue(t):n=this._hasMap[e]=new L(t,je,this.name+"."+e+"?",!1),n},e.prototype._updateValue=function(e,t){var n=this._data[e];if((t=n.prepareNewValue(t))!==M){var r=d(),o=p(this),i=o||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&v(i),n.setNewValue(t),o&&f(this,i),r&&m()}},e.prototype._addValue=function(e,t){var n=this;Fe(function(){var r=n._data[e]=new L(t,n.enhancer,n.name+"."+e,!1);t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var r=d(),o=p(this),i=o||r?{type:"add",object:this,name:e,newValue:t}:null;r&&v(i),o&&f(this,i),r&&m()},e.prototype.get=function(e){return e=""+e,this.has(e)?this.dehanceValue(this._data[e].get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return w(this._keys.slice())},e.prototype.values=function(){return w(this._keys.map(this.get,this))},e.prototype.entries=function(){var e=this;return w(this._keys.map(function(t){return[t,e.get(t)]}))},e.prototype.forEach=function(e,t){var n=this;this.keys().forEach(function(r){return e.call(t,n.get(r),r,n)})},e.prototype.merge=function(e){var t=this;return Be(e)&&(e=e.toJS()),Fe(function(){et(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var n=e[0],r=e[1];return t.set(n,r)}):ft(e)?e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&Ge("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;Fe(function(){Ft(function(){e.keys().forEach(e.delete,e)})})},e.prototype.replace=function(e){var t=this;return Fe(function(){t.clear(),t.merge(e)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toJS=function(){var e=this,t={};return this.keys().forEach(function(n){return t[n]=e.get(n)}),t},e.prototype.toJSON=function(){return this.toJS()},e.prototype.isValidKey=function(e){return null!==e&&void 0!==e&&("string"==typeof e||"number"==typeof e||"boolean"==typeof e)},e.prototype.assertValidKey=function(e){if(!this.isValidKey(e))throw new Error("[mobx.map] Invalid key: '"+e+"', only strings, numbers and booleans are accepted as key in observable maps.")},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this.keys().map(function(t){return t+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return Ke(!0!==t,U("m033")),h(this,e)},e.prototype.intercept=function(e){return c(this,e)},e}();E(Ue.prototype,function(){return this.entries()});var Be=lt("ObservableMap",Ue),He=[];function We(){return"undefined"!=typeof window?window:e}function qe(){return++_t.mobxGuid}function Ge(e,t){throw Ke(!1,e,t),"X"}function Ke(e,t,n){if(!e)throw new Error("[mobx] Invariant failed: "+t+(n?" in '"+n+"'":""))}Object.freeze(He);var ze=[];function Qe(e){return-1===ze.indexOf(e)&&(ze.push(e),console.error("[mobx] Deprecated: "+e),!0)}function Ye(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Xe=function(){};function $e(e){var t=[];return e.forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}function Je(e,t,n){return void 0===t&&(t=100),void 0===n&&(n=" - "),e?e.slice(0,t).join(n)+(e.length>t?" (... and "+(e.length-t)+"more)":""):""}function Ze(e){return null!==e&&"object"==typeof e}function et(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function tt(){for(var e=arguments[0],t=1,n=arguments.length;t=0;o--)if(!ct(e[o],t[o]))return!1;return!0}if(r){if(e.size!==t.size)return!1;var i=!0;return e.forEach(function(e,n){i=i&&ct(t.get(n),e)}),i}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(ht(e)&&ht(t))return e.size===t.size&&ct(Ae.shallowMap(e).entries(),Ae.shallowMap(t).entries());if(ut(e).length!==ut(t).length)return!1;for(var a in e){if(!(a in t))return!1;if(!ct(e[a],t[a]))return!1}return!0}return!1}function lt(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return Ze(e)&&!0===e[n]}}function pt(e){return Array.isArray(e)||j(e)}function ht(e){return ft(e)||Be(e)}function ft(e){return void 0!==We().Map&&e instanceof We().Map}function dt(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function yt(e){return null===e?null:"object"==typeof e?""+e:e}var vt,gt=["mobxGuid","resetId","spyListeners","strictMode","runId"],mt=function(){return function(){this.version=5,this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[],this.globalReactionErrorHandlers=[]}}(),_t=new mt,bt=!1,wt=!1,Et=!1,Ct=We();function St(e){return e.observers}function Ot(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Tt(e,t){if(1===e.observers.length)e.observers.length=0,Pt(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function Pt(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,_t.pendingUnobservations.push(e))}function Nt(){_t.inBatch++}function At(){if(0==--_t.inBatch){Kt();for(var e=_t.pendingUnobservations,t=0;t0;_t.computationDepth>0&&t&&Ge(U("m031")+e.name),!_t.allowStateChanges&&t&&Ge(U(_t.strictMode?"m030a":"m030b")+e.name)}function Mt(e,t,n){Bt(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++_t.runId;var r,o=_t.trackingDerivation;_t.trackingDerivation=e;try{r=t.call(n)}catch(e){r=new Rt(e)}return _t.trackingDerivation=o,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=vt.UP_TO_DATE,o=0,i=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState)}n.length=o,e.newObserving=null,i=t.length;for(;i--;){var s=t[i];0===s.diffValue&&Tt(s,e),s.diffValue=0}for(;o--;){var s=n[o];1===s.diffValue&&(s.diffValue=0,Ot(s,e))}r!==vt.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),r}function Lt(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Tt(t[n],e);e.dependenciesState=vt.NOT_TRACKING}function Ft(e){var t=Vt(),n=e();return Ut(t),n}function Vt(){var e=_t.trackingDerivation;return _t.trackingDerivation=null,e}function Ut(e){_t.trackingDerivation=e}function Bt(e){if(e.dependenciesState!==vt.UP_TO_DATE){e.dependenciesState=vt.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=vt.UP_TO_DATE}}var Ht=function(){function e(e,t){void 0===e&&(e="Reaction@"+qe()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=vt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+qe(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,_t.pendingReactions.push(this),Kt())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(Nt(),this._isScheduled=!1,kt(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&d()&&y({object:this,type:"scheduled-reaction"})),At())},e.prototype.track=function(e){Nt();var t,n=d();n&&(t=Date.now(),v({object:this,type:"reaction",fn:e})),this._isRunning=!0;var r=Mt(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Lt(this),xt(r)&&this.reportExceptionInDerivation(r.cause),n&&m({time:Date.now()-t}),At()},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this,r=U("m037");console.error(n||r,e),d()&&y({type:"error",message:n,error:e,object:this}),_t.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Nt(),Lt(this),At()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e.onError=Wt,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=$e(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+Je(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\t"+U("m038")+"\n"},e}();function Wt(e){Ke(this&&this.$mobx&&Qt(this.$mobx),"Invalid `this`"),Ke(!this.$mobx.errorHandler,"Only one onErrorHandler can be registered"),this.$mobx.errorHandler=e}var qt=100,Gt=function(e){return e()};function Kt(){_t.inBatch>0||_t.isRunningReactions||Gt(zt)}function zt(){_t.isRunningReactions=!0;for(var e=_t.pendingReactions,t=0;e.length>0;){++t===qt&&(console.error("Reaction doesn't converge to a stable state after "+qt+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r0&&(t.dependencies=$e(e.observing).map(rn)),t}function on(e){var t,n={name:e.name};return(t=e).observers&&t.observers.length>0&&(n.observers=St(e).map(on)),n}Jt.struct=$t,Jt.equals=Yt;var an={allowStateChanges:function(e,t){var n,r=W(e);try{n=t()}finally{q(r)}return n},deepEqual:ct,getAtom:Zt,getDebugName:tn,getDependencyTree:function(e,t){return rn(Zt(e,t))},getAdministration:en,getGlobalState:function(){return _t},getObserverTree:function(e,t){return on(Zt(e,t))},interceptReads:function(e,t,n){var r;if(Be(e)||j(e)||F(e))r=en(e);else{if(!ge(e))return Ge("Expected observable map, object or array as first array");if("string"!=typeof t)return Ge("InterceptReads can only be used with a specific property, not with an object in general");r=en(e,t)}return void 0!==r.dehancer?Ge("An intercept reader was already established"):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})},isComputingDerivation:Dt,isSpyEnabled:d,onReactionError:function(e){return _t.globalReactionErrorHandlers.push(e),function(){var t=_t.globalReactionErrorHandlers.indexOf(e);t>=0&&_t.globalReactionErrorHandlers.splice(t,1)}},reserveArrayBuffer:k,resetGlobalState:function(){_t.resetId++;var e=new mt;for(var t in e)-1===gt.indexOf(t)&&(_t[t]=e[t]);_t.allowStateChanges=!_t.strictMode},isolateGlobalState:function(){wt=!0,We().__mobxInstanceCount--},shareGlobalState:function(){Qe("Using `shareGlobalState` is not recommended, use peer dependencies instead. See https://github.com/mobxjs/mobx/issues/1082 for details."),bt=!0;var e=We(),t=_t;if(e.__mobservableTrackingStack||e.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(e.__mobxGlobal&&e.__mobxGlobal.version!==t.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");e.__mobxGlobal?_t=e.__mobxGlobal:e.__mobxGlobal=t},spyReport:y,spyReportEnd:m,spyReportStart:v,setReactionScheduler:function(e){var t=Gt;Gt=function(n){return e(function(){return t(n)})}}},sn={Reaction:Ht,untracked:Ft,Atom:a,BaseAtom:i,useStrict:function(e){Ke(null===_t.trackingDerivation,U("m028")),_t.strictMode=e,_t.allowStateChanges=!e},isStrictModeEnabled:function(){return _t.strictMode},spy:_,comparer:ne,asReference:function(e){return Qe("asReference is deprecated, use observable.ref instead"),Ae.ref(e)},asFlat:function(e){return Qe("asFlat is deprecated, use observable.shallow instead"),Ae.shallow(e)},asStructure:function(e){return Qe("asStructure is deprecated. Use observable.struct, computed.struct or reaction options instead."),Ae.struct(e)},asMap:function(e){return Qe("asMap is deprecated, use observable.map or observable.shallowMap instead"),Ae.map(e||{})},isModifierDescriptor:Re,isObservableObject:ge,isBoxedObservable:F,isObservableArray:j,ObservableMap:Ue,isObservableMap:Be,map:function(e){return Qe("`mobx.map` is deprecated, use `new ObservableMap` or `mobx.observable.map` instead"),Ae.map(e)},transaction:Fe,observable:Ae,computed:Jt,isObservable:me,isComputed:function(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(!1===ge(e))return!1;if(!e.$mobx.values[t])return!1;var n=Zt(e,t);return ae(n)}return ae(e)},extendObservable:be,extendShallowObservable:we,observe:function(e,t,n,r){return"function"==typeof n?function(e,t,n,r){return en(e,t).observe(n,r)}(e,t,n,r):function(e,t,n){return en(e).observe(t,n)}(e,t,n)},intercept:function(e,t,n){return"function"==typeof n?function(e,t,n){return en(e,t).intercept(n)}(e,t,n):function(e,t){return en(e).intercept(t)}(e,t)},autorun:re,autorunAsync:function(e,t,n,r){var o,i,a,s;"string"==typeof e?(o=e,i=t,a=n,s=r):(o=e.name||"AutorunAsync@"+qe(),i=e,a=t,s=n),Ke(!1===Z(i),U("m006")),void 0===a&&(a=1),s&&(i=i.bind(s));var u=!1,c=new Ht(o,function(){u||(u=!0,setTimeout(function(){u=!1,c.isDisposed||c.track(l)},a))});function l(){i(c)}return c.schedule(),c.getDisposer()},when:function(e,t,n,r){var o,i,a,s;return"string"==typeof e?(o=e,i=t,a=n,s=r):(o="When@"+qe(),i=e,a=t,s=n),re(o,function(e){if(i.call(s)){e.dispose();var t=Vt();a.call(s),Ut(t)}})},reaction:oe,action:$,isAction:Z,runInAction:function(e,t,n){var r="string"==typeof e?e:e.name||"",o="function"==typeof e?e:t,i="function"==typeof e?t:n;return Ke("function"==typeof o,U("m002")),Ke(0===o.length,U("m003")),Ke("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),H(r,o,i,void 0)},expr:function(e,t){return Dt()||console.warn(U("m013")),Jt(e,{context:t}).get()},toJS:function e(t,n,r){function o(e){return n&&r.push([t,e]),e}if(void 0===n&&(n=!0),void 0===r&&(r=[]),me(t)){if(n&&null===r&&(r=[]),n&&null!==t&&"object"==typeof t)for(var i=0,a=r.length;i=0,"Unknown leaf type: "+n),(0,i.assert)(s>=0,"Unknown leaf type: "+r),a===s?"object"===r?0:this.value_