New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@globus/sdk

Package Overview
Dependencies
Maintainers
7
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globus/sdk - npm Package Compare versions

Comparing version 3.0.0-alpha.14 to 3.0.0-alpha.15

cjs/lib/services/compute/service/endpoints.d.ts

1

cjs/index.d.ts

@@ -63,2 +63,3 @@ /**

export * as timer from './lib/services/timer/index.js';
export * as compute from './lib/services/compute/index.js';
//# sourceMappingURL=index.d.ts.map

3

cjs/index.js

@@ -56,3 +56,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.timer = exports.gcs = exports.flows = exports.groups = exports.search = exports.transfer = exports.auth = exports.authorization = exports.logger = void 0;
exports.compute = exports.timer = exports.gcs = exports.flows = exports.groups = exports.search = exports.transfer = exports.auth = exports.authorization = exports.logger = void 0;
const tslib_1 = require("tslib");

@@ -72,2 +72,3 @@ /// <reference types="@globus/types" />

exports.timer = tslib_1.__importStar(require("./lib/services/timer/index.js"));
exports.compute = tslib_1.__importStar(require("./lib/services/compute/index.js"));
//# sourceMappingURL=index.js.map
import type IConfig from 'js-pkce/dist/IConfig';
import { Token, TokenResponse } from '../../services/auth/index.js';
import { Token, TokenResponse, TokenWithRefresh } from '../../services/auth/index.js';
import { Event } from './Event.js';

@@ -7,5 +7,15 @@ import { TokenLookup } from './TokenLookup.js';

export type AuthorizationManagerConfiguration = {
client_id: IConfig['client_id'];
requested_scopes: IConfig['requested_scopes'];
redirect_uri: IConfig['redirect_uri'];
client: IConfig['client_id'];
scopes: IConfig['requested_scopes'];
redirect: IConfig['redirect_uri'];
/**
* @private
* @default DEFAULT_CONFIGURATION.useRefreshTokens
*/
useRefreshTokens?: boolean;
/**
* @private
* @default DEFAULT_CONFIGURATION.defaultScopes
*/
defaultScopes?: string | false;
};

@@ -50,11 +60,13 @@ /**

};
constructor(configuration: AuthorizationManagerConfiguration & {
/**
* @todo Decide if this should be officially supported. If so, it is probably worth re-typing the `configuration` parameter here
* and make it a superset of what winds up being passed to the transports.
* @private
*/
DISABLE_DEFAULT_SCOPES?: boolean;
});
constructor(configuration: AuthorizationManagerConfiguration);
/**
* Start the silent renew process for the instance.
* @todo Add interval support for the silent renew.
*/
startSilentRenew(): void;
/**
* Use the `refresh_token` attribute of a token to obtain a new access token.
* @param token The well-formed token with a `refresh_token` attribute.
*/
refreshToken(token: TokenWithRefresh): Promise<void>;
hasGlobusAuthToken(): boolean;

@@ -98,3 +110,3 @@ getGlobusAuthToken(): any;

