!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],t):t((e=e||self).firebase)}(this,function(nt){"use strict";try{(function(){function e(r,n){var o,i,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(a=2&t[0]?i.return:t[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,t[1])).done)return a;switch(i=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,i=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]>6,128|63&n);else if(55296==(64512&n))if(r>18,128|n>>12&63,128|n>>6&63,128|63&n);else t.push(239,191,189);else 56320==(64512&n)?t.push(239,191,189):t.push(224|n>>12,128|n>>6&63,128|63&n)}return new Uint8Array(t)}function v(t,e){switch(t){case d.BASE64:var r=-1!==e.indexOf("-"),n=-1!==e.indexOf("_");if(r||n)throw f(t,"Invalid character '"+(r?"-":"_")+"' found: is it base64url encoded?");break;case d.BASE64URL:var o=-1!==e.indexOf("+"),i=-1!==e.indexOf("/");if(o||i)throw f(t,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(e)}catch(e){throw f(t,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u][;base64],");var r=t[1]||null;null!=r&&(this.base64=function(e,t){return e.length>=t.length&&e.substring(e.length-t.length)===t}(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=e.substring(e.indexOf(",")+1)};var w,R,T={STATE_CHANGED:"state_changed"},E="running",k="pausing",O="paused",U="success",A="canceling",x="canceled",C="error",S={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function N(e){switch(e){case E:case k:case A:return S.RUNNING;case O:return S.PAUSED;case U:return S.SUCCESS;case x:return S.CANCELED;case C:default:return S.ERROR}}function P(e){return null!=e}function L(e){return void 0!==e}function I(e){return"function"==typeof e}function D(e){return"object"==typeof e}function M(e){return"string"==typeof e||e instanceof String}function W(e){return"number"==typeof e||e instanceof Number}function B(e){return j()&&e instanceof Blob}function j(){return"undefined"!=typeof Blob}(R=w=w||{})[R.NO_ERROR=0]="NO_ERROR",R[R.NETWORK_ERROR=1]="NETWORK_ERROR",R[R.ABORT=2]="ABORT";var q=(F.prototype.send=function(e,t,r,n){if(this.sent_)throw i("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),P(n))for(var o in n)n.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,n[o].toString());return P(r)?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_},F.prototype.getErrorCode=function(){if(!this.sent_)throw i("cannot .getErrorCode() before sending");return this.errorCode_},F.prototype.getStatus=function(){if(!this.sent_)throw i("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},F.prototype.getResponseText=function(){if(!this.sent_)throw i("cannot .getResponseText() before sending");return this.xhr_.responseText},F.prototype.abort=function(){this.xhr_.abort()},F.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},F.prototype.addUploadProgressListener=function(e){P(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},F.prototype.removeUploadProgressListener=function(e){P(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},F);function F(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=w.NO_ERROR,this.sendPromise_=new Promise(function(e){t.xhr_.addEventListener("abort",function(){t.errorCode_=w.ABORT,e(t)}),t.xhr_.addEventListener("error",function(){t.errorCode_=w.NETWORK_ERROR,e(t)}),t.xhr_.addEventListener("load",function(){e(t)})})}var H=(z.prototype.createXhrIo=function(){return new q},z);function z(){}function G(){for(var e=[],t=0;t