summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/storage-compat/dist
diff options
context:
space:
mode:
Diffstat (limited to 'frontend-old/node_modules/@firebase/storage-compat/dist')
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js398
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js.map1
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/package.json1
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/index.d.ts49
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/list.d.ts29
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/reference.d.ts121
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/service.d.ts46
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/task.d.ts54
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/tasksnapshot.d.ts31
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/integration/integration.test.d.ts23
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/setup.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/index.test.d.ts22
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/reference.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/service.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/utils.d.ts22
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js406
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js.map1
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts71
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/src/list.d.ts29
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/src/reference.d.ts121
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/src/service.d.ts46
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/src/task.d.ts54
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/src/tasksnapshot.d.ts31
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/test/integration/integration.test.d.ts23
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/test/setup.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/index.test.d.ts22
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/reference.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/service.test.d.ts17
-rw-r--r--frontend-old/node_modules/@firebase/storage-compat/dist/test/utils.d.ts22
29 files changed, 0 insertions, 1725 deletions
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js
deleted file mode 100644
index fd85b90..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js
+++ /dev/null
@@ -1,398 +0,0 @@
-import firebase from '@firebase/app-compat';
-import { _getChild, uploadBytesResumable, _dataFromString, _UploadTask, _FbsBlob, StringFormat, listAll, list, getMetadata, updateMetadata, getDownloadURL, deleteObject, _invalidRootOperation, _invalidArgument, ref, _Location, connectStorageEmulator, _TaskState, _TaskEvent } from '@firebase/storage';
-import { Component } from '@firebase/component';
-
-/**
- * @license
- * Copyright 2020 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.
- */
-class UploadTaskSnapshotCompat {
- constructor(_delegate, task, ref) {
- this._delegate = _delegate;
- this.task = task;
- this.ref = ref;
- }
- get bytesTransferred() {
- return this._delegate.bytesTransferred;
- }
- get metadata() {
- return this._delegate.metadata;
- }
- get state() {
- return this._delegate.state;
- }
- get totalBytes() {
- return this._delegate.totalBytes;
- }
-}
-
-/**
- * @license
- * Copyright 2020 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.
- */
-class UploadTaskCompat {
- constructor(_delegate, _ref) {
- this._delegate = _delegate;
- this._ref = _ref;
- this.cancel = this._delegate.cancel.bind(this._delegate);
- this.catch = this._delegate.catch.bind(this._delegate);
- this.pause = this._delegate.pause.bind(this._delegate);
- this.resume = this._delegate.resume.bind(this._delegate);
- }
- get snapshot() {
- return new UploadTaskSnapshotCompat(this._delegate.snapshot, this, this._ref);
- }
- then(onFulfilled, onRejected) {
- return this._delegate.then(snapshot => {
- if (onFulfilled) {
- return onFulfilled(new UploadTaskSnapshotCompat(snapshot, this, this._ref));
- }
- }, onRejected);
- }
- on(type, nextOrObserver, error, completed) {
- let wrappedNextOrObserver = undefined;
- if (!!nextOrObserver) {
- if (typeof nextOrObserver === 'function') {
- wrappedNextOrObserver = (taskSnapshot) => nextOrObserver(new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref));
- }
- else {
- wrappedNextOrObserver = {
- next: !!nextOrObserver.next
- ? (taskSnapshot) => nextOrObserver.next(new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref))
- : undefined,
- complete: nextOrObserver.complete || undefined,
- error: nextOrObserver.error || undefined
- };
- }
- }
- return this._delegate.on(type, wrappedNextOrObserver, error || undefined, completed || undefined);
- }
-}
-
-class ListResultCompat {
- constructor(_delegate, _service) {
- this._delegate = _delegate;
- this._service = _service;
- }
- get prefixes() {
- return this._delegate.prefixes.map(ref => new ReferenceCompat(ref, this._service));
- }
- get items() {
- return this._delegate.items.map(ref => new ReferenceCompat(ref, this._service));
- }
- get nextPageToken() {
- return this._delegate.nextPageToken || null;
- }
-}
-
-/**
- * @license
- * Copyright 2020 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.
- */
-class ReferenceCompat {
- constructor(_delegate, storage) {
- this._delegate = _delegate;
- this.storage = storage;
- }
- get name() {
- return this._delegate.name;
- }
- get bucket() {
- return this._delegate.bucket;
- }
- get fullPath() {
- return this._delegate.fullPath;
- }
- toString() {
- return this._delegate.toString();
- }
- /**
- * @returns A reference to the object obtained by
- * appending childPath, removing any duplicate, beginning, or trailing
- * slashes.
- */
- child(childPath) {
- const reference = _getChild(this._delegate, childPath);
- return new ReferenceCompat(reference, this.storage);
- }
- get root() {
- return new ReferenceCompat(this._delegate.root, this.storage);
- }
- /**
- * @returns A reference to the parent of the
- * current object, or null if the current object is the root.
- */
- get parent() {
- const reference = this._delegate.parent;
- if (reference == null) {
- return null;
- }
- return new ReferenceCompat(reference, this.storage);
- }
- /**
- * Uploads a blob to this object's location.
- * @param data - The blob to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- put(data, metadata) {
- this._throwIfRoot('put');
- return new UploadTaskCompat(uploadBytesResumable(this._delegate, data, metadata), this);
- }
- /**
- * Uploads a string to this object's location.
- * @param value - The string to upload.
- * @param format - The format of the string to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- putString(value, format = StringFormat.RAW, metadata) {
- this._throwIfRoot('putString');
- const data = _dataFromString(format, value);
- const metadataClone = { ...metadata };
- if (metadataClone['contentType'] == null && data.contentType != null) {
- metadataClone['contentType'] = data.contentType;
- }
- return new UploadTaskCompat(new _UploadTask(this._delegate, new _FbsBlob(data.data, true), metadataClone), this);
- }
- /**
- * List all items (files) and prefixes (folders) under this storage reference.
- *
- * This is a helper method for calling list() repeatedly until there are
- * no more results. The default pagination size is 1000.
- *
- * Note: The results may not be consistent if objects are changed while this
- * operation is running.
- *
- * Warning: listAll may potentially consume too many resources if there are
- * too many results.
- *
- * @returns A Promise that resolves with all the items and prefixes under
- * the current storage reference. `prefixes` contains references to
- * sub-directories and `items` contains references to objects in this
- * folder. `nextPageToken` is never returned.
- */
- listAll() {
- return listAll(this._delegate).then(r => new ListResultCompat(r, this.storage));
- }
- /**
- * List items (files) and prefixes (folders) under this storage reference.
- *
- * List API is only available for Firebase Rules Version 2.
- *
- * GCS is a key-blob store. Firebase Storage imposes the semantic of '/'
- * delimited folder structure. Refer to GCS's List API if you want to learn more.
- *
- * To adhere to Firebase Rules's Semantics, Firebase Storage does not
- * support objects whose paths end with "/" or contain two consecutive
- * "/"s. Firebase Storage List API will filter these unsupported objects.
- * list() may fail if there are too many unsupported objects in the bucket.
- *
- * @param options - See ListOptions for details.
- * @returns A Promise that resolves with the items and prefixes.
- * `prefixes` contains references to sub-folders and `items`
- * contains references to objects in this folder. `nextPageToken`
- * can be used to get the rest of the results.
- */
- list(options) {
- return list(this._delegate, options || undefined).then(r => new ListResultCompat(r, this.storage));
- }
- /**
- * A `Promise` that resolves with the metadata for this object. If this
- * object doesn't exist or metadata cannot be retrieved, the promise is
- * rejected.
- */
- getMetadata() {
- return getMetadata(this._delegate);
- }
- /**
- * Updates the metadata for this object.
- * @param metadata - The new metadata for the object.
- * Only values that have been explicitly set will be changed. Explicitly
- * setting a value to null will remove the metadata.
- * @returns A `Promise` that resolves
- * with the new metadata for this object.
- * @see firebaseStorage.Reference.prototype.getMetadata
- */
- updateMetadata(metadata) {
- return updateMetadata(this._delegate, metadata);
- }
- /**
- * @returns A `Promise` that resolves with the download
- * URL for this object.
- */
- getDownloadURL() {
- return getDownloadURL(this._delegate);
- }
- /**
- * Deletes the object at this location.
- * @returns A `Promise` that resolves if the deletion succeeds.
- */
- delete() {
- this._throwIfRoot('delete');
- return deleteObject(this._delegate);
- }
- _throwIfRoot(name) {
- if (this._delegate._location.path === '') {
- throw _invalidRootOperation(name);
- }
- }
-}
-
-/**
- * @license
- * Copyright 2020 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.
- */
-/**
- * A service that provides firebaseStorage.Reference instances.
- * @param opt_url gs:// url to a custom Storage Bucket
- */
-class StorageServiceCompat {
- constructor(app, _delegate) {
- this.app = app;
- this._delegate = _delegate;
- }
- get maxOperationRetryTime() {
- return this._delegate.maxOperationRetryTime;
- }
- get maxUploadRetryTime() {
- return this._delegate.maxUploadRetryTime;
- }
- /**
- * Returns a firebaseStorage.Reference for the given path in the default
- * bucket.
- */
- ref(path) {
- if (isUrl(path)) {
- throw _invalidArgument('ref() expected a child path but got a URL, use refFromURL instead.');
- }
- return new ReferenceCompat(ref(this._delegate, path), this);
- }
- /**
- * Returns a firebaseStorage.Reference object for the given absolute URL,
- * which must be a gs:// or http[s]:// URL.
- */
- refFromURL(url) {
- if (!isUrl(url)) {
- throw _invalidArgument('refFromURL() expected a full URL but got a child path, use ref() instead.');
- }
- try {
- _Location.makeFromUrl(url, this._delegate.host);
- }
- catch (e) {
- throw _invalidArgument('refFromUrl() expected a valid full URL but got an invalid one.');
- }
- return new ReferenceCompat(ref(this._delegate, url), this);
- }
- setMaxUploadRetryTime(time) {
- this._delegate.maxUploadRetryTime = time;
- }
- setMaxOperationRetryTime(time) {
- this._delegate.maxOperationRetryTime = time;
- }
- useEmulator(host, port, options = {}) {
- connectStorageEmulator(this._delegate, host, port, options);
- }
-}
-function isUrl(path) {
- return /^[A-Za-z]+:\/\//.test(path);
-}
-
-const name = "@firebase/storage-compat";
-const version = "0.4.0";
-
-/**
- * @license
- * Copyright 2020 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.
- */
-/**
- * Type constant for Firebase Storage.
- */
-const STORAGE_TYPE = 'storage-compat';
-function factory(container, { instanceIdentifier: url }) {
- // Dependencies
- const app = container.getProvider('app-compat').getImmediate();
- const storageExp = container
- .getProvider('storage')
- .getImmediate({ identifier: url });
- const storageServiceCompat = new StorageServiceCompat(app, storageExp);
- return storageServiceCompat;
-}
-function registerStorage(instance) {
- const namespaceExports = {
- // no-inline
- TaskState: _TaskState,
- TaskEvent: _TaskEvent,
- StringFormat,
- Storage: StorageServiceCompat,
- Reference: ReferenceCompat
- };
- instance.INTERNAL.registerComponent(new Component(STORAGE_TYPE, factory, "PUBLIC" /* ComponentType.PUBLIC */)
- .setServiceProps(namespaceExports)
- .setMultipleInstances(true));
- instance.registerVersion(name, version);
-}
-registerStorage(firebase);
-
-export { registerStorage };
-//# sourceMappingURL=index.esm.js.map
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js.map b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js.map
deleted file mode 100644
index 70f8913..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/index.esm.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.esm.js","sources":["../../src/tasksnapshot.ts","../../src/task.ts","../../src/list.ts","../../src/reference.ts","../../src/service.ts","../../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UploadTaskSnapshot } from '@firebase/storage';\nimport { ReferenceCompat } from './reference';\nimport { UploadTaskCompat } from './task';\nimport * as types from '@firebase/storage-types';\nimport { Compat } from '@firebase/util';\n\nexport class UploadTaskSnapshotCompat\n implements types.UploadTaskSnapshot, Compat<UploadTaskSnapshot>\n{\n constructor(\n readonly _delegate: UploadTaskSnapshot,\n readonly task: UploadTaskCompat,\n readonly ref: ReferenceCompat\n ) {}\n\n get bytesTransferred(): number {\n return this._delegate.bytesTransferred;\n }\n get metadata(): types.FullMetadata {\n return this._delegate.metadata as types.FullMetadata;\n }\n get state(): string {\n return this._delegate.state;\n }\n get totalBytes(): number {\n return this._delegate.totalBytes;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n UploadTask,\n StorageError,\n UploadTaskSnapshot,\n TaskEvent,\n StorageObserver\n} from '@firebase/storage';\nimport { UploadTaskSnapshotCompat } from './tasksnapshot';\nimport { ReferenceCompat } from './reference';\nimport * as types from '@firebase/storage-types';\nimport { Compat } from '@firebase/util';\n\nexport class UploadTaskCompat implements types.UploadTask, Compat<UploadTask> {\n constructor(\n readonly _delegate: UploadTask,\n private readonly _ref: ReferenceCompat\n ) {}\n\n get snapshot(): UploadTaskSnapshotCompat {\n return new UploadTaskSnapshotCompat(\n this._delegate.snapshot,\n this,\n this._ref\n );\n }\n\n cancel = this._delegate.cancel.bind(this._delegate);\n catch = this._delegate.catch.bind(this._delegate);\n pause = this._delegate.pause.bind(this._delegate);\n resume = this._delegate.resume.bind(this._delegate);\n\n then(\n onFulfilled?: ((a: UploadTaskSnapshotCompat) => unknown) | null,\n onRejected?: ((a: StorageError) => unknown) | null\n ): Promise<unknown> {\n return this._delegate.then(snapshot => {\n if (onFulfilled) {\n return onFulfilled(\n new UploadTaskSnapshotCompat(snapshot, this, this._ref)\n );\n }\n }, onRejected);\n }\n\n on(\n type: TaskEvent,\n nextOrObserver?:\n | types.StorageObserver<UploadTaskSnapshotCompat>\n | null\n | ((a: UploadTaskSnapshotCompat) => unknown),\n error?: ((error: StorageError) => void) | null,\n completed?: () => void | null\n ): Unsubscribe | Subscribe<UploadTaskSnapshotCompat> {\n let wrappedNextOrObserver:\n | StorageObserver<UploadTaskSnapshot>\n | undefined\n | ((a: UploadTaskSnapshot) => unknown) = undefined;\n if (!!nextOrObserver) {\n if (typeof nextOrObserver === 'function') {\n wrappedNextOrObserver = (taskSnapshot: UploadTaskSnapshot) =>\n nextOrObserver(\n new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref)\n );\n } else {\n wrappedNextOrObserver = {\n next: !!nextOrObserver.next\n ? (taskSnapshot: UploadTaskSnapshot) =>\n nextOrObserver.next!(\n new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref)\n )\n : undefined,\n complete: nextOrObserver.complete || undefined,\n error: nextOrObserver.error || undefined\n };\n }\n }\n return this._delegate.on(\n type,\n wrappedNextOrObserver,\n error || undefined,\n completed || undefined\n );\n }\n}\n\n/**\n * Subscribes to an event stream.\n */\nexport type Subscribe<T> = (\n next?: NextFn<T> | StorageObserver<T>,\n error?: ErrorFn,\n complete?: CompleteFn\n) => Unsubscribe;\n\n/**\n * Unsubscribes from a stream.\n */\nexport type Unsubscribe = () => void;\n\n/**\n * Function that is called once for each value in a stream of values.\n */\nexport type NextFn<T> = (value: T) => void;\n\n/**\n * A function that is called with a `FirebaseStorageError`\n * if the event stream ends due to an error.\n */\nexport type ErrorFn = (error: StorageError) => void;\n\n/**\n * A function that is called if the event stream ends normally.\n */\nexport type CompleteFn = () => void;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ListResult } from '@firebase/storage';\nimport * as types from '@firebase/storage-types';\nimport { ReferenceCompat } from './reference';\nimport { StorageServiceCompat } from './service';\nimport { Compat } from '@firebase/util';\n\nexport class ListResultCompat implements types.ListResult, Compat<ListResult> {\n constructor(\n readonly _delegate: ListResult,\n private readonly _service: StorageServiceCompat\n ) {}\n\n get prefixes(): ReferenceCompat[] {\n return this._delegate.prefixes.map(\n ref => new ReferenceCompat(ref, this._service)\n );\n }\n get items(): ReferenceCompat[] {\n return this._delegate.items.map(\n ref => new ReferenceCompat(ref, this._service)\n );\n }\n get nextPageToken(): string | null {\n return this._delegate.nextPageToken || null;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n StorageReference,\n uploadBytesResumable,\n list,\n listAll,\n getDownloadURL,\n getMetadata,\n updateMetadata,\n deleteObject,\n UploadTask,\n StringFormat,\n UploadMetadata,\n FullMetadata,\n SettableMetadata,\n _UploadTask,\n _getChild,\n _Reference,\n _FbsBlob,\n _dataFromString,\n _invalidRootOperation\n} from '@firebase/storage';\n\nimport { UploadTaskCompat } from './task';\nimport { ListResultCompat } from './list';\nimport { StorageServiceCompat } from './service';\n\nimport * as types from '@firebase/storage-types';\nimport { Compat } from '@firebase/util';\n\nexport class ReferenceCompat\n implements types.Reference, Compat<StorageReference>\n{\n constructor(\n readonly _delegate: StorageReference,\n public storage: StorageServiceCompat\n ) {}\n\n get name(): string {\n return this._delegate.name;\n }\n\n get bucket(): string {\n return this._delegate.bucket;\n }\n\n get fullPath(): string {\n return this._delegate.fullPath;\n }\n\n toString(): string {\n return this._delegate.toString();\n }\n\n /**\n * @returns A reference to the object obtained by\n * appending childPath, removing any duplicate, beginning, or trailing\n * slashes.\n */\n child(childPath: string): types.Reference {\n const reference = _getChild(this._delegate, childPath);\n return new ReferenceCompat(reference, this.storage);\n }\n\n get root(): types.Reference {\n return new ReferenceCompat(this._delegate.root, this.storage);\n }\n\n /**\n * @returns A reference to the parent of the\n * current object, or null if the current object is the root.\n */\n get parent(): types.Reference | null {\n const reference = this._delegate.parent;\n if (reference == null) {\n return null;\n }\n return new ReferenceCompat(reference, this.storage);\n }\n\n /**\n * Uploads a blob to this object's location.\n * @param data - The blob to upload.\n * @returns An UploadTask that lets you control and\n * observe the upload.\n */\n put(\n data: Blob | Uint8Array | ArrayBuffer,\n metadata?: types.FullMetadata\n ): types.UploadTask {\n this._throwIfRoot('put');\n return new UploadTaskCompat(\n uploadBytesResumable(this._delegate, data, metadata as UploadMetadata),\n this\n );\n }\n\n /**\n * Uploads a string to this object's location.\n * @param value - The string to upload.\n * @param format - The format of the string to upload.\n * @returns An UploadTask that lets you control and\n * observe the upload.\n */\n putString(\n value: string,\n format: StringFormat = StringFormat.RAW,\n metadata?: types.UploadMetadata\n ): types.UploadTask {\n this._throwIfRoot('putString');\n const data = _dataFromString(format, value);\n const metadataClone = { ...metadata };\n if (metadataClone['contentType'] == null && data.contentType != null) {\n metadataClone['contentType'] = data.contentType;\n }\n return new UploadTaskCompat(\n new _UploadTask(\n this._delegate as _Reference,\n new _FbsBlob(data.data, true),\n metadataClone as FullMetadata & { [k: string]: string }\n ) as UploadTask,\n this\n );\n }\n\n /**\n * List all items (files) and prefixes (folders) under this storage reference.\n *\n * This is a helper method for calling list() repeatedly until there are\n * no more results. The default pagination size is 1000.\n *\n * Note: The results may not be consistent if objects are changed while this\n * operation is running.\n *\n * Warning: listAll may potentially consume too many resources if there are\n * too many results.\n *\n * @returns A Promise that resolves with all the items and prefixes under\n * the current storage reference. `prefixes` contains references to\n * sub-directories and `items` contains references to objects in this\n * folder. `nextPageToken` is never returned.\n */\n listAll(): Promise<types.ListResult> {\n return listAll(this._delegate).then(\n r => new ListResultCompat(r, this.storage)\n );\n }\n\n /**\n * List items (files) and prefixes (folders) under this storage reference.\n *\n * List API is only available for Firebase Rules Version 2.\n *\n * GCS is a key-blob store. Firebase Storage imposes the semantic of '/'\n * delimited folder structure. Refer to GCS's List API if you want to learn more.\n *\n * To adhere to Firebase Rules's Semantics, Firebase Storage does not\n * support objects whose paths end with \"/\" or contain two consecutive\n * \"/\"s. Firebase Storage List API will filter these unsupported objects.\n * list() may fail if there are too many unsupported objects in the bucket.\n *\n * @param options - See ListOptions for details.\n * @returns A Promise that resolves with the items and prefixes.\n * `prefixes` contains references to sub-folders and `items`\n * contains references to objects in this folder. `nextPageToken`\n * can be used to get the rest of the results.\n */\n list(options?: types.ListOptions | null): Promise<types.ListResult> {\n return list(this._delegate, options || undefined).then(\n r => new ListResultCompat(r, this.storage)\n );\n }\n\n /**\n * A `Promise` that resolves with the metadata for this object. If this\n * object doesn't exist or metadata cannot be retrieved, the promise is\n * rejected.\n */\n getMetadata(): Promise<types.FullMetadata> {\n return getMetadata(this._delegate) as Promise<types.FullMetadata>;\n }\n\n /**\n * Updates the metadata for this object.\n * @param metadata - The new metadata for the object.\n * Only values that have been explicitly set will be changed. Explicitly\n * setting a value to null will remove the metadata.\n * @returns A `Promise` that resolves\n * with the new metadata for this object.\n * @see firebaseStorage.Reference.prototype.getMetadata\n */\n updateMetadata(\n metadata: types.SettableMetadata\n ): Promise<types.FullMetadata> {\n return updateMetadata(\n this._delegate,\n metadata as SettableMetadata\n ) as Promise<types.FullMetadata>;\n }\n\n /**\n * @returns A `Promise` that resolves with the download\n * URL for this object.\n */\n getDownloadURL(): Promise<string> {\n return getDownloadURL(this._delegate);\n }\n\n /**\n * Deletes the object at this location.\n * @returns A `Promise` that resolves if the deletion succeeds.\n */\n delete(): Promise<void> {\n this._throwIfRoot('delete');\n return deleteObject(this._delegate);\n }\n\n private _throwIfRoot(name: string): void {\n if ((this._delegate as _Reference)._location.path === '') {\n throw _invalidRootOperation(name);\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as types from '@firebase/storage-types';\nimport { FirebaseApp } from '@firebase/app-types';\n\nimport {\n ref,\n connectStorageEmulator,\n FirebaseStorage,\n _Location,\n _invalidArgument,\n _FirebaseStorageImpl\n} from '@firebase/storage';\nimport { ReferenceCompat } from './reference';\nimport { Compat, EmulatorMockTokenOptions } from '@firebase/util';\n\n/**\n * A service that provides firebaseStorage.Reference instances.\n * @param opt_url gs:// url to a custom Storage Bucket\n */\nexport class StorageServiceCompat\n implements types.FirebaseStorage, Compat<FirebaseStorage>\n{\n constructor(public app: FirebaseApp, readonly _delegate: FirebaseStorage) {}\n\n get maxOperationRetryTime(): number {\n return this._delegate.maxOperationRetryTime;\n }\n\n get maxUploadRetryTime(): number {\n return this._delegate.maxUploadRetryTime;\n }\n\n /**\n * Returns a firebaseStorage.Reference for the given path in the default\n * bucket.\n */\n ref(path?: string): types.Reference {\n if (isUrl(path)) {\n throw _invalidArgument(\n 'ref() expected a child path but got a URL, use refFromURL instead.'\n );\n }\n return new ReferenceCompat(ref(this._delegate, path), this);\n }\n\n /**\n * Returns a firebaseStorage.Reference object for the given absolute URL,\n * which must be a gs:// or http[s]:// URL.\n */\n refFromURL(url: string): types.Reference {\n if (!isUrl(url)) {\n throw _invalidArgument(\n 'refFromURL() expected a full URL but got a child path, use ref() instead.'\n );\n }\n try {\n _Location.makeFromUrl(url, (this._delegate as _FirebaseStorageImpl).host);\n } catch (e) {\n throw _invalidArgument(\n 'refFromUrl() expected a valid full URL but got an invalid one.'\n );\n }\n return new ReferenceCompat(ref(this._delegate, url), this);\n }\n\n setMaxUploadRetryTime(time: number): void {\n this._delegate.maxUploadRetryTime = time;\n }\n\n setMaxOperationRetryTime(time: number): void {\n this._delegate.maxOperationRetryTime = time;\n }\n\n useEmulator(\n host: string,\n port: number,\n options: {\n mockUserToken?: EmulatorMockTokenOptions | string;\n } = {}\n ): void {\n connectStorageEmulator(this._delegate, host, port, options);\n }\n}\n\nfunction isUrl(path?: string): boolean {\n return /^[A-Za-z]+:\\/\\//.test(path as string);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport firebase from '@firebase/app-compat';\nimport { _FirebaseNamespace } from '@firebase/app-types/private';\nimport {\n StringFormat,\n _TaskEvent as TaskEvent,\n _TaskState as TaskState\n} from '@firebase/storage';\n\nimport { ReferenceCompat } from './reference';\nimport { StorageServiceCompat } from './service';\nimport * as types from '@firebase/storage-types';\nimport {\n Component,\n ComponentType,\n ComponentContainer,\n InstanceFactoryOptions\n} from '@firebase/component';\n\nimport { name, version } from '../package.json';\n\n/**\n * Type constant for Firebase Storage.\n */\nconst STORAGE_TYPE = 'storage-compat';\n\nfunction factory(\n container: ComponentContainer,\n { instanceIdentifier: url }: InstanceFactoryOptions\n): types.FirebaseStorage {\n // Dependencies\n const app = container.getProvider('app-compat').getImmediate();\n const storageExp = container\n .getProvider('storage')\n .getImmediate({ identifier: url });\n\n const storageServiceCompat: StorageServiceCompat = new StorageServiceCompat(\n app,\n storageExp\n );\n return storageServiceCompat;\n}\n\nexport function registerStorage(instance: _FirebaseNamespace): void {\n const namespaceExports = {\n // no-inline\n TaskState,\n TaskEvent,\n StringFormat,\n Storage: StorageServiceCompat,\n Reference: ReferenceCompat\n };\n instance.INTERNAL.registerComponent(\n new Component(STORAGE_TYPE, factory, ComponentType.PUBLIC)\n .setServiceProps(namespaceExports)\n .setMultipleInstances(true)\n );\n\n instance.registerVersion(name, version);\n}\n\nregisterStorage(firebase as unknown as _FirebaseNamespace);\n\n/**\n * Define extension behavior for `registerStorage`\n */\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n storage?: {\n (app?: FirebaseApp, url?: string): types.FirebaseStorage;\n Storage: typeof types.FirebaseStorage;\n\n StringFormat: {\n BASE64: types.StringFormat;\n BASE64URL: types.StringFormat;\n DATA_URL: types.StringFormat;\n RAW: types.StringFormat;\n };\n TaskEvent: {\n STATE_CHANGED: types.TaskEvent;\n };\n TaskState: {\n CANCELED: types.TaskState;\n ERROR: types.TaskState;\n PAUSED: types.TaskState;\n RUNNING: types.TaskState;\n SUCCESS: types.TaskState;\n };\n };\n }\n interface FirebaseApp {\n storage?(storageBucket?: string): types.FirebaseStorage;\n }\n}\n"],"names":["TaskState","TaskEvent"],"mappings":";;;;AAAA;;;;;;;;;;;;;;;AAeG;MAQU,wBAAwB,CAAA;AAGnC,IAAA,WAAA,CACW,SAA6B,EAC7B,IAAsB,EACtB,GAAoB,EAAA;QAFpB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAoB;QAC7B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAkB;QACtB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAiB;KAC3B;AAEJ,IAAA,IAAI,gBAAgB,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;KACxC;AACD,IAAA,IAAI,QAAQ,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,QAA8B,CAAC;KACtD;AACD,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;KAC7B;AACD,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;KAClC;AACF;;AC5CD;;;;;;;;;;;;;;;AAeG;MAcU,gBAAgB,CAAA;IAC3B,WACW,CAAA,SAAqB,EACb,IAAqB,EAAA;QAD7B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAY;QACb,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAiB;AAWxC,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;AACpD,QAAA,IAAA,C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CACzE,GAAG,EACH,UAAU,CACX,CAAC;AACF,IAAA,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAEK,SAAU,eAAe,CAAC,QAA4B,EAAA;AAC1D,IAAA,MAAM,gBAAgB,GAAG;;mBAEvBA,UAAS;mBACTC,UAAS;QACT,YAAY;AACZ,QAAA,OAAO,EAAE,oBAAoB;AAC7B,QAAA,SAAS,EAAE,eAAe;KAC3B,CAAC;IACF,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CACjC,IAAI,SAAS,CAAC,YAAY,EAAE,OAAO,EAAuB,QAAA,4BAAA;SACvD,eAAe,CAAC,gBAAgB,CAAC;AACjC,SAAA,oBAAoB,CAAC,IAAI,CAAC,CAC9B,CAAC;AAEF,IAAA,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED,eAAe,CAAC,QAAyC,CAAC;;;;"} \ No newline at end of file
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/package.json b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/package.json
deleted file mode 100644
index 7c34deb..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/package.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type":"module"} \ No newline at end of file
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/index.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/index.d.ts
deleted file mode 100644
index 4cce481..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/index.d.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { _FirebaseNamespace } from '@firebase/app-types/private';
-import * as types from '@firebase/storage-types';
-export declare function registerStorage(instance: _FirebaseNamespace): void;
-/**
- * Define extension behavior for `registerStorage`
- */
-declare module '@firebase/app-compat' {
- interface FirebaseNamespace {
- storage?: {
- (app?: FirebaseApp, url?: string): types.FirebaseStorage;
- Storage: typeof types.FirebaseStorage;
- StringFormat: {
- BASE64: types.StringFormat;
- BASE64URL: types.StringFormat;
- DATA_URL: types.StringFormat;
- RAW: types.StringFormat;
- };
- TaskEvent: {
- STATE_CHANGED: types.TaskEvent;
- };
- TaskState: {
- CANCELED: types.TaskState;
- ERROR: types.TaskState;
- PAUSED: types.TaskState;
- RUNNING: types.TaskState;
- SUCCESS: types.TaskState;
- };
- };
- }
- interface FirebaseApp {
- storage?(storageBucket?: string): types.FirebaseStorage;
- }
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/list.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/list.d.ts
deleted file mode 100644
index 1d6ae28..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/list.d.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { ListResult } from '@firebase/storage';
-import * as types from '@firebase/storage-types';
-import { ReferenceCompat } from './reference';
-import { StorageServiceCompat } from './service';
-import { Compat } from '@firebase/util';
-export declare class ListResultCompat implements types.ListResult, Compat<ListResult> {
- readonly _delegate: ListResult;
- private readonly _service;
- constructor(_delegate: ListResult, _service: StorageServiceCompat);
- get prefixes(): ReferenceCompat[];
- get items(): ReferenceCompat[];
- get nextPageToken(): string | null;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/reference.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/reference.d.ts
deleted file mode 100644
index 20baac5..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/reference.d.ts
+++ /dev/null
@@ -1,121 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { StorageReference, StringFormat } from '@firebase/storage';
-import { StorageServiceCompat } from './service';
-import * as types from '@firebase/storage-types';
-import { Compat } from '@firebase/util';
-export declare class ReferenceCompat implements types.Reference, Compat<StorageReference> {
- readonly _delegate: StorageReference;
- storage: StorageServiceCompat;
- constructor(_delegate: StorageReference, storage: StorageServiceCompat);
- get name(): string;
- get bucket(): string;
- get fullPath(): string;
- toString(): string;
- /**
- * @returns A reference to the object obtained by
- * appending childPath, removing any duplicate, beginning, or trailing
- * slashes.
- */
- child(childPath: string): types.Reference;
- get root(): types.Reference;
- /**
- * @returns A reference to the parent of the
- * current object, or null if the current object is the root.
- */
- get parent(): types.Reference | null;
- /**
- * Uploads a blob to this object's location.
- * @param data - The blob to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- put(data: Blob | Uint8Array | ArrayBuffer, metadata?: types.FullMetadata): types.UploadTask;
- /**
- * Uploads a string to this object's location.
- * @param value - The string to upload.
- * @param format - The format of the string to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- putString(value: string, format?: StringFormat, metadata?: types.UploadMetadata): types.UploadTask;
- /**
- * List all items (files) and prefixes (folders) under this storage reference.
- *
- * This is a helper method for calling list() repeatedly until there are
- * no more results. The default pagination size is 1000.
- *
- * Note: The results may not be consistent if objects are changed while this
- * operation is running.
- *
- * Warning: listAll may potentially consume too many resources if there are
- * too many results.
- *
- * @returns A Promise that resolves with all the items and prefixes under
- * the current storage reference. `prefixes` contains references to
- * sub-directories and `items` contains references to objects in this
- * folder. `nextPageToken` is never returned.
- */
- listAll(): Promise<types.ListResult>;
- /**
- * List items (files) and prefixes (folders) under this storage reference.
- *
- * List API is only available for Firebase Rules Version 2.
- *
- * GCS is a key-blob store. Firebase Storage imposes the semantic of '/'
- * delimited folder structure. Refer to GCS's List API if you want to learn more.
- *
- * To adhere to Firebase Rules's Semantics, Firebase Storage does not
- * support objects whose paths end with "/" or contain two consecutive
- * "/"s. Firebase Storage List API will filter these unsupported objects.
- * list() may fail if there are too many unsupported objects in the bucket.
- *
- * @param options - See ListOptions for details.
- * @returns A Promise that resolves with the items and prefixes.
- * `prefixes` contains references to sub-folders and `items`
- * contains references to objects in this folder. `nextPageToken`
- * can be used to get the rest of the results.
- */
- list(options?: types.ListOptions | null): Promise<types.ListResult>;
- /**
- * A `Promise` that resolves with the metadata for this object. If this
- * object doesn't exist or metadata cannot be retrieved, the promise is
- * rejected.
- */
- getMetadata(): Promise<types.FullMetadata>;
- /**
- * Updates the metadata for this object.
- * @param metadata - The new metadata for the object.
- * Only values that have been explicitly set will be changed. Explicitly
- * setting a value to null will remove the metadata.
- * @returns A `Promise` that resolves
- * with the new metadata for this object.
- * @see firebaseStorage.Reference.prototype.getMetadata
- */
- updateMetadata(metadata: types.SettableMetadata): Promise<types.FullMetadata>;
- /**
- * @returns A `Promise` that resolves with the download
- * URL for this object.
- */
- getDownloadURL(): Promise<string>;
- /**
- * Deletes the object at this location.
- * @returns A `Promise` that resolves if the deletion succeeds.
- */
- delete(): Promise<void>;
- private _throwIfRoot;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/service.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/service.d.ts
deleted file mode 100644
index 5fd32c3..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/service.d.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import * as types from '@firebase/storage-types';
-import { FirebaseApp } from '@firebase/app-types';
-import { FirebaseStorage } from '@firebase/storage';
-import { Compat, EmulatorMockTokenOptions } from '@firebase/util';
-/**
- * A service that provides firebaseStorage.Reference instances.
- * @param opt_url gs:// url to a custom Storage Bucket
- */
-export declare class StorageServiceCompat implements types.FirebaseStorage, Compat<FirebaseStorage> {
- app: FirebaseApp;
- readonly _delegate: FirebaseStorage;
- constructor(app: FirebaseApp, _delegate: FirebaseStorage);
- get maxOperationRetryTime(): number;
- get maxUploadRetryTime(): number;
- /**
- * Returns a firebaseStorage.Reference for the given path in the default
- * bucket.
- */
- ref(path?: string): types.Reference;
- /**
- * Returns a firebaseStorage.Reference object for the given absolute URL,
- * which must be a gs:// or http[s]:// URL.
- */
- refFromURL(url: string): types.Reference;
- setMaxUploadRetryTime(time: number): void;
- setMaxOperationRetryTime(time: number): void;
- useEmulator(host: string, port: number, options?: {
- mockUserToken?: EmulatorMockTokenOptions | string;
- }): void;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/task.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/task.d.ts
deleted file mode 100644
index 97e2bd5..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/task.d.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { UploadTask, StorageError, TaskEvent, StorageObserver } from '@firebase/storage';
-import { UploadTaskSnapshotCompat } from './tasksnapshot';
-import { ReferenceCompat } from './reference';
-import * as types from '@firebase/storage-types';
-import { Compat } from '@firebase/util';
-export declare class UploadTaskCompat implements types.UploadTask, Compat<UploadTask> {
- readonly _delegate: UploadTask;
- private readonly _ref;
- constructor(_delegate: UploadTask, _ref: ReferenceCompat);
- get snapshot(): UploadTaskSnapshotCompat;
- cancel: () => boolean;
- catch: (onRejected: (error: StorageError) => unknown) => Promise<unknown>;
- pause: () => boolean;
- resume: () => boolean;
- then(onFulfilled?: ((a: UploadTaskSnapshotCompat) => unknown) | null, onRejected?: ((a: StorageError) => unknown) | null): Promise<unknown>;
- on(type: TaskEvent, nextOrObserver?: types.StorageObserver<UploadTaskSnapshotCompat> | null | ((a: UploadTaskSnapshotCompat) => unknown), error?: ((error: StorageError) => void) | null, completed?: () => void | null): Unsubscribe | Subscribe<UploadTaskSnapshotCompat>;
-}
-/**
- * Subscribes to an event stream.
- */
-export type Subscribe<T> = (next?: NextFn<T> | StorageObserver<T>, error?: ErrorFn, complete?: CompleteFn) => Unsubscribe;
-/**
- * Unsubscribes from a stream.
- */
-export type Unsubscribe = () => void;
-/**
- * Function that is called once for each value in a stream of values.
- */
-export type NextFn<T> = (value: T) => void;
-/**
- * A function that is called with a `FirebaseStorageError`
- * if the event stream ends due to an error.
- */
-export type ErrorFn = (error: StorageError) => void;
-/**
- * A function that is called if the event stream ends normally.
- */
-export type CompleteFn = () => void;
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/tasksnapshot.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/tasksnapshot.d.ts
deleted file mode 100644
index eac3b70..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/src/tasksnapshot.d.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { UploadTaskSnapshot } from '@firebase/storage';
-import { ReferenceCompat } from './reference';
-import { UploadTaskCompat } from './task';
-import * as types from '@firebase/storage-types';
-import { Compat } from '@firebase/util';
-export declare class UploadTaskSnapshotCompat implements types.UploadTaskSnapshot, Compat<UploadTaskSnapshot> {
- readonly _delegate: UploadTaskSnapshot;
- readonly task: UploadTaskCompat;
- readonly ref: ReferenceCompat;
- constructor(_delegate: UploadTaskSnapshot, task: UploadTaskCompat, ref: ReferenceCompat);
- get bytesTransferred(): number;
- get metadata(): types.FullMetadata;
- get state(): string;
- get totalBytes(): number;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/integration/integration.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/integration/integration.test.d.ts
deleted file mode 100644
index c86822b..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/integration/integration.test.d.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '@firebase/auth-compat';
-import * as storage from '@firebase/storage-types';
-import '../../src/index';
-export declare const PROJECT_ID: any;
-export declare const STORAGE_BUCKET: any;
-export declare const API_KEY: any;
-export declare function withTestInstance(fn: (storage: storage.FirebaseStorage) => void | Promise<void>): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/setup.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/setup.d.ts
deleted file mode 100644
index 1c93d90..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/setup.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * @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.
- */
-export {};
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/index.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/index.test.d.ts
deleted file mode 100644
index a442199..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/index.test.d.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '../setup';
-import '../../src/index';
-export declare const PROJECT_ID: any;
-export declare const STORAGE_BUCKET: any;
-export declare const API_KEY: any;
-export declare const AUTH_DOMAIN: any;
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/reference.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/reference.test.d.ts
deleted file mode 100644
index 08e2d52..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/reference.test.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '../setup';
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/service.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/service.test.d.ts
deleted file mode 100644
index 08e2d52..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/unit/service.test.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '../setup';
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/utils.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/utils.d.ts
deleted file mode 100644
index f4ddfce..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/esm/test/utils.d.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @license
- * Copyright 2021 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.
- */
-import { FirebaseApp } from '@firebase/app-types';
-import { FirebaseStorage } from '@firebase/storage';
-import { StorageServiceCompat } from '../src/service';
-export declare function makeTestCompatStorage(app: FirebaseApp, storage: FirebaseStorage): StorageServiceCompat;
-export declare const fakeApp: FirebaseApp;
-export declare const fakeStorage: FirebaseStorage;
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js b/frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js
deleted file mode 100644
index c89691e..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js
+++ /dev/null
@@ -1,406 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-var firebase = require('@firebase/app-compat');
-var storage = require('@firebase/storage');
-var component = require('@firebase/component');
-
-function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
-
-var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
-
-/**
- * @license
- * Copyright 2020 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.
- */
-class UploadTaskSnapshotCompat {
- constructor(_delegate, task, ref) {
- this._delegate = _delegate;
- this.task = task;
- this.ref = ref;
- }
- get bytesTransferred() {
- return this._delegate.bytesTransferred;
- }
- get metadata() {
- return this._delegate.metadata;
- }
- get state() {
- return this._delegate.state;
- }
- get totalBytes() {
- return this._delegate.totalBytes;
- }
-}
-
-/**
- * @license
- * Copyright 2020 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.
- */
-class UploadTaskCompat {
- constructor(_delegate, _ref) {
- this._delegate = _delegate;
- this._ref = _ref;
- this.cancel = this._delegate.cancel.bind(this._delegate);
- this.catch = this._delegate.catch.bind(this._delegate);
- this.pause = this._delegate.pause.bind(this._delegate);
- this.resume = this._delegate.resume.bind(this._delegate);
- }
- get snapshot() {
- return new UploadTaskSnapshotCompat(this._delegate.snapshot, this, this._ref);
- }
- then(onFulfilled, onRejected) {
- return this._delegate.then(snapshot => {
- if (onFulfilled) {
- return onFulfilled(new UploadTaskSnapshotCompat(snapshot, this, this._ref));
- }
- }, onRejected);
- }
- on(type, nextOrObserver, error, completed) {
- let wrappedNextOrObserver = undefined;
- if (!!nextOrObserver) {
- if (typeof nextOrObserver === 'function') {
- wrappedNextOrObserver = (taskSnapshot) => nextOrObserver(new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref));
- }
- else {
- wrappedNextOrObserver = {
- next: !!nextOrObserver.next
- ? (taskSnapshot) => nextOrObserver.next(new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref))
- : undefined,
- complete: nextOrObserver.complete || undefined,
- error: nextOrObserver.error || undefined
- };
- }
- }
- return this._delegate.on(type, wrappedNextOrObserver, error || undefined, completed || undefined);
- }
-}
-
-class ListResultCompat {
- constructor(_delegate, _service) {
- this._delegate = _delegate;
- this._service = _service;
- }
- get prefixes() {
- return this._delegate.prefixes.map(ref => new ReferenceCompat(ref, this._service));
- }
- get items() {
- return this._delegate.items.map(ref => new ReferenceCompat(ref, this._service));
- }
- get nextPageToken() {
- return this._delegate.nextPageToken || null;
- }
-}
-
-/**
- * @license
- * Copyright 2020 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.
- */
-class ReferenceCompat {
- constructor(_delegate, storage) {
- this._delegate = _delegate;
- this.storage = storage;
- }
- get name() {
- return this._delegate.name;
- }
- get bucket() {
- return this._delegate.bucket;
- }
- get fullPath() {
- return this._delegate.fullPath;
- }
- toString() {
- return this._delegate.toString();
- }
- /**
- * @returns A reference to the object obtained by
- * appending childPath, removing any duplicate, beginning, or trailing
- * slashes.
- */
- child(childPath) {
- const reference = storage._getChild(this._delegate, childPath);
- return new ReferenceCompat(reference, this.storage);
- }
- get root() {
- return new ReferenceCompat(this._delegate.root, this.storage);
- }
- /**
- * @returns A reference to the parent of the
- * current object, or null if the current object is the root.
- */
- get parent() {
- const reference = this._delegate.parent;
- if (reference == null) {
- return null;
- }
- return new ReferenceCompat(reference, this.storage);
- }
- /**
- * Uploads a blob to this object's location.
- * @param data - The blob to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- put(data, metadata) {
- this._throwIfRoot('put');
- return new UploadTaskCompat(storage.uploadBytesResumable(this._delegate, data, metadata), this);
- }
- /**
- * Uploads a string to this object's location.
- * @param value - The string to upload.
- * @param format - The format of the string to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- putString(value, format = storage.StringFormat.RAW, metadata) {
- this._throwIfRoot('putString');
- const data = storage._dataFromString(format, value);
- const metadataClone = { ...metadata };
- if (metadataClone['contentType'] == null && data.contentType != null) {
- metadataClone['contentType'] = data.contentType;
- }
- return new UploadTaskCompat(new storage._UploadTask(this._delegate, new storage._FbsBlob(data.data, true), metadataClone), this);
- }
- /**
- * List all items (files) and prefixes (folders) under this storage reference.
- *
- * This is a helper method for calling list() repeatedly until there are
- * no more results. The default pagination size is 1000.
- *
- * Note: The results may not be consistent if objects are changed while this
- * operation is running.
- *
- * Warning: listAll may potentially consume too many resources if there are
- * too many results.
- *
- * @returns A Promise that resolves with all the items and prefixes under
- * the current storage reference. `prefixes` contains references to
- * sub-directories and `items` contains references to objects in this
- * folder. `nextPageToken` is never returned.
- */
- listAll() {
- return storage.listAll(this._delegate).then(r => new ListResultCompat(r, this.storage));
- }
- /**
- * List items (files) and prefixes (folders) under this storage reference.
- *
- * List API is only available for Firebase Rules Version 2.
- *
- * GCS is a key-blob store. Firebase Storage imposes the semantic of '/'
- * delimited folder structure. Refer to GCS's List API if you want to learn more.
- *
- * To adhere to Firebase Rules's Semantics, Firebase Storage does not
- * support objects whose paths end with "/" or contain two consecutive
- * "/"s. Firebase Storage List API will filter these unsupported objects.
- * list() may fail if there are too many unsupported objects in the bucket.
- *
- * @param options - See ListOptions for details.
- * @returns A Promise that resolves with the items and prefixes.
- * `prefixes` contains references to sub-folders and `items`
- * contains references to objects in this folder. `nextPageToken`
- * can be used to get the rest of the results.
- */
- list(options) {
- return storage.list(this._delegate, options || undefined).then(r => new ListResultCompat(r, this.storage));
- }
- /**
- * A `Promise` that resolves with the metadata for this object. If this
- * object doesn't exist or metadata cannot be retrieved, the promise is
- * rejected.
- */
- getMetadata() {
- return storage.getMetadata(this._delegate);
- }
- /**
- * Updates the metadata for this object.
- * @param metadata - The new metadata for the object.
- * Only values that have been explicitly set will be changed. Explicitly
- * setting a value to null will remove the metadata.
- * @returns A `Promise` that resolves
- * with the new metadata for this object.
- * @see firebaseStorage.Reference.prototype.getMetadata
- */
- updateMetadata(metadata) {
- return storage.updateMetadata(this._delegate, metadata);
- }
- /**
- * @returns A `Promise` that resolves with the download
- * URL for this object.
- */
- getDownloadURL() {
- return storage.getDownloadURL(this._delegate);
- }
- /**
- * Deletes the object at this location.
- * @returns A `Promise` that resolves if the deletion succeeds.
- */
- delete() {
- this._throwIfRoot('delete');
- return storage.deleteObject(this._delegate);
- }
- _throwIfRoot(name) {
- if (this._delegate._location.path === '') {
- throw storage._invalidRootOperation(name);
- }
- }
-}
-
-/**
- * @license
- * Copyright 2020 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.
- */
-/**
- * A service that provides firebaseStorage.Reference instances.
- * @param opt_url gs:// url to a custom Storage Bucket
- */
-class StorageServiceCompat {
- constructor(app, _delegate) {
- this.app = app;
- this._delegate = _delegate;
- }
- get maxOperationRetryTime() {
- return this._delegate.maxOperationRetryTime;
- }
- get maxUploadRetryTime() {
- return this._delegate.maxUploadRetryTime;
- }
- /**
- * Returns a firebaseStorage.Reference for the given path in the default
- * bucket.
- */
- ref(path) {
- if (isUrl(path)) {
- throw storage._invalidArgument('ref() expected a child path but got a URL, use refFromURL instead.');
- }
- return new ReferenceCompat(storage.ref(this._delegate, path), this);
- }
- /**
- * Returns a firebaseStorage.Reference object for the given absolute URL,
- * which must be a gs:// or http[s]:// URL.
- */
- refFromURL(url) {
- if (!isUrl(url)) {
- throw storage._invalidArgument('refFromURL() expected a full URL but got a child path, use ref() instead.');
- }
- try {
- storage._Location.makeFromUrl(url, this._delegate.host);
- }
- catch (e) {
- throw storage._invalidArgument('refFromUrl() expected a valid full URL but got an invalid one.');
- }
- return new ReferenceCompat(storage.ref(this._delegate, url), this);
- }
- setMaxUploadRetryTime(time) {
- this._delegate.maxUploadRetryTime = time;
- }
- setMaxOperationRetryTime(time) {
- this._delegate.maxOperationRetryTime = time;
- }
- useEmulator(host, port, options = {}) {
- storage.connectStorageEmulator(this._delegate, host, port, options);
- }
-}
-function isUrl(path) {
- return /^[A-Za-z]+:\/\//.test(path);
-}
-
-const name = "@firebase/storage-compat";
-const version = "0.4.0";
-
-/**
- * @license
- * Copyright 2020 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.
- */
-/**
- * Type constant for Firebase Storage.
- */
-const STORAGE_TYPE = 'storage-compat';
-function factory(container, { instanceIdentifier: url }) {
- // Dependencies
- const app = container.getProvider('app-compat').getImmediate();
- const storageExp = container
- .getProvider('storage')
- .getImmediate({ identifier: url });
- const storageServiceCompat = new StorageServiceCompat(app, storageExp);
- return storageServiceCompat;
-}
-function registerStorage(instance) {
- const namespaceExports = {
- // no-inline
- TaskState: storage._TaskState,
- TaskEvent: storage._TaskEvent,
- StringFormat: storage.StringFormat,
- Storage: StorageServiceCompat,
- Reference: ReferenceCompat
- };
- instance.INTERNAL.registerComponent(new component.Component(STORAGE_TYPE, factory, "PUBLIC" /* ComponentType.PUBLIC */)
- .setServiceProps(namespaceExports)
- .setMultipleInstances(true));
- instance.registerVersion(name, version);
-}
-registerStorage(firebase__default["default"]);
-
-exports.registerStorage = registerStorage;
-//# sourceMappingURL=index.cjs.js.map
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js.map b/frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js.map
deleted file mode 100644
index 4afab95..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/index.cjs.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.cjs.js","sources":["../src/tasksnapshot.ts","../src/task.ts","../src/list.ts","../src/reference.ts","../src/service.ts","../src/index.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { UploadTaskSnapshot } from '@firebase/storage';\nimport { ReferenceCompat } from './reference';\nimport { UploadTaskCompat } from './task';\nimport * as types from '@firebase/storage-types';\nimport { Compat } from '@firebase/util';\n\nexport class UploadTaskSnapshotCompat\n implements types.UploadTaskSnapshot, Compat<UploadTaskSnapshot>\n{\n constructor(\n readonly _delegate: UploadTaskSnapshot,\n readonly task: UploadTaskCompat,\n readonly ref: ReferenceCompat\n ) {}\n\n get bytesTransferred(): number {\n return this._delegate.bytesTransferred;\n }\n get metadata(): types.FullMetadata {\n return this._delegate.metadata as types.FullMetadata;\n }\n get state(): string {\n return this._delegate.state;\n }\n get totalBytes(): number {\n return this._delegate.totalBytes;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n UploadTask,\n StorageError,\n UploadTaskSnapshot,\n TaskEvent,\n StorageObserver\n} from '@firebase/storage';\nimport { UploadTaskSnapshotCompat } from './tasksnapshot';\nimport { ReferenceCompat } from './reference';\nimport * as types from '@firebase/storage-types';\nimport { Compat } from '@firebase/util';\n\nexport class UploadTaskCompat implements types.UploadTask, Compat<UploadTask> {\n constructor(\n readonly _delegate: UploadTask,\n private readonly _ref: ReferenceCompat\n ) {}\n\n get snapshot(): UploadTaskSnapshotCompat {\n return new UploadTaskSnapshotCompat(\n this._delegate.snapshot,\n this,\n this._ref\n );\n }\n\n cancel = this._delegate.cancel.bind(this._delegate);\n catch = this._delegate.catch.bind(this._delegate);\n pause = this._delegate.pause.bind(this._delegate);\n resume = this._delegate.resume.bind(this._delegate);\n\n then(\n onFulfilled?: ((a: UploadTaskSnapshotCompat) => unknown) | null,\n onRejected?: ((a: StorageError) => unknown) | null\n ): Promise<unknown> {\n return this._delegate.then(snapshot => {\n if (onFulfilled) {\n return onFulfilled(\n new UploadTaskSnapshotCompat(snapshot, this, this._ref)\n );\n }\n }, onRejected);\n }\n\n on(\n type: TaskEvent,\n nextOrObserver?:\n | types.StorageObserver<UploadTaskSnapshotCompat>\n | null\n | ((a: UploadTaskSnapshotCompat) => unknown),\n error?: ((error: StorageError) => void) | null,\n completed?: () => void | null\n ): Unsubscribe | Subscribe<UploadTaskSnapshotCompat> {\n let wrappedNextOrObserver:\n | StorageObserver<UploadTaskSnapshot>\n | undefined\n | ((a: UploadTaskSnapshot) => unknown) = undefined;\n if (!!nextOrObserver) {\n if (typeof nextOrObserver === 'function') {\n wrappedNextOrObserver = (taskSnapshot: UploadTaskSnapshot) =>\n nextOrObserver(\n new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref)\n );\n } else {\n wrappedNextOrObserver = {\n next: !!nextOrObserver.next\n ? (taskSnapshot: UploadTaskSnapshot) =>\n nextOrObserver.next!(\n new UploadTaskSnapshotCompat(taskSnapshot, this, this._ref)\n )\n : undefined,\n complete: nextOrObserver.complete || undefined,\n error: nextOrObserver.error || undefined\n };\n }\n }\n return this._delegate.on(\n type,\n wrappedNextOrObserver,\n error || undefined,\n completed || undefined\n );\n }\n}\n\n/**\n * Subscribes to an event stream.\n */\nexport type Subscribe<T> = (\n next?: NextFn<T> | StorageObserver<T>,\n error?: ErrorFn,\n complete?: CompleteFn\n) => Unsubscribe;\n\n/**\n * Unsubscribes from a stream.\n */\nexport type Unsubscribe = () => void;\n\n/**\n * Function that is called once for each value in a stream of values.\n */\nexport type NextFn<T> = (value: T) => void;\n\n/**\n * A function that is called with a `FirebaseStorageError`\n * if the event stream ends due to an error.\n */\nexport type ErrorFn = (error: StorageError) => void;\n\n/**\n * A function that is called if the event stream ends normally.\n */\nexport type CompleteFn = () => void;\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ListResult } from '@firebase/storage';\nimport * as types from '@firebase/storage-types';\nimport { ReferenceCompat } from './reference';\nimport { StorageServiceCompat } from './service';\nimport { Compat } from '@firebase/util';\n\nexport class ListResultCompat implements types.ListResult, Compat<ListResult> {\n constructor(\n readonly _delegate: ListResult,\n private readonly _service: StorageServiceCompat\n ) {}\n\n get prefixes(): ReferenceCompat[] {\n return this._delegate.prefixes.map(\n ref => new ReferenceCompat(ref, this._service)\n );\n }\n get items(): ReferenceCompat[] {\n return this._delegate.items.map(\n ref => new ReferenceCompat(ref, this._service)\n );\n }\n get nextPageToken(): string | null {\n return this._delegate.nextPageToken || null;\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n StorageReference,\n uploadBytesResumable,\n list,\n listAll,\n getDownloadURL,\n getMetadata,\n updateMetadata,\n deleteObject,\n UploadTask,\n StringFormat,\n UploadMetadata,\n FullMetadata,\n SettableMetadata,\n _UploadTask,\n _getChild,\n _Reference,\n _FbsBlob,\n _dataFromString,\n _invalidRootOperation\n} from '@firebase/storage';\n\nimport { UploadTaskCompat } from './task';\nimport { ListResultCompat } from './list';\nimport { StorageServiceCompat } from './service';\n\nimport * as types from '@firebase/storage-types';\nimport { Compat } from '@firebase/util';\n\nexport class ReferenceCompat\n implements types.Reference, Compat<StorageReference>\n{\n constructor(\n readonly _delegate: StorageReference,\n public storage: StorageServiceCompat\n ) {}\n\n get name(): string {\n return this._delegate.name;\n }\n\n get bucket(): string {\n return this._delegate.bucket;\n }\n\n get fullPath(): string {\n return this._delegate.fullPath;\n }\n\n toString(): string {\n return this._delegate.toString();\n }\n\n /**\n * @returns A reference to the object obtained by\n * appending childPath, removing any duplicate, beginning, or trailing\n * slashes.\n */\n child(childPath: string): types.Reference {\n const reference = _getChild(this._delegate, childPath);\n return new ReferenceCompat(reference, this.storage);\n }\n\n get root(): types.Reference {\n return new ReferenceCompat(this._delegate.root, this.storage);\n }\n\n /**\n * @returns A reference to the parent of the\n * current object, or null if the current object is the root.\n */\n get parent(): types.Reference | null {\n const reference = this._delegate.parent;\n if (reference == null) {\n return null;\n }\n return new ReferenceCompat(reference, this.storage);\n }\n\n /**\n * Uploads a blob to this object's location.\n * @param data - The blob to upload.\n * @returns An UploadTask that lets you control and\n * observe the upload.\n */\n put(\n data: Blob | Uint8Array | ArrayBuffer,\n metadata?: types.FullMetadata\n ): types.UploadTask {\n this._throwIfRoot('put');\n return new UploadTaskCompat(\n uploadBytesResumable(this._delegate, data, metadata as UploadMetadata),\n this\n );\n }\n\n /**\n * Uploads a string to this object's location.\n * @param value - The string to upload.\n * @param format - The format of the string to upload.\n * @returns An UploadTask that lets you control and\n * observe the upload.\n */\n putString(\n value: string,\n format: StringFormat = StringFormat.RAW,\n metadata?: types.UploadMetadata\n ): types.UploadTask {\n this._throwIfRoot('putString');\n const data = _dataFromString(format, value);\n const metadataClone = { ...metadata };\n if (metadataClone['contentType'] == null && data.contentType != null) {\n metadataClone['contentType'] = data.contentType;\n }\n return new UploadTaskCompat(\n new _UploadTask(\n this._delegate as _Reference,\n new _FbsBlob(data.data, true),\n metadataClone as FullMetadata & { [k: string]: string }\n ) as UploadTask,\n this\n );\n }\n\n /**\n * List all items (files) and prefixes (folders) under this storage reference.\n *\n * This is a helper method for calling list() repeatedly until there are\n * no more results. The default pagination size is 1000.\n *\n * Note: The results may not be consistent if objects are changed while this\n * operation is running.\n *\n * Warning: listAll may potentially consume too many resources if there are\n * too many results.\n *\n * @returns A Promise that resolves with all the items and prefixes under\n * the current storage reference. `prefixes` contains references to\n * sub-directories and `items` contains references to objects in this\n * folder. `nextPageToken` is never returned.\n */\n listAll(): Promise<types.ListResult> {\n return listAll(this._delegate).then(\n r => new ListResultCompat(r, this.storage)\n );\n }\n\n /**\n * List items (files) and prefixes (folders) under this storage reference.\n *\n * List API is only available for Firebase Rules Version 2.\n *\n * GCS is a key-blob store. Firebase Storage imposes the semantic of '/'\n * delimited folder structure. Refer to GCS's List API if you want to learn more.\n *\n * To adhere to Firebase Rules's Semantics, Firebase Storage does not\n * support objects whose paths end with \"/\" or contain two consecutive\n * \"/\"s. Firebase Storage List API will filter these unsupported objects.\n * list() may fail if there are too many unsupported objects in the bucket.\n *\n * @param options - See ListOptions for details.\n * @returns A Promise that resolves with the items and prefixes.\n * `prefixes` contains references to sub-folders and `items`\n * contains references to objects in this folder. `nextPageToken`\n * can be used to get the rest of the results.\n */\n list(options?: types.ListOptions | null): Promise<types.ListResult> {\n return list(this._delegate, options || undefined).then(\n r => new ListResultCompat(r, this.storage)\n );\n }\n\n /**\n * A `Promise` that resolves with the metadata for this object. If this\n * object doesn't exist or metadata cannot be retrieved, the promise is\n * rejected.\n */\n getMetadata(): Promise<types.FullMetadata> {\n return getMetadata(this._delegate) as Promise<types.FullMetadata>;\n }\n\n /**\n * Updates the metadata for this object.\n * @param metadata - The new metadata for the object.\n * Only values that have been explicitly set will be changed. Explicitly\n * setting a value to null will remove the metadata.\n * @returns A `Promise` that resolves\n * with the new metadata for this object.\n * @see firebaseStorage.Reference.prototype.getMetadata\n */\n updateMetadata(\n metadata: types.SettableMetadata\n ): Promise<types.FullMetadata> {\n return updateMetadata(\n this._delegate,\n metadata as SettableMetadata\n ) as Promise<types.FullMetadata>;\n }\n\n /**\n * @returns A `Promise` that resolves with the download\n * URL for this object.\n */\n getDownloadURL(): Promise<string> {\n return getDownloadURL(this._delegate);\n }\n\n /**\n * Deletes the object at this location.\n * @returns A `Promise` that resolves if the deletion succeeds.\n */\n delete(): Promise<void> {\n this._throwIfRoot('delete');\n return deleteObject(this._delegate);\n }\n\n private _throwIfRoot(name: string): void {\n if ((this._delegate as _Reference)._location.path === '') {\n throw _invalidRootOperation(name);\n }\n }\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as types from '@firebase/storage-types';\nimport { FirebaseApp } from '@firebase/app-types';\n\nimport {\n ref,\n connectStorageEmulator,\n FirebaseStorage,\n _Location,\n _invalidArgument,\n _FirebaseStorageImpl\n} from '@firebase/storage';\nimport { ReferenceCompat } from './reference';\nimport { Compat, EmulatorMockTokenOptions } from '@firebase/util';\n\n/**\n * A service that provides firebaseStorage.Reference instances.\n * @param opt_url gs:// url to a custom Storage Bucket\n */\nexport class StorageServiceCompat\n implements types.FirebaseStorage, Compat<FirebaseStorage>\n{\n constructor(public app: FirebaseApp, readonly _delegate: FirebaseStorage) {}\n\n get maxOperationRetryTime(): number {\n return this._delegate.maxOperationRetryTime;\n }\n\n get maxUploadRetryTime(): number {\n return this._delegate.maxUploadRetryTime;\n }\n\n /**\n * Returns a firebaseStorage.Reference for the given path in the default\n * bucket.\n */\n ref(path?: string): types.Reference {\n if (isUrl(path)) {\n throw _invalidArgument(\n 'ref() expected a child path but got a URL, use refFromURL instead.'\n );\n }\n return new ReferenceCompat(ref(this._delegate, path), this);\n }\n\n /**\n * Returns a firebaseStorage.Reference object for the given absolute URL,\n * which must be a gs:// or http[s]:// URL.\n */\n refFromURL(url: string): types.Reference {\n if (!isUrl(url)) {\n throw _invalidArgument(\n 'refFromURL() expected a full URL but got a child path, use ref() instead.'\n );\n }\n try {\n _Location.makeFromUrl(url, (this._delegate as _FirebaseStorageImpl).host);\n } catch (e) {\n throw _invalidArgument(\n 'refFromUrl() expected a valid full URL but got an invalid one.'\n );\n }\n return new ReferenceCompat(ref(this._delegate, url), this);\n }\n\n setMaxUploadRetryTime(time: number): void {\n this._delegate.maxUploadRetryTime = time;\n }\n\n setMaxOperationRetryTime(time: number): void {\n this._delegate.maxOperationRetryTime = time;\n }\n\n useEmulator(\n host: string,\n port: number,\n options: {\n mockUserToken?: EmulatorMockTokenOptions | string;\n } = {}\n ): void {\n connectStorageEmulator(this._delegate, host, port, options);\n }\n}\n\nfunction isUrl(path?: string): boolean {\n return /^[A-Za-z]+:\\/\\//.test(path as string);\n}\n","/**\n * @license\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport firebase from '@firebase/app-compat';\nimport { _FirebaseNamespace } from '@firebase/app-types/private';\nimport {\n StringFormat,\n _TaskEvent as TaskEvent,\n _TaskState as TaskState\n} from '@firebase/storage';\n\nimport { ReferenceCompat } from './reference';\nimport { StorageServiceCompat } from './service';\nimport * as types from '@firebase/storage-types';\nimport {\n Component,\n ComponentType,\n ComponentContainer,\n InstanceFactoryOptions\n} from '@firebase/component';\n\nimport { name, version } from '../package.json';\n\n/**\n * Type constant for Firebase Storage.\n */\nconst STORAGE_TYPE = 'storage-compat';\n\nfunction factory(\n container: ComponentContainer,\n { instanceIdentifier: url }: InstanceFactoryOptions\n): types.FirebaseStorage {\n // Dependencies\n const app = container.getProvider('app-compat').getImmediate();\n const storageExp = container\n .getProvider('storage')\n .getImmediate({ identifier: url });\n\n const storageServiceCompat: StorageServiceCompat = new StorageServiceCompat(\n app,\n storageExp\n );\n return storageServiceCompat;\n}\n\nexport function registerStorage(instance: _FirebaseNamespace): void {\n const namespaceExports = {\n // no-inline\n TaskState,\n TaskEvent,\n StringFormat,\n Storage: StorageServiceCompat,\n Reference: ReferenceCompat\n };\n instance.INTERNAL.registerComponent(\n new Component(STORAGE_TYPE, factory, ComponentType.PUBLIC)\n .setServiceProps(namespaceExports)\n .setMultipleInstances(true)\n );\n\n instance.registerVersion(name, version);\n}\n\nregisterStorage(firebase as unknown as _FirebaseNamespace);\n\n/**\n * Define extension behavior for `registerStorage`\n */\ndeclare module '@firebase/app-compat' {\n interface FirebaseNamespace {\n storage?: {\n (app?: FirebaseApp, url?: string): types.FirebaseStorage;\n Storage: typeof types.FirebaseStorage;\n\n StringFormat: {\n BASE64: types.StringFormat;\n BASE64URL: types.StringFormat;\n DATA_URL: types.StringFormat;\n RAW: types.StringFormat;\n };\n TaskEvent: {\n STATE_CHANGED: types.TaskEvent;\n };\n TaskState: {\n CANCELED: types.TaskState;\n ERROR: types.TaskState;\n PAUSED: types.TaskState;\n RUNNING: types.TaskState;\n SUCCESS: types.TaskState;\n };\n };\n }\n interface FirebaseApp {\n storage?(storageBucket?: string): types.FirebaseStorage;\n }\n}\n"],"names":["_getChild","uploadBytesResumable","StringFormat","_dataFromString","_UploadTask","_FbsBlob","listAll","list","getMetadata","updateMetadata","getDownloadURL","deleteObject","_invalidRootOperation","_invalidArgument","ref","_Location","connectStorageEmulator","TaskState","TaskEvent","Component","firebase"],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AAeG;MAQU,wBAAwB,CAAA;AAGnC,IAAA,WAAA,CACW,SAA6B,EAC7B,IAAsB,EACtB,GAAoB,EAAA;QAFpB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAoB;QAC7B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAkB;QACtB,IAAG,CAAA,GAAA,GAAH,GAAG,CAAiB;KAC3B;AAEJ,IAAA,IAAI,gBAAgB,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC;KACxC;AACD,IAAA,IAAI,QAAQ,GAAA;AACV,QAAA,OAAO,IAAI,CAAC,SAAS,CAAC,QAA8B,CAAC;KACtD;AACD,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OA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AC1B,IAAA,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAc,CAAC,CAAC;AAChD;;;;;ACtGA;;;;;;;;;;;;;;;AAeG;AAuBH;;AAEG;AACH,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAEtC,SAAS,OAAO,CACd,SAA6B,EAC7B,EAAE,kBAAkB,EAAE,GAAG,EAA0B,EAAA;;IAGnD,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,YAAY,EAAE,CAAC;IAC/D,MAAM,UAAU,GAAG,SAAS;SACzB,WAAW,CAAC,SAAS,CAAC;AACtB,SAAA,YAAY,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAErC,MAAM,oBAAoB,GAAyB,IAAI,oBAAoB,CACzE,GAAG,EACH,UAAU,CACX,CAAC;AACF,IAAA,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAEK,SAAU,eAAe,CAAC,QAA4B,EAAA;AAC1D,IAAA,MAAM,gBAAgB,GAAG;;mBAEvBC,kBAAS;mBACTC,kBAAS;sBACThB,oBAAY;AACZ,QAAA,OAAO,EAAE,oBAAoB;AAC7B,QAAA,SAAS,EAAE,eAAe;KAC3B,CAAC;IACF,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CACjC,IAAIiB,mBAAS,CAAC,YAAY,EAAE,OAAO,EAAuB,QAAA,4BAAA;SACvD,eAAe,CAAC,gBAAgB,CAAC;AACjC,SAAA,oBAAoB,CAAC,IAAI,CAAC,CAC9B,CAAC;AAEF,IAAA,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED,eAAe,CAACC,4BAAyC,CAAC;;;;"} \ No newline at end of file
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts
deleted file mode 100644
index 1a9f3d4..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/src/index.d.ts
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { _FirebaseNamespace } from '@firebase/app-types/private';
-import * as types from '@firebase/storage-types';
-export declare function registerStorage(instance: _FirebaseNamespace): void;
-/**
- * Define extension behavior for `registerStorage`
- */
-declare module '@firebase/app-compat' {
- interface FirebaseNamespace {
- storage?: {
- (app?: FirebaseApp, url?: string): types.FirebaseStorage;
- Storage: typeof types.FirebaseStorage;
- StringFormat: {
- BASE64: types.StringFormat;
- BASE64URL: types.StringFormat;
- DATA_URL: types.StringFormat;
- RAW: types.StringFormat;
- };
- TaskEvent: {
- STATE_CHANGED: types.TaskEvent;
- };
- TaskState: {
- CANCELED: types.TaskState;
- ERROR: types.TaskState;
- PAUSED: types.TaskState;
- RUNNING: types.TaskState;
- SUCCESS: types.TaskState;
- };
- };
- }
- interface FirebaseApp {
- storage?(storageBucket?: string): types.FirebaseStorage;
- }
-}
-
-import { FirebaseApp as FirebaseAppCompat } from "@firebase/app-compat";
-import { type EmulatorMockTokenOptions, type FullMetadata, type FirebaseStorage, type ListOptions, type ListResult, type StorageReference, type SettableMetadata, type UploadMetadata, type UploadResult, type UploadTask, type StringFormat } from "@firebase/storage";
-declare module "@firebase/storage" {
- function connectStorageEmulator(storage: types.FirebaseStorage, host: string, port: number, options?: {
- mockUserToken?: EmulatorMockTokenOptions | string;
- }): void;
- function deleteObject(ref: types.Reference): Promise<void>;
- function getBlob(ref: types.Reference, maxDownloadSizeBytes?: number): Promise<Blob>;
- function getBytes(ref: types.Reference, maxDownloadSizeBytes?: number): Promise<ArrayBuffer>;
- function getDownloadURL(ref: types.Reference): Promise<string>;
- function getMetadata(ref: types.Reference): Promise<FullMetadata>;
- function getStorage(app?: FirebaseAppCompat, bucketUrl?: string): FirebaseStorage;
- function getStream(ref: types.Reference, maxDownloadSizeBytes?: number): ReadableStream;
- function list(ref: types.Reference, options?: ListOptions): Promise<ListResult>;
- function listAll(ref: types.Reference): Promise<ListResult>;
- function ref(storage: types.FirebaseStorage, url?: string): StorageReference;
- function updateMetadata(ref: types.Reference, metadata: SettableMetadata): Promise<FullMetadata>;
- function uploadBytes(ref: types.Reference, data: Blob | Uint8Array | ArrayBuffer, metadata?: UploadMetadata): Promise<UploadResult>;
- function uploadBytesResumable(ref: types.Reference, data: Blob | Uint8Array | ArrayBuffer, metadata?: UploadMetadata): UploadTask;
- function uploadString(ref: types.Reference, value: string, format?: StringFormat, metadata?: UploadMetadata): Promise<UploadResult>;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/src/list.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/src/list.d.ts
deleted file mode 100644
index 1d6ae28..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/src/list.d.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { ListResult } from '@firebase/storage';
-import * as types from '@firebase/storage-types';
-import { ReferenceCompat } from './reference';
-import { StorageServiceCompat } from './service';
-import { Compat } from '@firebase/util';
-export declare class ListResultCompat implements types.ListResult, Compat<ListResult> {
- readonly _delegate: ListResult;
- private readonly _service;
- constructor(_delegate: ListResult, _service: StorageServiceCompat);
- get prefixes(): ReferenceCompat[];
- get items(): ReferenceCompat[];
- get nextPageToken(): string | null;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/src/reference.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/src/reference.d.ts
deleted file mode 100644
index 20baac5..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/src/reference.d.ts
+++ /dev/null
@@ -1,121 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { StorageReference, StringFormat } from '@firebase/storage';
-import { StorageServiceCompat } from './service';
-import * as types from '@firebase/storage-types';
-import { Compat } from '@firebase/util';
-export declare class ReferenceCompat implements types.Reference, Compat<StorageReference> {
- readonly _delegate: StorageReference;
- storage: StorageServiceCompat;
- constructor(_delegate: StorageReference, storage: StorageServiceCompat);
- get name(): string;
- get bucket(): string;
- get fullPath(): string;
- toString(): string;
- /**
- * @returns A reference to the object obtained by
- * appending childPath, removing any duplicate, beginning, or trailing
- * slashes.
- */
- child(childPath: string): types.Reference;
- get root(): types.Reference;
- /**
- * @returns A reference to the parent of the
- * current object, or null if the current object is the root.
- */
- get parent(): types.Reference | null;
- /**
- * Uploads a blob to this object's location.
- * @param data - The blob to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- put(data: Blob | Uint8Array | ArrayBuffer, metadata?: types.FullMetadata): types.UploadTask;
- /**
- * Uploads a string to this object's location.
- * @param value - The string to upload.
- * @param format - The format of the string to upload.
- * @returns An UploadTask that lets you control and
- * observe the upload.
- */
- putString(value: string, format?: StringFormat, metadata?: types.UploadMetadata): types.UploadTask;
- /**
- * List all items (files) and prefixes (folders) under this storage reference.
- *
- * This is a helper method for calling list() repeatedly until there are
- * no more results. The default pagination size is 1000.
- *
- * Note: The results may not be consistent if objects are changed while this
- * operation is running.
- *
- * Warning: listAll may potentially consume too many resources if there are
- * too many results.
- *
- * @returns A Promise that resolves with all the items and prefixes under
- * the current storage reference. `prefixes` contains references to
- * sub-directories and `items` contains references to objects in this
- * folder. `nextPageToken` is never returned.
- */
- listAll(): Promise<types.ListResult>;
- /**
- * List items (files) and prefixes (folders) under this storage reference.
- *
- * List API is only available for Firebase Rules Version 2.
- *
- * GCS is a key-blob store. Firebase Storage imposes the semantic of '/'
- * delimited folder structure. Refer to GCS's List API if you want to learn more.
- *
- * To adhere to Firebase Rules's Semantics, Firebase Storage does not
- * support objects whose paths end with "/" or contain two consecutive
- * "/"s. Firebase Storage List API will filter these unsupported objects.
- * list() may fail if there are too many unsupported objects in the bucket.
- *
- * @param options - See ListOptions for details.
- * @returns A Promise that resolves with the items and prefixes.
- * `prefixes` contains references to sub-folders and `items`
- * contains references to objects in this folder. `nextPageToken`
- * can be used to get the rest of the results.
- */
- list(options?: types.ListOptions | null): Promise<types.ListResult>;
- /**
- * A `Promise` that resolves with the metadata for this object. If this
- * object doesn't exist or metadata cannot be retrieved, the promise is
- * rejected.
- */
- getMetadata(): Promise<types.FullMetadata>;
- /**
- * Updates the metadata for this object.
- * @param metadata - The new metadata for the object.
- * Only values that have been explicitly set will be changed. Explicitly
- * setting a value to null will remove the metadata.
- * @returns A `Promise` that resolves
- * with the new metadata for this object.
- * @see firebaseStorage.Reference.prototype.getMetadata
- */
- updateMetadata(metadata: types.SettableMetadata): Promise<types.FullMetadata>;
- /**
- * @returns A `Promise` that resolves with the download
- * URL for this object.
- */
- getDownloadURL(): Promise<string>;
- /**
- * Deletes the object at this location.
- * @returns A `Promise` that resolves if the deletion succeeds.
- */
- delete(): Promise<void>;
- private _throwIfRoot;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/src/service.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/src/service.d.ts
deleted file mode 100644
index 5fd32c3..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/src/service.d.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import * as types from '@firebase/storage-types';
-import { FirebaseApp } from '@firebase/app-types';
-import { FirebaseStorage } from '@firebase/storage';
-import { Compat, EmulatorMockTokenOptions } from '@firebase/util';
-/**
- * A service that provides firebaseStorage.Reference instances.
- * @param opt_url gs:// url to a custom Storage Bucket
- */
-export declare class StorageServiceCompat implements types.FirebaseStorage, Compat<FirebaseStorage> {
- app: FirebaseApp;
- readonly _delegate: FirebaseStorage;
- constructor(app: FirebaseApp, _delegate: FirebaseStorage);
- get maxOperationRetryTime(): number;
- get maxUploadRetryTime(): number;
- /**
- * Returns a firebaseStorage.Reference for the given path in the default
- * bucket.
- */
- ref(path?: string): types.Reference;
- /**
- * Returns a firebaseStorage.Reference object for the given absolute URL,
- * which must be a gs:// or http[s]:// URL.
- */
- refFromURL(url: string): types.Reference;
- setMaxUploadRetryTime(time: number): void;
- setMaxOperationRetryTime(time: number): void;
- useEmulator(host: string, port: number, options?: {
- mockUserToken?: EmulatorMockTokenOptions | string;
- }): void;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/src/task.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/src/task.d.ts
deleted file mode 100644
index 97e2bd5..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/src/task.d.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { UploadTask, StorageError, TaskEvent, StorageObserver } from '@firebase/storage';
-import { UploadTaskSnapshotCompat } from './tasksnapshot';
-import { ReferenceCompat } from './reference';
-import * as types from '@firebase/storage-types';
-import { Compat } from '@firebase/util';
-export declare class UploadTaskCompat implements types.UploadTask, Compat<UploadTask> {
- readonly _delegate: UploadTask;
- private readonly _ref;
- constructor(_delegate: UploadTask, _ref: ReferenceCompat);
- get snapshot(): UploadTaskSnapshotCompat;
- cancel: () => boolean;
- catch: (onRejected: (error: StorageError) => unknown) => Promise<unknown>;
- pause: () => boolean;
- resume: () => boolean;
- then(onFulfilled?: ((a: UploadTaskSnapshotCompat) => unknown) | null, onRejected?: ((a: StorageError) => unknown) | null): Promise<unknown>;
- on(type: TaskEvent, nextOrObserver?: types.StorageObserver<UploadTaskSnapshotCompat> | null | ((a: UploadTaskSnapshotCompat) => unknown), error?: ((error: StorageError) => void) | null, completed?: () => void | null): Unsubscribe | Subscribe<UploadTaskSnapshotCompat>;
-}
-/**
- * Subscribes to an event stream.
- */
-export type Subscribe<T> = (next?: NextFn<T> | StorageObserver<T>, error?: ErrorFn, complete?: CompleteFn) => Unsubscribe;
-/**
- * Unsubscribes from a stream.
- */
-export type Unsubscribe = () => void;
-/**
- * Function that is called once for each value in a stream of values.
- */
-export type NextFn<T> = (value: T) => void;
-/**
- * A function that is called with a `FirebaseStorageError`
- * if the event stream ends due to an error.
- */
-export type ErrorFn = (error: StorageError) => void;
-/**
- * A function that is called if the event stream ends normally.
- */
-export type CompleteFn = () => void;
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/src/tasksnapshot.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/src/tasksnapshot.d.ts
deleted file mode 100644
index eac3b70..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/src/tasksnapshot.d.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import { UploadTaskSnapshot } from '@firebase/storage';
-import { ReferenceCompat } from './reference';
-import { UploadTaskCompat } from './task';
-import * as types from '@firebase/storage-types';
-import { Compat } from '@firebase/util';
-export declare class UploadTaskSnapshotCompat implements types.UploadTaskSnapshot, Compat<UploadTaskSnapshot> {
- readonly _delegate: UploadTaskSnapshot;
- readonly task: UploadTaskCompat;
- readonly ref: ReferenceCompat;
- constructor(_delegate: UploadTaskSnapshot, task: UploadTaskCompat, ref: ReferenceCompat);
- get bytesTransferred(): number;
- get metadata(): types.FullMetadata;
- get state(): string;
- get totalBytes(): number;
-}
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/test/integration/integration.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/test/integration/integration.test.d.ts
deleted file mode 100644
index c86822b..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/test/integration/integration.test.d.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '@firebase/auth-compat';
-import * as storage from '@firebase/storage-types';
-import '../../src/index';
-export declare const PROJECT_ID: any;
-export declare const STORAGE_BUCKET: any;
-export declare const API_KEY: any;
-export declare function withTestInstance(fn: (storage: storage.FirebaseStorage) => void | Promise<void>): Promise<void>;
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/test/setup.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/test/setup.d.ts
deleted file mode 100644
index 1c93d90..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/test/setup.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * @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.
- */
-export {};
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/index.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/index.test.d.ts
deleted file mode 100644
index a442199..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/index.test.d.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '../setup';
-import '../../src/index';
-export declare const PROJECT_ID: any;
-export declare const STORAGE_BUCKET: any;
-export declare const API_KEY: any;
-export declare const AUTH_DOMAIN: any;
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/reference.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/reference.test.d.ts
deleted file mode 100644
index 08e2d52..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/reference.test.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '../setup';
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/service.test.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/service.test.d.ts
deleted file mode 100644
index 08e2d52..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/test/unit/service.test.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * @license
- * Copyright 2020 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.
- */
-import '../setup';
diff --git a/frontend-old/node_modules/@firebase/storage-compat/dist/test/utils.d.ts b/frontend-old/node_modules/@firebase/storage-compat/dist/test/utils.d.ts
deleted file mode 100644
index f4ddfce..0000000
--- a/frontend-old/node_modules/@firebase/storage-compat/dist/test/utils.d.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-/**
- * @license
- * Copyright 2021 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.
- */
-import { FirebaseApp } from '@firebase/app-types';
-import { FirebaseStorage } from '@firebase/storage';
-import { StorageServiceCompat } from '../src/service';
-export declare function makeTestCompatStorage(app: FirebaseApp, storage: FirebaseStorage): StorageServiceCompat;
-export declare const fakeApp: FirebaseApp;
-export declare const fakeStorage: FirebaseStorage;