/**
* Call `AuthroizationManager.reset` and emit the `revoke` event.
* Call `AuthroizationManager.reset`, revoke all of the available tokns, and emit the `revoke` event.
* @emits AuthorizationManager.events#revoke

@@ -101,0 +113,0 @@ * @see AuthorizationManager.reset

"use strict";
var _AuthorizationManager_instances, _AuthorizationManager_transport, _AuthorizationManager_authenticated, _AuthorizationManager_checkAuthorizationState, _AuthorizationManager_bootstrapFromStorageState, _AuthorizationManager_emitAuthenticatedState, _AuthorizationManager_buildTransport;
var _AuthorizationManager_instances, _AuthorizationManager_transport, _AuthorizationManager_authenticated, _AuthorizationManager_silentRenewRefreshTokens, _AuthorizationManager_checkAuthorizationState, _AuthorizationManager_bootstrapFromStorageState, _AuthorizationManager_emitAuthenticatedState, _AuthorizationManager_withOfflineAccess, _AuthorizationManager_buildTransport, _AuthorizationManager_revokeToken;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -13,2 +13,6 @@ exports.AuthorizationManager = void 0;

const errors_js_1 = require("../errors.js");
const DEFAULT_CONFIGURATION = {
useRefreshTokens: false,
defaultScopes: 'openid profile email',
};
/**

@@ -33,2 +37,3 @@ * @experimental

constructor(configuration) {
var _a;
_AuthorizationManager_instances.add(this);

@@ -59,3 +64,3 @@ _AuthorizationManager_transport.set(this, void 0);

var _a;
(0, index_js_2.getStorage)().set(`${this.configuration.client_id}:${token.resource_server}`, token);
(0, index_js_2.getStorage)().set(`${this.configuration.client}:${token.resource_server}`, token);
if ('other_tokens' in token) {

@@ -70,4 +75,4 @@ (_a = token.other_tokens) === null || _a === void 0 ? void 0 : _a.forEach(this.addTokenResponse);

(0, index_js_2.createStorage)('localStorage');
if (!configuration.client_id) {
throw new Error('You must provide a `client_id` for your application.');
if (!configuration.client) {
throw new Error('You must provide a `client` for your application.');
}

@@ -78,16 +83,49 @@ /**

*/
const scopes = configuration.DISABLE_DEFAULT_SCOPES
const scopes = configuration.defaultScopes === false
? ''
: 'openid profile email offline_access';
this.configuration = Object.assign(Object.assign({}, configuration), { requested_scopes: `${configuration.requested_scopes} ${scopes}` });
: (_a = configuration.defaultScopes) !== null && _a !== void 0 ? _a : DEFAULT_CONFIGURATION.defaultScopes;
this.configuration = Object.assign(Object.assign({}, configuration), { scopes: `${configuration.scopes}${scopes ? ` ${scopes}` : ''}` });
this.tokens = new TokenLookup_js_1.TokenLookup({
manager: this,
});
tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_bootstrapFromStorageState).call(this);
this.startSilentRenew();
}
/**
* Start the silent renew process for the instance.
* @todo Add interval support for the silent renew.
*/
startSilentRenew() {
(0, logger_js_1.log)('debug', 'AuthorizationManager.startSilentRenew');
tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_bootstrapFromStorageState).call(this);
// @todo Iterate through all tokens and refresh them.
/**
* Silent renewal is only supported when using refresh tokens.
*/
if (this.configuration.useRefreshTokens) {
tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_silentRenewRefreshTokens).call(this);
}
}
/**
* Use the `refresh_token` attribute of a token to obtain a new access token.
* @param token The well-formed token with a `refresh_token` attribute.
*/
refreshToken(token) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
(0, logger_js_1.log)('debug', `AuthorizationManager.refreshToken | resource_server=${token.resource_server}`);
try {
const response = yield (yield index_js_1.oauth2.token.refresh({
payload: {
client_id: this.configuration.client,
refresh_token: token.refresh_token,
grant_type: 'refresh_token',
},
})).json();
if ((0, index_js_1.isGlobusAuthTokenResponse)(response)) {
this.addTokenResponse(response);
}
}
catch (error) {
(0, logger_js_1.log)('error', `AuthorizationManager.refreshToken | resource_server=${token.resource_server}`);
}
});
}
hasGlobusAuthToken() {

@@ -97,3 +135,3 @@ return this.getGlobusAuthToken() !== null;

getGlobusAuthToken() {
const entry = (0, index_js_2.getStorage)().get(`${this.configuration.client_id}:auth.globus.org`);
const entry = (0, index_js_2.getStorage)().get(`${this.configuration.client}:auth.globus.org`);
return entry ? JSON.parse(entry) : null;

@@ -116,2 +154,3 @@ }

login() {
(0, logger_js_1.log)('debug', 'AuthorizationManager.login');
this.reset();

@@ -173,3 +212,3 @@ /**

tslib_1.__classPrivateFieldSet(this, _AuthorizationManager_transport, tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_buildTransport).call(this, {
requested_scopes: response.required_scopes.join(' '),
requested_scopes: tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_withOfflineAccess).call(this, response.required_scopes.join(' ')),
}), "f");

@@ -179,3 +218,3 @@ tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_transport, "f").send();

/**
* Call `AuthroizationManager.reset` and emit the `revoke` event.
* Call `AuthroizationManager.reset`, revoke all of the available tokns, and emit the `revoke` event.
* @emits AuthorizationManager.events#revoke

@@ -186,3 +225,6 @@ * @see AuthorizationManager.reset

return tslib_1.__awaiter(this, void 0, void 0, function* () {
(0, logger_js_1.log)('debug', 'AuthorizationManager.revoke');
const revocation = Promise.all(this.tokens.getAll().map((token) => tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_revokeToken).call(this, token)));
this.reset();
yield revocation;
yield this.events.revoke.dispatch();

@@ -193,3 +235,10 @@ });

exports.AuthorizationManager = AuthorizationManager;
_AuthorizationManager_transport = new WeakMap(), _AuthorizationManager_authenticated = new WeakMap(), _AuthorizationManager_instances = new WeakSet(), _AuthorizationManager_checkAuthorizationState = function _AuthorizationManager_checkAuthorizationState() {
_AuthorizationManager_transport = new WeakMap(), _AuthorizationManager_authenticated = new WeakMap(), _AuthorizationManager_instances = new WeakSet(), _AuthorizationManager_silentRenewRefreshTokens = function _AuthorizationManager_silentRenewRefreshTokens() {
(0, logger_js_1.log)('debug', 'AuthorizationManager.#silentRenewRefreshTokens');
this.tokens.getAll().forEach((token) => {
if ((0, index_js_1.isRefreshToken)(token)) {
this.refreshToken(token);
}
});
}, _AuthorizationManager_checkAuthorizationState = function _AuthorizationManager_checkAuthorizationState() {
(0, logger_js_1.log)('debug', 'AuthorizationManager.#checkAuthorizationState');

@@ -214,5 +263,17 @@ if (this.hasGlobusAuthToken()) {

});
}, _AuthorizationManager_withOfflineAccess = function _AuthorizationManager_withOfflineAccess(scopes) {
return `${scopes}${this.configuration.useRefreshTokens ? ' offline_access' : ''}`;
}, _AuthorizationManager_buildTransport = function _AuthorizationManager_buildTransport(overrides) {
return new RedirectTransport_js_1.RedirectTransport(Object.assign(Object.assign({ client_id: this.configuration.client_id, authorization_endpoint: (0, index_js_1.getAuthorizationEndpoint)(), token_endpoint: (0, index_js_1.getTokenEndpoint)(), redirect_uri: this.configuration.redirect_uri, requested_scopes: this.configuration.requested_scopes }, overrides), { params: Object.assign({ include_consented_scopes: true }, overrides === null || overrides === void 0 ? void 0 : overrides.params) }));
var _a;
const scopes = tslib_1.__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_withOfflineAccess).call(this, (_a = overrides === null || overrides === void 0 ? void 0 : overrides.requested_scopes) !== null && _a !== void 0 ? _a : this.configuration.scopes);
return new RedirectTransport_js_1.RedirectTransport(Object.assign({ client_id: this.configuration.client, authorization_endpoint: (0, index_js_1.getAuthorizationEndpoint)(), token_endpoint: (0, index_js_1.getTokenEndpoint)(), redirect_uri: this.configuration.redirect, requested_scopes: scopes }, overrides));
}, _AuthorizationManager_revokeToken = function _AuthorizationManager_revokeToken(token) {
(0, logger_js_1.log)('debug', `AuthorizationManager.revokeToken | resource_server=${token.resource_server}`);
return index_js_1.oauth2.token.revoke({
payload: {
client_id: this.configuration.client,
token: token.access_token,
},
});
};
//# sourceMappingURL=AuthorizationManager.js.map

@@ -15,4 +15,4 @@ import { Token } from '../../services/auth/index.js';

get compute(): Token | null;
getAll(): (Token | null)[];
getAll(): Token[];
}
//# sourceMappingURL=TokenLookup.d.ts.map

@@ -8,2 +8,3 @@ "use strict";

const index_js_2 = require("../../services/auth/index.js");
const global_js_1 = require("../global.js");
class TokenLookup {

@@ -16,24 +17,24 @@ constructor(options) {

get auth() {
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'AUTH');
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, global_js_1.SERVICES.AUTH);
}
get transfer() {
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'TRANSFER');
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, global_js_1.SERVICES.TRANSFER);
}
get flows() {
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'FLOWS');
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, global_js_1.SERVICES.FLOWS);
}
get groups() {
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'GROUPS');
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, global_js_1.SERVICES.GROUPS);
}
get search() {
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'SEARCH');
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, global_js_1.SERVICES.SEARCH);
}
get timer() {
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'TIMER');
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, global_js_1.SERVICES.TIMER);
}
get compute() {
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'COMPUTE');
return tslib_1.__classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, global_js_1.SERVICES.COMPUTE);
}
getAll() {
return [
const tokens = [
this.auth,

@@ -46,3 +47,4 @@ this.transfer,

this.compute,
].filter((token) => token !== null);
];
return tokens.filter(index_js_2.isToken);
}

@@ -54,5 +56,15 @@ }

const resourceServer = (_a = index_js_2.CONFIG.RESOURCE_SERVERS) === null || _a === void 0 ? void 0 : _a[service];
const raw = (0, index_js_1.getStorage)().get(`${tslib_1.__classPrivateFieldGet(this, _TokenLookup_manager, "f").configuration.client_id}:${resourceServer}`) || 'null';
return JSON.parse(raw);
const raw = (0, index_js_1.getStorage)().get(`${tslib_1.__classPrivateFieldGet(this, _TokenLookup_manager, "f").configuration.client}:${resourceServer}`) || 'null';
let token = null;
try {
const parsed = JSON.parse(raw);
if ((0, index_js_2.isToken)(parsed)) {
token = parsed;
}
}
catch (e) {
// no-op
}
return token;
};
//# sourceMappingURL=TokenLookup.js.map

@@ -5,4 +5,5 @@ /**

* @returns The token string for the given scope or null if no token is found.
* @deprecated Use an `AuthorizationManager` instance to manage tokens.
*/
export declare function getTokenForScope(scope: string): string | null;
//# sourceMappingURL=tokens.d.ts.map

@@ -13,2 +13,3 @@ "use strict";

* @returns The token string for the given scope or null if no token is found.
* @deprecated Use an `AuthorizationManager` instance to manage tokens.
*/

@@ -15,0 +16,0 @@ function getTokenForScope(scope) {

@@ -16,9 +16,9 @@ import { SDKOptions } from '../services/types.js';

export declare const SERVICES: {
AUTH: string;
TRANSFER: string;
FLOWS: string;
GROUPS: string;
SEARCH: string;
TIMER: string;
COMPUTE: string;
AUTH: "AUTH";
TRANSFER: "TRANSFER";
FLOWS: "FLOWS";
GROUPS: "GROUPS";
SEARCH: "SEARCH";
TIMER: "TIMER";
COMPUTE: "COMPUTE";
};

@@ -25,0 +25,0 @@ export type Service = keyof typeof SERVICES;

import type { Environment } from '../../core/global.js';
export declare const ID = "AUTH";
export declare const ID: "AUTH";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ export declare const SCOPES: {

@@ -19,2 +19,5 @@ import * as AUTH from './config.js';

};
export type TokenWithRefresh = Token & {
refresh_token: string;
};
/**

@@ -28,3 +31,5 @@ * @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred

};
export declare function isToken(check: unknown): check is Token;
export declare function isRefreshToken(check: unknown): check is TokenWithRefresh;
export declare function isGlobusAuthTokenResponse(check: unknown): check is TokenResponse;
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isGlobusAuthTokenResponse = exports.oauth2 = exports.identities = exports.getTokenEndpoint = exports.getAuthorizationEndpoint = exports.CONFIG = void 0;
exports.isGlobusAuthTokenResponse = exports.isRefreshToken = exports.isToken = exports.oauth2 = exports.identities = exports.getTokenEndpoint = exports.getAuthorizationEndpoint = exports.CONFIG = void 0;
const tslib_1 = require("tslib");

@@ -28,6 +28,17 @@ /**

exports.oauth2 = tslib_1.__importStar(require("./service/oauth2/index.js"));
function isToken(check) {
return typeof check === 'object' && check !== null && 'access_token' in check;
}
exports.isToken = isToken;
function isRefreshToken(check) {
return isToken(check) && check !== null && 'refresh_token' in check;
}
exports.isRefreshToken = isRefreshToken;
function isGlobusAuthTokenResponse(check) {
return typeof check === 'object' && check !== null && 'resource_server' in check;
/**
* @todo This could be made more robust by checking whether the `resource_server` is a well-known value.
*/
return isToken(check) && check !== null && 'resource_server' in check;
}
exports.isGlobusAuthTokenResponse = isGlobusAuthTokenResponse;
//# sourceMappingURL=index.js.map

@@ -7,3 +7,6 @@ type IntrospectPayload = {

token: string;
token_type_hint?: 'access_token';
/**
* This is an undocumented property that is required for the request to be successful.
*/
client_id: string;
};

@@ -14,2 +17,10 @@ type ValidatePayload = {

};
type RefreshPayload = {
refresh_token: string;
grant_type: 'refresh_token';
/**
* This is an undocumented property that is required for the request to be successful.
*/
client_id: string;
};
/**

@@ -30,2 +41,9 @@ * Token Introspection

/**
* Token Refresh
* @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
*/
export declare const refresh: (options: ({
payload: RefreshPayload;
} & import("../../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<Response>;
/**
* @private

@@ -32,0 +50,0 @@ * @deprecated Rather than using `validate` to check if a token is valid, it is recommended to make a request to the resource server with the token and handle the error response.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validate = exports.revoke = exports.introspect = void 0;
exports.validate = exports.refresh = exports.revoke = exports.introspect = void 0;
const config_js_1 = require("../../config.js");

@@ -55,2 +55,17 @@ const shared_js_1 = require("../../../../services/shared.js");

/**
* Token Refresh
* @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
*/
exports.refresh = function (options, sdkOptions) {
if (!(options === null || options === void 0 ? void 0 : options.payload)) {
throw new Error(`'payload' is required for revoke`);
}
return (0, shared_js_1.serviceRequest)({
service: config_js_1.ID,
scope: undefined,
path: `/v2/oauth2/token`,
method: shared_js_1.HTTP_METHODS.POST,
}, injectServiceOptions(options), sdkOptions);
};
/**
* @private

@@ -57,0 +72,0 @@ * @deprecated Rather than using `validate` to check if a token is valid, it is recommended to make a request to the resource server with the token and handle the error response.

import type { Environment } from '../../core/global.js';
export declare const ID = "COMPUTE";
export declare const ID: "COMPUTE";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ export declare const SCOPES: {

@@ -13,2 +13,3 @@ /**

export declare const CONFIG: typeof COMPUTE;
export * as endpoints from './service/endpoints.js';
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CONFIG = void 0;
exports.endpoints = exports.CONFIG = void 0;
const tslib_1 = require("tslib");

@@ -17,2 +17,3 @@ /**

exports.CONFIG = COMPUTE;
exports.endpoints = tslib_1.__importStar(require("./service/endpoints.js"));
//# sourceMappingURL=index.js.map
import type { Environment } from '../../core/global.js';
export declare const ID = "FLOWS";
export declare const ID: "FLOWS";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ /**

import type { Environment } from '../../core/global.js';
export declare const ID = "GROUPS";
export declare const ID: "GROUPS";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ /**

import type { Environment } from '../../core/global.js';
export declare const ID = "SEARCH";
export declare const ID: "SEARCH";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ /**

import type { Environment } from '../../core/global.js';
export declare const ID = "TIMER";
export declare const ID: "TIMER";
export declare const HOSTS: Partial<Record<Environment, string>>;
//# sourceMappingURL=config.d.ts.map
import type { Environment } from '../../core/global.js';
export declare const ID = "TRANSFER";
export declare const ID: "TRANSFER";
export declare const SCOPES: {

@@ -4,0 +4,0 @@ ALL: string;

@@ -63,2 +63,3 @@ /**

export * as timer from './lib/services/timer/index.js';
export * as compute from './lib/services/compute/index.js';
//# sourceMappingURL=index.d.ts.map

@@ -67,2 +67,3 @@ /**

export * as timer from './lib/services/timer/index.js';
export * as compute from './lib/services/compute/index.js';
//# sourceMappingURL=index.js.map
import type IConfig from 'js-pkce/dist/IConfig';
import { Token, TokenResponse } from '../../services/auth/index.js';
import { Token, TokenResponse, TokenWithRefresh } from '../../services/auth/index.js';
import { Event } from './Event.js';

@@ -7,5 +7,15 @@ import { TokenLookup } from './TokenLookup.js';

export type AuthorizationManagerConfiguration = {
client_id: IConfig['client_id'];
requested_scopes: IConfig['requested_scopes'];
redirect_uri: IConfig['redirect_uri'];
client: IConfig['client_id'];
scopes: IConfig['requested_scopes'];
redirect: IConfig['redirect_uri'];
/**
* @private
* @default DEFAULT_CONFIGURATION.useRefreshTokens
*/
useRefreshTokens?: boolean;
/**
* @private
* @default DEFAULT_CONFIGURATION.defaultScopes
*/
defaultScopes?: string | false;
};

@@ -50,11 +60,13 @@ /**

};
constructor(configuration: AuthorizationManagerConfiguration & {
/**
* @todo Decide if this should be officially supported. If so, it is probably worth re-typing the `configuration` parameter here
* and make it a superset of what winds up being passed to the transports.
* @private
*/
DISABLE_DEFAULT_SCOPES?: boolean;
});
constructor(configuration: AuthorizationManagerConfiguration);
/**
* Start the silent renew process for the instance.
* @todo Add interval support for the silent renew.
*/
startSilentRenew(): void;
/**
* Use the `refresh_token` attribute of a token to obtain a new access token.
* @param token The well-formed token with a `refresh_token` attribute.
*/
refreshToken(token: TokenWithRefresh): Promise<void>;
hasGlobusAuthToken(): boolean;

@@ -98,3 +110,3 @@ getGlobusAuthToken(): any;

/**
* Call `AuthroizationManager.reset` and emit the `revoke` event.
* Call `AuthroizationManager.reset`, revoke all of the available tokns, and emit the `revoke` event.
* @emits AuthorizationManager.events#revoke

@@ -101,0 +113,0 @@ * @see AuthorizationManager.reset

@@ -1,4 +0,4 @@

var _AuthorizationManager_instances, _AuthorizationManager_transport, _AuthorizationManager_authenticated, _AuthorizationManager_checkAuthorizationState, _AuthorizationManager_bootstrapFromStorageState, _AuthorizationManager_emitAuthenticatedState, _AuthorizationManager_buildTransport;
var _AuthorizationManager_instances, _AuthorizationManager_transport, _AuthorizationManager_authenticated, _AuthorizationManager_silentRenewRefreshTokens, _AuthorizationManager_checkAuthorizationState, _AuthorizationManager_bootstrapFromStorageState, _AuthorizationManager_emitAuthenticatedState, _AuthorizationManager_withOfflineAccess, _AuthorizationManager_buildTransport, _AuthorizationManager_revokeToken;
import { __awaiter, __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
import { getAuthorizationEndpoint, getTokenEndpoint, isGlobusAuthTokenResponse, } from '../../services/auth/index.js';
import { getAuthorizationEndpoint, getTokenEndpoint, isGlobusAuthTokenResponse, isRefreshToken, oauth2, } from '../../services/auth/index.js';
import { createStorage, getStorage } from '../storage/index.js';

@@ -10,2 +10,6 @@ import { log } from '../logger.js';

import { isConsentRequiredError, isAuthorizationRequirementsError, } from '../errors.js';
const DEFAULT_CONFIGURATION = {
useRefreshTokens: false,
defaultScopes: 'openid profile email',
};
/**

@@ -30,2 +34,3 @@ * @experimental

constructor(configuration) {
var _a;
_AuthorizationManager_instances.add(this);

@@ -56,3 +61,3 @@ _AuthorizationManager_transport.set(this, void 0);

var _a;
getStorage().set(`${this.configuration.client_id}:${token.resource_server}`, token);
getStorage().set(`${this.configuration.client}:${token.resource_server}`, token);
if ('other_tokens' in token) {

@@ -67,4 +72,4 @@ (_a = token.other_tokens) === null || _a === void 0 ? void 0 : _a.forEach(this.addTokenResponse);

createStorage('localStorage');
if (!configuration.client_id) {
throw new Error('You must provide a `client_id` for your application.');
if (!configuration.client) {
throw new Error('You must provide a `client` for your application.');
}

@@ -75,16 +80,49 @@ /**

*/
const scopes = configuration.DISABLE_DEFAULT_SCOPES
const scopes = configuration.defaultScopes === false
? ''
: 'openid profile email offline_access';
this.configuration = Object.assign(Object.assign({}, configuration), { requested_scopes: `${configuration.requested_scopes} ${scopes}` });
: (_a = configuration.defaultScopes) !== null && _a !== void 0 ? _a : DEFAULT_CONFIGURATION.defaultScopes;
this.configuration = Object.assign(Object.assign({}, configuration), { scopes: `${configuration.scopes}${scopes ? ` ${scopes}` : ''}` });
this.tokens = new TokenLookup({
manager: this,
});
__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_bootstrapFromStorageState).call(this);
this.startSilentRenew();
}
/**
* Start the silent renew process for the instance.
* @todo Add interval support for the silent renew.
*/
startSilentRenew() {
log('debug', 'AuthorizationManager.startSilentRenew');
__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_bootstrapFromStorageState).call(this);
// @todo Iterate through all tokens and refresh them.
/**
* Silent renewal is only supported when using refresh tokens.
*/
if (this.configuration.useRefreshTokens) {
__classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_silentRenewRefreshTokens).call(this);
}
}
/**
* Use the `refresh_token` attribute of a token to obtain a new access token.
* @param token The well-formed token with a `refresh_token` attribute.
*/
refreshToken(token) {
return __awaiter(this, void 0, void 0, function* () {
log('debug', `AuthorizationManager.refreshToken | resource_server=${token.resource_server}`);
try {
const response = yield (yield oauth2.token.refresh({
payload: {
client_id: this.configuration.client,
refresh_token: token.refresh_token,
grant_type: 'refresh_token',
},
})).json();
if (isGlobusAuthTokenResponse(response)) {
this.addTokenResponse(response);
}
}
catch (error) {
log('error', `AuthorizationManager.refreshToken | resource_server=${token.resource_server}`);
}
});
}
hasGlobusAuthToken() {

@@ -94,3 +132,3 @@ return this.getGlobusAuthToken() !== null;

getGlobusAuthToken() {
const entry = getStorage().get(`${this.configuration.client_id}:auth.globus.org`);
const entry = getStorage().get(`${this.configuration.client}:auth.globus.org`);
return entry ? JSON.parse(entry) : null;

@@ -113,2 +151,3 @@ }

login() {
log('debug', 'AuthorizationManager.login');
this.reset();

@@ -170,3 +209,3 @@ /**

__classPrivateFieldSet(this, _AuthorizationManager_transport, __classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_buildTransport).call(this, {
requested_scopes: response.required_scopes.join(' '),
requested_scopes: __classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_withOfflineAccess).call(this, response.required_scopes.join(' ')),
}), "f");

@@ -176,3 +215,3 @@ __classPrivateFieldGet(this, _AuthorizationManager_transport, "f").send();

/**
* Call `AuthroizationManager.reset` and emit the `revoke` event.
* Call `AuthroizationManager.reset`, revoke all of the available tokns, and emit the `revoke` event.
* @emits AuthorizationManager.events#revoke

@@ -183,3 +222,6 @@ * @see AuthorizationManager.reset

return __awaiter(this, void 0, void 0, function* () {
log('debug', 'AuthorizationManager.revoke');
const revocation = Promise.all(this.tokens.getAll().map((token) => __classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_revokeToken).call(this, token)));
this.reset();
yield revocation;
yield this.events.revoke.dispatch();

@@ -189,3 +231,10 @@ });

}
_AuthorizationManager_transport = new WeakMap(), _AuthorizationManager_authenticated = new WeakMap(), _AuthorizationManager_instances = new WeakSet(), _AuthorizationManager_checkAuthorizationState = function _AuthorizationManager_checkAuthorizationState() {
_AuthorizationManager_transport = new WeakMap(), _AuthorizationManager_authenticated = new WeakMap(), _AuthorizationManager_instances = new WeakSet(), _AuthorizationManager_silentRenewRefreshTokens = function _AuthorizationManager_silentRenewRefreshTokens() {
log('debug', 'AuthorizationManager.#silentRenewRefreshTokens');
this.tokens.getAll().forEach((token) => {
if (isRefreshToken(token)) {
this.refreshToken(token);
}
});
}, _AuthorizationManager_checkAuthorizationState = function _AuthorizationManager_checkAuthorizationState() {
log('debug', 'AuthorizationManager.#checkAuthorizationState');

@@ -210,5 +259,17 @@ if (this.hasGlobusAuthToken()) {

});
}, _AuthorizationManager_withOfflineAccess = function _AuthorizationManager_withOfflineAccess(scopes) {
return `${scopes}${this.configuration.useRefreshTokens ? ' offline_access' : ''}`;
}, _AuthorizationManager_buildTransport = function _AuthorizationManager_buildTransport(overrides) {
return new RedirectTransport(Object.assign(Object.assign({ client_id: this.configuration.client_id, authorization_endpoint: getAuthorizationEndpoint(), token_endpoint: getTokenEndpoint(), redirect_uri: this.configuration.redirect_uri, requested_scopes: this.configuration.requested_scopes }, overrides), { params: Object.assign({ include_consented_scopes: true }, overrides === null || overrides === void 0 ? void 0 : overrides.params) }));
var _a;
const scopes = __classPrivateFieldGet(this, _AuthorizationManager_instances, "m", _AuthorizationManager_withOfflineAccess).call(this, (_a = overrides === null || overrides === void 0 ? void 0 : overrides.requested_scopes) !== null && _a !== void 0 ? _a : this.configuration.scopes);
return new RedirectTransport(Object.assign({ client_id: this.configuration.client, authorization_endpoint: getAuthorizationEndpoint(), token_endpoint: getTokenEndpoint(), redirect_uri: this.configuration.redirect, requested_scopes: scopes }, overrides));
}, _AuthorizationManager_revokeToken = function _AuthorizationManager_revokeToken(token) {
log('debug', `AuthorizationManager.revokeToken | resource_server=${token.resource_server}`);
return oauth2.token.revoke({
payload: {
client_id: this.configuration.client,
token: token.access_token,
},
});
};
//# sourceMappingURL=AuthorizationManager.js.map

@@ -15,4 +15,4 @@ import { Token } from '../../services/auth/index.js';

get compute(): Token | null;
getAll(): (Token | null)[];
getAll(): Token[];
}
//# sourceMappingURL=TokenLookup.d.ts.map
var _TokenLookup_instances, _TokenLookup_manager, _TokenLookup_getTokenForService;
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
import { getStorage } from '../storage/index.js';
import { CONFIG } from '../../services/auth/index.js';
import { CONFIG, isToken } from '../../services/auth/index.js';
import { SERVICES } from '../global.js';
export class TokenLookup {

@@ -12,24 +13,24 @@ constructor(options) {

get auth() {
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'AUTH');
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.AUTH);
}
get transfer() {
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'TRANSFER');
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.TRANSFER);
}
get flows() {
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'FLOWS');
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.FLOWS);
}
get groups() {
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'GROUPS');
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.GROUPS);
}
get search() {
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'SEARCH');
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.SEARCH);
}
get timer() {
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'TIMER');
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.TIMER);
}
get compute() {
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, 'COMPUTE');
return __classPrivateFieldGet(this, _TokenLookup_instances, "m", _TokenLookup_getTokenForService).call(this, SERVICES.COMPUTE);
}
getAll() {
return [
const tokens = [
this.auth,

@@ -42,3 +43,4 @@ this.transfer,

this.compute,
].filter((token) => token !== null);
];
return tokens.filter(isToken);
}

@@ -49,5 +51,15 @@ }

const resourceServer = (_a = CONFIG.RESOURCE_SERVERS) === null || _a === void 0 ? void 0 : _a[service];
const raw = getStorage().get(`${__classPrivateFieldGet(this, _TokenLookup_manager, "f").configuration.client_id}:${resourceServer}`) || 'null';
return JSON.parse(raw);
const raw = getStorage().get(`${__classPrivateFieldGet(this, _TokenLookup_manager, "f").configuration.client}:${resourceServer}`) || 'null';
let token = null;
try {
const parsed = JSON.parse(raw);
if (isToken(parsed)) {
token = parsed;
}
}
catch (e) {
// no-op
}
return token;
};
//# sourceMappingURL=TokenLookup.js.map

@@ -5,4 +5,5 @@ /**

* @returns The token string for the given scope or null if no token is found.
* @deprecated Use an `AuthorizationManager` instance to manage tokens.
*/
export declare function getTokenForScope(scope: string): string | null;
//# sourceMappingURL=tokens.d.ts.map

@@ -10,2 +10,3 @@ import { getStorage } from '../storage/index.js';

* @returns The token string for the given scope or null if no token is found.
* @deprecated Use an `AuthorizationManager` instance to manage tokens.
*/

@@ -12,0 +13,0 @@ export function getTokenForScope(scope) {

@@ -16,9 +16,9 @@ import { SDKOptions } from '../services/types.js';

export declare const SERVICES: {
AUTH: string;
TRANSFER: string;
FLOWS: string;
GROUPS: string;
SEARCH: string;
TIMER: string;
COMPUTE: string;
AUTH: "AUTH";
TRANSFER: "TRANSFER";
FLOWS: "FLOWS";
GROUPS: "GROUPS";
SEARCH: "SEARCH";
TIMER: "TIMER";
COMPUTE: "COMPUTE";
};

@@ -25,0 +25,0 @@ export type Service = keyof typeof SERVICES;

import type { Environment } from '../../core/global.js';
export declare const ID = "AUTH";
export declare const ID: "AUTH";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ export declare const SCOPES: {

@@ -19,2 +19,5 @@ import * as AUTH from './config.js';

};
export type TokenWithRefresh = Token & {
refresh_token: string;
};
/**

@@ -28,3 +31,5 @@ * @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred

};
export declare function isToken(check: unknown): check is Token;
export declare function isRefreshToken(check: unknown): check is TokenWithRefresh;
export declare function isGlobusAuthTokenResponse(check: unknown): check is TokenResponse;
//# sourceMappingURL=index.d.ts.map

@@ -22,5 +22,14 @@ /**

export * as oauth2 from './service/oauth2/index.js';
export function isToken(check) {
return typeof check === 'object' && check !== null && 'access_token' in check;
}
export function isRefreshToken(check) {
return isToken(check) && check !== null && 'refresh_token' in check;
}
export function isGlobusAuthTokenResponse(check) {
return typeof check === 'object' && check !== null && 'resource_server' in check;
/**
* @todo This could be made more robust by checking whether the `resource_server` is a well-known value.
*/
return isToken(check) && check !== null && 'resource_server' in check;
}
//# sourceMappingURL=index.js.map

@@ -7,3 +7,6 @@ type IntrospectPayload = {

token: string;
token_type_hint?: 'access_token';
/**
* This is an undocumented property that is required for the request to be successful.
*/
client_id: string;
};

@@ -14,2 +17,10 @@ type ValidatePayload = {

};
type RefreshPayload = {
refresh_token: string;
grant_type: 'refresh_token';
/**
* This is an undocumented property that is required for the request to be successful.
*/
client_id: string;
};
/**

@@ -30,2 +41,9 @@ * Token Introspection

/**
* Token Refresh
* @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
*/
export declare const refresh: (options: ({
payload: RefreshPayload;
} & import("../../../types.js").BaseServiceMethodOptions) | undefined, sdkOptions?: import("../../../types.js").SDKOptions | undefined) => Promise<Response>;
/**
* @private

@@ -32,0 +50,0 @@ * @deprecated Rather than using `validate` to check if a token is valid, it is recommended to make a request to the resource server with the token and handle the error response.

@@ -52,2 +52,17 @@ import { ID } from '../../config.js';

/**
* Token Refresh
* @see https://docs.globus.org/api/auth/reference/#refresh_token_grant
*/
export const refresh = function (options, sdkOptions) {
if (!(options === null || options === void 0 ? void 0 : options.payload)) {
throw new Error(`'payload' is required for revoke`);
}
return serviceRequest({
service: ID,
scope: undefined,
path: `/v2/oauth2/token`,
method: HTTP_METHODS.POST,
}, injectServiceOptions(options), sdkOptions);
};
/**
* @private

@@ -54,0 +69,0 @@ * @deprecated Rather than using `validate` to check if a token is valid, it is recommended to make a request to the resource server with the token and handle the error response.

import type { Environment } from '../../core/global.js';
export declare const ID = "COMPUTE";
export declare const ID: "COMPUTE";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ export declare const SCOPES: {

@@ -13,2 +13,3 @@ /**

export declare const CONFIG: typeof COMPUTE;
export * as endpoints from './service/endpoints.js';
//# sourceMappingURL=index.d.ts.map

@@ -13,2 +13,3 @@ /**

export const CONFIG = COMPUTE;
export * as endpoints from './service/endpoints.js';
//# sourceMappingURL=index.js.map
import type { Environment } from '../../core/global.js';
export declare const ID = "FLOWS";
export declare const ID: "FLOWS";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ /**

import type { Environment } from '../../core/global.js';
export declare const ID = "GROUPS";
export declare const ID: "GROUPS";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ /**

import type { Environment } from '../../core/global.js';
export declare const ID = "SEARCH";
export declare const ID: "SEARCH";
export declare const HOSTS: Partial<Record<Environment, string>>;

@@ -4,0 +4,0 @@ /**

import type { Environment } from '../../core/global.js';
export declare const ID = "TIMER";
export declare const ID: "TIMER";
export declare const HOSTS: Partial<Record<Environment, string>>;
//# sourceMappingURL=config.d.ts.map
import type { Environment } from '../../core/global.js';
export declare const ID = "TRANSFER";
export declare const ID: "TRANSFER";
export declare const SCOPES: {

@@ -4,0 +4,0 @@ ALL: string;

{
"name": "@globus/sdk",
"version": "3.0.0-alpha.14",
"version": "3.0.0-alpha.15",
"private": false,

@@ -22,3 +22,3 @@ "description": "The Globus SDK for Javascript",

"peerDependencies": {
"@globus/types": "^0.0.6"
"@globus/types": "^0.0.7"
},

@@ -25,0 +25,0 @@ "peerDependenciesMeta": {

@@ -1,1 +0,1 @@

var globus;(()=>{var e={945:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(v)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=p(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[p(e)]},l.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},l.prototype.set=function(e,t){this.map[p(e)]=h(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),d(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),d(e)},o&&(l.prototype[Symbol.iterator]=l.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},m.call(_.prototype),m.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];A.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(o,s){var c=new _(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;setTimeout((function(){o(new A(n,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof l?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",p)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}S.polyfill=!0,r.fetch||(r.fetch=S,r.Headers=l,r.Request=_,r.Response=A),t.Headers=l,t.Request=_,t.Response=A,t.fetch=S}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},21:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(477)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new u.init(t,e)}}),p=s.enc={},h=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},d=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},l=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,p=e.min(4*c,i);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(o,h);r=o.splice(0,c),n.sigBytes-=p}return new u.init(r,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),n)},754:function(e,t,r){var n,o,i;e.exports=(n=r(21),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=a<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},440:function(e,t,r){var n;e.exports=(n=r(21),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},9:function(e,t,r){var n;e.exports=(n=r(21),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],p=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],p=r[5],h=r[6],d=r[7],l=0;l<64;l++){if(l<16)u[l]=0|e[t+l];else{var f=u[l-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[l-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[l]=g+u[l-7]+y+u[l-16]}var m=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&h)+c[l]+u[l];d=h,h=p,p=a,a=s+_|0,s=i,i=o,o=n,n=_+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(p),t.HmacSHA256=i._createHmacHelper(p)}(Math),n.SHA256)},368:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(9)),s=o(r(754)),a=o(r(440)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,n({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,n){return e.error?n({error:e.error}):e.state!==t.getState()?n({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},477:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{auth:()=>d,authorization:()=>f,flows:()=>C,gcs:()=>F,groups:()=>x,logger:()=>e,search:()=>P,timer:()=>q,transfer:()=>S});var e={};r.r(e),r.d(e,{log:()=>Y,setLogLevel:()=>J,setLogger:()=>V});var t={};r.r(t),r.d(t,{HOSTS:()=>te,ID:()=>Z,SCOPES:()=>ee});var o={};r.r(o),r.d(o,{HOSTS:()=>ne,ID:()=>re,SCOPES:()=>oe});var i={};r.r(i),r.d(i,{HOSTS:()=>se,ID:()=>ie});var s={};r.r(s),r.d(s,{HOSTS:()=>ce,ID:()=>ae,SCOPES:()=>ue});var a={};r.r(a),r.d(a,{HOSTS:()=>he,ID:()=>pe,SCOPES:()=>de});var c={};r.r(c),r.d(c,{HOSTS:()=>ge,ID:()=>fe,RESOURCE_SERVERS:()=>ye,SCOPES:()=>ve});var u={};r.r(u),r.d(u,{get:()=>Re,getAll:()=>je});var p={};r.r(p),r.d(p,{introspect:()=>xe,revoke:()=>Ie,validate:()=>Ue});var h={};r.r(h),r.d(h,{token:()=>p});var d={};r.r(d),r.d(d,{CONFIG:()=>Ce,getAuthorizationEndpoint:()=>$e,getTokenEndpoint:()=>De,identities:()=>u,isGlobusAuthTokenResponse:()=>Be,oauth2:()=>h});var l={};r.r(l),r.d(l,{getTokenForScope:()=>ht});var f={};r.r(f),r.d(f,{create:()=>lt,getTokenForScope:()=>dt,tokens:()=>l});var g={};r.r(g),r.d(g,{ls:()=>vt,mkdir:()=>yt,rename:()=>mt,symlink:()=>bt});var v={};r.r(v),r.d(v,{submissionId:()=>At,submitDelete:()=>_t,submitTransfer:()=>wt});var y={};r.r(y),r.d(y,{get:()=>Ot,remove:()=>St});var m={};r.r(m),r.d(m,{cancel:()=>Pt,get:()=>Et,getAll:()=>Tt,getEventList:()=>jt,getPauseInfo:()=>It,getSkippedErrors:()=>xt,getSuccessfulTransfers:()=>kt,remove:()=>Rt,update:()=>Lt});var b={};r.r(b),r.d(b,{create:()=>Ct,get:()=>$t,getAll:()=>Ut,remove:()=>Bt,update:()=>Dt});var _={};r.r(_),r.d(_,{get:()=>Nt,getAccessList:()=>Ht,getHostedEndpoints:()=>Mt,getMonitoredEndpoints:()=>Ft});var w={};r.r(w),r.d(w,{create:()=>zt,get:()=>Gt,getAll:()=>qt,remove:()=>Vt,update:()=>Wt});var A={};r.r(A),r.d(A,{cancel:()=>Kt,get:()=>Yt,getAdminCancel:()=>Xt,getAll:()=>Jt,getEventList:()=>Qt,getPauseInfo:()=>nr,getSkippedErrors:()=>er,getSuccessfulTransfers:()=>Zt,pause:()=>tr,resume:()=>rr});var O={};r.r(O),r.d(O,{endpoint:()=>_,pauseRule:()=>w,task:()=>A});var S={};r.r(S),r.d(S,{CONFIG:()=>or,access:()=>b,endpoint:()=>y,endpointManager:()=>O,endpointSearch:()=>ft,fileOperations:()=>g,task:()=>m,taskSubmission:()=>v});var T={};r.r(T),r.d(T,{get:()=>ir,post:()=>sr});var E={};r.r(E),r.d(E,{get:()=>ar});var L={};r.r(L),r.d(L,{get:()=>cr});var P={};r.r(P),r.d(P,{CONFIG:()=>ur,entry:()=>L,query:()=>T,subject:()=>E});var R={};r.r(R),r.d(R,{get:()=>hr,getMyGroups:()=>pr});var j={};r.r(j),r.d(j,{get:()=>dr});var k={};r.r(k),r.d(k,{act:()=>lr});var x={};r.r(x),r.d(x,{CONFIG:()=>fr,groups:()=>R,membership:()=>k,policies:()=>j});var I={};r.r(I),r.d(I,{get:()=>vr,getAll:()=>gr,remove:()=>yr});var U={};r.r(U),r.d(U,{getAll:()=>mr});var C={};r.r(C),r.d(C,{CONFIG:()=>br,flows:()=>I,runs:()=>U});var $={};r.r($),r.d($,{create:()=>Or,get:()=>wr,getAll:()=>_r,patch:()=>Tr,remove:()=>Ar,resetOwnerString:()=>Lr,update:()=>Sr,updateOwnerString:()=>Er});var D={};r.r(D),r.d(D,{get:()=>Pr,patch:()=>jr,update:()=>Rr,updateSubscriptionId:()=>kr});var B={};r.r(B),r.d(B,{create:()=>Cr,get:()=>Ir,getAll:()=>xr,remove:()=>Ur});var N={};r.r(N),r.d(N,{create:()=>Nr,get:()=>Dr,getAll:()=>$r,patch:()=>Hr,remove:()=>Br,update:()=>Mr});var M={};r.r(M),r.d(M,{create:()=>Gr,get:()=>qr,getAll:()=>Fr,patch:()=>Vr,remove:()=>zr,update:()=>Wr});var H={};r.r(H),r.d(H,{info:()=>Jr});var F={};r.r(F),r.d(F,{collections:()=>$,endpoint:()=>D,getRequiredScopes:()=>Kr,roles:()=>B,storageGateways:()=>N,userCredentials:()=>M,versioning:()=>H});var q={};r.r(q),r.d(q,{CONFIG:()=>Qr,create:()=>Xr});const z=["debug","info","warn","error"];let G,W=z.indexOf("error");function V(e){G=e}function J(e){W=z.indexOf(e)}function Y(e,...t){var r;G&&(z.indexOf(e)<W||(null!==(r=G[e])&&void 0!==r?r:G.log)(...t))}function K(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function X(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function Q(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const Z="TRANSFER",ee={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},te={sandbox:"transfer.api.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},re="FLOWS",ne={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},oe={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},ie="TIMER",se={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"},ae="GROUPS",ce={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},ue={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},pe="SEARCH",he={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},de={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},le="COMPUTE",fe="AUTH",ge={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},ve={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},ye={[fe]:"auth.globus.org",[Z]:"transfer.api.globus.org",[re]:"flows.api.globus.org",[ae]:"groups.api.globus.org",[pe]:"search.api.globus.org",[ie]:"524230d7-ea86-4a52-8312-86065a9e0417",[le]:"funcx_service"};class me extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function be(e){return"object"==typeof e&&null!==e&&"code"in e&&"message"in e}function _e(e,t){const r="undefined"!=typeof window?window:process;let n;return n=function(e){return typeof window==typeof e}(r)?r:r.env,e in n?n[e]:t}const we={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function Ae(){const e=_e("GLOBUS_SDK_ENVIRONMENT",we.PRODUCTION);if(!e||!Object.values(we).includes(e))throw new me("GLOBUS_SDK_ENVIRONMENT",e);return e}const Oe={[fe]:ge,[Z]:te,[re]:ne,[ae]:ce,[pe]:he,[ie]:se,[le]:{sandbox:"compute.api.sandbox.globuscs.info",production:"compute.api.globus.org",staging:"compute.api.staging.globuscs.info",integration:"compute.api.integration.globuscs.info",test:"compute.api.test.globuscs.info",preview:"compute.api.preview.globus.org"}};function Se(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=Ae()){const n=function(e,t=Ae()){const r=function(e,t=Ae()){return Oe[e][t]}(e,t);return _e(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,n)}(e,t,null==n?void 0:n.environment),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),o.toString()}var Te,Ee=r(945),Le=r.n(Ee);function Pe(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=_e("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(o=null===(n=null==a?void 0:a.fetch)||void 0===n?void 0:n.options)||void 0===o?void 0:o.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r),i=(null===(n=null==o?void 0:o.fetch)||void 0===n?void 0:n.options)||{},s=Object.assign(Object.assign({},null==t?void 0:t.headers),i.headers);if(e.scope&&!(null==s?void 0:s.Authorization)){const t=dt(e.scope);t&&(s.Authorization=t)}let a=null==t?void 0:t.body;!a&&(null==t?void 0:t.payload)&&(a=JSON.stringify(t.payload)),!(null==s?void 0:s["Content-Type"])&&a&&(s["Content-Type"]="application/json");const c=Se(e.service,e.path,{search:null==t?void 0:t.query},o),u=Object.assign(Object.assign({method:e.method,body:a},i),{headers:s});return(null==i?void 0:i.__callable)?(delete u.__callable,i.__callable.call(this,c,u)):Le()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(Te||(Te={}));const Re=function(e,t={},r){return Pe({service:fe,scope:ve.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},je=function(e={},t){return Pe({service:fe,scope:ve.VIEW_IDENTITIES,path:"/identities"},e,t)};function ke(e){return Object.assign(Object.assign({},e),{body:(t=e.payload,new URLSearchParams(t)),headers:Object.assign(Object.assign({},(null==e?void 0:e.headers)||{}),{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"})});var t}const xe=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Pe({service:fe,scope:void 0,path:"/v2/oauth2/token/introspect",method:Te.POST},ke(e),t)},Ie=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Pe({service:fe,scope:void 0,path:"/v2/oauth2/token/revoke",method:Te.POST},ke(e),t)},Ue=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Pe({service:fe,scope:void 0,path:"/v2/oauth2/token/validate",method:Te.POST},ke(e),t)},Ce=c;function $e(){return Se(fe,"/v2/oauth2/authorize")}function De(){return Se(fe,"/v2/oauth2/token")}function Be(e){return"object"==typeof e&&null!==e&&"resource_server"in e}var Ne,Me;class He{constructor(){Ne.set(this,{})}get(e){return void 0!==X(this,Ne,"f")[e]?X(this,Ne,"f")[e]:null}set(e,t){X(this,Ne,"f")[e]="string"!=typeof t?JSON.stringify(t):t}remove(e){delete X(this,Ne,"f")[e]}clear(){Q(this,Ne,{},"f")}}Ne=new WeakMap;class Fe{constructor(){Me.set(this,globalThis.localStorage)}get(e){return X(this,Me,"f").getItem(e)}set(e,t){X(this,Me,"f").setItem(e,"string"!=typeof t?JSON.stringify(t):t)}remove(e){X(this,Me,"f").removeItem(e)}clear(){X(this,Me,"f").clear()}}let qe;function ze(e="memory"){if(!qe){let t;t="localStorage"===e?Fe:"memory"===e?He:e,qe=new t}return qe}Me=new WeakMap;const Ge=ze;var We;class Ve{constructor(e){this.name=e,We.set(this,[])}addListener(e){return X(this,We,"f").push(e),()=>this.removeListener(e)}removeListener(e){Q(this,We,X(this,We,"f").filter((t=>t!==e)),"f")}clearListeners(){Q(this,We,[],"f")}dispatch(e){return K(this,void 0,void 0,(function*(){yield Promise.all(X(this,We,"f").map((t=>t(e))))}))}}We=new WeakMap;var Je,Ye,Ke,Xe,Qe,Ze,et,tt,rt,nt,ot,it,st=r(368),at=r.n(st);class ct{constructor(e){Je.set(this,void 0),Ye.set(this,{});const{params:t}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["params"]);Q(this,Je,new(at())(Object.assign({},r)),"f"),Q(this,Ye,Object.assign({},t),"f")}send(){window.location.replace(X(this,Je,"f").authorizeUrl(X(this,Ye,"f")))}getToken(){return K(this,void 0,void 0,(function*(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);if(!t.get("code"))return;const r=yield X(this,Je,"f").exchangeForAccessToken(e.toString());return t.delete("code"),t.delete("state"),e.search=t.toString(),sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier"),window.location.replace(e),r}))}}Je=new WeakMap,Ye=new WeakMap;class ut{constructor(e){Ke.add(this),Xe.set(this,void 0),Q(this,Xe,e.manager,"f")}get auth(){return X(this,Ke,"m",Qe).call(this,"AUTH")}get transfer(){return X(this,Ke,"m",Qe).call(this,"TRANSFER")}get flows(){return X(this,Ke,"m",Qe).call(this,"FLOWS")}get groups(){return X(this,Ke,"m",Qe).call(this,"GROUPS")}get search(){return X(this,Ke,"m",Qe).call(this,"SEARCH")}get timer(){return X(this,Ke,"m",Qe).call(this,"TIMER")}get compute(){return X(this,Ke,"m",Qe).call(this,"COMPUTE")}getAll(){return[this.auth,this.transfer,this.flows,this.groups,this.search,this.timer,this.compute].filter((e=>null!==e))}}Xe=new WeakMap,Ke=new WeakSet,Qe=function(e){var t;const r=null===(t=Ce.RESOURCE_SERVERS)||void 0===t?void 0:t[e],n=Ge().get(`${X(this,Xe,"f").configuration.client_id}:${r}`)||"null";return JSON.parse(n)};class pt{get authenticated(){return X(this,tt,"f")}set authenticated(e){Q(this,tt,e,"f"),X(this,Ze,"m",ot).call(this)}constructor(e){if(Ze.add(this),et.set(this,void 0),tt.set(this,!1),this.events={authenticated:new Ve("authenticated"),revoke:new Ve("revoke")},this.addTokenResponse=e=>{var t;Ge().set(`${this.configuration.client_id}:${e.resource_server}`,e),"other_tokens"in e&&(null===(t=e.other_tokens)||void 0===t||t.forEach(this.addTokenResponse)),X(this,Ze,"m",rt).call(this)},ze("localStorage"),!e.client_id)throw new Error("You must provide a `client_id` for your application.");const t=e.DISABLE_DEFAULT_SCOPES?"":"openid profile email offline_access";this.configuration=Object.assign(Object.assign({},e),{requested_scopes:`${e.requested_scopes} ${t}`}),this.tokens=new ut({manager:this}),this.startSilentRenew()}startSilentRenew(){Y("debug","AuthorizationManager.startSilentRenew"),X(this,Ze,"m",nt).call(this)}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=Ge().get(`${this.configuration.client_id}:auth.globus.org`);return e?JSON.parse(e):null}reset(){Ge().clear(),this.authenticated=!1}login(){this.reset(),X(this,Ze,"m",it).call(this).send()}handleCodeRedirect(){return K(this,void 0,void 0,(function*(){Y("debug","AuthorizationManager.handleCodeRedirect");const e=yield X(this,Ze,"m",it).call(this).getToken();Be(e)&&(Y("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(e)}`),this.addTokenResponse(e))}))}handleErrorResponse(e,t=!0){Y("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(e)} execute=${t}`);let r=()=>{};var n;return be(n=e)&&"authorization_parameters"in n&&"object"==typeof n.authorization_parameters&&null!==n.authorization_parameters&&(Y("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),r=()=>this.handleAuthorizationRequirementsError(e)),function(e){return be(e)&&"ConsentRequired"===e.code&&"required_scopes"in e&&Array.isArray(e.required_scopes)}(e)&&(Y("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),r=()=>this.handleConsentRequiredError(e)),"code"in e&&"AuthenticationFailed"===e.code&&(Y("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),r=()=>this.revoke()),!0===t?r():r}handleAuthorizationRequirementsError(e){Q(this,et,X(this,Ze,"m",it).call(this,{params:{session_message:e.authorization_parameters.session_message,session_required_identities:e.authorization_parameters.session_required_identities.join(","),session_required_mfa:e.authorization_parameters.session_required_mfa,session_required_single_domain:e.authorization_parameters.session_required_single_domain.join(","),prompt:"login"}}),"f"),X(this,et,"f").send()}handleConsentRequiredError(e){Q(this,et,X(this,Ze,"m",it).call(this,{requested_scopes:e.required_scopes.join(" ")}),"f"),X(this,et,"f").send()}revoke(){return K(this,void 0,void 0,(function*(){this.reset(),yield this.events.revoke.dispatch()}))}}function ht(e){const t=Ge().get(e),r=t?JSON.parse(t):null;return r&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(r)?`${r.token_type} ${r.access_token}`:null}et=new WeakMap,tt=new WeakMap,Ze=new WeakSet,rt=function(){Y("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},nt=function(){return K(this,void 0,void 0,(function*(){Y("debug","AuthorizationManager.bootstrapFromStorageState"),X(this,Ze,"m",rt).call(this)}))},ot=function(){return K(this,void 0,void 0,(function*(){var e;const t=this.authenticated,r=null!==(e=this.getGlobusAuthToken())&&void 0!==e?e:void 0;yield this.events.authenticated.dispatch({isAuthenticated:t,token:r})}))},it=function(e){return new ct(Object.assign(Object.assign({client_id:this.configuration.client_id,authorization_endpoint:$e(),token_endpoint:De(),redirect_uri:this.configuration.redirect_uri,requested_scopes:this.configuration.requested_scopes},e),{params:Object.assign({include_consented_scopes:!0},null==e?void 0:e.params)}))};const{getTokenForScope:dt}=l;function lt(e){return new pt(e)}const ft=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Pe({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_search"},r,t)};function gt(e){return e===Te.GET?{}:{"Content-Type":"application/json"}}const vt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},yt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},gt(Te.POST)),null==t?void 0:t.headers)};return Pe({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:Te.POST},n,r)},mt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},gt(Te.POST)),null==t?void 0:t.headers)};return Pe({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:Te.POST},n,r)},bt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},gt(Te.POST)),null==t?void 0:t.headers)};return Pe({service:Z,scope:ee.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:Te.POST},n,r)},_t=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},gt(Te.POST)),null==e?void 0:e.headers)};return Pe({service:Z,scope:ee.ALL,path:"/v0.10/delete",method:Te.POST},r,t)},wt=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},gt(Te.POST)),null==e?void 0:e.headers)};return Pe({service:Z,scope:ee.ALL,path:"/v0.10/transfer",method:Te.POST},r,t)},At=function(e,t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/submission_id"},e,t)},Ot=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}`},t,r)},St=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}`,method:Te.DELETE},t,r)},Tt=function(e={},t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/task_list"},e,t)},Et=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}`},t,r)},Lt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}`,method:Te.PUT},t,r)},Pt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/cancel`,method:Te.POST},t,r)},Rt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/remove`,method:Te.POST},t,r)},jt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},kt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},xt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},It=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Ut=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Ct=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access`,method:Te.POST},t,r)},$t=function({endpoint_xid:e,id:t},r,n){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},Dt=function({endpoint_xid:e,id:t},r,n){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Te.PUT},r,n)},Bt=function({endpoint_xid:e,id:t},r,n){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:Te.DELETE},r,n)},Nt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Mt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},Ht=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},Ft=function(e={},t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},qt=function(e,t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},zt=function(e,t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:Te.POST},e,t)},Gt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},Wt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Te.PUT},t,r)},Vt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:Te.DELETE},t,r)},Jt=function(e={},t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/task_list"},e,t)},Yt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},Kt=function(e,t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:Te.POST},e,t)},Xt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:Te.POST},t,r)},Qt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},Zt=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},er=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},tr=function(e,t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:Te.POST},e,t)},rr=function(e,t){return Pe({service:Z,scope:ee.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:Te.POST},e,t)},nr=function(e,t,r){return Pe({service:Z,scope:ee.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},or=t,ir=function(e,t,r){return Pe({service:pe,scope:de.SEARCH,path:`/v1/index/${e}/search`},t,r)},sr=function(e,t,r){return Pe({service:pe,scope:de.SEARCH,path:`/v1/index/${e}/search`,method:Te.POST},t,r)},ar=function(e,t,r){return Pe({service:pe,scope:de.SEARCH,path:`/v1/index/${e}/subject`},t,r)},cr=function(e,t,r){return Pe({service:pe,scope:de.SEARCH,path:`/v1/index/${e}/entry`},t,r)},ur=a,pr=function(e,t){return Pe({scope:ue.ALL,path:"/v2/groups/my_groups",service:ae},e,t)},hr=function(e,t,r){return Pe({service:ae,scope:ue.ALL,path:`/v2/groups/${e}`},t,r)},dr=function(e,t,r){return Pe({scope:ue.ALL,path:`/v2/groups/${e}/policies`,service:ae},t,r)},lr=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Pe({service:ae,scope:ue.ALL,path:`/v2/groups/${e}`,method:Te.POST},t,r)},fr=s,gr=function(e,t){return Pe({service:re,scope:oe.VIEW_FLOWS,path:"/flows"},e,t)},vr=function(e,t,r){return Pe({service:re,scope:oe.VIEW_FLOWS,path:`/flows/${e}`},t,r)},yr=function(e,t,r){return Pe({scope:oe.MANAGE_FLOWS,service:re,path:`/flows/${e}`,method:Te.DELETE},t,r)},mr=function(e={},t){return Pe({service:re,scope:oe.RUN_MANAGE,path:"/runs"},e,t)},br=o,_r=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/collections"},t,r)},wr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/collections/${t}`},r,n)},Ar=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/collections/${t}`,method:Te.DELETE},r,n)},Or=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/collections",method:Te.POST},t,r)},Sr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/collections/${t}`,method:Te.PUT},r,n)},Tr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/collections/${t}`,method:Te.PATCH},r,n)},Er=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/collections/${t}/owner_string`,method:Te.PUT},r,n)},Lr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/collections/${t}/owner_string`,method:Te.DELETE},r,n)},Pr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/endpoint"},t,r)},Rr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/endpoint",method:Te.PUT},t,r)},jr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/endpoint",method:Te.PATCH},t,r)},kr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/endpoint/subscription_id",method:Te.PUT},t,r)},xr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/roles"},t,r)},Ir=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/roles/${t}`},r,n)},Ur=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/roles/${t}`,method:Te.DELETE},r,n)},Cr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/roles",method:Te.POST},t,r)},$r=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/storage_gateways"},t,r)},Dr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/storage_gateways/${t}`},r,n)},Br=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/storage_gateways/${t}`,method:Te.DELETE},r,n)},Nr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/storage_gateways",method:Te.POST},t,r)},Mr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/storage_gateways/${t}`,method:Te.PUT},r,n)},Hr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/storage_gateways/${t}`,method:Te.PATCH},r,n)},Fr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/user_credentials"},t,r)},qr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/user_credentials/${t}`},r,n)},zr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/user_credentials/${t}`,method:Te.DELETE},r,n)},Gr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/user_credentials",method:Te.POST},t,r)},Wr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/user_credentials/${t}`,method:Te.PUT},r,n)},Vr=function(e,t,r,n){return Pe({service:e,scope:Kr(e),path:`/api/user_credentials/${t}`,method:Te.PATCH},r,n)},Jr=function(e,t,r){return Pe({service:e,scope:Kr(e),path:"/api/info"},t,r)},Yr={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function Kr(e){return Yr.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const Xr=function(e,t){return Pe({service:ie,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:Te.POST},e,t)},Qr=i})(),globus=n})();
var globus;(()=>{var e={945:(e,t,r)=>{var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,o=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,n="URLSearchParams"in r,o="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function p(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function h(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(v)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=g(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=p(e),t=h(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[p(e)]},l.prototype.get=function(e){return e=p(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(p(e))},l.prototype.set=function(e,t){this.map[p(e)]=h(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),d(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),d(e)},o&&(l.prototype[Symbol.iterator]=l.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function A(e,t){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},m.call(_.prototype),m.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},A.error=function(){var e=new A(null,{status:0,statusText:""});return e.type="error",e};var S=[301,302,303,307,308];A.redirect=function(e,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new A(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function T(e,n){return new Promise((function(o,s){var c=new _(e,n);if(c.signal&&c.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function p(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var n="response"in u?u.response:u.responseText;setTimeout((function(){o(new A(n,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},u.open(c.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(c.url),!0),"include"===c.credentials?u.withCredentials=!0:"omit"===c.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&c.headers.get("Content-Type")&&-1!==c.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof l?c.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(n.headers).forEach((function(e){u.setRequestHeader(e,h(n.headers[e]))})),c.signal&&(c.signal.addEventListener("abort",p),u.onreadystatechange=function(){4===u.readyState&&c.signal.removeEventListener("abort",p)}),u.send(void 0===c._bodyInit?null:c._bodyInit)}))}T.polyfill=!0,r.fetch||(r.fetch=T,r.Headers=l,r.Request=_,r.Response=A),t.Headers=l,t.Request=_,t.Response=A,t.fetch=T}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=n.fetch?n:o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},21:function(e,t,r){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(477)}catch(e){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},a=s.lib={},c=a.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=a.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||h).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,o=e.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var s=r[i>>>2]>>>24-i%4*8&255;t[n+i>>>2]|=s<<24-(n+i)%4*8}else for(var a=0;a<o;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new u.init(t,e)}}),p=s.enc={},h=p.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new u.init(r,t/2)}},d=p.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o++){var i=t[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new u.init(r,t)}},l=p.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,o=n.words,i=n.sigBytes,s=this.blockSize,a=i/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,p=e.min(4*c,i);if(c){for(var h=0;h<c;h+=s)this._doProcessBlock(o,h);r=o.splice(0,c),n.sigBytes-=p}return new u.init(r,p)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),g=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new g.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math),n)},754:function(e,t,r){var n,o,i;e.exports=(n=r(21),i=(o=n).lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var o=[],i=0;i<r;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;a<4&&i+.75*a<r;a++)o.push(n.charAt(s>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var s=r.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return function(e,t,r){for(var n=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2|r[e.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=a<<24-o%4*8,o++}return i.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)},440:function(e,t,r){var n;e.exports=(n=r(21),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var r=e.byteLength,n=[],o=0;o<r;o++)n[o>>>2]|=e[o]<<24-o%4*8;t.call(this,n,r)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)},9:function(e,t,r){var n;e.exports=(n=r(21),function(e){var t=n,r=t.lib,o=r.WordArray,i=r.Hasher,s=t.algo,a=[],c=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,o=0;o<64;)t(n)&&(o<8&&(a[o]=r(e.pow(n,.5))),c[o]=r(e.pow(n,1/3)),o++),n++}();var u=[],p=s.SHA256=i.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],s=r[3],a=r[4],p=r[5],h=r[6],d=r[7],l=0;l<64;l++){if(l<16)u[l]=0|e[t+l];else{var f=u[l-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,v=u[l-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[l]=g+u[l-7]+y+u[l-16]}var m=n&o^n&i^o&i,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=d+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&p^~a&h)+c[l]+u[l];d=h,h=p,p=a,a=s+_|0,s=i,i=o,o=n,n=_+(b+m)|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+p|0,r[6]=r[6]+h|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(p),t.HmacSHA256=i._createHmacHelper(p)}(Math),n.SHA256)},368:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(9)),s=o(r(754)),a=o(r(440)),c=function(){function e(e){this.state="",this.codeVerifier="",this.corsRequestOptions={},this.config=e}return e.prototype.enableCorsCredentials=function(e){return this.corsRequestOptions=e?{credentials:"include",mode:"cors"}:{},this.corsRequestOptions},e.prototype.authorizeUrl=function(e){void 0===e&&(e={});var t=this.pkceChallengeFromVerifier(),r=new URLSearchParams(Object.assign({response_type:"code",client_id:this.config.client_id,state:this.getState(e.state||null),scope:this.config.requested_scopes,redirect_uri:this.config.redirect_uri,code_challenge:t,code_challenge_method:"S256"},e)).toString();return"".concat(this.config.authorization_endpoint,"?").concat(r)},e.prototype.exchangeForAccessToken=function(e,t){var r=this;return void 0===t&&(t={}),this.parseAuthResponseUrl(e).then((function(e){return fetch(r.config.token_endpoint,n({method:"POST",body:new URLSearchParams(Object.assign({grant_type:"authorization_code",code:e.code,client_id:r.config.client_id,redirect_uri:r.config.redirect_uri,code_verifier:r.getCodeVerifier()},t)),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}},r.corsRequestOptions)).then((function(e){return e.json()}))}))},e.prototype.refreshAccessToken=function(e){return fetch(this.config.token_endpoint,{method:"POST",body:new URLSearchParams({grant_type:"refresh_token",client_id:this.config.client_id,refresh_token:e}),headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}}).then((function(e){return e.json()}))},e.prototype.getCodeVerifier=function(){return""===this.codeVerifier&&(this.codeVerifier=this.randomStringFromStorage("pkce_code_verifier")),this.codeVerifier},e.prototype.getState=function(e){void 0===e&&(e=null);var t="pkce_state";return null!==e&&this.getStore().setItem(t,e),""===this.state&&(this.state=this.randomStringFromStorage(t)),this.state},e.prototype.parseAuthResponseUrl=function(e){var t=new URL(e).searchParams;return this.validateAuthResponse({error:t.get("error"),query:t.get("query"),state:t.get("state"),code:t.get("code")})},e.prototype.pkceChallengeFromVerifier=function(){var e=(0,i.default)(this.getCodeVerifier());return s.default.stringify(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},e.prototype.randomStringFromStorage=function(e){return null===this.getStore().getItem(e)&&this.getStore().setItem(e,a.default.random(64)),this.getStore().getItem(e)||""},e.prototype.validateAuthResponse=function(e){var t=this;return new Promise((function(r,n){return e.error?n({error:e.error}):e.state!==t.getState()?n({error:"Invalid State"}):r(e)}))},e.prototype.getStore=function(){var e;return(null===(e=this.config)||void 0===e?void 0:e.storage)||sessionStorage},e}();t.default=c},477:()=>{}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{auth:()=>l,authorization:()=>g,compute:()=>W,flows:()=>C,gcs:()=>q,groups:()=>I,logger:()=>e,search:()=>k,timer:()=>z,transfer:()=>O});var e={};r.r(e),r.d(e,{log:()=>Q,setLogLevel:()=>X,setLogger:()=>K});var t={};r.r(t),r.d(t,{HOSTS:()=>oe,ID:()=>re,SCOPES:()=>ne});var o={};r.r(o),r.d(o,{HOSTS:()=>se,ID:()=>ie,SCOPES:()=>ae});var i={};r.r(i),r.d(i,{HOSTS:()=>ue,ID:()=>ce});var s={};r.r(s),r.d(s,{HOSTS:()=>he,ID:()=>pe,SCOPES:()=>de});var a={};r.r(a),r.d(a,{HOSTS:()=>fe,ID:()=>le,SCOPES:()=>ge});var c={};r.r(c),r.d(c,{HOSTS:()=>ye,ID:()=>ve,SCOPES:()=>me});var u={};r.r(u),r.d(u,{HOSTS:()=>_e,ID:()=>be,RESOURCE_SERVERS:()=>Ae,SCOPES:()=>we});var p={};r.r(p),r.d(p,{get:()=>$e,getAll:()=>Ce});var h={};r.r(h),r.d(h,{introspect:()=>Be,refresh:()=>Ne,revoke:()=>Me,validate:()=>He});var d={};r.r(d),r.d(d,{token:()=>h});var l={};r.r(l),r.d(l,{CONFIG:()=>Fe,getAuthorizationEndpoint:()=>qe,getTokenEndpoint:()=>ze,identities:()=>p,isGlobusAuthTokenResponse:()=>Ve,isRefreshToken:()=>We,isToken:()=>Ge,oauth2:()=>d});var f={};r.r(f),r.d(f,{getTokenForScope:()=>St});var g={};r.r(g),r.d(g,{create:()=>Ot,getTokenForScope:()=>Tt,tokens:()=>f});var v={};r.r(v),r.d(v,{ls:()=>Pt,mkdir:()=>kt,rename:()=>Rt,symlink:()=>jt});var y={};r.r(y),r.d(y,{submissionId:()=>Ut,submitDelete:()=>xt,submitTransfer:()=>It});var m={};r.r(m),r.d(m,{get:()=>$t,remove:()=>Ct});var b={};r.r(b),r.d(b,{cancel:()=>Nt,get:()=>Bt,getAll:()=>Dt,getEventList:()=>Ft,getPauseInfo:()=>Gt,getSkippedErrors:()=>zt,getSuccessfulTransfers:()=>qt,remove:()=>Ht,update:()=>Mt});var _={};r.r(_),r.d(_,{create:()=>Vt,get:()=>Jt,getAll:()=>Wt,remove:()=>Kt,update:()=>Yt});var w={};r.r(w),r.d(w,{get:()=>Xt,getAccessList:()=>Zt,getHostedEndpoints:()=>Qt,getMonitoredEndpoints:()=>er});var A={};r.r(A),r.d(A,{create:()=>rr,get:()=>nr,getAll:()=>tr,remove:()=>ir,update:()=>or});var S={};r.r(S),r.d(S,{cancel:()=>cr,get:()=>ar,getAdminCancel:()=>ur,getAll:()=>sr,getEventList:()=>pr,getPauseInfo:()=>gr,getSkippedErrors:()=>dr,getSuccessfulTransfers:()=>hr,pause:()=>lr,resume:()=>fr});var T={};r.r(T),r.d(T,{endpoint:()=>w,pauseRule:()=>A,task:()=>S});var O={};r.r(O),r.d(O,{CONFIG:()=>vr,access:()=>_,endpoint:()=>m,endpointManager:()=>T,endpointSearch:()=>Et,fileOperations:()=>v,task:()=>b,taskSubmission:()=>y});var E={};r.r(E),r.d(E,{get:()=>yr,post:()=>mr});var L={};r.r(L),r.d(L,{get:()=>br});var P={};r.r(P),r.d(P,{get:()=>_r});var k={};r.r(k),r.d(k,{CONFIG:()=>wr,entry:()=>P,query:()=>E,subject:()=>L});var R={};r.r(R),r.d(R,{get:()=>Sr,getMyGroups:()=>Ar});var j={};r.r(j),r.d(j,{get:()=>Tr});var x={};r.r(x),r.d(x,{act:()=>Or});var I={};r.r(I),r.d(I,{CONFIG:()=>Er,groups:()=>R,membership:()=>x,policies:()=>j});var U={};r.r(U),r.d(U,{get:()=>Pr,getAll:()=>Lr,remove:()=>kr});var $={};r.r($),r.d($,{getAll:()=>Rr});var C={};r.r(C),r.d(C,{CONFIG:()=>jr,flows:()=>U,runs:()=>$});var D={};r.r(D),r.d(D,{create:()=>$r,get:()=>Ir,getAll:()=>xr,patch:()=>Dr,remove:()=>Ur,resetOwnerString:()=>Mr,update:()=>Cr,updateOwnerString:()=>Br});var B={};r.r(B),r.d(B,{get:()=>Nr,patch:()=>Fr,update:()=>Hr,updateSubscriptionId:()=>qr});var M={};r.r(M),r.d(M,{create:()=>Vr,get:()=>Gr,getAll:()=>zr,remove:()=>Wr});var N={};r.r(N),r.d(N,{create:()=>Xr,get:()=>Yr,getAll:()=>Jr,patch:()=>Zr,remove:()=>Kr,update:()=>Qr});var H={};r.r(H),r.d(H,{create:()=>nn,get:()=>tn,getAll:()=>en,patch:()=>sn,remove:()=>rn,update:()=>on});var F={};r.r(F),r.d(F,{info:()=>an});var q={};r.r(q),r.d(q,{collections:()=>D,endpoint:()=>B,getRequiredScopes:()=>un,roles:()=>M,storageGateways:()=>N,userCredentials:()=>H,versioning:()=>F});var z={};r.r(z),r.d(z,{CONFIG:()=>hn,create:()=>pn});var G={};r.r(G),r.d(G,{get:()=>ln,getAll:()=>dn,getStatus:()=>fn});var W={};r.r(W),r.d(W,{CONFIG:()=>gn,endpoints:()=>G});const V=["debug","info","warn","error"];let J,Y=V.indexOf("error");function K(e){J=e}function X(e){Y=V.indexOf(e)}function Q(e,...t){var r;J&&(V.indexOf(e)<Y||(null!==(r=J[e])&&void 0!==r?r:J.log)(...t))}function Z(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))}function ee(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function te(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;const re="TRANSFER",ne={ALL:"urn:globus:auth:scope:transfer.api.globus.org:all"},oe={sandbox:"transfer.api.sandbox.globuscs.info",production:"transfer.api.globusonline.org",staging:"transfer.api.staging.globuscs.info",integration:"transfer.api.integration.globuscs.info",test:"transfer.api.test.globuscs.info",preview:"transfer.api.preview.globus.org"},ie="FLOWS",se={sandbox:"sandbox.flows.automate.globus.org",production:"flows.globus.org",staging:"staging.flows.automate.globus.org",integration:"integration.flows.automate.globus.org",test:"test.flows.automate.globus.org",preview:"preview.flows.automate.globus.org"},ae={MANAGE_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows",VIEW_FLOWS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows",RUN:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run",RUN_STATUS:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status",RUN_MANAGE:"https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage"},ce="TIMER",ue={sandbox:"sandbox.timer.automate.globus.org",production:"timer.automate.globus.org",staging:"staging.timer.automate.globus.org",integration:"integration.timer.automate.globus.org",test:"test.timer.automate.globus.org",preview:"preview.timer.automate.globus.org"},pe="GROUPS",he={sandbox:"groups.api.sandbox.globuscs.info",production:"groups.api.globus.org",staging:"groups.api.staging.globuscs.info",integration:"groups.api.integration.globuscs.info",test:"groups.api.test.globuscs.info",preview:"groups.api.preview.globuscs.info"},de={ALL:"urn:globus:auth:scope:groups.api.globus.org:all",VIEW_MY:"urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership"},le="SEARCH",fe={sandbox:"search.api.sandbox.globuscs.info",production:"search.api.globus.org",staging:"search.api.staging.globuscs.info",integration:"search.api.integration.globuscs.info",test:"search.api.test.globuscs.info",preview:"search.api.preview.globus.org"},ge={ALL:"urn:globus:auth:scope:search.api.globus.org:all",INGEST:"urn:globus:auth:scope:search.api.globus.org:ingest",SEARCH:"urn:globus:auth:scope:search.api.globus.org:search"},ve="COMPUTE",ye={sandbox:"compute.api.sandbox.globuscs.info",production:"compute.api.globus.org",staging:"compute.api.staging.globuscs.info",integration:"compute.api.integration.globuscs.info",test:"compute.api.test.globuscs.info",preview:"compute.api.preview.globus.org"},me={ALL:"https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all"},be="AUTH",_e={integration:"auth.integration.globuscs.info",sandbox:"auth.sandbox.globuscs.info",production:"auth.globus.org",test:"auth.test.globuscs.info",staging:"auth.staging.globuscs.info",preview:"auth.preview.globus.org"},we={VIEW_IDENTITIES:"urn:globus:auth:scope:auth.globus.org:view_identities"},Ae={[be]:"auth.globus.org",[re]:"transfer.api.globus.org",[ie]:"flows.api.globus.org",[pe]:"groups.api.globus.org",[le]:"search.api.globus.org",[ce]:"524230d7-ea86-4a52-8312-86065a9e0417",[ve]:"funcx_service"};class Se extends Error{constructor(e,t){super(),this.name="EnvironmentConfigurationError",this.message=`Invalid configuration value provided for ${e} (${t}).`}}function Te(e){return"object"==typeof e&&null!==e&&"code"in e&&"message"in e}function Oe(e,t){const r="undefined"!=typeof window?window:process;let n;return n=function(e){return typeof window==typeof e}(r)?r:r.env,e in n?n[e]:t}const Ee={PRODUCTION:"production",PREVIEW:"preview",STAGING:"staging",SANDBOX:"sandbox",INTEGRATION:"integration",TEST:"test"};function Le(){const e=Oe("GLOBUS_SDK_ENVIRONMENT",Ee.PRODUCTION);if(!e||!Object.values(Ee).includes(e))throw new Se("GLOBUS_SDK_ENVIRONMENT",e);return e}const Pe={[be]:be,[re]:re,[ie]:ie,[pe]:pe,[le]:le,[ce]:ce,[ve]:ve},ke={[be]:_e,[re]:oe,[ie]:se,[pe]:he,[le]:fe,[ce]:ue,[ve]:ye};function Re(e,t,r,n){let o;return o="object"==typeof e?new URL(t,e.host):function(e,t="",r=Le()){const n=function(e,t=Le()){const r=function(e,t=Le()){return ke[e][t]}(e,t);return Oe(`GLOBUS_SDK_SERVICE_URL_${e}`,r?`https://${r}`:void 0)}(e,r);return new URL(t,n)}(e,t,null==n?void 0:n.environment),r&&r.search&&(o.search=function(e){const t=new URLSearchParams;return Array.from(Object.entries(e)).forEach((([e,r])=>{Array.isArray(r)?t.set(e,r.join(",")):void 0!==r&&t.set(e,String(r))})),t.toString()}(r.search)),o.toString()}var je,xe=r(945),Ie=r.n(xe);function Ue(e,t,r){var n;const o=function(e){var t,r,n,o,i,s;let a=Oe("GLOBUS_SDK_OPTIONS",{});return"string"==typeof a&&(a=JSON.parse(a)),Object.assign(Object.assign(Object.assign({},a),e),{fetch:Object.assign(Object.assign(Object.assign({},null==a?void 0:a.fetch),null==e?void 0:e.fetch),{options:Object.assign(Object.assign(Object.assign({},null===(t=null==a?void 0:a.fetch)||void 0===t?void 0:t.options),null===(r=null==e?void 0:e.fetch)||void 0===r?void 0:r.options),{headers:Object.assign(Object.assign({},null===(o=null===(n=null==a?void 0:a.fetch)||void 0===n?void 0:n.options)||void 0===o?void 0:o.headers),null===(s=null===(i=null==e?void 0:e.fetch)||void 0===i?void 0:i.options)||void 0===s?void 0:s.headers)})})})}(r),i=(null===(n=null==o?void 0:o.fetch)||void 0===n?void 0:n.options)||{},s=Object.assign(Object.assign({},null==t?void 0:t.headers),i.headers);if(e.scope&&!(null==s?void 0:s.Authorization)){const t=Tt(e.scope);t&&(s.Authorization=t)}let a=null==t?void 0:t.body;!a&&(null==t?void 0:t.payload)&&(a=JSON.stringify(t.payload)),!(null==s?void 0:s["Content-Type"])&&a&&(s["Content-Type"]="application/json");const c=Re(e.service,e.path,{search:null==t?void 0:t.query},o),u=Object.assign(Object.assign({method:e.method,body:a},i),{headers:s});return(null==i?void 0:i.__callable)?(delete u.__callable,i.__callable.call(this,c,u)):Ie()(c,u)}!function(e){e.POST="POST",e.GET="GET",e.DELETE="DELETE",e.PUT="PUT",e.PATCH="PATCH"}(je||(je={}));const $e=function(e,t={},r){return Ue({service:be,scope:we.VIEW_IDENTITIES,path:`/identities/${e}`},t,r)},Ce=function(e={},t){return Ue({service:be,scope:we.VIEW_IDENTITIES,path:"/identities"},e,t)};function De(e){return Object.assign(Object.assign({},e),{body:(t=e.payload,new URLSearchParams(t)),headers:Object.assign(Object.assign({},(null==e?void 0:e.headers)||{}),{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"})});var t}const Be=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for introspect");return Ue({service:be,scope:void 0,path:"/v2/oauth2/token/introspect",method:je.POST},De(e),t)},Me=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ue({service:be,scope:void 0,path:"/v2/oauth2/token/revoke",method:je.POST},De(e),t)},Ne=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for revoke");return Ue({service:be,scope:void 0,path:"/v2/oauth2/token",method:je.POST},De(e),t)},He=function(e,t){if(!(null==e?void 0:e.payload))throw new Error("'payload' is required for validate");return Ue({service:be,scope:void 0,path:"/v2/oauth2/token/validate",method:je.POST},De(e),t)},Fe=u;function qe(){return Re(be,"/v2/oauth2/authorize")}function ze(){return Re(be,"/v2/oauth2/token")}function Ge(e){return"object"==typeof e&&null!==e&&"access_token"in e}function We(e){return Ge(e)&&null!==e&&"refresh_token"in e}function Ve(e){return Ge(e)&&null!==e&&"resource_server"in e}var Je,Ye;class Ke{constructor(){Je.set(this,{})}get(e){return void 0!==ee(this,Je,"f")[e]?ee(this,Je,"f")[e]:null}set(e,t){ee(this,Je,"f")[e]="string"!=typeof t?JSON.stringify(t):t}remove(e){delete ee(this,Je,"f")[e]}clear(){te(this,Je,{},"f")}}Je=new WeakMap;class Xe{constructor(){Ye.set(this,globalThis.localStorage)}get(e){return ee(this,Ye,"f").getItem(e)}set(e,t){ee(this,Ye,"f").setItem(e,"string"!=typeof t?JSON.stringify(t):t)}remove(e){ee(this,Ye,"f").removeItem(e)}clear(){ee(this,Ye,"f").clear()}}let Qe;function Ze(e="memory"){if(!Qe){let t;t="localStorage"===e?Xe:"memory"===e?Ke:e,Qe=new t}return Qe}Ye=new WeakMap;const et=Ze;var tt;class rt{constructor(e){this.name=e,tt.set(this,[])}addListener(e){return ee(this,tt,"f").push(e),()=>this.removeListener(e)}removeListener(e){te(this,tt,ee(this,tt,"f").filter((t=>t!==e)),"f")}clearListeners(){te(this,tt,[],"f")}dispatch(e){return Z(this,void 0,void 0,(function*(){yield Promise.all(ee(this,tt,"f").map((t=>t(e))))}))}}tt=new WeakMap;var nt,ot,it,st,at,ct,ut,pt,ht,dt,lt,ft,gt,vt,yt,mt=r(368),bt=r.n(mt);class _t{constructor(e){nt.set(this,void 0),ot.set(this,{});const{params:t}=e,r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["params"]);te(this,nt,new(bt())(Object.assign({},r)),"f"),te(this,ot,Object.assign({},t),"f")}send(){window.location.replace(ee(this,nt,"f").authorizeUrl(ee(this,ot,"f")))}getToken(){return Z(this,void 0,void 0,(function*(){const e=new URL(window.location.href),t=new URLSearchParams(e.search);if(!t.get("code"))return;const r=yield ee(this,nt,"f").exchangeForAccessToken(e.toString());return t.delete("code"),t.delete("state"),e.search=t.toString(),sessionStorage.removeItem("pkce_state"),sessionStorage.removeItem("pkce_code_verifier"),window.location.replace(e),r}))}}nt=new WeakMap,ot=new WeakMap;class wt{constructor(e){it.add(this),st.set(this,void 0),te(this,st,e.manager,"f")}get auth(){return ee(this,it,"m",at).call(this,Pe.AUTH)}get transfer(){return ee(this,it,"m",at).call(this,Pe.TRANSFER)}get flows(){return ee(this,it,"m",at).call(this,Pe.FLOWS)}get groups(){return ee(this,it,"m",at).call(this,Pe.GROUPS)}get search(){return ee(this,it,"m",at).call(this,Pe.SEARCH)}get timer(){return ee(this,it,"m",at).call(this,Pe.TIMER)}get compute(){return ee(this,it,"m",at).call(this,Pe.COMPUTE)}getAll(){return[this.auth,this.transfer,this.flows,this.groups,this.search,this.timer,this.compute].filter(Ge)}}st=new WeakMap,it=new WeakSet,at=function(e){var t;const r=null===(t=Fe.RESOURCE_SERVERS)||void 0===t?void 0:t[e],n=et().get(`${ee(this,st,"f").configuration.client}:${r}`)||"null";let o=null;try{const e=JSON.parse(n);Ge(e)&&(o=e)}catch(e){}return o};class At{get authenticated(){return ee(this,pt,"f")}set authenticated(e){te(this,pt,e,"f"),ee(this,ct,"m",ft).call(this)}constructor(e){var t;if(ct.add(this),ut.set(this,void 0),pt.set(this,!1),this.events={authenticated:new rt("authenticated"),revoke:new rt("revoke")},this.addTokenResponse=e=>{var t;et().set(`${this.configuration.client}:${e.resource_server}`,e),"other_tokens"in e&&(null===(t=e.other_tokens)||void 0===t||t.forEach(this.addTokenResponse)),ee(this,ct,"m",dt).call(this)},Ze("localStorage"),!e.client)throw new Error("You must provide a `client` for your application.");const r=!1===e.defaultScopes?"":null!==(t=e.defaultScopes)&&void 0!==t?t:"openid profile email";this.configuration=Object.assign(Object.assign({},e),{scopes:`${e.scopes}${r?` ${r}`:""}`}),this.tokens=new wt({manager:this}),ee(this,ct,"m",lt).call(this),this.startSilentRenew()}startSilentRenew(){Q("debug","AuthorizationManager.startSilentRenew"),this.configuration.useRefreshTokens&&ee(this,ct,"m",ht).call(this)}refreshToken(e){return Z(this,void 0,void 0,(function*(){Q("debug",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`);try{const t=yield(yield Ne({payload:{client_id:this.configuration.client,refresh_token:e.refresh_token,grant_type:"refresh_token"}})).json();Ve(t)&&this.addTokenResponse(t)}catch(t){Q("error",`AuthorizationManager.refreshToken | resource_server=${e.resource_server}`)}}))}hasGlobusAuthToken(){return null!==this.getGlobusAuthToken()}getGlobusAuthToken(){const e=et().get(`${this.configuration.client}:auth.globus.org`);return e?JSON.parse(e):null}reset(){et().clear(),this.authenticated=!1}login(){Q("debug","AuthorizationManager.login"),this.reset(),ee(this,ct,"m",vt).call(this).send()}handleCodeRedirect(){return Z(this,void 0,void 0,(function*(){Q("debug","AuthorizationManager.handleCodeRedirect");const e=yield ee(this,ct,"m",vt).call(this).getToken();Ve(e)&&(Q("debug",`AuthorizationManager.handleCodeRedirect | response=${JSON.stringify(e)}`),this.addTokenResponse(e))}))}handleErrorResponse(e,t=!0){Q("debug",`AuthorizationManager.handleErrorResponse | response=${JSON.stringify(e)} execute=${t}`);let r=()=>{};var n;return Te(n=e)&&"authorization_parameters"in n&&"object"==typeof n.authorization_parameters&&null!==n.authorization_parameters&&(Q("debug","AuthorizationManager.handleErrorResponse | error=AuthorizationRequirementsError"),r=()=>this.handleAuthorizationRequirementsError(e)),function(e){return Te(e)&&"ConsentRequired"===e.code&&"required_scopes"in e&&Array.isArray(e.required_scopes)}(e)&&(Q("debug","AuthorizationManager.handleErrorResponse | error=ConsentRequiredError"),r=()=>this.handleConsentRequiredError(e)),"code"in e&&"AuthenticationFailed"===e.code&&(Q("debug","AuthorizationManager.handleErrorResponse | error=AuthenticationFailed"),r=()=>this.revoke()),!0===t?r():r}handleAuthorizationRequirementsError(e){te(this,ut,ee(this,ct,"m",vt).call(this,{params:{session_message:e.authorization_parameters.session_message,session_required_identities:e.authorization_parameters.session_required_identities.join(","),session_required_mfa:e.authorization_parameters.session_required_mfa,session_required_single_domain:e.authorization_parameters.session_required_single_domain.join(","),prompt:"login"}}),"f"),ee(this,ut,"f").send()}handleConsentRequiredError(e){te(this,ut,ee(this,ct,"m",vt).call(this,{requested_scopes:ee(this,ct,"m",gt).call(this,e.required_scopes.join(" "))}),"f"),ee(this,ut,"f").send()}revoke(){return Z(this,void 0,void 0,(function*(){Q("debug","AuthorizationManager.revoke");const e=Promise.all(this.tokens.getAll().map((e=>ee(this,ct,"m",yt).call(this,e))));this.reset(),yield e,yield this.events.revoke.dispatch()}))}}function St(e){const t=et().get(e),r=t?JSON.parse(t):null;return r&&function(e){const t=e;return Boolean(t.token_type&&t.access_token)}(r)?`${r.token_type} ${r.access_token}`:null}ut=new WeakMap,pt=new WeakMap,ct=new WeakSet,ht=function(){Q("debug","AuthorizationManager.#silentRenewRefreshTokens"),this.tokens.getAll().forEach((e=>{We(e)&&this.refreshToken(e)}))},dt=function(){Q("debug","AuthorizationManager.#checkAuthorizationState"),this.hasGlobusAuthToken()&&(this.authenticated=!0)},lt=function(){return Z(this,void 0,void 0,(function*(){Q("debug","AuthorizationManager.bootstrapFromStorageState"),ee(this,ct,"m",dt).call(this)}))},ft=function(){return Z(this,void 0,void 0,(function*(){var e;const t=this.authenticated,r=null!==(e=this.getGlobusAuthToken())&&void 0!==e?e:void 0;yield this.events.authenticated.dispatch({isAuthenticated:t,token:r})}))},gt=function(e){return`${e}${this.configuration.useRefreshTokens?" offline_access":""}`},vt=function(e){var t;const r=ee(this,ct,"m",gt).call(this,null!==(t=null==e?void 0:e.requested_scopes)&&void 0!==t?t:this.configuration.scopes);return new _t(Object.assign({client_id:this.configuration.client,authorization_endpoint:qe(),token_endpoint:ze(),redirect_uri:this.configuration.redirect,requested_scopes:r},e))},yt=function(e){return Q("debug",`AuthorizationManager.revokeToken | resource_server=${e.resource_server}`),Me({payload:{client_id:this.configuration.client,token:e.access_token}})};const{getTokenForScope:Tt}=f;function Ot(e){return new At(e)}const Et=function(e,t){const r=Object.assign(Object.assign({},e),{query:null==e?void 0:e.query});return Ue({service:re,scope:ne.ALL,path:"/v0.10/endpoint_search"},r,t)};function Lt(e){return e===je.GET?{}:{"Content-Type":"application/json"}}const Pt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/ls`},t,r)},kt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"mkdir"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Lt(je.POST)),null==t?void 0:t.headers)};return Ue({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/mkdir`,method:je.POST},n,r)},Rt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"rename"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Lt(je.POST)),null==t?void 0:t.headers)};return Ue({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/rename`,method:je.POST},n,r)},jt=function(e,t,r){const n={payload:Object.assign({DATA_TYPE:"symlink"},null==t?void 0:t.payload),headers:Object.assign(Object.assign({},Lt(je.POST)),null==t?void 0:t.headers)};return Ue({service:re,scope:ne.ALL,path:`/v0.10/operation/endpoint/${e}/symlink`,method:je.POST},n,r)},xt=function(e,t){const r={payload:Object.assign({DATA_TYPE:"delete"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Lt(je.POST)),null==e?void 0:e.headers)};return Ue({service:re,scope:ne.ALL,path:"/v0.10/delete",method:je.POST},r,t)},It=function(e,t){const r={payload:Object.assign({DATA_TYPE:"transfer"},null==e?void 0:e.payload),headers:Object.assign(Object.assign({},Lt(je.POST)),null==e?void 0:e.headers)};return Ue({service:re,scope:ne.ALL,path:"/v0.10/transfer",method:je.POST},r,t)},Ut=function(e,t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/submission_id"},e,t)},$t=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}`},t,r)},Ct=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}`,method:je.DELETE},t,r)},Dt=function(e={},t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/task_list"},e,t)},Bt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}`},t,r)},Mt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}`,method:je.PUT},t,r)},Nt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/cancel`,method:je.POST},t,r)},Ht=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/remove`,method:je.POST},t,r)},Ft=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/event_list`},t,r)},qt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/successful_transfers`},t,r)},zt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/skipped_errors`},t,r)},Gt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/task/${e}/pause_info`},t,r)},Wt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access_list`},t,r)},Vt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access`,method:je.POST},t,r)},Jt=function({endpoint_xid:e,id:t},r,n){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access/${t}`},r,n)},Yt=function({endpoint_xid:e,id:t},r,n){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:je.PUT},r,n)},Kt=function({endpoint_xid:e,id:t},r,n){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint/${e}/access/${t}`,method:je.DELETE},r,n)},Xt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}`},t,r)},Qt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/hosted_endpoint_list`},t,r)},Zt=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/endpoint/${e}/access_list`},t,r)},er=function(e={},t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/monitored_endpoints"},e,t)},tr=function(e,t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/pause_rule_list"},e,t)},rr=function(e,t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/pause_rule",method:je.POST},e,t)},nr=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`},t,r)},or=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:je.PUT},t,r)},ir=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/pause_rule/${e}`,method:je.DELETE},t,r)},sr=function(e={},t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/task_list"},e,t)},ar=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}`},t,r)},cr=function(e,t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/admin_cancel",method:je.POST},e,t)},ur=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/admin_cancel/${e}`,method:je.POST},t,r)},pr=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/event_list`},t,r)},hr=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/successful_transfers`},t,r)},dr=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/skipped_errors`},t,r)},lr=function(e,t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/admin_pause",method:je.POST},e,t)},fr=function(e,t){return Ue({service:re,scope:ne.ALL,path:"/v0.10/endpoint_manager/admin_resume",method:je.POST},e,t)},gr=function(e,t,r){return Ue({service:re,scope:ne.ALL,path:`/v0.10/endpoint_manager/task/${e}/pause_info`},t,r)},vr=t,yr=function(e,t,r){return Ue({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/search`},t,r)},mr=function(e,t,r){return Ue({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/search`,method:je.POST},t,r)},br=function(e,t,r){return Ue({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/subject`},t,r)},_r=function(e,t,r){return Ue({service:le,scope:ge.SEARCH,path:`/v1/index/${e}/entry`},t,r)},wr=a,Ar=function(e,t){return Ue({scope:de.ALL,path:"/v2/groups/my_groups",service:pe},e,t)},Sr=function(e,t,r){return Ue({service:pe,scope:de.ALL,path:`/v2/groups/${e}`},t,r)},Tr=function(e,t,r){return Ue({scope:de.ALL,path:`/v2/groups/${e}/policies`,service:pe},t,r)},Or=function(e,t,r){if(!(null==t?void 0:t.payload))throw new Error("payload is required.");return Ue({service:pe,scope:de.ALL,path:`/v2/groups/${e}`,method:je.POST},t,r)},Er=s,Lr=function(e,t){return Ue({service:ie,scope:ae.VIEW_FLOWS,path:"/flows"},e,t)},Pr=function(e,t,r){return Ue({service:ie,scope:ae.VIEW_FLOWS,path:`/flows/${e}`},t,r)},kr=function(e,t,r){return Ue({scope:ae.MANAGE_FLOWS,service:ie,path:`/flows/${e}`,method:je.DELETE},t,r)},Rr=function(e={},t){return Ue({service:ie,scope:ae.RUN_MANAGE,path:"/runs"},e,t)},jr=o,xr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/collections"},t,r)},Ir=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/collections/${t}`},r,n)},Ur=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/collections/${t}`,method:je.DELETE},r,n)},$r=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/collections",method:je.POST},t,r)},Cr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/collections/${t}`,method:je.PUT},r,n)},Dr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/collections/${t}`,method:je.PATCH},r,n)},Br=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/collections/${t}/owner_string`,method:je.PUT},r,n)},Mr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/collections/${t}/owner_string`,method:je.DELETE},r,n)},Nr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/endpoint"},t,r)},Hr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/endpoint",method:je.PUT},t,r)},Fr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/endpoint",method:je.PATCH},t,r)},qr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/endpoint/subscription_id",method:je.PUT},t,r)},zr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/roles"},t,r)},Gr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/roles/${t}`},r,n)},Wr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/roles/${t}`,method:je.DELETE},r,n)},Vr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/roles",method:je.POST},t,r)},Jr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/storage_gateways"},t,r)},Yr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/storage_gateways/${t}`},r,n)},Kr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/storage_gateways/${t}`,method:je.DELETE},r,n)},Xr=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/storage_gateways",method:je.POST},t,r)},Qr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/storage_gateways/${t}`,method:je.PUT},r,n)},Zr=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/storage_gateways/${t}`,method:je.PATCH},r,n)},en=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/user_credentials"},t,r)},tn=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/user_credentials/${t}`},r,n)},rn=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/user_credentials/${t}`,method:je.DELETE},r,n)},nn=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/user_credentials",method:je.POST},t,r)},on=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/user_credentials/${t}`,method:je.PUT},r,n)},sn=function(e,t,r,n){return Ue({service:e,scope:un(e),path:`/api/user_credentials/${t}`,method:je.PATCH},r,n)},an=function(e,t,r){return Ue({service:e,scope:un(e),path:"/api/info"},t,r)},cn={HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections",NON_HIGH_ASSURANCE:"urn:globus:auth:scope:<ENDPOINT_ID>:manage_collections[*https://auth.globus.org/scopes/<MAPPED_COLLECTION_ID>/data_access]"};function un(e){return cn.HIGH_ASSURANCE.replace("<ENDPOINT_ID>",e.endpoint_id)}const pn=function(e,t){return Ue({service:ce,scope:"https://auth.globus.org/scopes/524230d7-ea86-4a52-8312-86065a9e0417/timer",path:"/v2/timer",method:je.POST},e,t)},hn=i,dn=function(e,t){return Ue({service:ve,scope:me.ALL,path:"/v2/endpoints",method:je.GET},e,t)},ln=function(e,t,r){return Ue({service:ve,scope:me.ALL,path:`/v2/endpoints/${e}`,method:je.GET},t,r)},fn=function(e,t,r){return Ue({service:ve,scope:me.ALL,path:`/v2/endpoints/${e}/status`},t,r)},gn=c})(),globus=n})();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc