function t(){var e=
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
function(t){var e={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!=typeof i||null===i){i={name:i}}var o=i;void 0===o.name&&(o.name="[DEFAULT]");var s=o.name;if("string"!=typeof s||!s)throw h.create("bad-app-name",{appName:String(s)});if(a.contains(e,s))throw h.create("duplicate-app",{appName:s});var u=new t(n,o,r);return e[s]=u,u},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=l[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void f.warn(u.join(" "))}c(new s.Component(i+"-version",(function(){return{library:i,version:e}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw h.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:c,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){if("serverAuth"===e)return null;return e}}};function i(t){if(t=t||"[DEFAULT]",!a.contains(e,t))throw h.create("no-app",{appName:t});return e[t]}function c(s){var u,c,l=s.name;if(n.has(l))return f.debug("There were multiple attempts to register component "+l+"."),"PUBLIC"===s.type?r[l]:null;if(n.set(l,s),"PUBLIC"===s.type){var p=function(t){if(void 0===t&&(t=i()),"function"!=typeof t[l])throw h.create("invalid-app-argument",{appName:l});return t[l]()};void 0!==s.serviceProps&&a.deepExtend(p,s.serviceProps),r[l]=p,t.prototype[l]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,l);return n.apply(this,s.multipleInstances?t:[])}}try{for(var d=o.__values(Object.keys(e)),v=d.next();!v.done;v=d.next()){var m=v.value;e[m]._addComponent(s)}}catch(t){u={error:t}}finally{try{v&&!v.done&&(c=d.return)&&c.call(d)}finally{if(u)throw u.error}}return"PUBLIC"===s.type?r[l]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),i.App=t,r}(p);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){a.deepExtend(e,t)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),e}
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@license
Copyright 2019 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at



Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@license Copyright 2019 Google LLC Licensed under the Apache License Version 2 . 0 ( the " License " ) ; you may not use this file except in compliance with the License . You may obtain a copy of the License at Unless required by applicable law or agreed to in writing software distributed under the License is distributed on an " AS IS " BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied . See the License for the specific language governing permissions and limitations under the License .
function t(){var e=
function(t){var e={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!=typeof i||null===i){i={name:i}}var o=i;void 0===o.name&&(o.name="[DEFAULT]");var s=o.name;if("string"!=typeof s||!s)throw h.create("bad-app-name",{appName:String(s)});if(a.contains(e,s))throw h.create("duplicate-app",{appName:s});var u=new t(n,o,r);return e[s]=u,u},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=l[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void f.warn(u.join(" "))}c(new s.Component(i+"-version",(function(){return{library:i,version:e}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw h.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:c,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){if("serverAuth"===e)return null;return e}}};function i(t){if(t=t||"[DEFAULT]",!a.contains(e,t))throw h.create("no-app",{appName:t});return e[t]}function c(s){var u,c,l=s.name;if(n.has(l))return f.debug("There were multiple attempts to register component "+l+"."),"PUBLIC"===s.type?r[l]:null;if(n.set(l,s),"PUBLIC"===s.type){var p=function(t){if(void 0===t&&(t=i()),"function"!=typeof t[l])throw h.create("invalid-app-argument",{appName:l});return t[l]()};void 0!==s.serviceProps&&a.deepExtend(p,s.serviceProps),r[l]=p,t.prototype[l]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,l);return n.apply(this,s.multipleInstances?t:[])}}try{for(var d=o.__values(Object.keys(e)),v=d.next();!v.done;v=d.next()){var m=v.value;e[m]._addComponent(s)}}catch(t){u={error:t}}finally{try{v&&!v.done&&(c=d.return)&&c.call(d)}finally{if(u)throw u.error}}return"PUBLIC"===s.type?r[l]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),i.App=t,r}(p);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){a.deepExtend(e,t)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),e}
function t ( ) { var e = function ( t ) { var e = { } , n = new Map , r = { __esModule : ! 0 , initializeApp : function ( n , i ) { void 0 === i && ( i = { } ) ; if ( "object" != typeof i || null === i ) { i = { name : i } } var o = i ; void 0 === o . name && ( o . name = "[DEFAULT]" ) ; var s = o . name ; if ( "string" != typeof s || ! s ) throw h . create ( "bad-app-name" , { appName : String ( s ) } ) ; if ( a . contains ( e , s ) ) throw h . create ( "duplicate-app" , { appName : s } ) ; var u = new t ( n , o , r ) ; return e [ s ] = u , u } , app : i , registerVersion : function ( t , e , n ) { var r , i = null !== ( r = l [ t ] ) && void 0 !== r ? r : t ; n && ( i += "-" + n ) ; var o = i . match ( / \s|\/ / ) , a = e . match ( / \s|\/ / ) ; if ( o || a ) { var u = [ 'Unable to register library "' + i + '" with version "' + e + '":' ] ; return o && u . push ( 'library name "' + i + '" contains illegal characters (whitespace or "/")' ) , o && a && u . push ( "and" ) , a && u . push ( 'version name "' + e + '" contains illegal characters (whitespace or "/")' ) , void f . warn ( u . join ( " " ) ) } c ( new s . Component ( i + "-version" , ( function ( ) { return { library : i , version : e } } ) , "VERSION" ) ) } , setLogLevel : u . setLogLevel , onLog : function ( t , e ) { if ( null !== t && "function" != typeof t ) throw h . create ( "invalid-log-argument" , { appName : name } ) ; u . setUserLogHandler ( t , e ) } , apps : null , SDK_VERSION : "7.20.0" , INTERNAL : { registerComponent : c , removeApp : function ( t ) { delete e [ t ] } , components : n , useAsService : function ( t , e ) { if ( "serverAuth" === e ) return null ; return e } } } ; function i ( t ) { if ( t = t || "[DEFAULT]" , ! a . contains ( e , t ) ) throw h . create ( "no-app" , { appName : t } ) ; return e [ t ] } function c ( s ) { var u , c , l = s . name ; if ( n . has ( l ) ) return f . debug ( "There were multiple attempts to register component " + l + "." ) , "PUBLIC" === s . type ? r [ l ] : null ; if ( n . set ( l , s ) , "PUBLIC" === s . type ) { var p = function ( t ) { if ( void 0 === t && ( t = i ( ) ) , "function" != typeof t [ l ] ) throw h . create ( "invalid-app-argument" , { appName : l } ) ; return t [ l ] ( ) } ; void 0 !== s . serviceProps && a . deepExtend ( p , s . serviceProps ) , r [ l ] = p , t . prototype [ l ] = function ( ) { for ( var t = [ ] , e = 0 ; e < arguments . length ; e ++ ) t [ e ] = arguments [ e ] ; var n = this . _getService . bind ( this , l ) ; return n . apply ( this , s . multipleInstances ? t : [ ] ) } } try { for ( var d = o . __values ( Object . keys ( e ) ) , v = d . next ( ) ; ! v . done ; v = d . next ( ) ) { var m = v . value ; e [ m ] . _addComponent ( s ) } } catch ( t ) { u = { error : t } } finally { try { v && ! v . done && ( c = d . return ) && c . call ( d ) } finally { if ( u ) throw u . error } } return "PUBLIC" === s . type ? r [ l ] : null } return r . default = r , Object . defineProperty ( r , "apps" , { get : function ( ) { return Object . keys ( e ) . map ( ( function ( t ) { return e [ t ] } ) ) } } ) , i . App = t , r } ( p ) ; return e . INTERNAL = o . __assign ( o . __assign ( { } , e . INTERNAL ) , { createFirebaseNamespace : t , extendNamespace : function ( t ) { a . deepExtend ( e , t ) } , createSubscribe : a . createSubscribe , ErrorFactory : a . ErrorFactory , deepExtend : a . deepExtend } ) , e }
@license
 Copyright 2019 Google LLC
@license Copyright 2019 Google LLC
/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */