PageSourceSearch

https://viabirds-com.web.app/__/firebase/7.14.0/firebase-storage.js

js viabirds-com.web.app collected 2026-10-03 12:39:21 UTC 40,971 bytes, 2 lines download raw bytes

1!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(Rt){"use strict";try{(function(){Rt=Rt&&Object.prototype.hasOwnProperty.call(Rt,"default")?Rt.default:Rt;var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function e(e,a,s,u){return new(s=s||Promise)(function(r,t){function n(e){try{i(u.next(e))}catch(e){t(e)}}function o(e){try{i(u.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?r(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(n,o)}i((u=u.apply(e,a||[])).next())})}function s(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]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=n.call(r,s)}catch(e){t=[6,e],i=0}finally{o=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function v(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}var n,t,o,f=(n=Error,r(t=a,o=n),t.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i),a);function i(){this.constructor=t}function a(e,t){var r=n.call(this,t)||this;return r.code=e,r.name="FirebaseError",Object.setPrototypeOf(r,a.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,u.prototype.create),r}var u=(l.prototype.create=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n,o=t[0]||{},i=this.service+"/"+e,a=this.errors[e],s=a?(n=o,a.replace(d,function(e,t){var r=n[t];return null!=r?r.toString():"<"+t+"?>"})):"Error",u=this.serviceName+": "+s+" ("+i+").",l=new f(i,u),c=0,p=Object.keys(o);c<p.length;c++){var h=p[c];
1"_"!==h.slice(-1)&&(h in l&&console.warn('Overwriting FirebaseError base field "'+h+'" can cause unexpected behavior.'),l[h]=o[h])}return l},l);function l(e,t,r){this.service=e,this.serviceName=t,this.errors=r}var d=/\{\$([^}]+)}/g,c=(p.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},p.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},p.prototype.setServiceProps=function(e){return this.serviceProps=e,this},p);function p(e,t,r){this.name=e,this.instanceFactory=t,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}var _="firebasestorage.googleapis.com",h="storageBucket",m=(b.prototype.codeProp=function(){return this.code},b.prototype.codeEquals=function(e){return y(e)===this.codeProp()},b.prototype.serverResponseProp=function(){return this.serverResponse_},b.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(b.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),b);function b(e,t){this.code_=y(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}var g={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 y(e){return"storage/"+e}function w(){return new m(g.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function R(){return new m(g.CANCELED,"User canceled the upload/download.")}function T(){return new m(g.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function E(e,t,r){return new m(g.INVALID_ARGUMENT,"Invalid argument in `"+t+"` at index "+e+": "+r)}function k(){return new m(g.APP_DELETED,"The Firebase app was deleted.")}function O(e,t){return new m(g.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function U(e){throw new m(g.INTERNAL_ERROR,"Internal error: "+e)}var A={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function x(e){switch(e){case A.RAW:case A.BASE64:case A.BASE64URL:case A.DATA_URL:return;default:throw"Expected one of the event types: ["+A.RAW+", "+A.BASE64+", "+A.BASE64URL+", "+A.DATA_URL+"]."}}var P=function(e,t){this.data=e,this.contentType=t||null};function S(e,t){switch(e){case A.RAW:return new P(C(t));case A.BASE64:case A.BASE64URL:return new P(N(e,t));case A.DATA_URL:return new P((r=new I(t)).base64?N(A.BASE64,r.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(e){throw O(A.DATA_URL,"Malformed data URL.")}return C(t)}(r.rest),new I(t).contentType)}var r;throw w()}function C(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(n);else if(n<=2047)t.push(192|n>>6,128|63&n);else if(55296==(64512&n))if(r<e.length-1&&56320==(64512&e.charCodeAt(r+1)))n=65536|(1023&n)<<10|1023&e.charCodeAt(++r),t.push(240|n>>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)}
1function N(t,e){switch(t){case A.BASE64:var r=-1!==e.indexOf("-"),n=-1!==e.indexOf("_");if(r||n)throw O(t,"Invalid character '"+(r?"-":"_")+"' found: is it base64url encoded?");break;case A.BASE64URL:var o=-1!==e.indexOf("+"),i=-1!==e.indexOf("/");if(o||i)throw O(t,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(e)}catch(e){throw O(t,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u<a.length;u++)s[u]=a.charCodeAt(u);return s}var I=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw O(A.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var r,n,o=t[1]||null;null!=o&&(this.base64=(n=";base64",(r=o).length>=n.length&&r.substring(r.length-n.length)===n),this.contentType=this.base64?o.substring(0,o.length-";base64".length):o),this.rest=e.substring(e.indexOf(",")+1)};var L,D,M={STATE_CHANGED:"state_changed"},W="running",B="pausing",j="paused",q="success",F="canceling",H="canceled",z="error",G={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function X(e){switch(e){case W:case B:case F:return G.RUNNING;case j:return G.PAUSED;case q:return G.SUCCESS;case H:return G.CANCELED;case z:default:return G.ERROR}}function V(e){return null!=e}function K(e){return void 0!==e}function Z(e){return"function"==typeof e}function J(e){return"object"==typeof e}function $(e){return"string"==typeof e||e instanceof String}function Q(e){return"number"==typeof e||e instanceof Number}function Y(e){return ee()&&e instanceof Blob}function ee(){return"undefined"!=typeof Blob}(D=L=L||{})[D.NO_ERROR=0]="NO_ERROR",D[D.NETWORK_ERROR=1]="NETWORK_ERROR",D[D.ABORT=2]="ABORT";var te=(re.prototype.send=function(e,t,r,n){if(this.sent_)throw U("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),V(n))for(var o in n)n.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,n[o].toString());return V(r)?this.xhr_.send(r):this.xhr_.send(),this.sendPromise_},re.prototype.getErrorCode=function(){if(!this.sent_)throw U("cannot .getErrorCode() before sending");return this.errorCode_},re.prototype.getStatus=function(){if(!this.sent_)throw U("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},re.prototype.getResponseText=function(){if(!this.sent_)throw U("cannot .getResponseText() before sending");return this.xhr_.responseText},re.prototype.abort=function(){this.xhr_.abort()},re.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},re.prototype.addUploadProgressListener=function(e){V(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},re.prototype.removeUploadProgressListener=function(e){V(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},re);function re(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=L.NO_ERROR,this.sendPromise_=new Promise(function(e){t.xhr_.addEventListener("abort",function(){t.errorCode_=L.ABORT,e(t)}),t.xhr_.addEventListener("error",function(){t.errorCode_=L.NETWORK_ERROR,e(t)}),t.xhr_.addEventListener("load",function(){e(t)})})}var ne=(oe.prototype.createXhrIo=function(){return new te},oe);function oe(){}function ie(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==r){for(var n=new r,o=0;o<e.length;o++)n.append(e[o]);return n.getBlob()}if(ee())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}var ae=(se.prototype.size=function(){return this.size_},se.prototype.type=function(){return this.type_},se.prototype.slice=function(e,t){if(Y(this.data_)){var r=this.data_,n=(i=e,a=t,(o=r).webkitSlice?o.webkitSlice(i,a):o.mozSlice?o.mozSlice(i,a):o.slice?o.slice(i,a):null);return null===n?null:new se(n)}var o,i,a;return new se(new Uint8Array(this.data_.buffer,e,t-e),!0)},se.getBlob=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(ee()){var r=e.map(function(e){return e instanceof se?e.data_:e});return new se(ie.apply(null,r))}var n=e.map(function(e){return $(e)?S(A.RAW,e).data:e.data_}),o=0;
1n.forEach(function(e){o+=e.byteLength});var i=new Uint8Array(o),a=0;return n.forEach(function(e){for(var t=0;t<e.length;t++)i[a++]=e[t]}),new se(i,!0)},se.prototype.uploadData=function(){return this.data_},se);function se(e,t){var r=0,n="";Y(e)?(r=(this.data_=e).size,n=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),r=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),r=e.length),this.size_=r,this.type_=n}var ue=(Object.defineProperty(le.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(le.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,configurable:!0}),le.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},le.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},le.makeFromBucketSpec=function(t){var e,r;try{e=le.makeFromUrl(t)}catch(e){return new le(t,"")}if(""===e.path)return e;throw r=t,new m(g.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.")},le.makeFromUrl=function(e){var t=null,r="([A-Za-z0-9.\\-_]+)",n=new RegExp("^gs://"+r+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}for(var i,a=_.replace(/[.]/g,"\\."),s=[{regex:n,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+a+"/v[A-Za-z0-9_]+/b/"+r+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:o},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/"+r+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:o}],u=0;u<s.length;u++){var l=s[u],c=l.regex.exec(e);if(c){var p=c[l.indices.bucket],h=c[l.indices.path];t=new le(p,h=h||""),l.postModify(t);break}}if(null==t)throw i=e,new m(g.INVALID_URL,"Invalid URL '"+i+"'.");return t},le);function le(e,t){this.bucket=e,this.path_=t}function ce(e){var t,r;try{t=JSON.parse(e)}catch(e){return null}return J(r=t)&&!Array.isArray(r)?t:null}function pe(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function he(e){return"https://"+_+"/v0"+e}function fe(e){var t=encodeURIComponent,r="?";for(var n in e){if(e.hasOwnProperty(n))r=r+(t(n)+"="+t(e[n]))+"&"}return r=r.slice(0,-1)}function de(e,t){return t}var _e=function(e,t,r,n){this.server=e,this.local=t||e,this.writable=!!r,this.xform=n||de},ve=null;function me(){if(ve)return ve;var e=[];e.push(new _e("bucket")),e.push(new _e("generation")),e.push(new _e("metageneration")),e.push(new _e("name","fullPath",!0));var t=new _e("name");t.xform=function(e,t){return!$(r=t)||r.length<2?r:pe(r);var r},e.push(t);var r=new _e("size");return r.xform=function(e,t){return V(t)?Number(t):t},e.push(r),e.push(new _e("timeCreated")),e.push(new _e("updated")),e.push(new _e("md5Hash",null,!0)),e.push(new _e("cacheControl",null,!0)),e.push(new _e("contentDisposition",null,!0)),e.push(new _e("contentEncoding",null,!0)),e.push(new _e("contentLanguage",null,!0)),e.push(new _e("contentType",null,!0)),e.push(new _e("metadata","customMetadata",!0)),ve=e}function be(n,o){Object.defineProperty(n,"ref",{get:function(){var e=n.bucket,t=n.fullPath,r=new ue(e,t);return o.makeStorageReference(r)}})}function ge(e,t,r){var n=ce(t);return null===n?null:function(e,t,r){for(var n={type:"file"},o=r.length,i=0;i<o;i++){var a=r[i];n[a.local]=a.xform(n,t[a.server])}return be(n,e),n}(e,n,r)}function ye(e,t){for(var r={},n=t.length,o=0;o<n;o++){var i=t[o];i.writable&&(r[i.server]=e[i.local])}return JSON.stringify(r)}function we(e){if(!J(e)||!e)throw"Expected Metadata object.";for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];if("customMetadata"===t){if(!J(r))throw"Expected object for 'customMetadata' mapping."}else if(J(n=r)&&null!==n)throw"Mapping for '"+t+"' cannot be an object."}var n}var Re="maxResults",Te=1e3,Ee="pageToken",ke="prefixes",Oe="items";function Ue(e,t){var r={prefixes:[],items:[],nextPageToken:t.nextPageToken},n=e.bucket();
1if(null===n)throw new m(g.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+h+"' property when initializing the app?");if(t[ke])for(var o=0,i=t[ke];o<i.length;o++){var a=i[o].replace(/\/$/,""),s=e.makeStorageReference(new ue(n,a));r.prefixes.push(s)}if(t[Oe])for(var u=0,l=t[Oe];u<l.length;u++){var c=l[u];s=e.makeStorageReference(new ue(n,c.name));r.items.push(s)}return r}function Ae(e){if(!J(e)||!e)throw"Expected ListOptions object.";for(var t in e)if(t===Re){if(!Q(r=e[Re])||!Number.isInteger(r)||e[Re]<=0)throw"Expected maxResults to be a positive number.";if(1e3<e[Re])throw"Expected maxResults to be less than or equal to "+Te+"."}else{if(t!==Ee)throw"Unknown option: "+t;if(e[Ee]&&!$(e[Ee]))throw"Expected pageToken to be string."}var r}var xe=function(e,t,r,n){this.url=e,this.method=t,this.handler=r,this.timeout=n,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Pe(e){if(!e)throw w()}function Se(n,o){return function(e,t){var r=ge(n,t,o);return Pe(null!==r),r}}function Ce(i){return function(e,t){var r,n,o=(r=i,null===(n=ce(t))?null:Ue(r,n));return Pe(null!==o),o}}function Ne(n,o){return function(e,t){var r=ge(n,t,o);return Pe(null!==r),function(n,e){var t=ce(e);if(null===t)return null;if(!$(t.downloadTokens))return null;var r=t.downloadTokens;if(0===r.length)return null;var o=encodeURIComponent;return r.split(",").map(function(e){var t=n.bucket,r=n.fullPath;return he("/b/"+o(t)+"/o/"+o(r))+fe({alt:"media",token:e})})[0]}(r,t)}}function Ie(i){return function(e,t){var r,n,o;return(r=401===e.getStatus()?new m(g.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?(o=i.bucket,new m(g.QUOTA_EXCEEDED,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===e.getStatus()?(n=i.path,new m(g.UNAUTHORIZED,"User does not have permission to access '"+n+"'.")):t).setServerResponseProp(t.serverResponseProp()),r}}function Le(o){var i=Ie(o);return function(e,t){var r,n=i(e,t);return 404===e.getStatus()&&(r=o.path,n=new m(g.OBJECT_NOT_FOUND,"Object '"+r+"' does not exist.")),n.setServerResponseProp(t.serverResponseProp()),n}}function De(e,t,r){var n=he(t.fullServerUrl()),o=e.maxOperationRetryTime(),i=new xe(n,"GET",Se(e,r),o);return i.errorHandler=Le(t),i}function Me(e,t,r){var n,o,i=Object.assign({},r);return i.fullPath=e.path,i.size=t.size(),i.contentType||(i.contentType=(o=t,(n=null)&&n.contentType||o&&o.type()||"application/octet-stream")),i}function We(e,t,r,n,o){var i=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"};var s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var u=Me(t,n,o),l="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+ye(u,r)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",c="\r\n--"+s+"--",p=ae.getBlob(l,n,c);if(null===p)throw T();var h={name:u.fullPath},f=he(i),d=e.maxUploadRetryTime(),_=new xe(f,"POST",Se(e,r),d);return _.urlParams=h,_.headers=a,_.body=p.uploadData(),_.errorHandler=Ie(t),_}var Be=function(e,t,r,n){this.current=e,this.total=t,this.finalized=!!r,this.metadata=n||null};function je(e,t){var r=null;try{r=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){Pe(!1)}return Pe(!!r&&-1!==(t||["active"]).indexOf(r)),r}function qe(e,t,r,n,o){var i=t.bucketOnlyServerUrl(),a=Me(t,n,o),s={name:a.fullPath},u=he(i),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":n.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},c=ye(a,r),p=e.maxUploadRetryTime();var h=new xe(u,"POST",function(e){var t;je(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){Pe(!1)}return Pe($(t)),t},p);return h.urlParams=s,h.headers=l,h.body=c,h.errorHandler=Ie(t),h}function Fe(e,t,r,o){var n=e.maxUploadRetryTime(),i=new xe(r,"POST",function(e){var t=je(e,["active","final"]),r=null;try{r=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){Pe(!1)}r||Pe(!1);var n=Number(r);return Pe(!isNaN(n)),new Be(n,o.size(),"final"===t)},n);return i.headers={"X-Goog-Upload-Command":"query"},i.errorHandler=Ie(t),i}function He(e,a,t,s,r,u,n,o){var l=new Be(0,0);if(n?(l.current=n.current,l.total=n.total):(l.current=0,l.total=s.size()),s.size()!==l.total)throw new m
1(g.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");var i=l.total-l.current,c=i;0<r&&(c=Math.min(c,r));var p=l.current,h=p+c,f={"X-Goog-Upload-Command":c===i?"upload, finalize":"upload","X-Goog-Upload-Offset":l.current},d=s.slice(p,h);if(null===d)throw T();var _=a.maxUploadRetryTime(),v=new xe(t,"POST",function(e,t){var r,n=je(e,["active","final"]),o=l.current+c,i=s.size();return r="final"===n?Se(a,u)(e,t):null,new Be(o,i,"final"===n,r)},_);return v.headers=f,v.body=d.uploadData(),v.progressCallback=o||null,v.errorHandler=Ie(e),v}var ze=function(e,t,r){if(Z(e)||V(t)||V(r))this.next=e,this.error=t||null,this.complete=r||null;else{var n=e;this.next=n.next||null,this.error=n.error||null,this.complete=n.complete||null}},Ge=function(e,t,r,n,o,i){this.bytesTransferred=e,this.totalBytes=t,this.state=r,this.metadata=n,this.task=o,this.ref=i};function Xe(t,e,r){for(var n=e.length,o=e.length,i=0;i<e.length;i++)if(e[i].optional){n=i;break}var a,s,u,l,c,p;if(!(n<=r.length&&r.length<=o))throw a=n,s=o,u=t,l=r.length,p=a===s?1===(c=a)?"argument":"arguments":(c="between "+a+" and "+s,"arguments"),new m(g.INVALID_ARGUMENT_COUNT,"Invalid argument count in `"+u+"`: Expected "+c+" "+p+", received "+l+".");for(i=0;i<r.length;i++)try{e[i].validator(r[i])}catch(e){throw e instanceof Error?E(i,t,e.message):E(i,t,e)}}var Ve=function(t,e){var r=this;this.validator=function(e){r.optional&&!K(e)||t(e)},this.optional=!!e};function Ke(e,t){function r(e){if(!$(e))throw"Expected string."}var n,o,i;return n=e?(o=r,i=e,function(e){o(e),i(e)}):r,new Ve(n,t)}function Ze(){return new Ve(function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||ee()&&e instanceof Blob))throw"Expected Blob or File."})}function Je(e){return new Ve(we,e)}function $e(){return new Ve(function(e){if(!(Q(e)&&0<=e))throw"Expected a number 0 or greater."})}function Qe(t,e){return new Ve(function(e){if(!(null===e||V(e)&&e instanceof Object))throw"Expected an Object.";null!=t&&t(e)},e)}function Ye(e){return new Ve(function(e){if(!(null===e||Z(e)))throw"Expected a Function."},e)}function et(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Promise.resolve().then(function(){return r.apply(void 0,e)})}}var tt=(rt.prototype.makeProgressCallback_=function(){var t=this,r=this.transferred_;return function(e){return t.updateProgress_(r+e)}},rt.prototype.shouldDoResumable_=function(e){return 262144<e.size()},rt.prototype.start_=function(){this.state_===W&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},rt.prototype.resolveToken_=function(t){var r=this;this.authWrapper_.getAuthToken().then(function(e){switch(r.state_){case W:t(e);break;case F:r.transition_(H);break;case B:r.transition_(j)}})},rt.prototype.createResumable_=function(){var n=this;this.resolveToken_(function(e){var t=qe(n.authWrapper_,n.location_,n.mappings_,n.blob_,n.metadata_),r=n.authWrapper_.makeRequest(t,e);(n.request_=r).getPromise().then(function(e){n.request_=null,n.uploadUrl_=e,n.needToFetchStatus_=!1,n.completeTransitions_()},n.errorHandler_)})},rt.prototype.fetchStatus_=function(){var n=this,o=this.uploadUrl_;this.resolveToken_(function(e){var t=Fe(n.authWrapper_,n.location_,o,n.blob_),r=n.authWrapper_.makeRequest(t,e);(n.request_=r).getPromise().then(function(e){e=e,n.request_=null,n.updateProgress_(e.current),n.needToFetchStatus_=!1,e.finalized&&(n.needToFetchMetadata_=!0),n.completeTransitions_()},n.errorHandler_)})},rt.prototype.continueUpload_=function(){var n=this,o=262144*this.chunkMultiplier_,i=new Be(this.transferred_,this.blob_.size()),a=this.uploadUrl_;this.resolveToken_(function(e){var t;try{t=He(n.location_,n.authWrapper_,a,n.blob_,o,n.mappings_,i,n.makeProgressCallback_())}catch(e){return n.error_=e,void n.transition_(z)}var r=n.authWrapper_.makeRequest(t,e);(n.request_=r).getPromise().then(function(e){n.increaseMultiplier_(),n.request_=null,n.updateProgress_(e.current),e.finalized?(n.metadata_=e.metadata,n.transition_(q)):n.completeTransitions_()},n.errorHandler_)})},rt.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},rt.prototype.fetchMetadata_=function(){var n=this;this.resolveToken_(function(e){var t=De(n.authWrapper_,n.location_,n.mappings_),r=n.authWrapper_.makeRequest
1(t,e);(n.request_=r).getPromise().then(function(e){n.request_=null,n.metadata_=e,n.transition_(q)},n.metadataErrorHandler_)})},rt.prototype.oneShotUpload_=function(){var n=this;this.resolveToken_(function(e){var t=We(n.authWrapper_,n.location_,n.mappings_,n.blob_,n.metadata_),r=n.authWrapper_.makeRequest(t,e);(n.request_=r).getPromise().then(function(e){n.request_=null,n.metadata_=e,n.updateProgress_(n.blob_.size()),n.transition_(q)},n.errorHandler_)})},rt.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},rt.prototype.transition_=function(e){if(this.state_!==e)switch(e){case F:case B:this.state_=e,null!==this.request_&&this.request_.cancel();break;case W:var t=this.state_===j;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case j:this.state_=e,this.notifyObservers_();break;case H:this.error_=R(),this.state_=e,this.notifyObservers_();break;case z:case q:this.state_=e,this.notifyObservers_()}},rt.prototype.completeTransitions_=function(){switch(this.state_){case B:this.transition_(j);break;case F:this.transition_(H);break;case W:this.start_()}},Object.defineProperty(rt.prototype,"snapshot",{get:function(){var e=X(this.state_);return new Ge(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),rt.prototype.on=function(e,t,r,i){var n="Expected a function or an Object with one of `next`, `error`, `complete` properties.",o=Ye(!0).validator,a=Qe(null,!0).validator;function s(e){try{return void o(e)}catch(e){}try{if(a(e),!(K(e.next)||K(e.error)||K(e.complete)))throw"";return}catch(e){throw n}}Xe("on",[Ke(function(){if(e!==M.STATE_CHANGED)throw"Expected one of the event types: ["+M.STATE_CHANGED+"]."}),Qe(s,!0),Ye(!0),Ye(!0)],arguments);var u=this;function l(o){return function(e,t,r){null!==o&&Xe("on",o,arguments);var n=new ze(e,t,i);return u.addObserver_(n),function(){u.removeObserver_(n)}}}var c=[Qe(function(e){if(null===e)throw n;s(e)}),Ye(!0),Ye(!0)];return K(t)||K(r)||K(i)?l(null)(t,r,i):l(c)},rt.prototype.then=function(e,t){return this.promise_.then(e,t)},rt.prototype.catch=function(e){return this.then(null,e)},rt.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},rt.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},rt.prototype.notifyObservers_=function(){var t=this;this.finishPromise_(),this.observers_.slice().forEach(function(e){t.notifyObserver_(e)})},rt.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(X(this.state_)){case G.SUCCESS:et(this.resolve_.bind(null,this.snapshot))();break;case G.CANCELED:case G.ERROR:et(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},rt.prototype.notifyObserver_=function(e){switch(X(this.state_)){case G.RUNNING:case G.PAUSED:e.next&&et(e.next.bind(e,this.snapshot))();break;case G.SUCCESS:e.complete&&et(e.complete.bind(e))();break;case G.CANCELED:case G.ERROR:e.error&&et(e.error.bind(e,this.error_))();break;default:e.error&&et(e.error.bind(e,this.error_))()}},rt.prototype.resume=function(){Xe("resume",[],arguments);var e=this.state_===j||this.state_===B;return e&&this.transition_(W),e},rt.prototype.pause=function(){Xe("pause",[],arguments);var e=this.state_===W;return e&&this.transition_(B),e},rt.prototype.cancel=function(){Xe("cancel",[],arguments);var e=this.state_===W||this.state_===B;return e&&this.transition_(F),e},rt);function rt(e,t,r,n,o,i){var a=this;void 0===i&&(i=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.authWrapper_=t,this.location_=r,this.blob_=o,this.metadata_=i,this.mappings_=n,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=W,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(g.CANCELED)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(z))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(g.CANCELED)?a.completeTransitions_():(a.error_=e,a.transition_(z))},this.promise_=new Promise(function(e,t){a.resolve_=e,a.reject_=t,a.start_()}),this.promise_.then(null,function(){})}var nt=(ot.prototype.toString=function(){return Xe("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},ot.prototype.newRef=function(e,t){return new ot(e,t)},ot.prototype.mappings=function(){return me()},ot.prototype.child=function(e){Xe("child",[Ke()],arguments);var t,r,n=(t=this.location.path,r=e.split("/").filter(function(e){return 0<e.length}).join("/"),0===t.length?r:t+"/"+r),o=new ue(this.location.bucket,n);return this.newRef(this.authWrapper,o)},Object.defineProperty(ot.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new ue(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"root",{get:function(){var e=new ue(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"name",{get:function(){return pe(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(ot.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),ot.prototype.put=function(e,t){return void 0===t&&(t=null),Xe("put",[Ze(),Je(!0)],arguments),this.throwIfRoot_("put"),new tt(this,this.authWrapper,this.location,this.mappings(),new ae(e),t)},ot.prototype.putString=function(e,t,r){void 0===t&&(t=A.RAW),Xe("putString",[Ke(),Ke(x,!0),Je(!0)],arguments),this.throwIfRoot_("putString");var n=S(t,e),o=Object.assign({},r);return!V(o.contentType)&&V(n.contentType)&&(o.contentType=n.contentType),new tt(this,this.authWrapper,this.location,this.mappings(),new ae(n.data,!0),o)},ot.prototype.delete=function(){var s=this;return Xe("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then(function(e){var t,r,n,o,i,a=(t=s.authWrapper,r=s.location,n=he(r.fullServerUrl()),o=t.maxOperationRetryTime(),(i=new xe(n,"DELETE",function(e,t){},o)).successCodes=[200,204],i.errorHandler=Le(r),i);
1return s.authWrapper.makeRequest(a,e).getPromise()})},ot.prototype.listAll=function(){Xe("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then(function(){return e})},ot.prototype.listAllHelper=function(i,a){return e(this,void 0,void 0,function(){var t,r,n,o;return s(this,function(e){switch(e.label){case 0:return t={pageToken:a},[4,this.list(t)];case 1:return r=e.sent(),(n=i.prefixes).push.apply(n,r.prefixes),(o=i.items).push.apply(o,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(i,r.nextPageToken)];case 2:e.sent(),e.label=3;case 3:return[2]}})})},ot.prototype.list=function(n){Xe("list",[new Ve(Ae,!0)],arguments);var o=this;return this.authWrapper.getAuthToken().then(function(e){var t=n||{},r=function(e,t,r,n,o){var i={};t.isRoot?i.prefix="":i.prefix=t.path+"/",r&&0<r.length&&(i.delimiter=r),n&&(i.pageToken=n),o&&(i.maxResults=o);var a=he(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime(),u=new xe(a,"GET",Ce(e),s);return u.urlParams=i,u.errorHandler=Ie(t),u}(o.authWrapper,o.location,"/",t.pageToken,t.maxResults);return o.authWrapper.makeRequest(r,e).getPromise()})},ot.prototype.getMetadata=function(){var r=this;return Xe("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then(function(e){var t=De(r.authWrapper,r.location,r.mappings());return r.authWrapper.makeRequest(t,e).getPromise()})},ot.prototype.updateMetadata=function(c){var p=this;return Xe("updateMetadata",[Je()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then(function(e){var t,r,n,o,i,a,s,u,l=(t=p.authWrapper,r=p.location,n=c,o=p.mappings(),i=he(r.fullServerUrl()),a=ye(n,o),s=t.maxOperationRetryTime(),(u=new xe(i,"PATCH",Se(t,o),s)).headers={"Content-Type":"application/json; charset=utf-8"},u.body=a,u.errorHandler=Le(r),u);return p.authWrapper.makeRequest(l,e).getPromise()})},ot.prototype.getDownloadURL=function(){var u=this;return Xe("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then(function(e){var t,r,n,o,i,a,s=(t=u.authWrapper,r=u.location,n=u.mappings(),o=he(r.fullServerUrl()),i=t.maxOperationRetryTime(),(a=new xe(o,"GET",Ne(t,n),i)).errorHandler=Le(r),a);return u.authWrapper.makeRequest(s,e).getPromise().then(function(e){if(null===e)throw new m(g.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})})},ot.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw t=e,new m(g.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').");var t},ot);function ot(e,t){this.authWrapper=e,this.location=t instanceof ue?t:ue.makeFromUrl(t)}var it=(at.prototype.getPromise=function(){return this.promise_},at.prototype.cancel=function(e){},at);function at(e){this.promise_=Promise.reject(e)}var st=(ut.prototype.addRequest=function(e){var t=this,r=this.id;this.id++,this.map.set(r,e),e.getPromise().then(function(){return t.map.delete(r)},function(){return t.map.delete(r)})},ut.prototype.clear=function(){this.map.forEach(function(e){e&&e.cancel(!0)}),this.map.clear()},ut);function ut(){this.map=new Map,this.id=-9007199254740991}var lt=(ct.extractBucket_=function(e){var t=e[h]||null;return null==t?null:ue.makeFromBucketSpec(t).bucket},ct.prototype.getAuthToken=function(){var e=this.authProvider_.getImmediate({optional:!0});return e?e.getToken().then(function(e){return null!==e?e.accessToken:null},function(){return null}):Promise.resolve(null)},ct.prototype.bucket=function(){if(this.deleted_)throw k();return this.bucket_},ct.prototype.service=function(){return this.service_},ct.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},ct.prototype.makeRequest=function(e,t){if(this.deleted_)return new it(k());var r=this.requestMaker_(e,this.appId_,t,this.pool_);return this.requestMap_.addRequest(r),r},ct.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},ct.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},ct.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},ct.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},ct.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},ct);function ct(e,t,r,n,o,i){var a;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,null!==this.app_){var s=this.app_.options;V(s)&&(this.bucket_=ct.extractBucket_(s),this.appId_=null!==(a=s.appId)&&void 0!==a?a:null)}this.authProvider_=t,this.storageRefMaker_=r,this.requestMaker_=n,this.pool_=i,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new st}var pt=(ht.prototype.start_=function(){var t,r,e,n,o,i,a,s,u,l=this;function c(e,t){var r,n=l.resolve_,o=l.reject_,i=t.xhr;if(t.wasSuccessCode)try{var a=l.callback_(i,i.getResponseText());K(a)?n(a):n()}catch(e){o(e)}else null!==i?((r=w()).setServerResponseProp(i.getResponseText()),l.errorCallback_?o(l.errorCallback_(i,r)):o(r)):t.canceled?o(r=(l.appDelete_?k:R)()):o(r=new m(g.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again."))}function p(){return 2===a}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s||(s=!0,r.apply(null,e))}function f(e){o=setTimeout(function(){o=null,t(d,p())},e)}function d(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];s||(e||p()||i?h.call.apply(h,v([null,e],t)):(n<64&&(n*=2),f(1===a?(a=2,0):1e3*(n+Math.random()))))}function _(e){u||(u=!0,s||(null!==o?(e||(a=2),clearTimeout(o),f(0)):e||(a=1)))}this.canceled_?c(0,new ft(!1,null,!0)):this.backoffId_=(t=function(i,e){if(e)i(!1,new ft(!1,null,!0));else{var t=l.pool_.createXhrIo();
1l.pendingXhr_=t,null!==l.progressCallback_&&t.addUploadProgressListener(a),t.send(l.url_,l.method_,l.body_,l.headers_).then(function(e){null!==l.progressCallback_&&e.removeUploadProgressListener(a),l.pendingXhr_=null;var t=(e=e).getErrorCode()===L.NO_ERROR,r=e.getStatus();if(t&&!l.isRetryStatusCode_(r)){var n=-1!==l.successCodes_.indexOf(r);i(!0,new ft(n,e))}else{var o=e.getErrorCode()===L.ABORT;i(!1,new ft(!1,null,o))}})}function a(e){var t=e.loaded,r=e.lengthComputable?e.total:-1;null!==l.progressCallback_&&l.progressCallback_(t,r)}},r=c,e=this.timeout_,o=null,u=s=i=!(n=1),f(a=0),setTimeout(function(){_(i=!0)},e),_)},ht.prototype.getPromise=function(){return this.promise_},ht.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},ht.prototype.isRetryStatusCode_=function(e){var t=500<=e&&e<600,r=-1!==[408,429].indexOf(e),n=-1!==this.additionalRetryCodes_.indexOf(e);return t||r||n},ht);function ht(e,t,r,n,o,i,a,s,u,l,c){var p=this;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_=r,this.body_=n,this.successCodes_=o.slice(),this.additionalRetryCodes_=i.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=l,this.timeout_=u,this.pool_=c,this.promise_=new Promise(function(e,t){p.resolve_=e,p.reject_=t,p.start_()})}var ft=function(e,t,r){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!r};function dt(e,t,r,n){var o,i,a,s,u,l,c=fe(e.urlParams),p=e.url+c,h=Object.assign({},e.headers);return o=h,(i=t)&&(o["X-Firebase-GMPID"]=i),a=h,null!==(s=r)&&0<s.length&&(a.Authorization="Firebase "+s),u=h,l=void 0!==Rt?Rt.SDK_VERSION:"AppManager",u["X-Firebase-Storage-Version"]="webjs/"+l,new pt(p,e.method,h,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,n)}var _t=(vt.prototype.ref=function(e){if(Xe("ref",[Ke(function(e){if("string"!=typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."},!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var t=new nt(this.authWrapper_,this.bucket_);return null!=e?t.child(e):t},vt.prototype.refFromURL=function(e){return Xe("refFromURL",[Ke(function(e){if("string"!=typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{ue.makeFromUrl(e)}catch(e){throw"Expected valid full URL but got an invalid one."}},!1)],arguments),new nt(this.authWrapper_,e)},Object.defineProperty(vt.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),vt.prototype.setMaxUploadRetryTime=function(e){Xe("setMaxUploadRetryTime",[$e()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},vt.prototype.setMaxOperationRetryTime=function(e){Xe("setMaxOperationRetryTime",[$e()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(vt.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(vt.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),vt);function vt(e,t,r,n){if(this.bucket_=null,this.authWrapper_=new lt(e,t,function(e,t){return new nt(e,t)},dt,this,r),this.app_=e,null!=n)this.bucket_=ue.makeFromBucketSpec(n);else{var o=this.authWrapper_.bucket();null!=o&&(this.bucket_=new ue(o,""))}this.internals_=new mt(this)}var mt=(bt.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},bt);function bt(e){this.service_=e}var gt,yt;function wt(e,t){var r=e.getProvider("app").getImmediate(),n=e.getProvider("auth-internal");return new _t(r,n,new ne,t)}yt={TaskState:G,TaskEvent:M,StringFormat:A,Storage:_t,Reference:nt},(gt=Rt).INTERNAL.registerComponent(new c("storage",wt,"PUBLIC").setServiceProps(yt).setMultipleInstances(!0)),gt.registerVersion("@firebase/storage","0.3.31")}).apply(this,arguments)}catch(e){throw console.error(e),new Error("Cannot instantiate firebase-storage.js - be sure to load firebase-app.js first.")}});
2//# sourceMappingURL=firebase-storage.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.