1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1986],{30928:(e,t,n)=>{n.d(t,{XR:()=>ep,qk:()=>ed,c7:()=>eg,_w:()=>eh,KR:()=>ef,D:()=>eu,ls:()=>ec});var r,s,i,o,a=n(13410),l=n(11296),u=n(86861);let c="firebasestorage.googleapis.com",h="storageBucket";class d extends l.g{constructor(e,t,n=0){super(p(e),`Firebase Storage: ${t} (${p(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,d.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return p(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} 2${this.customData.serverResponse}`:this.message=this._baseMessage}}function p(e){return"storage/"+e}function f(){return new d(i.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function g(e){return new d(i.INVALID_ARGUMENT,e)}function _(){return new d(i.APP_DELETED,"The Firebase app was deleted.")}function m(e,t){return new d(i.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function w(e){throw new d(i.INTERNAL_ERROR,"Internal error: "+e)}(r=i||(i={})).UNKNOWN="unknown",r.OBJECT_NOT_FOUND="object-not-found",r.BUCKET_NOT_FOUND="bucket-not-found",r.PROJECT_NOT_FOUND="project-not-found",r.QUOTA_EXCEEDED="quota-exceeded",r.UNAUTHENTICATED="unauthenticated",r.UNAUTHORIZED="unauthorized",r.UNAUTHORIZED_APP="unauthorized-app",r.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",r.INVALID_CHECKSUM="invalid-checksum",r.CANCELED="canceled",r.INVALID_EVENT_NAME="invalid-event-name",r.INVALID_URL="invalid-url",r.INVALID_DEFAULT_BUCKET="invalid-default-bucket",r.NO_DEFAULT_BUCKET="no-default-bucket",r.CANNOT_SLICE_BLOB="cannot-slice-blob",r.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",r.NO_DOWNLOAD_URL="no-download-url",r.INVALID_ARGUMENT="invalid-argument",r.INVALID_ARGUMENT_COUNT="invalid-argument-count",r.APP_DELETED="app-deleted",r.INVALID_ROOT_OPERATION="invalid-root-operation",r.INVALID_FORMAT="invalid-format",r.INTERNAL_ERROR="internal-error",r.UNSUPPORTED_ENVIRONMENT="unsupported-environment";class T{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){let e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=T.makeFromUrl(e,t)}catch(t){return new T(e,"")}if(""===n.path)return n;throw new d(i.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+e+"'.")}static makeFromUrl(e,t){let n=null,r="([A-Za-z0-9.\\-_]+)",s=RegExp("^gs://"+r+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}let a=t.replace(/[.]/g,"\\."),l=RegExp(`^https?://${a}/v[A-Za-z0-9_]+/b/${r}/o(/([^?#]*).*)?$`,"i"),u=t===c?"(?:storage.googleapis.com|storage.cloud.google.com)":t,h=[{regex:s,indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:l,indices:{bucket:1,path:3},postModify:o},{regex:RegExp(`^https?://${u}/${r}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:o}];for(let t=0;t<h.length;t++){let r=h[t],s=r.regex.exec(e);if(s){let e=s[r.indices.bucket],t=s[r.indices.path];t||(t=""),n=new T(e,t),r.postModify(n);break}}if(null==n)throw new d(i.INVALID_URL,"Invalid URL '"+e+"'.");return n}}class b{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}function k(e){return"string"==typeof e||e instanceof String}function y(e){return R()&&e instanceof Blob}function R(){return"undefined"!=typeof Blob}function E(e,t,n,r){if(r<t)throw g(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw g(`Invalid value for '${e}'. Expected ${n} or less.`)}function v(e,t,n){let r=t;return null==n&&(r=`https://${t}`),`${n}://${r}/v0${e}`}function O(e){let t=encodeURIComponent,n="?";for(let r in e)e.hasOwnProperty(r)&&(n=n+(t(r)+"=")+t(e[r])+"&");return n.slice(0,-1)}(s=o||(o={}
2))[s.NO_ERROR=0]="NO_ERROR",s[s.NETWORK_ERROR=1]="NETWORK_ERROR",s[s.ABORT=2]="ABORT";class A{constructor(e,t,n,r,s,i,o,a,l,u,c,h=!0){this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=s,this.additionalRetryCodes_=i,this.callback_=o,this.errorCallback_=a,this.timeout_=l,this.progressCallback_=u,this.connectionFactory_=c,this.retry=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()})}start_(){let e=(e,t)=>{if(t)return void e(!1,new N(!1,null,!0));let n=this.connectionFactory_();this.pendingConnection_=n;let r=e=>{let t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{var t;let s,i,a;null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;let l=n.getErrorCode()===o.NO_ERROR,u=n.getStatus();!l||(t=this.additionalRetryCodes_,s=u>=500&&u<600,i=-1!==[408,429].indexOf(u),a=-1!==t.indexOf(u),(s||i||a)&&this.retry)?e(!1,new N(!1,null,n.getErrorCode()===o.ABORT)):e(!0,new N(-1!==this.successCodes_.indexOf(u),n))})},t=(e,t)=>{let n=this.resolve_,r=this.reject_,s=t.connection;if(t.wasSuccessCode)try{let e=this.callback_(s,s.getResponse());void 0!==e?n(e):n()}catch(e){r(e)}else if(null!==s){let e=f();e.serverResponse=s.getErrorText(),r(this.errorCallback_?this.errorCallback_(s,e):e)}else r(t.canceled?this.appDelete_?_():new d(i.CANCELED,"User canceled the upload/download."):new d(i.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again."))};this.canceled_?t(!1,new N(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,s=null,i=null,o=!1,a=0,l=!1;function u(...e){l||(l=!0,t.apply(null,e))}function c(t){s=setTimeout(()=>{s=null,e(d,2===a)},t)}function h(){i&&clearTimeout(i)}function d(e,...t){let n;if(l)return void h();if(e||2===a||o){h(),u.call(null,e,...t);return}r<64&&(r*=2),1===a?(a=2,n=0):n=(r+Math.random())*1e3,c(n)}let p=!1;function f(e){p||(p=!0,h(),!l&&(null!==s?(e||(a=2),clearTimeout(s),c(0)):e||(a=1)))}return c(0),i=setTimeout(()=>{o=!0,f(!0)},n),f}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class N{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function C(...e){let t="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0;if(void 0!==t){let n=new t;for(let t=0;t<e.length;t++)n.append(e[t]);return n.getBlob()}if(R())return new Blob(e);throw new d(i.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}let I="base64",x="base64url",U="data_url";class D{constructor(e,t){this.data=e,this.contentType=t||null}}function P(e,t){switch(e){case"raw":return new D(S(t));case I:case x:return new D(L(e,t));case U:return new D(function(e){let t,n=new B(e);if(n.base64)return L(I,n.rest);var r=n.rest;try{t=decodeURIComponent(r)}catch(e){throw m(U,"Malformed data URL.")}return S(t)}(t),new B(t).contentType)}throw f()}function S(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);r<=127?t.push(r):r<=2047?t.push(192|r>>6,128|63&r):(64512&r)==55296?n<e.length-1&&(64512&e.charCodeAt(n+1))==56320?(r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r)):t.push(239,191,189):(64512&r)==56320?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function L(e,t){let n;switch(e){case I:{let n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw m(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break}case x:{let n=-1!==t.indexOf("+"),r=-1!==t.indexOf("/");if(n||r)throw m(e,"Invalid character '"+(n?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}}try{n=function(e){if("undefined"==typeof atob)throw new d(i.UNSUPPORTED_ENVIRONMENT,"base-64 is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.");return atob(e)}(t)}
2catch(t){if(t.message.includes("polyfill"))throw t;throw m(e,"Invalid character found")}let r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}class B{constructor(e){this.base64=!1,this.contentType=null;const t=e.match(/^data:([^,]+)?,/);if(null===t)throw m(U,"Must be formatted 'data:[<mediatype>][;base64],<data>");const n=t[1]||null;null!=n&&(this.base64=function(e,t){return e.length>=t.length&&e.substring(e.length-t.length)===t}(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}}class j{constructor(e,t){let n=0,r="";y(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}size(){return this.size_}type(){return this.type_}slice(e,t){if(!y(this.data_))return new j(new Uint8Array(this.data_.buffer,e,t-e),!0);{var n,r,s;let i=(n=this.data_,r=e,s=t,n.webkitSlice?n.webkitSlice(r,s):n.mozSlice?n.mozSlice(r,s):n.slice?n.slice(r,s):null);return null===i?null:new j(i)}}static getBlob(...e){if(R()){let t=e.map(e=>e instanceof j?e.data_:e);return new j(C.apply(null,t))}{let t=e.map(e=>k(e)?P("raw",e).data:e.data_),n=0;t.forEach(e=>{n+=e.byteLength});let r=new Uint8Array(n),s=0;return t.forEach(e=>{for(let t=0;t<e.length;t++)r[s++]=e[t]}),new j(r,!0)}}uploadData(){return this.data_}}function F(e){var t;let n;try{n=JSON.parse(e)}catch(e){return null}return"object"!=typeof(t=n)||Array.isArray(t)?null:n}function M(e){let t=e.lastIndexOf("/",e.length-2);return -1===t?e:e.slice(t+1)}function $(e,t){return t}class K{constructor(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||$}}let q=null;function V(){if(q)return q;let e=[];e.push(new K("bucket")),e.push(new K("generation")),e.push(new K("metageneration")),e.push(new K("name","fullPath",!0));let t=new K("name");t.xform=function(e,t){return!k(t)||t.length<2?t:M(t)},e.push(t);let n=new K("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new K("timeCreated")),e.push(new K("updated")),e.push(new K("md5Hash",null,!0)),e.push(new K("cacheControl",null,!0)),e.push(new K("contentDisposition",null,!0)),e.push(new K("contentEncoding",null,!0)),e.push(new K("contentLanguage",null,!0)),e.push(new K("contentType",null,!0)),e.push(new K("metadata","customMetadata",!0)),q=e}function H(e,t,n){let r=F(t);return null===r?null:function(e,t,n){let r={};r.type="file";let s=n.length;for(let e=0;e<s;e++){let s=n[e];r[s.local]=s.xform(r,t[s.server])}return Object.defineProperty(r,"ref",{get:function(){let t=new T(r.bucket,r.fullPath);return e._makeStorageReference(t)}}),r}(e,r,n)}let z="prefixes",W="items";class X{constructor(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}function J(e){if(!e)throw f()}function G(e){return function(t,n){var r,s;let o;return 401===t.getStatus()?o=t.getErrorText().includes("Firebase App Check token is invalid")?new d(i.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project."):new d(i.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(r=e.bucket,o=new d(i.QUOTA_EXCEEDED,"Quota for bucket '"+r+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(s=e.path,o=new d(i.UNAUTHORIZED,"User does not have permission to access '"+s+"'.")):o=n,o.status=t.getStatus(),o.serverResponse=n.serverResponse,o}}function Z(e){let t=G(e);return function(n,r){var s;let o=t(n,r);return 404===n.getStatus()&&(s=e.path,o=new d(i.OBJECT_NOT_FOUND,"Object '"+s+"' does not exist.")),o.serverResponse=r.serverResponse,o}}class Q{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=o.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=o.ABORT,e()}),this.xhr_.addEventListener("error",()=>
2{this.errorCode_=o.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,r){if(this.sent_)throw w("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(let e in r)r.hasOwnProperty(e)&&this.xhr_.setRequestHeader(e,r[e].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw w("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw w("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return -1}}getResponse(){if(!this.sent_)throw w("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw w("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}class Y extends Q{initXhr(){this.xhr_.responseType="text"}}function ee(){return new Y}class et{constructor(e,t){this._service=e,t instanceof T?this._location=t:this._location=T.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new et(e,t)}get root(){let e=new T(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return M(this._location.path)}get storage(){return this._service}get parent(){let e=function(e){if(0===e.length)return null;let t=e.lastIndexOf("/");return -1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;let t=new T(this._location.bucket,e);return new et(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw new d(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').")}}function en(e,t,n){e._throwIfRoot("uploadBytes");let r=function(e,t,n,r,s){let o,a=t.bucketOnlyServerUrl(),l={"X-Goog-Upload-Protocol":"multipart"},u=function(){let e="";for(let t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();l["Content-Type"]="multipart/related; boundary="+u;let c=((o=Object.assign({},s)).fullPath=t.path,o.size=r.size(),o.contentType||(o.contentType=r&&r.type()||"application/octet-stream"),o),h="--"+u+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+function(e,t){let n={},r=t.length;for(let s=0;s<r;s++){let r=t[s];r.writable&&(n[r.server]=e[r.local])}return JSON.stringify(n)}(c,n)+"\r\n--"+u+"\r\nContent-Type: "+c.contentType+"\r\n\r\n",p=j.getBlob(h,r,"\r\n--"
2+u+"--");if(null===p)throw new d(i.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.");let f={name:c.fullPath},g=v(a,e.host,e._protocol),_=e.maxUploadRetryTime,m=new X(g,"POST",function(t,r){let s=H(e,r,n);return J(null!==s),s},_);return m.urlParams=f,m.headers=l,m.body=p.uploadData(),m.errorHandler=G(t),m}(e.storage,e._location,V(),new j(t,!0),n);return e.storage.makeRequestWithTokens(r,ee).then(t=>({metadata:t,ref:e}))}async function er(e,t,n){let r=await function(e,t){var n,r,s,i,o;let a,l,u,c;null!=t&&"number"==typeof t.maxResults&&E("options.maxResults",1,1e3,t.maxResults);let h=t||{},d=(n=e.storage,r=e._location,s=h.pageToken,i=h.maxResults,a={},r.isRoot?a.prefix="":a.prefix=r.path+"/",a.delimiter="/",s&&(a.pageToken=s),i&&(a.maxResults=i),l=v(r.bucketOnlyServerUrl(),n.host,n._protocol),u=n.maxOperationRetryTime,(c=new X(l,"GET",(o=r.bucket,function(e,t){let r=function(e,t,n){let r=F(n);if(null===r)return null;let s={prefixes:[],items:[],nextPageToken:r.nextPageToken};if(r[z])for(let n of r[z]){let r=n.replace(/\/$/,""),i=e._makeStorageReference(new T(t,r));s.prefixes.push(i)}if(r[W])for(let n of r[W]){let r=e._makeStorageReference(new T(t,n.name));s.items.push(r)}return s}(n,o,t);return J(null!==r),r}),u)).urlParams=a,c.errorHandler=G(r),c);return e.storage.makeRequestWithTokens(d,ee)}(e,{pageToken:n});t.prefixes.push(...r.prefixes),t.items.push(...r.items),null!=r.nextPageToken&&await er(e,t,r.nextPageToken)}function es(e,t){let n=null==t?void 0:t[h];return null==n?null:T.makeFromBucketSpec(n,e)}class ei{constructor(e,t,n,r,s){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=s,this._bucket=null,this._host=c,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,null!=r?this._bucket=T.makeFromBucketSpec(r,this._host):this._bucket=es(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=T.makeFromBucketSpec(this._url,e):this._bucket=es(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){E("time",0,1/0,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){E("time",0,1/0,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if((0,a.xZ)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new et(this,e)}_makeRequest(e,t,n,r,s=!0){if(this._deleted)return new b(_());{let i=function(e,t,n,r,s,i,o=!0){let a=O(e.urlParams),l=e.url+a,u=Object.assign({},e.headers);return t&&(u["X-Firebase-GMPID"]=t),null!==n&&n.length>0&&(u.Authorization="Firebase "+n),u["X-Firebase-Storage-Version"]="webjs/"+(null!=i?i:"AppManager"),null!==r&&(u["X-Firebase-AppCheck"]=r),new A(l,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,s,o)}(e,this._appId,n,r,t,this._firebaseVersion,s);return this._requests.add(i),i.getPromise().then(()=>this._requests.delete(i),()=>this._requests.delete(i)),i}}async makeRequestWithTokens(e,t){let[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}let eo="@firebase/storage",ea="0.13.6",el="storage";function eu(e,t,n){return en(e=(0,l.Ku)(e),t,n)}function ec(e,t,n,r){return function(e,t,n="raw",r){e._throwIfRoot("uploadString");let s=P(n,t),i=Object.assign({},r);return null==i.contentType&&null!=s.contentType&&(i.contentType=s.contentType),en(e,s.data,i)}(e=(0,l.Ku)(e),t,n,r)}function eh(e){let t;return t={prefixes:[],items:[]},er(e=(0,l.Ku)(e),t).then(()=>t)}function ed(e){var t,n,r,s;let o,a,u,c;return(t=e=(0,l.Ku)(e))._throwIfRoot("getDownloadURL"),n=t.storage,r=t._location,s=V(),o=v(r.fullServerUrl(),n.host,n._protocol),a=n.maxOperationRetryTime,(u=new X(o,"GET",function(e,t){let r=H(n,t,s);return J(null!==r),function(e,t,n,r){let s=F(t);if(null===s||!k(s.downloadTokens))return null;let i=s.downloadTokens;if(0===i.length)return null;let o=encodeURIComponent;return i.split(",").map(t=>{let s=e.bucket,i=e.fullPath;return v("/b/"+o(s)+"/o/"+o(i),n,r)+O({alt:"media",token:t})})[0]}(r,t,n.host,n._protocol)},a)).errorHandler=Z(r),c=u,t.storage.makeRequestWithTokens(c,ee).then(e=>{if(null===e)throw new d(i.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})}function ep(e){var t,n,r;let s,i;return(t=e=(0,l.Ku)(e))._throwIfRoot("deleteObject"),n=t.storage,(s=new X(v((r=t._location).fullServerUrl(),n.host,n._protocol),"DELETE",function(e,t){},n.maxOperationRetryTime)).successCodes=[200,204],s.errorHandler=Z(r),i=s,t.storage.makeRequestWithTokens(i,ee)}function ef(e,t){var n=e=(0,l.Ku)(e);if(!(t&&/^[A-Za-z]+:\/\//.test(t)))return function e(t,n){var r;let s,o,a;if(t instanceof ei){if(null==t._bucket)throw new d(i.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+h+"' property when initializing the app?");let r=new et(t,t._bucket);return null!=n?e(r,n):r}if(void 0===n)return t;return r=t._location.path,s=n.split("/").filter(e=>e.length>0).join("/"),o=0===r.length?s:r+"/"+s,a=new T(t._location.bucket,o),new et(t.storage,a)}(n,t);if(n instanceof ei)return new et(n,t);throw g("To use ref(service, url), the first argument must be a Storage instance.")}function eg(e=(0,a.Sx)(),t){e=(0,l.Ku)(e);let n=(0,a.j6)(e,el).getImmediate({identifier:t}),r=(0,l.yU)("storage");return r&&function(e,t,n,r={}){!function(e,t,n,r={}){e.host=`${t}:${n}`,e._protocol="http";let{mockUserToken:s}=r;s&&(e._overrideAuthToken="string"==typeof s?s:(0,l.Fy)(s,e.app.options.projectId))}(e,t,n,r)}(n,...r),n}(0,a.om)(new u.uA(el,function(e,{instanceIdentifier:t}){return new ei(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("app-check-internal"),t,a.MF)},"PUBLIC").setMultipleInstances(!0)),(0,a.KO)(eo,ea,""),(0,a.KO)(eo,ea,"esm2017")},69671:(e,t,n)=>{n.d(t,{Uz:()=>R,Qg:()=>E});var r=n(13410),s=n(11296),i=n(86861);function o(e,t){let n={};for(let r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function a(e){if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e)||!0===e||!1===e||"[object String]"===Object.prototype.toString.call(e))return e;if(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map(e=>a(e));if("function"==typeof e||"object"==typeof e)return o(e,e=>a(e));throw Error("Data cannot be encoded in JSON: "+e)}function l(e){if(null==e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":{let t=Number(e.value);if(isNaN(t))throw Error("Data cannot be decoded from JSON: "+e);return t}default:throw Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map(e=>l(e)):"function"==typeof e||"object"==typeof e?o(e,e=>l(e)):e}let u="functions",c={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
2ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class h extends s.g{constructor(e,t,n){super(`${u}/${e}`,t||""),this.details=n,Object.setPrototypeOf(this,h.prototype)}}function d(e,t){let n,r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:case 500:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),s=r;try{let e=t&&t.error;if(e){let t=e.status;if("string"==typeof t){if(!c[t])return new h("internal","internal");r=c[t],s=t}let i=e.message;"string"==typeof i&&(s=i),n=e.details,void 0!==n&&(n=l(n))}}catch(e){}return"ok"===r?null:new h(r,s,n)}class p{constructor(e,t,n,s){this.app=e,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,(0,r.xZ)(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.auth=t.getImmediate({optional:!0}),this.messaging=n.getImmediate({optional:!0}),this.auth||t.get().then(e=>this.auth=e,()=>{}),this.messaging||n.get().then(e=>this.messaging=e,()=>{}),this.appCheck||null==s||s.get().then(e=>this.appCheck=e,()=>{})}async getAuthToken(){if(this.auth)try{let e=await this.auth.getToken();return null==e?void 0:e.accessToken}catch(e){return}}async getMessagingToken(){if(this.messaging&&"Notification"in self&&"granted"===Notification.permission)try{return await this.messaging.getToken()}catch(e){return}}async getAppCheckToken(e){if(this.serverAppAppCheckToken)return this.serverAppAppCheckToken;if(this.appCheck){let t=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return t.error?null:t.token}return null}async getContext(e){let t=await this.getAuthToken();return{authToken:t,messagingToken:await this.getMessagingToken(),appCheckToken:await this.getAppCheckToken(e)}}}let f="us-central1",g=/^data: (.*?)(?:\n|$)/;class _{constructor(e,t,n,r,s=f,i=(...e)=>fetch(...e)){this.app=e,this.fetchImpl=i,this.emulatorOrigin=null,this.contextProvider=new p(e,t,n,r),this.cancelAllRequests=new Promise(e=>{this.deleteService=()=>Promise.resolve(e())});try{const e=new URL(s);this.customDomain=e.origin+("/"===e.pathname?"":e.pathname),this.region=f}catch(e){this.customDomain=null,this.region=s}}_delete(){return this.deleteService()}_url(e){let t=this.app.options.projectId;if(null!==this.emulatorOrigin){let n=this.emulatorOrigin;return`${n}/${t}/${this.region}/${e}`}return null!==this.customDomain?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}}async function m(e,t,n,r){let s;n["Content-Type"]="application/json";try{s=await r(e,{method:"POST",body:JSON.stringify(t),headers:n})}catch(e){return{status:0,json:null}}let i=null;try{i=await s.json()}catch(e){}return{status:s.status,json:i}}async function w(e,t){let n={},r=await e.contextProvider.getContext(t.limitedUseAppCheckTokens);return r.authToken&&(n.Authorization="Bearer "+r.authToken),r.messagingToken&&(n["Firebase-Instance-ID-Token"]=r.messagingToken),null!==r.appCheckToken&&(n["X-Firebase-AppCheck"]=r.appCheckToken),n}async function T(e,t,n,r){var s;let i,o={data:n=a(n)},u=await w(e,r),c=(s=r.timeout||7e4,i=null,{promise:new Promise((e,t)=>{i=setTimeout(()=>{t(new h("deadline-exceeded","deadline-exceeded"))},s)}),cancel:()=>{i&&clearTimeout(i)}}),p=await Promise.race([m(t,o,u,e.fetchImpl),c.promise,e.cancelAllRequests]);if(c.cancel(),!p)throw new h("cancelled","Firebase Functions instance was deleted.");let f=d(p.status,p.json);if(f)throw f;if(!p.json)throw new h("internal","Response is not valid JSON object.");let g=p.json.data;if(void 0===g&&(g=p.json.result),void 0===g)throw new h("internal","Response is missing data field.");return{data:l(g)}}async function b(e,t,n,r){var s,i,o,u,c;let p,f,_,m,T,b={data:n=a(n)},k=await w(e,r);k["Content-Type"]="application/json",k.Accept="text/event-stream";try{_=await e.fetchImpl(t,{method:"POST",body:JSON.stringify(b),headers:k,signal:null==r?void 0:r.signal})}catch(t){if(t instanceof Error&&"AbortError"===t.name){let e=new h("cancelled","Request was cancelled.");
2return{data:Promise.reject(e),stream:{[Symbol.asyncIterator]:()=>({next:()=>Promise.reject(e)})}}}let e=d(0,null);return{data:Promise.reject(e),stream:{[Symbol.asyncIterator]:()=>({next:()=>Promise.reject(e)})}}}let y=new Promise((e,t)=>{m=e,T=t});null==(s=null==r?void 0:r.signal)||s.addEventListener("abort",()=>{let e=new h("cancelled","Request was cancelled.");T(e)});let R=(i=_.body.getReader(),o=m,u=T,c=null==r?void 0:r.signal,p=(e,t)=>{let n=e.match(g);if(!n)return;let r=n[1];try{let e=JSON.parse(r);if("result"in e)return void o(l(e.result));if("message"in e)return void t.enqueue(l(e.message));if("error"in e){let n=d(0,e);t.error(n),u(n);return}}catch(e){if(e instanceof h){t.error(e),u(e);return}}},f=new TextDecoder,new ReadableStream({start(e){let t="";return n();async function n(){if(null==c?void 0:c.aborted){let t=new h("cancelled","Request was cancelled");return e.error(t),u(t),Promise.resolve()}try{let{value:r,done:s}=await i.read();if(s){t.trim()&&p(t.trim(),e),e.close();return}if(null==c?void 0:c.aborted){let t=new h("cancelled","Request was cancelled");e.error(t),u(t),await i.cancel();return}let o=(t+=f.decode(r,{stream:!0})).split("\n");for(let n of(t=o.pop()||"",o))n.trim()&&p(n.trim(),e);return n()}catch(n){let t=n instanceof h?n:d(0,null);e.error(t),u(t)}}},cancel:()=>i.cancel()}));return{stream:{[Symbol.asyncIterator](){let e=R.getReader();return{async next(){let{value:t,done:n}=await e.read();return{value:t,done:n}},return:async()=>(await e.cancel(),{done:!0,value:void 0})}}},data:y}}let k="@firebase/functions",y="0.12.2";function R(e=(0,r.Sx)(),t=f){let n=(0,r.j6)((0,s.Ku)(e),u).getImmediate({identifier:t}),i=(0,s.yU)("functions");return i&&function(e,t,n){var r;r=(0,s.Ku)(e),r.emulatorOrigin=`http://${t}:${n}`}(n,...i),n}function E(e,t,n){var r;let i;return r=(0,s.Ku)(e),(i=e=>{var s,i,o,a;let l;return s=r,i=t,o=e,a=n||{},l=s._url(i),T(s,l,o,a)}).stream=(e,n)=>{var s,i,o,a;let l;return s=r,i=t,o=e,a=n,l=s._url(i),b(s,l,o,a||{})},i}(0,r.om)(new i.uA(u,(e,{instanceIdentifier:t})=>new _(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"),e.getProvider("messaging-internal"),e.getProvider("app-check-internal"),t),"PUBLIC").setMultipleInstances(!0)),(0,r.KO)(k,y,void 0),(0,r.KO)(k,y,"esm2017")},97873:(e,t,n)=>{n.d(t,{Dk:()=>r.Dk,Wp:()=>r.Wp});var r=n(13410);(0,r.KO)("firebase","11.3.1","app")}}]);
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.