From 3f6350f9e17685953124378bd5ff021dd8f35345 Mon Sep 17 00:00:00 2001 From: Paul Lan Date: Fri, 3 May 2024 11:15:55 -0500 Subject: [PATCH 1/7] plan-OIC-54878: Copyright to 2024 --- README.md | 2 +- package.json | 2 +- schemas/actions_v01.json | 2 +- schemas/categories_v01.json | 2 +- schemas/commons_v01.json | 2 +- schemas/connection_v01.json | 2 +- schemas/flows_v01.json | 2 +- schemas/info_v01.json | 2 +- schemas/mainADD_v01.json | 2 +- schemas/schemas_v01.json | 2 +- schemas/triggers_v01.json | 2 +- snippets/add.json | 2 +- src/api.ts | 2 +- src/commands/add-locate.ts | 2 +- src/commands/convert-openapi-document.ts | 2 +- src/commands/convert-postman-collection.ts | 2 +- src/commands/download-rab-bundle.ts | 5 ++--- src/commands/explorer-outline-actions-new.ts | 7 ++----- src/commands/explorer-outline-triggers-new.ts | 7 ++----- src/commands/init-workspace.ts | 2 +- src/commands/insert-security-policy.ts | 2 +- src/commands/insert-test-connection.ts | 5 +---- src/commands/register-rab-bundle.ts | 8 +++----- src/commands/remove-rab-bundle.ts | 2 +- src/commands/validate-add.ts | 2 +- src/commands/version-check.ts | 6 +++--- src/extension.ts | 2 +- src/logger.ts | 2 +- src/profile-manager-provider.ts | 2 +- src/profile-manager.ts | 4 ++-- src/providers/add-list-provider.ts | 2 +- src/providers/add-outline-provider.ts | 3 +-- src/providers/copilot-webview.ts | 2 +- src/providers/profile-list-provider.ts | 5 ++--- src/secret-storage-profile-manager.ts | 6 +++--- src/utils-api.ts | 2 +- src/utils.ts | 2 +- src/webview-shared-lib.ts | 2 +- templates/action.template | 2 +- templates/auth/API_KEY_AUTHENTICATION.json | 2 +- templates/auth/BASIC_AUTH.json | 2 +- templates/auth/NONE.json | 2 +- templates/auth/OAUTH_AUTHORIZATION_CODE_CREDENTIALS.json | 2 +- templates/auth/OAUTH_CLIENT_CREDENTIALS.json | 2 +- templates/auth/OAUTH_ONE_TOKEN_BASED.json | 2 +- .../auth/OAUTH_RESOURCE_OWNER_PASSWORD_CREDENTIALS.json | 2 +- templates/auth/OCI_SIGNATURE_VERSION1.json | 2 +- templates/flow.template | 2 +- templates/test-connection.json | 2 +- templates/trigger.template | 2 +- tsconfig.json | 2 +- webview-helper/index.html | 2 +- webview/index.html | 2 +- webview/js/libs/index.0d0deb30a3db406d6c79.js | 2 +- webview/js/main.0d0deb30a3db406d6c79.js | 2 +- webview/js/runtime.0d0deb30a3db406d6c79.js | 2 +- 56 files changed, 67 insertions(+), 81 deletions(-) diff --git a/README.md b/README.md index bec0ef8..e239812 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,6 @@ Please consult the [security guide](./SECURITY.md) for our responsible security ## License -Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. +Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved.This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. See LICENSE for more details. diff --git a/package.json b/package.json index 4693b5f..43839e2 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "name": "oic-rapid-adapter-builder", "displayName": "Oracle Integration Cloud Rapid Adapter Builder", "description": "Oracle Integration Cloud Rapid Adapter Builder is a set of tools that makes it easier for you to validate, develop and deploy the next-gen RAB adapters for Oracle Integration Cloud (OIC) straight from VS Code.", diff --git a/schemas/actions_v01.json b/schemas/actions_v01.json index 40e788b..e6dfec5 100644 --- a/schemas/actions_v01.json +++ b/schemas/actions_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$id": "#actions", "title": "Actions", "description": "Actions are the user-facing list of capabilities of the adapter. This section contains information that powers the UI for designtime configuration. For example, it contains the name of actions, the description, the configuration options for the action, and the input and output schema that drives the mapping experience.", diff --git a/schemas/categories_v01.json b/schemas/categories_v01.json index 5ffe7ea..d9a1395 100644 --- a/schemas/categories_v01.json +++ b/schemas/categories_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$id": "#categories", "title": "Categories", "description": "Categories are the user-facing list of actions/triggers of the adapter. This section contains information that powers the UI for designtime configuration. ", diff --git a/schemas/commons_v01.json b/schemas/commons_v01.json index bb44e50..4dffecf 100644 --- a/schemas/commons_v01.json +++ b/schemas/commons_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$schema": "http://json-schema.org/draft-07/schema#", "$id": "#commons", "type": "object", diff --git a/schemas/connection_v01.json b/schemas/connection_v01.json index 5b8f228..a7d99bb 100644 --- a/schemas/connection_v01.json +++ b/schemas/connection_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$schema": "https://json-schema.org/draft-07/schema#", "$id": "#connection", "title": "connectionDefinition", diff --git a/schemas/flows_v01.json b/schemas/flows_v01.json index f8d9ff8..633deb3 100644 --- a/schemas/flows_v01.json +++ b/schemas/flows_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$id": "#flows", "title": "Flows", "description": "Flows", diff --git a/schemas/info_v01.json b/schemas/info_v01.json index d85f94f..d394107 100644 --- a/schemas/info_v01.json +++ b/schemas/info_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$id": "#info", "title": "Adapter Information", "description": "The basic information of the adapter that models the identity, branding, and capabilities supported.", diff --git a/schemas/mainADD_v01.json b/schemas/mainADD_v01.json index cf353f8..2ecd391 100644 --- a/schemas/mainADD_v01.json +++ b/schemas/mainADD_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$id": "#schema", "$schema": "http://json-schema.org/draft-07/schema#", "title": "ADD Specification", diff --git a/schemas/schemas_v01.json b/schemas/schemas_v01.json index 453bd14..9943c0d 100644 --- a/schemas/schemas_v01.json +++ b/schemas/schemas_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$id": "#schemas", "title": "Schemas", "description": "Schema of Schema", diff --git a/schemas/triggers_v01.json b/schemas/triggers_v01.json index dc86a37..9d9a4f7 100644 --- a/schemas/triggers_v01.json +++ b/schemas/triggers_v01.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "$id": "#triggers", "title": "Triggers", "description": "Triggers models the ability for the adapter to receive an event from an external source and can be implemented in different ways. The supported protocols for receiving events is HTTP. The definition of a trigger allows the modeling of the inbound message structure, the security scheme for message ingress and validation, and the mechanism for creating and deleting a subscription if the third party application.", diff --git a/snippets/add.json b/snippets/add.json index 17f0283..5c2e68b 100644 --- a/snippets/add.json +++ b/snippets/add.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "Transform for dynamic input": { "scope": "json", "prefix": "RAB: jq to key-value array", diff --git a/src/api.ts b/src/api.ts index 3000fd6..d571ce9 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, 2024 Oracle and/or its affiliates. + * Copyright © 2022-2024 Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/add-locate.ts b/src/commands/add-locate.ts index 9334221..712cdb7 100644 --- a/src/commands/add-locate.ts +++ b/src/commands/add-locate.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/convert-openapi-document.ts b/src/commands/convert-openapi-document.ts index 7f84afa..42ae5fb 100644 --- a/src/commands/convert-openapi-document.ts +++ b/src/commands/convert-openapi-document.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/convert-postman-collection.ts b/src/commands/convert-postman-collection.ts index a920e7c..b0f4cc5 100644 --- a/src/commands/convert-postman-collection.ts +++ b/src/commands/convert-postman-collection.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/download-rab-bundle.ts b/src/commands/download-rab-bundle.ts index c842e00..125e314 100644 --- a/src/commands/download-rab-bundle.ts +++ b/src/commands/download-rab-bundle.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ @@ -9,10 +9,9 @@ import * as fs from 'fs'; import * as path from 'path'; import * as api from '../api'; -import { log } from '../logger'; import { RABTreeItem } from '../providers/add-list-provider'; -import { getBundleFilename } from '../workspace-manager'; import { RABError, showErrorMessage, withProgress } from '../utils/ui-utils'; +import { getBundleFilename } from '../workspace-manager'; async function callback(item: RABTreeItem) { diff --git a/src/commands/explorer-outline-actions-new.ts b/src/commands/explorer-outline-actions-new.ts index 1d81e91..662466a 100644 --- a/src/commands/explorer-outline-actions-new.ts +++ b/src/commands/explorer-outline-actions-new.ts @@ -1,15 +1,12 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ import * as vscode from 'vscode'; -import { log } from '../logger'; -import * as api from '../api'; -import * as utils from '../utils'; import * as _ from 'lodash'; -import * as parse from 'json-to-ast'; +import * as utils from '../utils'; import * as Handlebars from 'handlebars'; diff --git a/src/commands/explorer-outline-triggers-new.ts b/src/commands/explorer-outline-triggers-new.ts index 6f06651..9948b9f 100644 --- a/src/commands/explorer-outline-triggers-new.ts +++ b/src/commands/explorer-outline-triggers-new.ts @@ -1,15 +1,12 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ import * as vscode from 'vscode'; -import { log } from '../logger'; -import * as api from '../api'; -import * as utils from '../utils'; import * as _ from 'lodash'; -import * as parse from 'json-to-ast'; +import * as utils from '../utils'; import * as Handlebars from 'handlebars'; diff --git a/src/commands/init-workspace.ts b/src/commands/init-workspace.ts index 0b21532..f7a5a0a 100644 --- a/src/commands/init-workspace.ts +++ b/src/commands/init-workspace.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/insert-security-policy.ts b/src/commands/insert-security-policy.ts index b9bcddd..8e2d50e 100644 --- a/src/commands/insert-security-policy.ts +++ b/src/commands/insert-security-policy.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/insert-test-connection.ts b/src/commands/insert-test-connection.ts index 7459a41..ba0278d 100644 --- a/src/commands/insert-test-connection.ts +++ b/src/commands/insert-test-connection.ts @@ -1,15 +1,12 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ import * as vscode from 'vscode'; -import * as fs from 'fs'; -import * as path from 'path'; import * as _ from 'lodash'; -import { log } from '../logger'; import * as utils from '../utils'; function callback(textEditor: vscode.TextEditor, edit: vscode.TextEditorEdit, args: any[]): any { diff --git a/src/commands/register-rab-bundle.ts b/src/commands/register-rab-bundle.ts index 2d28676..c049390 100644 --- a/src/commands/register-rab-bundle.ts +++ b/src/commands/register-rab-bundle.ts @@ -1,18 +1,16 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ -import * as fs from 'fs'; import * as vscode from 'vscode'; -import * as _ from 'lodash'; import * as api from '../api'; import { log } from '../logger'; -import { createRABBundle } from '../workspace-manager'; import { get as getProfileManager } from '../profile-manager-provider'; -import { RABError, showInfoMessage, showErrorMessage, withProgress } from '../utils/ui-utils'; +import { RABError, showErrorMessage, showInfoMessage, withProgress } from '../utils/ui-utils'; +import { createRABBundle } from '../workspace-manager'; async function callback(file: vscode.Uri, context: vscode.ExtensionContext): Promise { diff --git a/src/commands/remove-rab-bundle.ts b/src/commands/remove-rab-bundle.ts index e2b10c0..ab2398f 100644 --- a/src/commands/remove-rab-bundle.ts +++ b/src/commands/remove-rab-bundle.ts @@ -1,6 +1,6 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/validate-add.ts b/src/commands/validate-add.ts index 9894e0c..fd31c42 100644 --- a/src/commands/validate-add.ts +++ b/src/commands/validate-add.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/commands/version-check.ts b/src/commands/version-check.ts index 2c44eab..556ba24 100644 --- a/src/commands/version-check.ts +++ b/src/commands/version-check.ts @@ -1,13 +1,13 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ -import * as vscode from 'vscode'; import path from 'path'; +import * as vscode from 'vscode'; -import { log } from '../logger'; import * as api from '../api'; +import { log } from '../logger'; import { RABError, showErrorMessage } from '../utils/ui-utils'; async function callback(file: vscode.Uri) { diff --git a/src/extension.ts b/src/extension.ts index 16d6c37..87a4245 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/logger.ts b/src/logger.ts index da0be7f..e84f72b 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -1,6 +1,6 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/profile-manager-provider.ts b/src/profile-manager-provider.ts index 1fff3f5..ede02ea 100644 --- a/src/profile-manager-provider.ts +++ b/src/profile-manager-provider.ts @@ -1,6 +1,6 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/profile-manager.ts b/src/profile-manager.ts index 5ca800b..444daa6 100644 --- a/src/profile-manager.ts +++ b/src/profile-manager.ts @@ -1,10 +1,10 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ -import * as vscode from 'vscode'; import * as yaml from 'js-yaml'; +import * as vscode from 'vscode'; import { log } from './logger'; /** diff --git a/src/providers/add-list-provider.ts b/src/providers/add-list-provider.ts index 5b5e316..15f3e03 100644 --- a/src/providers/add-list-provider.ts +++ b/src/providers/add-list-provider.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/providers/add-outline-provider.ts b/src/providers/add-outline-provider.ts index 6d04a2a..7ebcc99 100644 --- a/src/providers/add-outline-provider.ts +++ b/src/providers/add-outline-provider.ts @@ -1,10 +1,9 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ import * as vscode from 'vscode'; -import * as parse from 'json-to-ast'; import * as utils from '../utils'; class AddOutlineProvider implements vscode.TreeDataProvider { diff --git a/src/providers/copilot-webview.ts b/src/providers/copilot-webview.ts index 2b95d69..a695fd0 100644 --- a/src/providers/copilot-webview.ts +++ b/src/providers/copilot-webview.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/providers/profile-list-provider.ts b/src/providers/profile-list-provider.ts index 9f72038..d55d77d 100644 --- a/src/providers/profile-list-provider.ts +++ b/src/providers/profile-list-provider.ts @@ -1,13 +1,12 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ import * as vscode from 'vscode'; -import * as utils from '../utils'; -import { log } from '../logger'; import { get as getProfileManager } from '../profile-manager-provider'; +import * as utils from '../utils'; class PublisherProfileListProvider implements vscode.TreeDataProvider { diff --git a/src/secret-storage-profile-manager.ts b/src/secret-storage-profile-manager.ts index 8cacf46..d5ee718 100644 --- a/src/secret-storage-profile-manager.ts +++ b/src/secret-storage-profile-manager.ts @@ -1,16 +1,16 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ -import * as vscode from 'vscode'; import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; +import * as vscode from 'vscode'; import { log } from './logger'; +import { Callback, Profile, ProfileManager, ProfileYaml, ProfilesYaml, loadProfileYaml } from './profile-manager'; import * as utils from './utils'; -import { Callback, Profile, ProfileYaml, ProfileManager, ProfilesYaml, loadProfileYaml } from './profile-manager'; import { RABError, showInfoMessage } from './utils/ui-utils'; export class SecretStorageProfileManager implements ProfileManager { diff --git a/src/utils-api.ts b/src/utils-api.ts index 910dd22..6c8d0f7 100644 --- a/src/utils-api.ts +++ b/src/utils-api.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ import { Observable, from, of } from 'rxjs'; diff --git a/src/utils.ts b/src/utils.ts index 9a7c430..14a2a26 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/src/webview-shared-lib.ts b/src/webview-shared-lib.ts index c068f50..2688506 100644 --- a/src/webview-shared-lib.ts +++ b/src/webview-shared-lib.ts @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ diff --git a/templates/action.template b/templates/action.template index e445b9e..7d9c0f2 100644 --- a/templates/action.template +++ b/templates/action.template @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "displayName": "New Action", "description": "This is a new action.", "execute": "flow:{{flowId}}", diff --git a/templates/auth/API_KEY_AUTHENTICATION.json b/templates/auth/API_KEY_AUTHENTICATION.json index e417abe..6cf3c99 100644 --- a/templates/auth/API_KEY_AUTHENTICATION.json +++ b/templates/auth/API_KEY_AUTHENTICATION.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/auth/BASIC_AUTH.json b/templates/auth/BASIC_AUTH.json index d7a40d2..ec46592 100644 --- a/templates/auth/BASIC_AUTH.json +++ b/templates/auth/BASIC_AUTH.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/auth/NONE.json b/templates/auth/NONE.json index 4654b94..c71b91b 100644 --- a/templates/auth/NONE.json +++ b/templates/auth/NONE.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/auth/OAUTH_AUTHORIZATION_CODE_CREDENTIALS.json b/templates/auth/OAUTH_AUTHORIZATION_CODE_CREDENTIALS.json index 2c6cde5..ddd8ad8 100644 --- a/templates/auth/OAUTH_AUTHORIZATION_CODE_CREDENTIALS.json +++ b/templates/auth/OAUTH_AUTHORIZATION_CODE_CREDENTIALS.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/auth/OAUTH_CLIENT_CREDENTIALS.json b/templates/auth/OAUTH_CLIENT_CREDENTIALS.json index c6cdb6d..cbdf0e2 100644 --- a/templates/auth/OAUTH_CLIENT_CREDENTIALS.json +++ b/templates/auth/OAUTH_CLIENT_CREDENTIALS.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/auth/OAUTH_ONE_TOKEN_BASED.json b/templates/auth/OAUTH_ONE_TOKEN_BASED.json index e94f1b2..16ba107 100644 --- a/templates/auth/OAUTH_ONE_TOKEN_BASED.json +++ b/templates/auth/OAUTH_ONE_TOKEN_BASED.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/auth/OAUTH_RESOURCE_OWNER_PASSWORD_CREDENTIALS.json b/templates/auth/OAUTH_RESOURCE_OWNER_PASSWORD_CREDENTIALS.json index 899b499..6715272 100644 --- a/templates/auth/OAUTH_RESOURCE_OWNER_PASSWORD_CREDENTIALS.json +++ b/templates/auth/OAUTH_RESOURCE_OWNER_PASSWORD_CREDENTIALS.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/auth/OCI_SIGNATURE_VERSION1.json b/templates/auth/OCI_SIGNATURE_VERSION1.json index 5ff0230..5b63283 100644 --- a/templates/auth/OCI_SIGNATURE_VERSION1.json +++ b/templates/auth/OCI_SIGNATURE_VERSION1.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "connectionProperties": [ { diff --git a/templates/flow.template b/templates/flow.template index b839374..6193c7b 100644 --- a/templates/flow.template +++ b/templates/flow.template @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "id": "{{flowId}}", "version": "0.1", "start": "startState", diff --git a/templates/test-connection.json b/templates/test-connection.json index 59f5ef0..ae7fca9 100644 --- a/templates/test-connection.json +++ b/templates/test-connection.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "connection": { "test": "flow:testConnectionFlow" }, diff --git a/templates/trigger.template b/templates/trigger.template index 8acad46..aa309e8 100644 --- a/templates/trigger.template +++ b/templates/trigger.template @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "displayName": "New Trigger", "description": "This trigger detects when an event has been raised.", "type": "webhook", diff --git a/tsconfig.json b/tsconfig.json index c5b7cfa..348a998 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "_comment": "Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", + "_comment": "Copyright (c) 2022-2024, Oracle and/or its affiliates. All rights reserved. This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl.", "compilerOptions": { "module": "commonjs", "target": "ES2020", diff --git a/webview-helper/index.html b/webview-helper/index.html index 76a1657..4fca669 100644 --- a/webview-helper/index.html +++ b/webview-helper/index.html @@ -1,5 +1,5 @@ diff --git a/webview/index.html b/webview/index.html index 3e4e057..9dbc54e 100644 --- a/webview/index.html +++ b/webview/index.html @@ -1,5 +1,5 @@ Oracle JET VDOM Starter Template - Basic diff --git a/webview/js/libs/index.0d0deb30a3db406d6c79.js b/webview/js/libs/index.0d0deb30a3db406d6c79.js index fb026e8..e8e3d92 100644 --- a/webview/js/libs/index.0d0deb30a3db406d6c79.js +++ b/webview/js/libs/index.0d0deb30a3db406d6c79.js @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ /*! For license information please see index.0d0deb30a3db406d6c79.js.LICENSE.txt */ diff --git a/webview/js/main.0d0deb30a3db406d6c79.js b/webview/js/main.0d0deb30a3db406d6c79.js index 482ba3d..7c65ebd 100644 --- a/webview/js/main.0d0deb30a3db406d6c79.js +++ b/webview/js/main.0d0deb30a3db406d6c79.js @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ (self.webpackChunkweb_jetui=self.webpackChunkweb_jetui||[]).push([[179],{6454:(e,t,n)=>{"use strict";n.r(t)},2306:(e,t,n)=>{var a,s;a=[n,t,n(6584),n(8661),n(9818),n(5540),n(3774),n(9338),n(6454)],s=function(e,t,n,a,s,o,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(0,s.useNavigate)();return(0,a.useEffect)((()=>{l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.webviewRouterReady,{isReady:!0})}),[]),(0,a.useEffect)((()=>l.UtilsNs.listenVscodeExtension(c.SharedNs.ExtensionCommandEnum.routerNavigateTo,(t=>{Object.values(c.SharedNs.WebviewRouteEnum).includes(t.href)?e(t.href):console.error("Unknown href payload.href. Should be one of the allowed values in SharedNs.WebviewRouteEnum",c.SharedNs.WebviewRouteEnum)}))),[]),(0,n.jsxs)("div",Object.assign({className:"App"},{children:[(0,n.jsx)(o.RabAdd,{}),(0,n.jsx)(s.Outlet,{})]}))}}.apply(t,a),void 0===s||(e.exports=s)},4343:(e,t,n)=>{var a,s;a=[n,t,n(904)],s=function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAppSelector=t.useAppDispatch=void 0,t.useAppDispatch=()=>(0,n.useDispatch)(),t.useAppSelector=n.useSelector}.apply(t,a),void 0===s||(e.exports=s)},96:function(e,t,n){var a,s,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};a=[n,t,n(6584),n(9818),n(2248),n(9644),n(3260),n(9338),n(2306)],s=function(e,t,n,a,s,l,c,d,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.router=void 0,i=o(i),t.router=(0,a.createBrowserRouter)([{path:d.SharedNs.WebviewRouteEnum.Root,element:(0,n.jsx)(i.default,{}),children:[{index:!0,element:(0,n.jsx)(a.Navigate,{to:d.SharedNs.WebviewRouteEnum.Copilot})},{path:d.SharedNs.WebviewRouteEnum.Copilot,element:(0,n.jsx)(s.Copilot,{}),children:[{index:!0,element:(0,n.jsx)(a.Navigate,{to:d.SharedNs.WebviewRouteEnum.PostmanAdd})}]},{path:d.SharedNs.WebviewRouteEnum.PostmanAdd,element:(0,n.jsx)(c.PostmanSelect,{})},{path:d.SharedNs.WebviewRouteEnum.OpenAPIAdd,element:(0,n.jsx)(l.OpenAPISelect,{})}]}])}.apply(t,a),void 0===s||(e.exports=s)},2398:function(e,t,n){var a,s,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};a=[n,t,n(3629),n(5409),n(9059),n(7365),n(583)],s=function(e,t,n,a,s,l,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.store=void 0,a=o(a),s=o(s),l=o(l),c=o(c),t.store=(0,n.configureStore)({reducer:{copilot:a.default,postmanSelect:l.default,openAPISelect:s.default,rabAdd:c.default}})}.apply(t,a),void 0===s||(e.exports=s)},8990:(e,t,n)=>{var a,s;a=[n,t,n(6584),n(8854),n(396),n(9812),n(5432),n(9093),n(96),n(2398),n(904),n(9818)],s=function(e,t,n,a,s,o,l,c,d,i,r,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.App=void 0,t.App=(0,a.registerCustomElement)("app-root",(({appName:e="RAB"})=>((0,s.useEffect)((()=>{c.getPageContext().getBusyContext().applicationBootstrapComplete()}),[]),(0,n.jsx)(r.Provider,Object.assign({store:i.store},{children:(0,n.jsxs)("div",Object.assign({id:"appContainer",class:"oj-web-applayout-page"},{children:[(0,n.jsx)(l.Header,{appName:e}),(0,n.jsx)(u.RouterProvider,{router:d.router}),(0,n.jsx)(o.Footer,{})]}))})))),"App",{properties:{appName:{type:"string"}}},{appName:"RAB"})}.apply(t,a),void 0===s||(e.exports=s)},9812:(e,t,n)=>{var a;a=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Footer=void 0,t.Footer=function(){return null}}.apply(t,[n,t]),void 0===a||(e.exports=a)},5432:function(e,t,n){var a,s,o=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var s=Object.getOwnPropertyDescriptor(t,n);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,s)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),l=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return l(t,e),t};a=[n,t,n(6584),n(9666),n(396),n(537),n(9767),n(2781)],s=function(e,t,n,a,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0,a=c(a),t.Header=function({appName:e}){const t=(0,s.useRef)(window.matchMedia(a.getFrameworkQuery("sm-only"))),[o,l]=(0,s.useState)(t.current.matches);function c(e){l(e.matches)}return(0,s.useEffect)((()=>(t.current.addEventListener("change",c),()=>t.current.removeEventListener("change",c))),[t]),(0,n.jsx)("header",Object.assign({role:"banner",class:"oj-web-applayout-header"},{children:(0,n.jsxs)("div",Object.assign({class:"oj-web-applayout-max-width oj-flex-bar oj-sm-align-items-center"},{children:[(0,n.jsxs)("div",Object.assign({class:"oj-flex-bar-middle oj-sm-align-items-baseline"},{children:[(0,n.jsx)("span",{role:"img",class:"oj-icon demo-oracle-icon",title:"Oracle Logo",alt:"Oracle Logo"}),(0,n.jsx)("h1",Object.assign({class:"oj-sm-only-hide oj-web-applayout-header-title",title:"Application Name"},{children:e}))]})),(0,n.jsx)("div",{class:"oj-flex-bar-end"})]}))}))}}.apply(t,a),void 0===s||(e.exports=s)},2248:function(e,t,n){var a,s,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};a=[n,t,n(6584),n(4343),n(8661),n(9818),n(5538),n(3774),n(9338),n(5409),n(537)],s=function(e,t,n,a,s,l,c,d,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Copilot=void 0;const u=(c=o(c)).default.div((({theme:e})=>({height:"calc(96vh - 20px)!important",border:"1px solid #ccc",padding:"10px",margin:"10px",borderRadius:"10px"}))),p=c.default.div((({theme:e})=>({bottom:"40px",position:"fixed"}))),m=c.default.span((({theme:e})=>({right:"20px",position:"fixed",zIndex:1e3})));function h(){return(0,a.useAppSelector)(r.selectCopilot),(0,n.jsx)("ul",{})}t.Copilot=function(){(0,a.useAppDispatch)();const e=(0,a.useAppSelector)(r.selectCopilot),t=(0,l.useNavigate)(),o=(0,s.useCallback)((()=>{d.UtilsNs.notifyVscodeExtension(i.SharedNs.WebviewCommandEnum.webviewLifecycle,{type:"close"})}),[]);return(0,s.useEffect)((()=>{e.finishSteps?o():t(e.currentStep)}),[e,o]),(0,n.jsxs)(u,{children:[(0,n.jsx)(m,Object.assign({"aria-label":"delete",onClick:o},{children:(0,n.jsxs)("oj-button",Object.assign({id:"icon_button1",display:"icons"},{children:["Icon Button",(0,n.jsx)("span",{slot:"startIcon",class:"oj-ux-ico-close-circle"})]}))})),(0,n.jsx)(h,{}),(0,n.jsx)(p,{children:(0,n.jsx)(l.Outlet,{})})]})}}.apply(t,a),void 0===s||(e.exports=s)},5409:(e,t,n)=>{var a,s;a=[n,t,n(3629),n(9338)],s=function(e,t,n,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectCopilot=t.gotoNextStep=t.copilotSlice=void 0;const s=a.SharedNs.WebviewRouteEnum.PostmanAdd,o={steps:[s,a.SharedNs.WebviewRouteEnum.PostmanAdd],currentStepNumber:0,currentStep:s,status:"idle"};t.copilotSlice=(0,n.createSlice)({name:"copilotSlice",initialState:o,reducers:{gotoNextStep:(e,t)=>{e.currentStepNumber!==e.steps.length-1?(e.currentStepNumber++,e.currentStep=e.steps[e.currentStepNumber]):e.finishSteps=!0}}}),t.gotoNextStep=t.copilotSlice.actions.gotoNextStep,t.selectCopilot=e=>e.copilot,t.default=t.copilotSlice.reducer}.apply(t,a),void 0===s||(e.exports=s)},9644:function(e,t,n){var a,s,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};a=[n,t,n(6584),n(8661),n(4343),n(3774),n(9338),n(5538),n(9059),n(1597),n(4679),n(537),n(3970),n(3917),n(255),n(7376)],s=function(e,t,n,a,s,l,c,d,i,r,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OpenAPISelect=void 0,d=o(d),r=o(r);const p=d.default.div((({theme:e})=>({margin:"2vh"}))),m=d.default.div((({theme:e})=>({marginBottom:"2vh"}))),h=d.default.div((({theme:e})=>({marginBottom:"2vh"}))),f=d.default.div((({theme:e})=>({marginBottom:"2vh"}))),v=d.default.div((({theme:e})=>({marginBottom:"2vh"})));t.OpenAPISelect=function(){const e=(0,s.useAppSelector)(i.selectEntryType),t=(0,s.useAppSelector)(i.selectOpenAPISelect),o=((0,s.useAppSelector)(i.selectADD),(0,s.useAppSelector)(i.selectOpenAPIStatus)),d=((0,s.useAppSelector)(i.selectOpenAPIChecked),(0,s.useAppSelector)(i.selectOpenAPIWithTagsChecked)),A=(0,s.useAppSelector)(i.selectOpenAPIToRemove),y=(0,s.useAppSelector)(i.selectOpenAPIToAdd),P=(0,s.useAppSelector)(i.selectOpenAPIIsSelectAll),S=(0,s.useAppSelector)(i.selectOpenAPIValidity),b=(0,s.useAppDispatch)(),[O,g]=(0,a.useState)(new r.default([])),[E,j]=(0,a.useState)([]);(0,a.useEffect)((()=>{window.vscode===window&&b((0,i.getOpenAPIDataAsync)())}),[]),(0,a.useEffect)((()=>{if(t&&t.paths){const e=(0,u.convertOpenAPIPathesToTree)(t);g(new r.default(e,{keyAttributes:"id"}))}}),[t]),(0,a.useEffect)((()=>l.UtilsNs.listenVscodeExtension(c.SharedNs.ExtensionCommandEnum.updateOpenAPIRawData,(e=>{e?b((0,i.updateOpenAPIRawData)(e)):console.error("[OpenAPISelect] openAPIDocumentData must be set as OpenAPI Document JSON string")}))),[]),(0,a.useEffect)((()=>l.UtilsNs.listenVscodeExtension(c.SharedNs.ExtensionCommandEnum.updateEntryType,(e=>{b((0,i.setEntryType)(e))}))),[]),(0,a.useEffect)((()=>{const e=Object.values(S.details).map((e=>e.map((e=>e)))).reduce(((e,t)=>e.concat(t)),[]);j(e)}),[S]);const w=(0,a.useCallback)((e=>{b((0,i.selectByNames)({value:e.detail.value,previousValue:e.detail.previousValue,updatedFrom:e.detail.updatedFrom}))}),[]),C=(0,a.useCallback)((()=>{S.valid?(console.log("openAPIStatus to be posted",o),e===c.SharedNs.VscodeCommandPayloadEntryType.OpenAPIConvertDocument?l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.openAPIDoneConvertDocument,o):l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.openAPISelectRequests,o),l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.webviewLifecycle,{type:"close"})):alert("The selection is invalid.")}),[o,e,S]),I=(0,a.useCallback)((()=>{b(P?(0,i.deselectAll)():(0,i.selectAll)())}),[P]);return(0,a.useEffect)((()=>{l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.openAPISelectReady,{isReady:!0})}),[]),(0,n.jsxs)(p,{children:[e!==c.SharedNs.VscodeCommandPayloadEntryType.OpenAPIConvertDocument&&(0,n.jsx)("h2",{children:"Select the OpenAPI paths and methods that you want to add to the adapter definition document."}),e===c.SharedNs.VscodeCommandPayloadEntryType.OpenAPIConvertDocument&&(0,n.jsx)("h2",{children:"Select the OpenAPI paths and methods that you want to convert to the adapter definition document."}),(0,n.jsxs)(v,{children:["There are ",y.length," requests to add",A.length?` and ${A.length} requests to remove`:"","."]}),(0,n.jsx)(m,{children:(0,n.jsx)("oj-button",Object.assign({onClick:C,disabled:!S.valid},{children:"Done"}))}),!S.valid&&(0,n.jsx)(f,{children:(0,n.jsx)("oj-messages",{messages:E,position:null,display:"general",displayOptions:{category:"none"}})}),(0,n.jsx)(h,{children:(0,n.jsx)("oj-checkboxset",Object.assign({value:[P],onClick:I},{children:(0,n.jsx)("oj-option",Object.assign({value:!0},{children:"Select All"}))}))}),(0,n.jsx)("oj-tree-view",{id:"select_requests",data:O,selectionMode:"multiple","aria-label":"All OpenAPI operations",onselectionChanged:w,selection:d,item:{renderer:({data:e})=>({insert:e.title})}})]})}}.apply(t,a),void 0===s||(e.exports=s)},4679:(e,t,n)=>{var a;a=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertOpenAPIPathesToTree=t.allHttpMethods=t.getAllOpenAPITagMap=t.resolveRef=t.getSelectedOpenAPIPath=t.annotateOpenAPIRawData=t.setAllWithSelectionState=t.getSelectedOpenAPIPathForBackend=t.getSelectedOpenAPIPathFromADD=t.selectItemsByFullPathId=t.filterValidTags=t.MAX_OPEN_API_REQUEST_COUNT=void 0;const n="$___TAG___$",a="Not Tagged",s=a;t.MAX_OPEN_API_REQUEST_COUNT=200,t.filterValidTags=(e,t=[])=>{let n=(null!=t?t:[]).filter((t=>!!e[t]));return n.length||(n=[a]),n},t.selectItemsByFullPathId=(e,a,s,o)=>{if(!(null==e?void 0:e.paths))return;const l=(0,t.getAllOpenAPITagMap)(e);Object.entries(e.paths).forEach((e=>{e[0];const c=e[1];Object.entries(c).filter((e=>t.allHttpMethods.includes(e[0]))).forEach((e=>{e[0];const c=e[1],d=(0,t.filterValidTags)(l,e[1].tags),i=void 0!==o;if(!c.fullPathId)throw new Error("fullPathId is not defined: "+JSON.stringify(c));const r=d.find((e=>{const t=`${n}${e}`;return 1===s.length&&s[0]===t}));if(r)c.isSelected=!!a[`${n}${r}`];else if(c.fullPathId&&(!!a[c.fullPathId]!==c.isSelected||i))try{c.isSelected=i?o:!!a[c.fullPathId]}catch(e){console.warn(e)}}))}))},t.getSelectedOpenAPIPathFromADD=e=>(null==e?void 0:e.actions)?Object.fromEntries(Object.entries(e.actions).filter((e=>!!e[1].$refOpenapi)).map((e=>{const t=e[1].$refOpenapi,n=e[1];return[t,{actionRef:n.$refOpenapi,actionDisplayName:n.displayName}]}))):{},t.getSelectedOpenAPIPathForBackend=({openapi:e,add:n})=>{const a=[],s=[],o=[];if(!(null==e?void 0:e.paths))return{actionDelta:{selected:a,add:s,remove:o}};const l=(0,t.getSelectedOpenAPIPathFromADD)(n);return console.log("[getSelectedOpenAPIPathForBackend] add",n),Object.entries(e.paths).forEach((e=>{e[0];const n=e[1];Object.entries(n).filter((e=>t.allHttpMethods.includes(e[0]))).map((e=>{e[0];const t=e[1],n=t.isSelected,c=l[t.fullPathId];n&&a.push({actionRef:t.fullPathId}),c&&n||!c&&!n||(n?s.push({actionRef:t.fullPathId}):o.push(Object.assign({},c)))}))})),{actionDelta:{add:s,selected:a,remove:o}}},t.setAllWithSelectionState=(e,n)=>{(null==e?void 0:e.paths)&&Object.entries(e.paths).forEach((e=>{e[0];const a=e[1];Object.entries(a).filter((e=>t.allHttpMethods.includes(e[0]))).forEach((e=>{e[0],e[1].isSelected=!!n}))}))},t.annotateOpenAPIRawData=({openapi:e,add:n})=>{if(!(null==e?void 0:e.paths))return;const a=(0,t.getSelectedOpenAPIPath)(n);return Object.entries(e.paths).forEach((e=>{const n=e[0],s=e[1];Object.entries(s).filter((e=>t.allHttpMethods.includes(e[0]))).forEach((e=>{const t=e[0],s=e[1];s.fullPathId=`${t.toUpperCase()}:${n}`,s.isSelected=!!s.isSelected||!!a.has(s.fullPathId)}))})),e},t.getSelectedOpenAPIPath=e=>(null==e?void 0:e.actions)?new Set((Object.values(e.actions)||[]).filter((e=>!!e.$refOpenapi)).map((e=>e.$refOpenapi))):new Set,t.resolveRef=(e,n)=>{if(!e||"object"!=typeof e)return e;const a={};return Object.entries(e).forEach((e=>{const s=e[0],o=e[1];if("object"!=typeof o||!o)return void(a[s]=o);const l=o.$ref;a[s]=l?(0,t.resolveRef)(((e,t)=>{if(!(e=e.trim()).startsWith("#"))throw new Error("only support $ref started with #");const n=(e=e.replace("#","").replace(/(^\/|\/$)/g,"")).split("/");let a=t;for(;n.length;)if(a=a[n.shift()],!a)throw new Error(`[findObjectByRef] Unable to find ref [${e}] from openapi [${JSON.stringify(t)}]`);return a})(l,n),n):(0,t.resolveRef)(o,n)})),a},t.getAllOpenAPITagMap=e=>{var t;const n=Object.fromEntries(Object.values(null!==(t=null==e?void 0:e.tags)&&void 0!==t?t:[]).map((e=>[e.name,Object.assign(Object.assign({},e),{children:[]})])));return n[s]={children:[],name:a},n},t.allHttpMethods=["get","post","put","delete","head","options","patch","connect","trace"],t.convertOpenAPIPathesToTree=e=>{const a=(...e)=>{const t=e.filter((e=>!!e));return t.length<2?t.join(""):`${t.shift()} ${t.length?`(${t.join("; ")})`:""}`},s=(0,t.getAllOpenAPITagMap)(e),o=e.paths;return Object.entries(null!=o?o:{}).forEach((e=>{const n=e[0];return Object.entries(e[1]).filter((e=>t.allHttpMethods.includes(e[0]))).map((e=>{const o=e[0].toUpperCase(),l=e[1],c=(0,t.filterValidTags)(s,l.tags),d=`${o}:${n}`,i={title:a(l.summary,l.operationId,`${o}:${n}`),id:d,selected:!!l.isSelected};c.forEach((e=>{s[e].children.push(i)}))}))})),Object.values(s).map((e=>({title:`${e.name} ${e.description?`(${e.description})`:""}`,id:`${n}${e.name}`,selected:e.children.length&&e.children.every((e=>e.selected)),children:e.children}))).filter((e=>e.children.length))}}.apply(t,[n,t]),void 0===a||(e.exports=a)},9059:function(e,t,n){var a,s,o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(s,o){function l(e){try{d(a.next(e))}catch(e){o(e)}}function c(e){try{d(a.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,c)}d((a=a.apply(e,t||[])).next())}))};a=[n,t,n(3629),n(6486),n(9338),n(4679)],s=function(e,t,n,a,s,l){"use strict";var c;Object.defineProperty(t,"__esModule",{value:!0}),t.selectOpenAPIValidity=t.selectOpenAPIToAdd=t.selectOpenAPIToRemove=t.selectOpenAPIIsSelectAll=t.selectOpenAPIWithTagsChecked=t.selectOpenAPIChecked=t.selectOpenAPITagChecked=t.selectOpenAPIStatus=t.selectEntryType=t.selectADD=t.selectOpenAPISelectRaw=t.selectOpenAPISelect=t.deselectAll=t.selectAll=t.setEntryType=t.updateOpenAPIRawData=t.selectByNames=t.openAPISelectSlice=t.getOpenAPIDataAsync=void 0;const d={entryType:s.SharedNs.VscodeCommandPayloadEntryType.OpenAPIAddRequest,status:"idle"};t.getOpenAPIDataAsync=(0,n.createAsyncThunk)("openAPISelect/getOpenAPIRawData",(()=>o(void 0,void 0,void 0,(function*(){return{}}))));const i=(e,t)=>{e.value=(0,l.annotateOpenAPIRawData)(t),e.valueRaw=t.openapi,e.addValue=t.add};t.openAPISelectSlice=(0,n.createSlice)({name:"openAPISelect",initialState:d,reducers:{selectByNames:(e,t)=>{const n=t.payload.previousValue,s=t.payload.value,o=(0,a.difference)(s,n),c=(0,a.difference)(n,s),d=Object.fromEntries(t.payload.value.map((e=>[e,!0])));(0,l.selectItemsByFullPathId)(e.value,d,"internal"===t.payload.updatedFrom?(0,a.uniq)([...o,...c]):[])},selectAll:(e,t)=>{(0,l.selectItemsByFullPathId)(e.value,{},[],!0)},deselectAll:(e,t)=>{(0,l.selectItemsByFullPathId)(e.value,{},[],!1)},updateOpenAPIRawData:(e,t)=>{e.status="idle",i(e,t.payload)},setEntryType:(e,t)=>{e.entryType=t.payload}},extraReducers:e=>{e.addCase(t.getOpenAPIDataAsync.pending,(e=>{e.status="loading"})).addCase(t.getOpenAPIDataAsync.fulfilled,((e,t)=>{e.status="idle",i(e,t.payload)})).addCase(t.getOpenAPIDataAsync.rejected,(e=>{e.status="failed"}))}}),c=t.openAPISelectSlice.actions,t.selectByNames=c.selectByNames,t.updateOpenAPIRawData=c.updateOpenAPIRawData,t.setEntryType=c.setEntryType,t.selectAll=c.selectAll,t.deselectAll=c.deselectAll,t.selectOpenAPISelect=e=>e.openAPISelect.value,t.selectOpenAPISelectRaw=e=>e.openAPISelect.valueRaw,t.selectADD=e=>e.openAPISelect.addValue,t.selectEntryType=e=>e.openAPISelect.entryType,t.selectOpenAPIStatus=(0,n.createSelector)(t.selectOpenAPISelect,t.selectADD,((e,t)=>e?(0,l.getSelectedOpenAPIPathForBackend)({openapi:e,add:t}):{actionDelta:{add:[],remove:[],selected:[]}})),t.selectOpenAPITagChecked=(0,n.createSelector)(t.selectOpenAPISelect,(e=>{if(!e)return[];const t=(0,l.convertOpenAPIPathesToTree)(e).filter((e=>{var t;return(null===(t=e.children)||void 0===t?void 0:t.length)&&e.children.every((e=>e.selected))})).map((e=>e.id));return t})),t.selectOpenAPIChecked=(0,n.createSelector)(t.selectOpenAPIStatus,(e=>e.actionDelta.selected.map((e=>e.actionRef)))),t.selectOpenAPIWithTagsChecked=(0,n.createSelector)(t.selectOpenAPIChecked,t.selectOpenAPITagChecked,((e,t)=>[...e,...t])),t.selectOpenAPIIsSelectAll=(0,n.createSelector)(t.selectOpenAPISelect,(e=>(null==e?void 0:e.paths)&&Object.values(e.paths).every((e=>Object.entries(e).filter((e=>l.allHttpMethods.includes(e[0]))).every((e=>e[1].isSelected)))))),t.selectOpenAPIToRemove=(0,n.createSelector)(t.selectOpenAPIStatus,(e=>e.actionDelta.remove.map((e=>e.actionRef)))),t.selectOpenAPIToAdd=(0,n.createSelector)(t.selectOpenAPIStatus,(e=>e.actionDelta.add.map((e=>e.actionRef)))),t.selectOpenAPIValidity=(0,n.createSelector)(t.selectOpenAPIChecked,t.selectOpenAPIToAdd,t.selectOpenAPIToRemove,((e,t,n)=>{const a={valid:!1,details:{}};return e.length>l.MAX_OPEN_API_REQUEST_COUNT&&(a.details.MAX_OPEN_API_REQUEST_COUNT=[{severity:"error",summary:`You can at most select ${l.MAX_OPEN_API_REQUEST_COUNT} requests.`}]),0===t.length&&0===n.length&&(a.details.MAX_OPEN_API_REQUEST_COUNT=[{severity:"info",summary:"There are no changes."}]),a.valid=!Object.keys(a.details).length,a})),t.default=t.openAPISelectSlice.reducer}.apply(t,a),void 0===s||(e.exports=s)},3260:function(e,t,n){var a,s,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};a=[n,t,n(6584),n(8661),n(4343),n(3774),n(9338),n(5538),n(7365),n(1597),n(537),n(3970),n(3917),n(7376)],s=function(e,t,n,a,s,l,c,d,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostmanSelect=void 0,d=o(d),r=o(r);const u=d.default.div((({theme:e})=>({margin:"2vh"}))),p=d.default.div((({theme:e})=>({marginBottom:"2vh"}))),m=d.default.div((({theme:e})=>({marginBottom:"2vh"}))),h=d.default.div((({theme:e})=>({marginBottom:"2vh"}))),f=e=>{var t;return(null===(t=e.item)||void 0===t?void 0:t.map((e=>{var t;let n={title:e.name,id:e.name,selected:!!e.isSelected,children:f(e)};return(null===(t=n.children)||void 0===t?void 0:t.length)||delete n.children,n})))||[]};t.PostmanSelect=function(){const e=(0,s.useAppSelector)(i.selectEntryType),t=(0,s.useAppSelector)(i.selectPostmanSelect),o=(0,s.useAppSelector)(i.selectPostmanChecked),d=(0,s.useAppSelector)(i.selectPostmanCheckedWithParentNodes),v=(0,s.useAppSelector)(i.selectPostmanCheckedForTestConnection),A=(0,s.useAppDispatch)(),[y,P]=(0,a.useState)(new r.default([])),[S,b]=(0,a.useState)(!1);(0,a.useEffect)((()=>{e===c.SharedNs.VscodeCommandPayloadEntryType.PostmanConvertDocument&&(A((0,i.selectAll)()),b(!0))}),[e]),(0,a.useEffect)((()=>{window.vscode===window&&A((0,i.getPostmanDataAsync)())}),[]),(0,a.useEffect)((()=>{if(t&&t.item){const e=f(t);P(new r.default(e,{keyAttributes:"id"}))}}),[t]),(0,a.useEffect)((()=>l.UtilsNs.listenVscodeExtension(c.SharedNs.ExtensionCommandEnum.updatePostmanRawData,(e=>{e?A((0,i.updatePostmanRawData)(e)):console.error("[PostmanSelect] postmanCollectionData must be set as the postman collection JSON string")}))),[]),(0,a.useEffect)((()=>l.UtilsNs.listenVscodeExtension(c.SharedNs.ExtensionCommandEnum.updateEntryType,(e=>{A((0,i.setEntryType)(e))}))),[]);const O=(0,a.useCallback)((e=>{A((0,i.selectByNames)(e.detail.value))}),[]),g=(0,a.useCallback)((e=>{A((0,i.selectTestConnectionByNames)(e.detail.value))}),[]),E=(0,a.useCallback)((()=>{console.log("checkData to be posted",o),e===c.SharedNs.VscodeCommandPayloadEntryType.PostmanConvertDocument?l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.postmanDoneConvertDocument,{items:o,selectedItemForTestConnection:v[0]}):l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.postmanSelectRequests,{items:o}),l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.webviewLifecycle,{type:"close"})}),[o,v,e]),j=(0,a.useCallback)((()=>{A(S?(0,i.deselectAll)():(0,i.selectAll)()),b(!S)}),[S]);return(0,a.useEffect)((()=>{l.UtilsNs.notifyVscodeExtension(c.SharedNs.WebviewCommandEnum.postmanSelectReady,{isReady:!0})}),[]),(0,n.jsxs)(u,{children:[e!==c.SharedNs.VscodeCommandPayloadEntryType.PostmanConvertDocument&&(0,n.jsx)("h2",{children:"Select the request(s) you want to add to the adapter definition document."}),e===c.SharedNs.VscodeCommandPayloadEntryType.PostmanConvertDocument&&(0,n.jsx)("h2",{children:"Select the request(s) you want to convert to the adapter definition document."}),(0,n.jsxs)(h,{children:["You have selected ",o.length," requests to convert."]}),!!v.length&&(0,n.jsxs)(h,{children:["The request for testing connection: ",v[0]]}),(0,n.jsx)(p,{children:(0,n.jsx)("oj-button",Object.assign({onClick:E},{children:"Done"}))}),(0,n.jsx)(m,{children:(0,n.jsx)("oj-checkboxset",Object.assign({value:[S],onClick:j},{children:(0,n.jsx)("oj-option",Object.assign({value:!0},{children:"Select All"}))}))}),(0,n.jsx)("oj-tree-view",{id:"select_requests",data:y,selectionMode:"multiple","aria-label":"All Postman requests",onselectionChanged:O,selection:d,item:{renderer:({data:e})=>({insert:e.title})}}),e===c.SharedNs.VscodeCommandPayloadEntryType.PostmanConvertDocument&&(0,n.jsxs)("oj-collapsible",{children:[(0,n.jsxs)("h5",Object.assign({slot:"header"},{children:[!!v.length&&(0,n.jsxs)("span",{children:["The request for testing connection: ",v[0]]}),!v.length&&(0,n.jsx)("span",{children:"(Optional) Pick a request for test connection."})]})),(0,n.jsx)("oj-tree-view",{id:"select_request_for_test_conn",data:y,selectionMode:"single","aria-label":"All Postman requests",onselectionChanged:g,selection:v,item:{renderer:({data:e})=>({insert:e.title})}})]})]})}}.apply(t,a),void 0===s||(e.exports=s)},7365:function(e,t,n){var a,s,o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(s,o){function l(e){try{d(a.next(e))}catch(e){o(e)}}function c(e){try{d(a.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,c)}d((a=a.apply(e,t||[])).next())}))};a=[n,t,n(3629),n(9338)],s=function(e,t,n,a){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.selectPostmanCheckedForTestConnection=t.selectPostmanCheckedWithParentNodes=t.selectPostmanChecked=t.selectEntryType=t.selectPostmanSelect=t.deselectAll=t.selectAll=t.setEntryType=t.updatePostmanRawData=t.selectTestConnectionByNames=t.selectByNames=t.postmanSelectSlice=t.getPostmanDataAsync=void 0;const l={entryType:a.SharedNs.VscodeCommandPayloadEntryType.PostmanAddRequest,status:"idle"};t.getPostmanDataAsync=(0,n.createAsyncThunk)("postmanSelect/getPostmanRawData",(()=>o(void 0,void 0,void 0,(function*(){return{}}))));const c=(e,t,n)=>{var a;const s=void 0!==n;var o=!!e.name&&(!!t[e.name]!==e.isSelected||s);o&&(e.isSelected=s?n:!!t[e.name]),(o||s)&&(null===(a=e.item)||void 0===a||a.forEach((e=>{delete t[e.name]}))),e.item&&e.item.forEach((a=>c(a,t,s?n:o?e.isSelected:void 0)))},d=(e,t)=>{e.item?e.item.forEach((e=>d(e,t))):e.isSelectedForTestConnection=!!t[e.name]},i=(e,t)=>{e.isSelected=t,e.item&&e.item.forEach((e=>i(e,t)))};t.postmanSelectSlice=(0,n.createSlice)({name:"postmanSelect",initialState:l,reducers:{selectByNames:(e,t)=>{c(e.value,Object.fromEntries(t.payload.map((e=>[e,!0]))))},selectTestConnectionByNames:(e,t)=>{d(e.value,Object.fromEntries(t.payload.map((e=>[e,!0]))))},selectAll:(e,t)=>{i(e.value,!0)},deselectAll:(e,t)=>{i(e.value,!1)},updatePostmanRawData:(e,t)=>{((e,t)=>{e.value=t.payload})(e,t)},setEntryType:(e,t)=>{e.entryType=t.payload}},extraReducers:e=>{e.addCase(t.getPostmanDataAsync.pending,(e=>{e.status="loading"})).addCase(t.getPostmanDataAsync.fulfilled,((e,t)=>{e.status="idle",e.value=t.payload})).addCase(t.getPostmanDataAsync.rejected,(e=>{e.status="failed"}))}}),s=t.postmanSelectSlice.actions,t.selectByNames=s.selectByNames,t.selectTestConnectionByNames=s.selectTestConnectionByNames,t.updatePostmanRawData=s.updatePostmanRawData,t.setEntryType=s.setEntryType,t.selectAll=s.selectAll,t.deselectAll=s.deselectAll,t.selectPostmanSelect=e=>e.postmanSelect.value,t.selectEntryType=e=>e.postmanSelect.entryType;const r=(e,t)=>{const n=e.isSelected?[e.name]:[];return e.item?e.item.map((e=>r(e,t))).reduce(((e,t)=>[...e,...t]),t?n:[]):n},u=e=>{const t=e.isSelectedForTestConnection?[e.name]:[];return e.item?e.item.map((e=>u(e))).reduce(((e,t)=>[...e,...t]),[]):t};t.selectPostmanChecked=(0,n.createSelector)(t.selectPostmanSelect,(e=>e?r(e):[])),t.selectPostmanCheckedWithParentNodes=(0,n.createSelector)(t.selectPostmanSelect,(e=>e?r(e,!0):[])),t.selectPostmanCheckedForTestConnection=(0,n.createSelector)(t.selectPostmanSelect,(e=>e?u(e):[])),t.default=t.postmanSelectSlice.reducer}.apply(t,a),void 0===s||(e.exports=s)},5540:(e,t,n)=>{var a,s;a=[n,t,n(8661),n(4343),n(3774),n(9338),n(583)],s=function(e,t,n,a,s,o,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RabAdd=void 0,t.RabAdd=function(){const e=(0,a.useAppSelector)(l.selectRabAdd),t=(0,a.useAppSelector)(l.selectRabAddDraft),c=(0,a.useAppSelector)(l.selectVsCodeEditorConfig),d=(0,a.useAppSelector)(l.selectRabAddStatus),i=(0,a.useAppDispatch)();return(0,n.useEffect)((()=>{console.log("[RabAdd] data changed.",e)}),[e]),(0,n.useEffect)((()=>{"saving"===d&&t&&s.UtilsNs.notifyVscodeExtension(o.SharedNs.WebviewCommandEnum.rabAddSave,{addToSave:t,vsCodeEditorConfig:c})}),[d,t,c]),(0,n.useEffect)((()=>{window.vscode===window&&i((0,l.getRabAddDataAsync)())}),[]),(0,n.useEffect)((()=>s.UtilsNs.listenVscodeExtension(o.SharedNs.ExtensionCommandEnum.loadRabAddData,(e=>{e?i((0,l.loadRabAddData)(e)):console.error("[RabAdd] rabAddData must be set")}))),[]),(0,n.useEffect)((()=>{s.UtilsNs.notifyVscodeExtension(o.SharedNs.WebviewCommandEnum.rabAddReady,{isReady:!0})}),[]),null}}.apply(t,a),void 0===s||(e.exports=s)},583:function(e,t,n){var a,s,o=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(s,o){function l(e){try{d(a.next(e))}catch(e){o(e)}}function c(e){try{d(a.throw(e))}catch(e){o(e)}}function d(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,c)}d((a=a.apply(e,t||[])).next())}))};a=[n,t,n(3629)],s=function(e,t,n){"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.selectRabAddStatus=t.selectVsCodeEditorConfig=t.selectRabAddDraft=t.selectRabAdd=t.saveRabAddData=t.loadRabAddData=t.rabAddSlice=t.getRabAddDataAsync=void 0,t.getRabAddDataAsync=(0,n.createAsyncThunk)("rabAdd/load",(()=>o(void 0,void 0,void 0,(function*(){return{}})))),t.rabAddSlice=(0,n.createSlice)({name:"rabAdd",initialState:{status:"idle"},reducers:{loadRabAddData:(e,t)=>{e.draft=e.value=t.payload,e.status="idle"},saveRabAddData:(e,t)=>{e.draft=t.payload.add,e.draftString=t.payload.addString,e.vsCodeEditorConfig=t.payload.editorConfig,e.status="saving"}},extraReducers:e=>{e.addCase(t.getRabAddDataAsync.pending,(e=>{e.status="loading"})).addCase(t.getRabAddDataAsync.fulfilled,((e,t)=>{e.status="idle",e.value=t.payload,e.draft=e.value=t.payload})).addCase(t.getRabAddDataAsync.rejected,(e=>{e.status="failed"}))}}),a=t.rabAddSlice.actions,t.loadRabAddData=a.loadRabAddData,t.saveRabAddData=a.saveRabAddData,t.selectRabAdd=e=>e.rabAdd.value,t.selectRabAddDraft=e=>e.rabAdd.draft,t.selectVsCodeEditorConfig=e=>e.rabAdd.vsCodeEditorConfig,t.selectRabAddStatus=e=>e.rabAdd.status,t.default=t.rabAddSlice.reducer}.apply(t,a),void 0===s||(e.exports=s)},8460:(e,t,n)=>{var a,s;a=[n,t,n(8990)],void 0===(s=function(e,t){}.apply(t,a))||(e.exports=s)},3774:(e,t,n)=>{var a;a=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UtilsNs=void 0;const n=window.vscode||(window.acquireVsCodeApi?window.acquireVsCodeApi():window.parent||window);var a;window.vscode=n,(a=t.UtilsNs||(t.UtilsNs={})).notifyVscodeExtension=(e,t)=>{window.vscode.postMessage({target:"vscode",command:e,payload:t},"*")},a.listenVscodeExtension=(e,t)=>{const n=n=>{var a,s;if("webview"!==(null===(a=n.data)||void 0===a?void 0:a.target))return;const{command:o,payload:l}=null!==(s=n.data)&&void 0!==s?s:{};o===e&&t(l)};return window.addEventListener("message",n),()=>window.removeEventListener("message",n)}}.apply(t,[n,t]),void 0===a||(e.exports=a)},9338:(e,t,n)=>{var a;a=function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RabAddUtilNs=t.SharedNs=void 0,function(e){let t,n;e.ADDJsonStringify=e=>JSON.stringify(e,null,2),e.WebviewCommandEnum={webviewRouterReady:"webviewRouterReady",webviewLifecycle:"webviewLifecycle",postmanSelectRequests:"postmanSelectRequests",postmanDoneConvertDocument:"postmanDoneConvertDocument",postmanSelectReady:"postmanSelectReady",openAPISelectRequests:"openAPISelectRequests",openAPISelectReady:"openAPISelectReady",openAPIDoneConvertDocument:"openAPIDoneConvertDocument",rabAddReady:"rabAddReady",rabAddSave:"rabAddSave"},e.ExtensionCommandEnum={openCopilotPostmanConvert:"orab.webview.copilot.open.postman.convert",openPostmanConvertConverDocument:"orab.convert.postman.document",openOpenAPIConvertNewDocument:"orab.add.convert",openOpenAPIConvertAppendDocument:"orab.add.convert.append",openCopilotAssistant:"orab.webview.copilot.open.assistant",updatePostmanRawData:"updatePostmanRawData",updateOpenAPIRawData:"updateOpenAPIRawData",updateEntryType:"updateEntryType",loadRabAddData:"loadRabAddData",routerNavigateTo:"routerNavigateTo"},function(e){e.Root="/",e.PostmanAdd="postman/add",e.OpenAPIAdd="openapi/add",e.Copilot="copilot"}(t=e.WebviewRouteEnum||(e.WebviewRouteEnum={})),function(e){e.PostmanConvertDocument="PostmanConvertDocument",e.PostmanAddRequest="PostmanAddRequest",e.OpenAPIConvertDocument="OpenAPIConvertDocument",e.OpenAPIAddRequest="OpenAPIAddRequest"}(n=e.VscodeCommandPayloadEntryType||(e.VscodeCommandPayloadEntryType={}))}(t.SharedNs||(t.SharedNs={})),(t.RabAddUtilNs||(t.RabAddUtilNs={})).flowPrefix="flow:"}.apply(t,[n,t]),void 0===a||(e.exports=a)}},e=>{e.O(0,[412],(()=>(8460,e(e.s=8460)))),e.O()}]); diff --git a/webview/js/runtime.0d0deb30a3db406d6c79.js b/webview/js/runtime.0d0deb30a3db406d6c79.js index 7f69aef..9d8a48b 100644 --- a/webview/js/runtime.0d0deb30a3db406d6c79.js +++ b/webview/js/runtime.0d0deb30a3db406d6c79.js @@ -1,5 +1,5 @@ /** - * Copyright © 2023, Oracle and/or its affiliates. + * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ (()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(f=0;f=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.e=()=>Promise.resolve(),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,i,[l,a,u]=t,d=0;if(l.some((r=>0!==e[r]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var f=u(o)}for(r&&r(t);d Date: Fri, 3 May 2024 11:27:47 -0500 Subject: [PATCH 2/7] plan-OIC-54878: Copyright to 2024 for UI --- webview/index.html | 2 +- ....0d0deb30a3db406d6c79.js => index.c503ed20880785365d34.js} | 4 ++-- ....LICENSE.txt => index.c503ed20880785365d34.js.LICENSE.txt} | 0 ...n.0d0deb30a3db406d6c79.js => main.c503ed20880785365d34.js} | 2 +- ...d0deb30a3db406d6c79.js => runtime.c503ed20880785365d34.js} | 2 +- webview/styles/main.0d0deb30a3db406d6c79.css | 3 --- webview/styles/main.c503ed20880785365d34.css | 3 +++ 7 files changed, 8 insertions(+), 8 deletions(-) rename webview/js/libs/{index.0d0deb30a3db406d6c79.js => index.c503ed20880785365d34.js} (99%) rename webview/js/libs/{index.0d0deb30a3db406d6c79.js.LICENSE.txt => index.c503ed20880785365d34.js.LICENSE.txt} (100%) rename webview/js/{main.0d0deb30a3db406d6c79.js => main.c503ed20880785365d34.js} (99%) rename webview/js/{runtime.0d0deb30a3db406d6c79.js => runtime.c503ed20880785365d34.js} (96%) delete mode 100644 webview/styles/main.0d0deb30a3db406d6c79.css create mode 100644 webview/styles/main.c503ed20880785365d34.css diff --git a/webview/index.html b/webview/index.html index 9dbc54e..e082e8d 100644 --- a/webview/index.html +++ b/webview/index.html @@ -5,4 +5,4 @@ Oracle JET VDOM Starter Template - Basic - \ No newline at end of file + \ No newline at end of file diff --git a/webview/js/libs/index.0d0deb30a3db406d6c79.js b/webview/js/libs/index.c503ed20880785365d34.js similarity index 99% rename from webview/js/libs/index.0d0deb30a3db406d6c79.js rename to webview/js/libs/index.c503ed20880785365d34.js index e8e3d92..c2fa471 100644 --- a/webview/js/libs/index.0d0deb30a3db406d6c79.js +++ b/webview/js/libs/index.c503ed20880785365d34.js @@ -2,6 +2,6 @@ * Copyright © 2022-2024, Oracle and/or its affiliates. * This software is licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl. */ - /*! For license information please see index.0d0deb30a3db406d6c79.js.LICENSE.txt */ + /*! For license information please see index.c503ed20880785365d34.js.LICENSE.txt */ (self.webpackChunkweb_jetui=self.webpackChunkweb_jetui||[]).push([[412],{322:(e,t,n)=>{"use strict";n(5047),n(3720),n(7265)},5047:(e,t,n)=>{"use strict";n(3720),n(7265)},3720:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(7265);const i={name:"redwood",base:r.zX,colorScheme:r.Sl,scale:r.DS}},7265:(e,t,n)=>{"use strict";n.d(t,{DS:()=>o,Sl:()=>i,zX:()=>r});var r={cursor:{clickable:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-cursor-clickable)"},boxShadow:{xs:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-xs)",sm:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-sm)",md:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-md)",lg:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-lg)",xl:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-box-shadow-xl)"},borderRadius:{sm:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-sm)",md:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-md)",lg:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-lg)",xl:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-radius-xl)"}},i={palette:{neutral:{0:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-0)",10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-190)",200:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-neutral-200)"},danger:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-danger-190)"},success:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-success-190)"},warning:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-warning-190)"},info:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-info-190)"},brand:{10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-10)",20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-20)",30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-30)",40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-40)",50:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-50)",60:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-60)",70:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-70)",80:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-80)",90:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-90)",100:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-100)",110:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-110)",120:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-120)",130:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-130)",140:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-140)",150:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-150)",160:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-160)",170:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-170)",180:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-180)",190:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-palette-brand-190)"}},overlay:{hover:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-hover)",active:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-active)",dangerHover:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-danger-hover)",dangerActive:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-danger-active)",scrim:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-scrim)",inverseHover:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-inverse-hover)",inverseActive:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-overlay-inverse-active)"},pageBackground:{neutral0:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral0)",neutral10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral10)",neutral20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral20)",neutral30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral30)",neutral40:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-page-background-neutral40)"},surface:{neutral0:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral0)",neutral10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral10)",neutral20:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral20)",neutral30:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral30)",selected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-selected)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-disabled)",neutral:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-neutral-strong)"},success:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-success-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-success-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-success-strong)"},info:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-info-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-info-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-info-strong)"},warning:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-warning-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-warning-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-warning-strong)"},danger:{low:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-danger-low)",subtle:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-danger-subtle)",strong:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-surface-danger-strong)"}},border:{enabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-enabled)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-disabled)",divider:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-divider)",selected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-selected)",dropLine:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-drop-line)",selectedNeutral:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-selected-neutral)",warning:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-warning)",danger:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-danger)",keyboardFocus:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-border-keyboard-focus)"},boxshadow:{shadowcolor:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-boxshadow-shadowcolor)"},textIcon:{primary:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-primary)",secondary:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-secondary)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-disabled)",inverse:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-inverse)",onColor:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-on-color)",link:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-link)",success:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-success)",info:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-info)",warning:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-warning)",danger:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-danger)",successLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-success-low)",infoLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-info-low)",warningLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-warning-low)",dangerLow:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-text-icon-danger-low)"},collection:{header:{text:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-header-text)",surface:{selected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-header-surface-selected)",partialSelected:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-header-surface-partial-selected)"}}},collectionGrid:{cell:{surfaceEdit:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-collection-grid-cell-surface-edit)"}},measure:{track:{enabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-track-enabled)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-track-disabled)"},fill:{enabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-fill-enabled)",disabled:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-fill-disabled)"},thumb:{surface:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-thumb-surface)"},reference:{line:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-reference-line)",lineContrast:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-reference-line-contrast)",area:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-measure-reference-area)"}},dvt:{contrastLine:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-contrast-line)",paletteQualitative:{1:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-1)",2:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-2)",3:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-3)",4:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-4)",5:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-5)",6:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-6)",7:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-7)",8:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-8)",9:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-9)",10:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-10)",11:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-11)",12:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-palette-qualitative-12)"},threshold:{success:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-threshold-success)",warning:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-threshold-warning)",danger:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-threshold-danger)"},marquee:{border:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-marquee-border)",surface:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-marquee-surface)"},referenceObject:{area:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-reference-object-area)",line:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-reference-object-line)"},overview:{background:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-overview-background)",windowBackground:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-overview-window-background)",windowBorder:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-dvt-overview-window-border)"}}},o={size:{units:"var(--oj-c-EXPERIMENTAL-DO-NOT-USE-size-units)"}}},4580:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EnvironmentContext:()=>r.E,EnvironmentProvider:()=>r.a,RootEnvironmentProvider:()=>r.R});var r=n(297);n(6400),n(322),n(5047),n(3720),n(7265),n(6584),n(396),n(8661)},9557:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CalendarUtils:()=>l,DateTimeUtils:()=>B,NativeDateTimeConstants:()=>p,NativeParserImpl:()=>F,formatWithYearFormat:()=>W,getFormatParse:()=>ne,getISODateOffset:()=>c,normalizeIsoString:()=>z});var r=n(2024),i=n(2918),o=n(1192);const s=(0,o._)((function(e,t){for(var n={},r=0;r"dayPeriod"===e.type));return t?t.value:""}const i=l.getFormatterLocale(e,t),o=new Intl.DateTimeFormat(i,{hour:"numeric",hour12:!0}),s=r(o);return n.setHours(20),{format:{wide:{am:s,pm:r(o)}}}}static getFormatterLocale(e,t){return e+"-u-ca-"+t}static _getEras(e,t){const n=[{era:"0",start:"2000-02-11T00:00:00"}],r={eraNarrow:{0:"",1:""},eraAbbr:{0:"",1:""},eraName:{0:"",1:""}};function i(e,t){const n=e.formatToParts(t).find((e=>"era"===e.type));return n?n.value:""}const o=["narrow","short","long"],s=l.getFormatterLocale(e,t),a={narrow:"eraNarrow",short:"eraAbbr",long:"eraName"};for(let e=0;e"month"===e.type));return t?t.value:null}function a(e){const t=e.find((e=>"weekday"===e.type));return t?t.value:null}const u=l.getFormatterLocale(e,t),c=new Intl.DateTimeFormat(u,r),d={},h={};for(let e=0;e0?n+=1440:i<0&&(r+=1440),r-n}(e,d(n,t));let i=0;return n.setTime(n.getTime()-6e4*r),h(d(n,t),e)||(i=-60,n.setTime(n.getTime()+36e5),h(d(n,t),e)||(i=60,n.setTime(n.getTime()-72e5))),r+i}function d(e,t){const n=function(e){let t=u.get(e);return t||(t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23",timeZone:e}),u.set(e,t)),t}(t).format(e),[r,i]=n.split(","),[o,s,a]=r.split("/"),[l,c]=i.trim().split(":");return{year:parseInt(a),month:parseInt(o),date:parseInt(s),hours:parseInt(l),minutes:parseInt(c)}}function h(e,t){return e.year===t.year&&e.month===t.month&&e.hours===t.hours&&e.minutes===t.minutes}class p{}p._YEAR_AND_DATE_REGEXP=/(\d{1,4})\D+?(\d{1,4})/g,p._YMD_REGEXP=/(\d{1,4})\D+?(\d{1,4})\D+?(\d{1,4})/g,p._TIME_REGEXP=/(\d{1,2})(?:\D(\d{1,2}))?(?:\D(\d{1,2}))?(?:\D(\d{1,3}))?/g,p._TIME_FORMAT_REGEXP=/h|H|K|k/g,p._YEAR_REGEXP=/y{1,4}/,p._MONTH_REGEXP=/M{1,5}/,p._DAY_REGEXP=/d{1,2}/,p._WEEK_DAY_REGEXP=/E{1,5}/,p._HOUR_REGEXP=/h{1,2}|k{1,2}/i,p._MINUTE_REGEXP=/m{1,2}/,p._SECOND_REGEXP=/s{1,2}/,p._FRACTIONAL_SECOND_REGEXP=/S{1,3}/,p._AMPM_REGEXP=/a{1,2}/,p._WORD_REGEXP="(\\D+?\\s*)",p._ESCAPE_REGEXP=/([\^$.*+?|\[\](){}])/g,p._TOKEN_REGEXP=/ccccc|cccc|ccc|cc|c|EEEEE|EEEE|EEE|EE|E|dd|d|MMMMM|MMMM|MMM|MM|M|LLLLL|LLLL|LLL|LL|L|yyyy|yy|y|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|aa|a|SSS|SS|S|zzzz|zzz|zz|z|v|ZZZ|ZZ|Z|XXX|XX|X|VV|GGGGG|GGGG|GGG|GG|G/g,p._ZULU="zulu",p._LOCAL="local",p._AUTO="auto",p._INVARIANT="invariant",p._OFFSET="offset",p._ALNUM_REGEXP="(\\D+|\\d\\d?\\D|\\d\\d?|\\D+\\d\\d?)",p._NON_DIGIT_REGEXP="(\\D+|\\D+\\d\\d?)",p._NON_DIGIT_OPT_REGEXP="(\\D*)",p._STR_REGEXP="(.+?)",p._TWO_DIGITS_REGEXP="(\\d\\d?)",p._THREE_DIGITS_REGEXP="(\\d{1,3})",p._FOUR_DIGITS_REGEXP="(\\d{1,4})",p._SLASH_REGEXP="(\\/)",p._PROPERTIES_MAP={MMM:{token:"months",style:"format",mLen:"abbreviated",matchIndex:0,key:"month",value:"short",regExp:p._ALNUM_REGEXP},MMMM:{token:"months",style:"format",mLen:"wide",matchIndex:0,key:"month",value:"long",regExp:p._ALNUM_REGEXP},MMMMM:{token:"months",style:"format",mLen:"narrow",matchIndex:0,key:"month",value:"narrow",regExp:p._ALNUM_REGEXP},LLL:{token:"months",style:"stand-alone",mLen:"abbreviated",matchIndex:1,key:"month",value:"short",regExp:p._ALNUM_REGEXP},LLLL:{token:"months",style:"stand-alone",mLen:"wide",matchIndex:1,key:"month",value:"long",regExp:p._ALNUM_REGEXP},LLLLL:{token:"months",style:"stand-alone",mLen:"narrow",matchIndex:1,key:"month",value:"narrow",regExp:p._ALNUM_REGEXP},E:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},EE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},EEE:{token:"days",style:"format",dLen:"abbreviated",matchIndex:0,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},EEEE:{token:"days",style:"format",dLen:"wide",matchIndex:0,key:"weekday",value:"long",regExp:p._NON_DIGIT_REGEXP},EEEEE:{token:"days",style:"format",dLen:"narrow",matchIndex:0,key:"weekday",value:"narrow",regExp:p._NON_DIGIT_REGEXP},c:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},cc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},ccc:{token:"days",style:"stand-alone",dLen:"abbreviated",matchIndex:1,key:"weekday",value:"short",regExp:p._NON_DIGIT_REGEXP},cccc:{token:"days",style:"stand-alone",dLen:"wide",matchIndex:1,key:"weekday",value:"long",regExp:p._NON_DIGIT_REGEXP},ccccc:{token:"days",style:"stand-alone",dLen:"narrow",matchIndex:1,key:"weekday",value:"narrow",regExp:p._NON_DIGIT_REGEXP},h:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},hh:{token:"time",timePart:"hour",start1:0,end1:11,start2:1,end2:12,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},K:{token:"time",timePart:"hour",start1:0,end1:12,start2:0,end2:12,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},KK:{token:"time",timePart:"hour",start1:0,end1:12,start2:0,end2:12,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},H:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},HH:{token:"time",timePart:"hour",start1:0,end1:23,start2:0,end2:23,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},k:{token:"time",timePart:"hour",start1:0,end1:24,start2:0,end2:24,key:"hour",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},kk:{token:"time",timePart:"hour",start1:0,end1:24,start2:0,end2:24,key:"hour",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},m:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},mm:{token:"time",timePart:"minute",start1:0,end1:59,start2:0,end2:59,key:"minute",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},s:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"numeric",regExp:p._TWO_DIGITS_REGEXP},ss:{token:"time",timePart:"second",start1:0,end1:59,start2:0,end2:59,key:"second",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},S:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:p._THREE_DIGITS_REGEXP},SS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:p._THREE_DIGITS_REGEXP},SSS:{token:"time",timePart:"millisec",start1:0,end1:999,start2:0,end2:999,key:"millisecond",value:"numeric",regExp:p._THREE_DIGITS_REGEXP},d:{token:"dayOfMonth",key:"day",value:"numeric",getPartIdx:2,regExp:p._TWO_DIGITS_REGEXP},dd:{token:"dayOfMonth",key:"day",value:"2-digit",getPartIdx:2,regExp:p._TWO_DIGITS_REGEXP},M:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},MM:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},L:{token:"monthIndex",key:"month",value:"numeric",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},LL:{token:"monthIndex",key:"month",value:"2-digit",getPartIdx:1,regExp:p._TWO_DIGITS_REGEXP},y:{token:"year",key:"year",value:"numeric",regExp:p._FOUR_DIGITS_REGEXP},yy:{token:"year",key:"year",value:"2-digit",regExp:p._TWO_DIGITS_REGEXP},yyyy:{token:"year",key:"year",value:"numeric",regExp:p._FOUR_DIGITS_REGEXP},a:{token:"ampm",key:"dayPeriod",value:void 0,regExp:p._WORD_REGEXP},z:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},v:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},zz:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},zzz:{token:"tzAbbrev",key:"timeZoneName",value:"short",regExp:p._STR_REGEXP},zzzz:{token:"tzFull",key:"timeZoneName",value:"long",regExp:p._STR_REGEXP},Z:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},ZZ:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},ZZZ:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},X:{token:"tzh",key:"tzh",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},XX:{token:"tzhm",key:"tzhm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},XXX:{token:"tzhsepm",key:"tzhsepm",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},VV:{token:"tzid",key:"tzid",value:"short",regExp:p._STR_REGEXP,type:"tzOffset"},G:{token:"era",key:"era",value:"eraAbbr",regExp:p._NON_DIGIT_REGEXP},GG:{token:"era",key:"era",value:"eraAbbr",regExp:p._NON_DIGIT_REGEXP},GGG:{token:"era",key:"era",value:"eraAbbr",regExp:p._NON_DIGIT_REGEXP},GGGG:{token:"era",key:"era",value:"eraName",regExp:p._NON_DIGIT_REGEXP},GGGGG:{token:"era",key:"era",value:"eraNarrow",regExp:p._NON_DIGIT_REGEXP},"/":{token:"slash",regExp:p._SLASH_REGEXP}},p.FRACTIONAL_SECOND_MAP={a:{key:"dayPeriod",token:"dayPeriod",value:"narrow"},SSS:{key:"fractionalSecondDigits",token:"fractionalSecond",value:3},SS:{key:"fractionalSecondDigits",token:"fractionalSecond",value:2},S:{key:"fractionalSecondDigits",token:"fractionalSecond",value:1}},p._tokenMap={era:{short:"GGG",long:"GGGG",narrow:"GGGGG"},month:{short:"MMM",long:"MMMM",narrow:"MMMMM",numeric:"M","2-digit":"MM"},weekday:{short:"EEE",long:"EEEE",narrow:"EEEEE"},year:{numeric:"y","2-digit":"yy"},day:{numeric:"d","2-digit":"dd"},hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},fractionalSecond:{1:"S",2:"SS",3:"SSS"},timeZoneName:{short:"z",long:"zzzz"}},p._dateTimeFormats={dateStyle:{full:{year:"y",month_s:"MM",month_m:"MMMM",weekday:"EEEE",day:"d"},long:{year:"y",month_s:"MM",month_m:"MMMM",day:"d"},medium:{year:"y",month_s:"MM",month_m:"MMM",day:"d"},short:{year:"y",month_s:"M",month_m:"MMM",day:"d"}},timeStyle:{full:{hour:"h",minute:"mm",second:"ss",timeZoneName:"zzzz"},long:{hour:"h",minute:"mm",second:"ss",timeZoneName:"z"},medium:{hour:"h",minute:"mm",second:"ss"},short:{hour:"h",minute:"mm"}}},p._ALPHA_REGEXP=/([a-zA-Z]+)/,p._HOUR12_REGEXP=/h/g,p._hourCycleMap={h12:"h",h23:"H",h11:"K",h24:"k"},p._zh_tw_locales=["zh-TW","zh-Hant","zh-Hant-TW"],p._zh_tw_pm_symbols=["中午","下午","晚上"];const f=/^\s+|\s+$|\u200f|\u200e/g,m=/\s+|\u200f|\u200e/g,_=/0+$/g,g=["0","00","000"],v=/^[+-]?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}(?::?\d{2})?)?)?$|^T\d{2}:\d{2}(?::\d{2}(?:\.\d{1,3})?)?(Z|[+-]\d{2}(?::?\d{2})?)?$/,y=/^[+-]?\d{4}-\d{2}-\d{2}$/;function E(e,t){return 0===e.indexOf(t)}function b(e){return(e+"").replace(f,"")}function S(e){return(e+"").replace(_,"")}function C(e){return(e+"").replace(m,"")}function O(e){return e.split(" ").join(" ").toUpperCase()}function T(e,t){let n=e+"",r=!1;return e<0&&(n=n.substr(1),r=!0),t>1&&n.length0&&(n+="."+S(T(t.getMilliseconds(),3))),n}function N(e){return e%400==0||e%100!=0&&e%4==0}function R(e,t){switch(t){case 0:case 2:case 4:case 6:case 7:case 9:case 11:return 31;case 1:return N(e)?29:28;default:return 30}}function x(e){!1===v.test(e)&&I(e);const t=e.split("T"),n=e.indexOf("T"),r=new Date;let i,o=!1;const s=[r.getFullYear(),r.getMonth()+1,r.getDate(),0,0,0,0];if(""!==t[0]){E(t[0],"-")&&(t[0]=t[0].slice(1),o=!0);const n=t[0].split("-");for(i=0;i12)&&w(e,"month",t,1,12),2===i){const n=R(s[0],s[1]-1);(t<1||t>n)&&w(e,"day",t,1,n)}s[i]=t}o&&(s[0]=-s[0])}if(-1!==n){const n=t[1].split("."),r=n[0].split(":");for(i=0;i24)&&w(e,"hour",t,0,24),1===i&&(t<0||t>59)&&w(e,"minute",t,0,59),2===i&&(t<0||t>59)&&w(e,"second",t,0,59),s[3+i]=t}2===n.length&&n[1]&&(s[6]=parseInt(A(n[1],3,!1),10))}return s}function D(e,t){if(void 0===e)throw new Error("Internal "+t+" error. Default options missing.");return function(n,r,i,o){if(void 0!==e[n]){let o=e[n];switch(r){case"boolean":o=function(e){if("string"==typeof e)switch(e.toLowerCase().trim()){case"true":case"1":return!0;case"false":case"0":return!1;default:return e}return e}(o);break;case"string":o=String(o);break;case"number":o=Number(o);break;default:throw new Error("Internal error. Wrong value type.")}if(void 0!==i&&-1===i.indexOf(o)){const r=[];for(let e=0;e0&&(t+="."+S(T(e[6],3))),t}function j(e){return e&&"string"==typeof e?function(e){const t=x(e),n=new Date(t[0],t[1]-1,t[2],t[3],t[4],t[5],t[6]);return n.setFullYear(t[0]),n}(e):null}function M(e){const t={format:null,dateTime:null,timeZone:"",isoStrParts:null},n=v.exec(e);if(null===n&&I(e),n&&void 0===n[1]&&void 0===n[2])return t.format="local",t.dateTime=e,t.isoStrParts=x(t.dateTime),t;t.timeZone=void 0!==n[1]?n[1]:n[2],"Z"===t.timeZone?t.format="zulu":t.format="offset";const r=e.length,i=t.timeZone.length;return t.dateTime=e.substring(0,r-i),t.isoStrParts=x(t.dateTime),t}function k(e,t,n,r){const i=n?t>0:t<0,o=Math.abs(t);let s=Math.floor(o/60);const a=o%60,l=i?"-":"+";r&&(s=A(s,2,!0));let u=e+l+s;return(a>0||r)&&(u+=":"+A(a,2,!0)),u}var B={__proto__:null,_ISO_DATE_REGEXP:v,isDateOnlyIsoString:function(e){return null==e||e.trim().length>0&&y.test(e.trim())},startsWith:E,trim:b,trimRightZeros:S,trimNumber:C,toUpper:O,padZeros:T,zeroPad:A,dateToLocalIso:P,isLeapYear:N,getDaysInMonth:R,IsoStrParts:x,getGetOption:D,partsToIsoString:L,isoToLocalDate:j,getISOStrFormatInfo:M,getTimeStringFromOffset:k};let U=null;class F{static parseImpl(e,t,n,r){let i,o=0,s="",a=null;return!0===v.test(e)?(s=e,o=this._isoStrDateTimeStyle(e)):(o=this._dateTimeStyle(n),i=this._parseExact(e,t,n,r),s=i.value),a=M(s),void 0!==n.timeZone&&a.format!==p._LOCAL&&this._adjustHours(a,n),s=this._createParseISOStringFromDate(o,a,n),void 0===i?i={value:s,warning:null}:(i.value=s,i.warning=null),2===o&&(n.isoStrFormat,p._LOCAL),i}static _appendPreOrPostMatch(e,t){let n=0,r=!1;for(let i=0,o=e.length;ie.high){const t=e.displayValue+" is out of range. Enter a value between "+e.displayLow+" and "+e.displayHigh+" for "+e.name,n={cause:{code:"datetimeOutOfRange",parameterMap:{value:e.displayValue,minValue:e.displayLow,maxValue:e.displayHigh,propertyName:e.name}}};throw new RangeError(t,n)}}static _throwInvalidDateFormat(e,t,n){const r=void 0!==t.year||void 0!==t.month||void 0!==t.weekday||void 0!==t.day,i=void 0!==t.hour||void 0!==t.minute||void 0!==t.second;let o="";throw o=r&&i?"MM/dd/yy hh:mm:ss a":r?"MM/dd/yy":"hh:mm:ss a",new SyntaxError("Unexpected character(s) "+n+' encountered in the pattern "'+e+' An example of a valid pattern is "'+o+'".',{cause:{code:"optionValueInvalid",parameterMap:{propertyName:"pattern",propertyValue:e}}})}static _throwWeekdayMismatch(e,t){const n="The weekday "+e+" does not match the date "+t,i={cause:{code:"dateToWeekdayMismatch",parameterMap:{weekday:e,date:t}}};throw new r.FormatParseError(n,i)}static _throwDateFormatMismatch(e,t,n){let i="",o="";2===n?(i='The value "'+e+'" does not match the expected date-time format "'+t+'"',o="datetimeFormatMismatch"):0===n?(i='The value "'+e+'" does not match the expected date format "'+t+'"',o="dateFormatMismatch"):(i='The value "'+e+'" does not match the expected time format "'+t+'"',o="timeFormatMismatch");const s={cause:{code:o,parameterMap:{value:e,format:t}}};throw new r.FormatParseError(i,s)}static _parseTimezoneOffset(e){const t=e.split(":"),n=new Array(2);return 2===t.length?(n[0]=parseInt(t[0],10),n[1]=parseInt(t[1],10)):2===e.length||3===e.length?(n[0]=parseInt(e,10),n[1]=0):(n[0]=parseInt(e.substr(0,3),10),n[1]=parseInt(e.substr(3),10)),n}static _expandYear(e,t){if((t=Number(t))<100){const n=e%100;t+=100*Math.floor(e/100)+(t2||t>31)&&(l=t,_=!0,d=f-1)}for(_||(d=this._getTokenIndex(a,"y"),l=o[this._getTokenIndex(a,"y")+1]),f=0;f<3;f++)if(f!==d&&o[f+1]>12){c=o[f+1],g=!0,h=f;break}if(g){for(f=0;f<3;f++)if(f!==h&&f!==d){u=o[f+1];break}void 0===u&&(u=o[this._getTokenIndex(a,"M")+1])}else d===this._getTokenIndex(a,"d")?(c=o[this._getTokenIndex(a,"y")+1],u=o[this._getTokenIndex(a,"M")+1]):d===this._getTokenIndex(a,"M")?(c=o[this._getTokenIndex(a,"d")+1],u=o[this._getTokenIndex(a,"y")+1]):(c=o[this._getTokenIndex(a,"d")+1],u=o[this._getTokenIndex(a,"M")+1]);u-=1;const v=R(l,u);let y;g&&m!==h&&u>12&&(y={name:"month",value:c,low:0,high:11,displayValue:c,displayLow:1,displayHigh:12},this._validateRange(y)),y={name:"month",value:u,low:0,high:11,displayValue:u+1,displayLow:1,displayHigh:12},this._validateRange(y),y={name:"day",value:c,low:1,high:v,displayValue:c,displayLow:1,displayHigh:v},this._validateRange(y);const E=n.twoDigitYearStart||1950;l=this._expandYear(E,l),y={name:"year",value:l,low:0,high:9999,displayValue:l,displayLow:0,displayHigh:9999},this._validateRange(y);const b=new Date(l,u,c),S=this._getWeekdayName(e,r);if(null!==S){const e=this._getDayIndex(r,S);b.getDay()!==e&&this._throwWeekdayMismatch(S,b.getDate())}if(i){const n=e.substr(p._YMD_REGEXP.lastIndex);0===n.length?b.setHours(0,0,0,0):this._parseLenienthms(b,n,t,2,r)}return{value:P(b),warning:"lenient parsing was used"}}static _parseLenientyMMMEd(e,t,n,r,i){const o=e;e=O(e);const s=r.months.format,a=r.months["stand-alone"],l=[s.wide,s.abbreviated,a.wide,a.abbreviated];let u=!1,c=[],d=0,h="";for(d=0;d2||t>31)&&(E=t,C=!0,S=d-1)}C||(S=this._getTokenIndex(y,"y"),E=parseInt(v[this._getTokenIndex(y,"y")+1],10)),b=S===this._getTokenIndex(y,"d")?parseInt(v[this._getTokenIndex(y,"y")+1],10):parseInt(v[this._getTokenIndex(y,"d")+1],10);const T=n.twoDigitYearStart||1950;E=this._expandYear(T,E),m={name:"year",value:E,low:0,high:9999,displayValue:E,displayLow:0,displayHigh:9999},this._validateRange(m);const A=new Date(E,f,b);if(null!==_){const e=this._getDayIndex(r,_);A.getDay()!==e&&this._throwWeekdayMismatch(_,A.getDate())}const w=R(E,f);if(m={name:"day",value:b,low:1,high:w,displayValue:b,displayLow:1,displayHigh:w},this._validateRange(m),i){const n=e.substr(p._YEAR_AND_DATE_REGEXP.lastIndex);0===n.length?A.setHours(0,0,0,0):this._parseLenienthms(A,n,t,2,r)}return{value:P(A),warning:"lenient parsing was used"}}static _parseLenient(e,t,n,r){let i;switch(this._dateTimeStyle(n)){case 0:i=this._parseLenientyMMMEd(e,t,n,r,!1);break;case 1:const o=new Date;this._parseLenienthms(o,e,t,1,r),i={value:P(o),warning:"lenient parsing was used"};break;case 2:i=this._parseLenientyMMMEd(e,t,n,r,!0);break;default:i={value:"",warning:"lenient parsing was used"}}const o=x(i.value),s=[o[0],o[1],o[2]],a=i.value.split("T");return i.value=T(s[0],4)+"-"+T(s[1],2)+"-"+T(s[2],2)+"T"+a[1],i}static _getNameIndex(e,t,n,r,i,o,s,a,l,u,c){let d=0;const h=e[t][i];d="months"===t?this._getMonthIndex(e,n):this._getDayIndex(e,n);const p=h[r][l],f=h[r][u],m={name:c,value:d,low:s,high:a,displayValue:parseInt(n),displayLow:p,displayHigh:f};return this._validateRange(m),d}static _validateTimePart(e,t,n,r){const i=t;i[n.timePart]=e,"h"===r||"hh"===r?12===e&&(i[n.timePart]=0):"k"===r||"kk"===r?(i.htoken=r,24===e&&(i[n.timePart]=0)):"K"!==r&&"KK"!==r||12===e&&(i[n.timePart]=0);const o={name:n.timePart,value:i[n.timePart],low:n.start1,high:n.end1,displayValue:e,displayLow:n.start2,displayHigh:n.end2};this._validateRange(o)}static _dateTimeStyle(e){const t=void 0!==e.hour||void 0!==e.minute||void 0!==e.second||void 0!==e.fractionalSecondDigits,n=void 0!==e.year||void 0!==e.month||void 0!==e.day||void 0!==e.weekday;return n&&t?2:t?1:n?0:void 0!==e.dateStyle&&void 0!==e.timeStyle?2:void 0!==e.timeStyle?1:0}static _matchPMSymbol(e,t){const n=e.locale;let r=!1,i=0;if(p._zh_tw_locales.includes(n)){const e=p._zh_tw_pm_symbols;for(i=0;i11&&"full"===s)try{return this._parseLenient(e,t,n,r)}catch(e){h={name:"month",value:m,low:0,high:11,displayValue:m+1,displayLow:1,displayHigh:12},this._validateRange(h)}break;case"year":f=this._expandYear(S,l);break;case"ampm":d=this._matchPMSymbol(r,o);break;case"tzhm":v=o.substr(-2),v=o.substr(0,3)+":"+v;break;case"tzhsepm":v=o;break;case"tzh":v=o+":00";break;case"tzid":y=o}}}const O=new Date;null===f&&(f=O.getFullYear()),null===m&&null===_?(m=O.getMonth(),_=O.getDate()):null===_&&(_=1),O.setFullYear(f,m,_);const T=R(f,m);h={name:"day",value:_,low:1,high:T,displayValue:_,displayLow:1,displayHigh:T},this._validateRange(h),1==d&&b.hour<12&&(b.hour+=12),0!=d||12!=b.hour||"k"!=b.htoken&&"kk"!=b.htoken||(b.hour=0);const A=[f,m+1,_];A[3]=b.hour,A[4]=b.minute,A[5]=b.second,A[6]=b.millisec;let w=L(A);null!==y&&(v=k("",this._getTimeZoneOffset(A,y),!1,!0)),""!==v&&(w+=v),h={name:"year",value:f,low:0,high:9999,displayValue:f,displayLow:0,displayHigh:9999},this._validateRange(h),h={name:"month",value:m,low:0,high:11,displayValue:m+1,displayLow:1,displayHigh:12},this._validateRange(h);const I=R(A[0],A[1]-1);if(h={name:"day",value:A[2],low:1,high:I,displayValue:A[2],displayLow:1,displayHigh:I},this._validateRange(h),null!==g){const e=j(w);e&&e.getDay()!==g&&this._throwWeekdayMismatch(E,e.getDate())}return{value:w}}static _isoStrDateTimeStyle(e){const t=e.indexOf("T");return-1===t?0:t>0?2:1}static _getTimeZoneOffset(e,t){return this.getLocalSystemTimeZone()===t?-new Date(e[0],e[1]-1,e[2],e[3],e[4],e[5]).getTimezoneOffset():c({year:e[0],month:e[1],date:e[2],hours:e[3],minutes:e[4]},t)}static _getAdjustedOffset(e,t){const n=t.isoStrParts;return this._getTimeZoneOffset(n,e)}static _adjustHours(e,t){const n=e.isoStrParts;let r=0;switch(e.format){case p._OFFSET:const t=this._parseTimezoneOffset(e.timeZone),n=t[0],i=t[1];r=60*n+(n<0?-i:i);break;case p._ZULU:r=0}let i=this._getAdjustedOffset(t.timeZone,e);i-=r;const o=new Date(n[0],n[1]-1,n[2],n[3],n[4],n[4]);o.setHours(n[3]+(i/60<<0),i%60);const s=M(P(o));i=this._getAdjustedOffset(t.timeZone,s),i-=r;const a=new Date(Date.UTC(n[0],n[1]-1,n[2],n[3],n[4],n[5])),l=a.getUTCMinutes()+i;a.setUTCHours(a.getUTCHours()+(l/60<<0),l%60),n[0]=a.getUTCFullYear(),n[1]=a.getUTCMonth()+1,n[2]=a.getUTCDate(),n[3]=a.getUTCHours(),n[4]=a.getUTCMinutes(),n[5]=a.getUTCSeconds()}static _createISOStrParts(e,t){let n=0,r="";switch(e){case 0:r=T(t[0],4)+"-"+T(t[1],2)+"-"+T(t[2],2);break;case 1:r="T"+T(t[3],2)+":"+T(t[4],2)+":"+T(t[5],2),n=t[6],n>0&&(r+="."+S(n));break;default:r=T(t[0],4)+"-"+T(t[1],2)+"-"+T(t[2],2)+"T"+T(t[3],2)+":"+T(t[4],2)+":"+T(t[5],2),n=t[6],n>0&&(r+="."+S(n))}return r}static _getParseISOStringOffset(e,t){return k("",this._getTimeZoneOffset(t,e),!1,!0)}static _createParseISOStringFromDate(e,t,n){const r=D(n,"NativeDateTimeConverter.parse")("isoStrFormat","string",[p._ZULU,p._OFFSET,p._INVARIANT,p._LOCAL,p._AUTO],p._AUTO),i=t.isoStrParts,o=n.timeZone;let s=this._createISOStrParts(e,i);if(0===e)return s;switch(r){case p._OFFSET:case p._AUTO:s+=this._getParseISOStringOffset(o,i);break;case p._LOCAL:2===e&&(s+=this._getParseISOStringOffset(o,i));break;case p._ZULU:let t=0;if(t=-this._getTimeZoneOffset(i,o),0!==t){const n=new Date(Date.UTC(i[0],i[1]-1,i[2],i[3],i[4],i[5],i[6]));t=n.getUTCMinutes()+t,n.setUTCHours(n.getUTCHours()+(t/60<<0),t%60),i[0]=n.getUTCFullYear(),i[1]=n.getUTCMonth()+1,i[2]=n.getUTCDate(),i[3]=n.getUTCHours(),i[4]=n.getUTCMinutes(),i[5]=n.getUTCSeconds(),s=this._createISOStrParts(e,i)}s+="Z"}return s}static getTimeZoneCurrentDate(e){const t={year:"numeric",day:"2-digit",month:"2-digit"};e&&(t.timeZone=e);const n=Intl.DateTimeFormat("en-US",t).format(new Date).split("/");return n[2]+"-"+n[0]+"-"+n[1]}static getTimeZoneCurrentOffset(e){const t=M(P(new Date));return this._getAdjustedOffset(e,t)}static getLocalSystemTimeZone(){if(!U){const e=new Intl.DateTimeFormat("en-US");U=e.resolvedOptions().timeZone}return U}}const H=e=>new Intl.DateTimeFormat(e.locale,e),V=(e,t)=>{const n=e.resolvedOptions(),r=t.isoStrFormat??"auto",i=t.twoDigitYearStart??1950,o=t.lenientParse??"full",s=Y(e,n);return{...n,isoStrFormat:r,twoDigitYearStart:i,lenientParse:o,patternFromOptions:s}},G=(e,t)=>{let n=null;return"short"===e.dateStyle&&e.dateStyleShortYear&&(n=new Intl.DateTimeFormat(e.locale,{year:e.dateStyleShortYear,numberingSystem:t.numberingSystem,calendar:t.calendar})),n},W=(e,t,n)=>{const r=t.formatToParts(n),i=r.find((e=>"year"===e.type))?.value;return e.formatToParts(n).reduce(((e,t)=>"year"===t.type?e+(i??t.value):e+t.value),"")},K=(e,t,n,r)=>{const i=z(n,r),o=new Date(i);return t?W(e,t,o):e.format(o)},$=(e,t,n,i)=>{if(null==i||""===i)throw new r.FormatParseError("The parse value cannot be empty.",{cause:{code:"emptyParseValue"}});const o=l.getCalendar(e,n.calendar),a=Y(t,n),u=F.parseImpl(i,a,n,o),c=u.value;return c&&u.warning&&s.warn("The value "+i+" was leniently parsed to represent a date "+c),c},z=(e,t)=>{if(null==t||""===t)throw new r.FormatParseError("The format value cannot be empty.",{cause:{code:"emptyFormatValue"}});if(t.startsWith("T")){let n="";n=e?F.getTimeZoneCurrentDate(e):P(new Date).split("T")[0],t=n+t}else-1===t.indexOf("T")&&(t+="T00:00:00");if(!v.exec(t))throw new r.FormatParseError("The format value must be a valid iso string.",{cause:{code:"invalidISOString",parameterMap:{isoStr:t}}});if(e){let n=!1;F.getLocalSystemTimeZone()===e&&(n=!0);const r=t.substring(t.indexOf("T"));if(-1===r.indexOf("Z")&&-1===r.indexOf("+")&&-1===r.indexOf("-")&&!n){const n=x(t);t+=k("",c({year:n[0],month:n[1],date:n[2],hours:n[3],minutes:n[4]},e),!1,!0)}}return t.replace(/(T.*?[+-]..$)/,"$1:00")},Y=(e,t)=>{const n=new Date("2000-01-02T00:00:00");let r="",i="",o=null,s=null,a=null,l=!1,u=!1;void 0!==t.dateStyle&&(s=p._dateTimeFormats.dateStyle,s=s[t.dateStyle],l=!0),void 0!==t.timeStyle&&(a=p._dateTimeFormats.timeStyle,a=a[t.timeStyle],u=!0);const c=p._tokenMap;return e.formatToParts(n).map((({type:e,value:n})=>{switch(e){case"literal":o=n.replace(p._ALPHA_REGEXP,"'$1'");break;case"dayPeriod":o="a";break;case"hour":u?o=a[e]:(i=t[e],o=c[e][i]);let r=t.hour12;void 0===r&&(r=!1),t.hourCycle&&(o=o.replace(p._HOUR12_REGEXP,p._hourCycleMap[t.hourCycle])),!0===r&&(o=o.replace(p._HOUR12_REGEXP,"h"));break;case"month":l?o=isNaN(+n)?s.month_m:s.month_s:(i=t[e],o=c[e][i]);break;case"year":case"day":case"weekday":l?o=s[e]:(i=t[e],o=c[e][i]);break;case"minute":case"second":case"timeZoneName":u?o=a[e]:(i=t[e],o=c[e][i]);break;case"era":i=t[e]||"short",o=c[e][i];break;case"fractionalSecond":o=t.fractionalSecondDigits,o=c[e][o]}r+=o})),r};var q=a,X=i.a,J=a,Z=i._,Q=o._,ee=function e(t,n,r){return function(){for(var i=[],o=0,s=t,a=0;a=arguments.length)?l=n[a]:(l=arguments[o],o+=1),i[a]=l,X(l)||(s-=1),a+=1}return s<=0?r.apply(this,i):q(s,e(t,i,r))}},te=Q((function(e,t){return 1===e?Z(t):J(e,ee(e,[],t))}));function ne(e){const t=H(e),n=V(t,e),r=G(e,n);return{format:te(4,K)(t,r,n.timeZone),parse:te(4,$)(e.locale,t,n),resolvedOptions:n,formatter:t}}},2024:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FormatParseError:()=>r});class r extends Error{constructor(e,t){super(e),Object.setPrototypeOf(this,r.prototype),this.cause=t?.cause}}},9331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Layer:()=>y,LayerContext:()=>i.L,LayerManager:()=>i.b});var r=n(8661),i=n(297),o=n(396);n(6400),n(322),n(5047),n(3720),n(7265),n(6584);const s={colorScheme:({colorScheme:e})=>void 0===e?{}:{class:("dark"===e?"oj-c-colorscheme-dark oj-color-invert":"oj-c-colorscheme-light")+" oj-c-colorscheme-dependent"},scale:({scale:e})=>void 0===e?{}:{class:("sm"===e?"oj-scale-sm":"md"===e?"oj-scale-md":"oj-scale-lg")+" oj-scale-dependent"}};var a=n(2918),l=n(1192),u=a._,c=l._,d=a.a,h=function(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return d(n)?t:c((function(t,r){return e(n,t,r)}));case 2:return d(n)&&d(r)?t:d(n)?c((function(t,n){return e(t,r,n)})):d(r)?c((function(t,r){return e(n,t,r)})):u((function(t){return e(n,r,t)}));default:return d(n)&&d(r)&&d(i)?t:d(n)&&d(r)?c((function(t,n){return e(t,n,i)})):d(n)&&d(i)?c((function(t,n){return e(t,r,n)})):d(r)&&d(i)?c((function(t,r){return e(n,t,r)})):d(n)?u((function(t){return e(t,r,i)})):d(r)?u((function(t){return e(n,t,i)})):d(i)?u((function(t){return e(n,r,t)})):e(n,r,i)}}},p=function(e,t){return Object.prototype.hasOwnProperty.call(t,e)},f=function(e){return"[object Object]"===Object.prototype.toString.call(e)},m=h((function(e,t,n){var r,i={};for(r in t)p(r,t)&&(i[r]=p(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)p(r,n)&&!p(r,i)&&(i[r]=n[r]);return i})),_=h((function e(t,n,r){return m((function(n,r,i){return f(r)&&f(i)?e(t,r,i):t(n,r,i)}),n,r)}));const g=(e,t,n)=>"class"===e?[t,n].filter(Boolean).join(" "):n;const v="__oj_logical_parent",y=e=>{const t=(0,r.useContext)(i.L),n=t.getHost?.(),a=(0,r.useMemo)((()=>n),[n]),[l,u]=(0,r.useState)(null),c=function(){const e=(0,o.useContext)(i.E).colorScheme,t=(0,o.useContext)(i.E).scale,n=t!==i.D.scale?t:void 0,r=(e=>t=>e.reduce(((e,n)=>_(g,e,n(t))),{}))([...Object.values(s)]),{class:a}=r({colorScheme:e,scale:n});return a}();return(0,r.useLayoutEffect)((()=>{if(!a)return;const t=(a.ownerDocument??document).createElement("div");return e.logicalParentRef&&(t[v]=e.logicalParentRef.current),a.appendChild(t),u(t),()=>{a&&t&&a.contains(t)&&(delete t[v],a.removeChild(t)),u(null)}}),[a]),l&&(l.className=c),l&&(0,r.createPortal)(e.children,l)}},2918:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,a:()=>r}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var r=function(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]},i=r,o=function(e){return function t(n){return 0===arguments.length||i(n)?t:e.apply(this,arguments)}}},1192:(e,t,n)=>{"use strict";n.d(t,{_:()=>s});var r=n(2918),i=r._,o=r.a,s=function(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:i((function(t){return e(n,t)}));default:return o(n)&&o(r)?t:o(n)?i((function(t){return e(t,r)})):o(r)?i((function(t){return e(n,t)})):e(n,r)}}}},7038:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TabbableModeContext:()=>o,useTabbableMode:()=>s});var r=n(6400),i=n(396);const o=(0,r.createContext)({isTabbable:!0});function s(){const{isTabbable:e}=(0,i.useContext)(o);return{isTabbable:e,tabbableModeProps:{tabIndex:!1===e?-1:0}}}},297:(e,t,n)=>{"use strict";n.d(t,{D:()=>l,E:()=>u,L:()=>c,R:()=>f,a:()=>m,b:()=>h});var r=n(6400),i=(n(322),n(3720)),o=n(6584),s=n(396),a=n(8661);const l={user:{locale:document.documentElement.getAttribute("lang")||"en",direction:"rtl"===document.documentElement.getAttribute("dir")?.toLowerCase()?"rtl":"ltr",forcedColors:window.matchMedia?.("(forced-colors: active)")?.matches?"active":"none"},theme:i.V,colorScheme:"light",scale:"lg",currentBgColor:void 0},u=(0,r.createContext)(l),c=(0,r.createContext)({}),d=(0,a.forwardRef)(((e,t)=>(0,o.jsx)("div",{id:"__oj_layerhost_container",ref:t})));function h({children:e}){const[t,n]=(0,a.useState)(),r=(0,a.useCallback)((e=>{null!==e&&n(e)}),[]);return(0,o.jsx)(c.Consumer,{children:n=>{const i=t?{getHost:()=>t}:{},s=n.getHost?n:i;return(0,o.jsxs)(c.Provider,{value:s,children:[e,!n.getHost&&(0,o.jsx)(d,{ref:r})]})}})}function p(e,t){const n=Object.assign({},e.user,t?.user),r=Object.assign({},e.theme,t?.theme),i=Object.assign({},e.translations),o=t?.translations||{};return Object.keys(o).forEach((e=>{let t=o[e];i[e]&&(t=Object.assign({},i[e],t)),i[e]=t})),{user:n,theme:r,translations:i,colorScheme:t?.colorScheme??e.colorScheme,scale:t?.scale??e.scale,currentBgColor:t?.currentBgColor??e.currentBgColor}}function f({children:e,environment:t}){const n=(0,s.useMemo)((()=>p(l,t)),[t]);return(0,o.jsx)(u.Provider,{value:n,children:(0,o.jsx)(h,{children:e})})}function m({children:e,environment:t}){const n=(0,s.useContext)(u),r=(0,s.useMemo)((()=>p(n,t)),[n,t]);return(0,o.jsx)(u.Provider,{value:r,children:e})}d.displayName="Forwarded"},3959:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var r=["ar","ar-XB","bg","bs","bs-Cyrl","cs","da","de","el","en","en-XA","en-XC","es","et","fi","fr","fr-CA","he","hr","hu","is","it","ja","ko","lt","lv","ms","nl","no","pl","pt","pt-PT","ro","ru","sk","sl","sr","sr-Latn","sv","th","tr","uk","vi","zh-Hans","zh-Hant"]},26:(e,t,n)=>{"use strict";function r(e,t){let n=null;for(let r=0;null===n&&r1;){r.pop();const e=r.join("-");t.has(e)&&(n=e)}return n}n.r(t),n.d(t,{matchTranslationBundle:()=>r})},4250:()=>{var e,t,n;t=(e=function(){"use strict";var e={};function t(e){return 0===e.indexOf("./")?e.substr(2):e}function n(){if(!this._resolvedModule){var e=r(this.deps),t=this.module;this._resolvedModule="function"==typeof t?t.apply(null,e):t}return this._resolvedModule}function r(t){return t.map((function(t){return e[t].resolve()}))}return{define:function(r,i,o){e[r]={deps:i.map(t),module:o,resolve:n}},require:function(e,t){var n=r(e);t.apply(null,n)}}}()).define,n=e.require,t("dataTransfer",[],(function(){"use strict";return function(e,t){var n={},r="none",i="uninitialized",o=t||function(){return"readwrite"},s=["none","copy","link","move"],a=["uninitialized","none","copy","copylink","copymove","link","linkmove","move","all"];function l(e){return e?e.toString().toLowerCase():null}this.files={},this.items={},this.getData=function(e){if("protected"!==o()){var t=l(e);return t&&n.hasOwnProperty(t)?n[t]:null}return""},this.setData=function(e,t){if("readwrite"===o()){var r=l(e);r&&(n[r]=t.toString())}},this.clearData=function(e){if("readwrite"===o()){var t=l(e);t?n.hasOwnProperty(t)&&delete n[t]:n={}}},this.setDragImage=function(t,n,r){e&&e(t,n,r)},Object.defineProperty(this,"types",{get:function(){var e=Object.keys(n);return e.item=function(t){return t>=0&&t=0},e}}),Object.defineProperty(this,"dropEffect",{get:function(){return r},set:function(e){e=e.toLowerCase(),s.indexOf(e)>=0&&(r=e)}}),Object.defineProperty(this,"effectAllowed",{get:function(){return i},set:function(e){e=e.toLowerCase(),a.indexOf(e)>=0&&(i=e)}})}})),t("dragImage",[],(function(){"use strict";return function(e,t,n){var r=function(e){var t=null!=e.parentNode,n=e.style.position,r=e.style.top;t||(e.style.position="fixed",e.style.top="10000px",document.body.appendChild(e));var i=e.cloneNode(!0);return i.id=e.id+"_dragimage",i.style.opacity=.7,i.style.position="fixed",i.style.width=e.offsetWidth+"px",i.style.height=e.offsetHeight+"px",i.style.zIndex=l(document.body)+1,i.style.visibility="hidden",t||(document.body.removeChild(e),e.style.position=n,e.style.top=r),i}(e),i=t,o=n,s=e.scrollLeft,a=e.scrollTop;function l(e){var t=0;if(e.children)for(var n=0;ne.clientWidth||e.scrollHeight>e.clientHeight)}return!1}(e))return!1;var i,o,s,a,l,u=e.scrollLeft,c=e.scrollTop;if(e===document.documentElement)u=u||document.body.scrollLeft,c=c||document.body.scrollTop;else{var d=e.getBoundingClientRect();n-=Math.round(d.left),r-=Math.round(d.top)}return i=t(e.clientWidth,e.scrollWidth,n,u),o=t(e.clientHeight,e.scrollHeight,r,c),!(!i&&!o||(a=u+i,l=c+o,(s=e).scrollLeft=a,s.scrollTop=l,s===document.documentElement&&(document.body.scrollLeft=a,document.body.scrollTop=l),0))}function t(e,t,n,r){if(n>e-12&&n=0&&n<12&&r>0)return-Math.min(r,15);return 0}return{checkAutoScroll:function(t,n,r){for(var i=t;null!=i&&!e(i,n,r);)i=i.parentNode;return i}}})),t("dragController",["./dataTransfer","./dragImage","./eventDispatcher","./autoScroller"],(function(e,t,n,r){"use strict";return function(){var i,o,s,a,l,u,c,d=-1,h=-1,p="none";function f(){return u}function m(e,t,r,i,o){return u=function(e){return"dragstart"===e?"readwrite":"drop"===e?"readonly":"protected"}(e),"dragstart"!==e&&(i.dropEffect=function(e,t){return"drag"===e||"dragleave"===e?"none":"dragenter"===e||"dragover"===e?"none"===t?"none":"move"===t?"move":0===t.indexOf("link")?"link":"copy":p}(e,i.effectAllowed)),r||(r={}),r.target=t,r.relatedTarget=o,n.dispatch(e,r,i)}function _(e,n,r){o&&(o.end(),o=null),e&&e.cloneNode&&(c={x:n,y:r},(o=new t(e,n,r)).start())}function g(){return null!=i}function v(e){var t=e.clientX,n=e.clientY;return t===d&&n===h?a:document.elementFromPoint(t,n)}function y(e){if(e){var t=i.effectAllowed;p="uninitialized"===t||"all"===t||t.indexOf(i.dropEffect)>=0?i.dropEffect:"none"}else p=E(a)?"copy":"none"}function E(e){return e&&("TEXTAREA"===e.nodeName||"INPUT"===e.nodeName&&"text"===e.type)}function b(e){void 0!==e._dndSavedCursor&&(e.style.cursor=e._dndSavedCursor,delete e._dndSavedCursor)}function S(e){C(e,!0)}function C(e,t){if(g()){o.show(!1);var n=v(e);n&&(b(n),function(e,t,n){T(n)||m("dragleave",e,t,i)}(n,e,t),O(n,e,t)),m("dragend",s,e,i),A()}}function O(e,t,n){if(T(n)){var r=m("drop",e,t,i);return r?p=i.dropEffect:E(e)?function(e){var t=i.getData("text");if(t&&""!==t){var n=e.value,r=e.selectionEnd;e.value=n.substring(0,r)+t+n.substring(r)}}(e):p="none",r}return!0}function T(e){return!e&&"none"!==p}function A(){_(null,0,0),i=null,s=null,a=null,p="none",document.body.style.cursor=l,l=null}this.start=function(t,n,r){var a=new e(_,f);return m("dragstart",t,r,a)?{dragState:"canceled"}:function(e,t){return 0!==e.types.length&&(!t||t(e,o))}(a,n)?function(e,t,n){return i=e,s=t,l=document.body.style.cursor,function(e,t){if(null==o){var n=e.getBoundingClientRect(),r=t?t.clientX:n.left,i=t?t.clientY:n.top;_(e,r-n.left,i-n.top)}}(t,n),{dragState:"started",dataTransfer:e}}(a,t,r):{dataTransfer:a}},this.drag=function(e){if(e&&g()){if(o.show(!1),function(e){return m("drag",s,e,i)}(e))return S(e),!0;try{var t=v(e);!function(e,t){e!==a&&(e&&m("dragenter",e,t,i,a),a&&(b(a),m("dragleave",a,t,i,e)))}(t,e),function(e,t){e&&y(m("dragover",e,t,i))}(t,e),function(e,t){(function(e){o.move(e.clientX,e.clientY)})(t),function(e){var t;(t="none"===p?"not-allowed":"copy"===p?"copy":"link"===p?"alias":"default")!==document.body.style.cursor&&(document.body.style.cursor=t),function(e,t){e&&e.style.cursor!==t&&(void 0===e._dndSavedCursor&&(e._dndSavedCursor=e.style.cursor),e.style.cursor=t)}(e,t)}(e),function(e,t){r.checkAutoScroll(e,t.clientX,t.clientY)&&(d=-1,h=-1)}(e,t)}(t,e),function(e,t){a=e,d=t.clientX,h=t.clientY}(t,e)}finally{o.show(!0)}}return!1},this.end=function(e){C(e,!1)},this.cancel=S,this.handleDndEvent=function(e){var t=e.target,r=e.relatedTarget,s=n.getMouseEventProps(e);switch(e.type){case"drag":o&&o.show(!0),m("drag",t,s,i);break;case"dragenter":m("dragenter",t,s,i,r);break;case"dragleave":m("dragleave",t,s,i,r);break;case"dragover":var a=c.x>0?s.clientX-50:s.clientX+10,l=s.clientY;o.move(a,l);var u=m("dragover",t,s,i);y(u),u&&e.preventDefault();break;case"dragend":o&&o.show(!1),m("dragend",t,s,i,r),A(),e.dataTransfer.clearData();break;case"drop":o&&o.show(!1),(u=O(t,s,!1))&&e.preventDefault()}}}})),t("args",[],(function(){"use strict";function e(e,t){if(!t)throw new Error("required argument '"+e+"' not specified")}return{requiredString:function(t,n){if(e(t,n),"string"!=typeof n)throw new Error("argument '"+t+"' must be a string")},required:e}})),t("glassPane",["./eventDispatcher"],(function(e){"use strict";return function(t,n){var r,i,o;function s(){try{t(i)}finally{}}function a(t){t.target===document.body&&t.buttons!==o&&(i=e.getMouseEventProps(t),n(i,!0))}function l(t){void 0===o&&(o=t.buttons),t.stopPropagation(),t.preventDefault(),i=e.getMouseEventProps(t),s()}function u(t){t.stopPropagation(),t.preventDefault(),i=e.getMouseEventProps(t),n(i,!1)}this.start=function(e){i=e,document.body.addEventListener("mouseenter",a,!0),document.body.addEventListener("mousemove",l,!0),document.body.addEventListener("mouseup",u,!0),r=window.setInterval(s,200)},this.end=function(){r&&(window.clearInterval(r),r=null),document.body.removeEventListener("mouseenter",a,!0),document.body.removeEventListener("mousemove",l,!0),document.body.removeEventListener("mouseup",u,!0)},this.getLastInputProps=function(){return i}}})),t("desktopDragDriver",["./args","./glassPane","./eventDispatcher"],(function(e,t,n){"use strict";return function(r,i){var o,s,a;function l(){var e=navigator.userAgent.toLowerCase();(e.indexOf("trident")>0||e.indexOf("edge")>0||e.indexOf("phantomjs")>0)&&(i.addEventListener("dragstart",d,!0),i.addEventListener("drag",v,!0),i.addEventListener("dragover",v,!0),i.addEventListener("dragend",v,!0),i.addEventListener("dragenter",v,!0),i.addEventListener("dragleave",v,!0),i.addEventListener("drop",v,!0),i.addEventListener("pointerdown",c,!0))}function u(){i.removeEventListener("dragstart",d,!0),i.removeEventListener("drag",v,!0),i.removeEventListener("dragover",v,!0),i.removeEventListener("dragend",v,!0),i.removeEventListener("dragenter",v,!0),i.removeEventListener("dragleave",v,!0),i.removeEventListener("drop",v,!0),i.removeEventListener("pointerdown",c,!0)}function c(e){s=e.pointerType}function d(e){if("touch"===s){var i=e.target;i.style.visibility="hidden",function(e){if(!e.__isPseudo){e.stopPropagation();for(var t=e.target;t&&!t.draggable;)t=t.parentNode;if(t){a=t;var i=n.getMouseEventProps(e);"started"!==r.start(a,null,i).dragState&&(e.preventDefault(),a=null)}}}(e),setTimeout((function(){i.style.visibility="visible"}),0)}else!function(e){var i,s,a,c=n.getMouseEventProps(e);e.stopPropagation(),u();try{i=r.start(e.target,h,c)}finally{l()}"canceled"===i.dragState?e.preventDefault():"started"===i.dragState?function(e,n,r){e.preventDefault(),function(e){(o=new t(m,_)).start(e),document.body.addEventListener("keydown",g,!0)}(r)}(e,0,c):(p(s=i.dataTransfer,a=e,"text"),p(s,a,"url"))}(e)}function h(e,t){return null!=t||function(e){var t=e.types;if(0===t.length)return!1;for(var n=0;n0||function(e,t){for(var n=document.documentElement,i=0;i{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],void 0===(o="function"==typeof(r=function(e){return e.ui.focusable=function(t,n){var r,i,o,s,a,l=t.nodeName.toLowerCase();return"area"===l?(i=(r=t.parentNode).name,!(!t.href||!i||"map"!==r.nodeName.toLowerCase())&&(o=e("img[usemap='#"+i+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(s=!t.disabled)&&(a=e(t).closest("fieldset")[0])&&(s=!a.disabled):s="a"===l&&t.href||n,s&&e(t).is(":visible")&&function(e){for(var t=e.css("visibility");"inherit"===t;)t=(e=e.parent()).css("visibility");return"visible"===t}(e(t)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable})?r.apply(t,i):r)||(e.exports=o)}()},5637:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],void 0===(o="function"==typeof(r=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?r.apply(t,i):r)||(e.exports=o)}()},5955:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],r=function(e){return function(){var t,n=Math.max,r=Math.abs,i=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,u=e.fn.position;function c(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function d(t,n){return parseInt(e.css(t,n),10)||0}function h(e){return null!=e&&e===e.window}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,r,i=e("
"),o=i.children()[0];return e("body").append(i),n=o.offsetWidth,i.css("overflow","scroll"),n===(r=o.offsetWidth)&&(r=i[0].clientWidth),i.remove(),t=n-r},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===n||"auto"===n&&t.width0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};pn(r(l),r(c))?d.important="horizontal":d.important="vertical",t.using.call(this,e,d)}),s.offset(e.extend(T,{using:o}))}))},e.ui.position={fit:{left:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollLeft:i.offset.left,s=i.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,u=a+t.collisionWidth-s-o;t.collisionWidth>s?l>0&&u<=0?(r=e.left+l+t.collisionWidth-s-o,e.left+=l-r):e.left=u>0&&l<=0?o:l>u?o+s-t.collisionWidth:o:l>0?e.left+=l:u>0?e.left-=u:e.left=n(e.left-a,e.left)},top:function(e,t){var r,i=t.within,o=i.isWindow?i.scrollTop:i.offset.top,s=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,u=a+t.collisionHeight-s-o;t.collisionHeight>s?l>0&&u<=0?(r=e.top+l+t.collisionHeight-s-o,e.top+=l-r):e.top=u>0&&l<=0?o:l>u?o+s-t.collisionHeight:o:l>0?e.top+=l:u>0?e.top-=u:e.top=n(e.top-a,e.top)}},flip:{left:function(e,t){var n,i,o=t.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,u=e.left-t.collisionPosition.marginLeft,c=u-l,d=u+t.collisionWidth-a-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];c<0?((n=e.left+h+p+f+t.collisionWidth-a-s)<0||n0&&((i=e.left-t.collisionPosition.marginLeft+h+p+f-l)>0||r(i)0&&((n=e.top-t.collisionPosition.marginTop+h+p+f-l)>0||r(n){var r,i,o;!function(s){"use strict";i=[n(9755),n(8615),n(2487)],void 0===(o="function"==typeof(r=function(e){return e.extend(e.expr.pseudos,{tabbable:function(t){var n=e.attr(t,"tabindex"),r=null!=n;return(!r||n>=0)&&e.ui.focusable(t,r)}})})?r.apply(t,i):r)||(e.exports=o)}()},3822:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],void 0===(o="function"==typeof(r=function(e){return e.fn.extend({uniqueId:(t=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++t)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}});var t})?r.apply(t,i):r)||(e.exports=o)}()},8615:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755)],void 0===(o="function"==typeof(r=function(e){return e.ui=e.ui||{},e.ui.version="1.13.2"})?r.apply(t,i):r)||(e.exports=o)}()},347:(e,t,n)=>{var r,i,o;!function(s){"use strict";i=[n(9755),n(8615)],r=function(e){var t,n=0,r=Array.prototype.hasOwnProperty,i=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)(r=e._data(i,"events"))&&r.remove&&e(i).triggerHandler("remove");t(n)}),e.widget=function(t,n,r){var i,o,s,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return r||(r=n,n=e.Widget),Array.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr.pseudos[u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},i=e[l][t],o=e[l][t]=function(e,t){if(!this||!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(r,(function(e,t){a[e]="function"==typeof t?function(){function r(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=r,this._superApply=i,e=t.apply(this,arguments),this._super=n,this._superApply=o,e}}():t})),o.prototype=e.widget.extend(s,{widgetEventPrefix:i&&s.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:u}),i?(e.each(i._childConstructors,(function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,o,s=i.call(arguments,1),a=0,l=s.length;a",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,n){t._removeClass(n,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r,i,o,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},r=t.split("."),t=r.shift(),r.length){for(i=s[t]=e.widget.extend({},this.options[t]),o=0;o{var r,i;r=[t,n(7006),n(9755),n(3215),n(9279),n(9831)],i=function(e,t,n,r,i,o){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;const s="translate(",a=") translateZ(0)",l={};t._registerLegacyNamespaceProp("AnimationUtils",l),l._getName=function(e,t){if(!l._nameMap){l._nameMap={};var n=l._nameMap,r=e.style;n.backfaceVisibility=void 0!==r.webkitBackfaceVisibility?"webkitBackfaceVisibility":"backfaceVisibility",n.transform=void 0!==r.webkitTransform?"webkitTransform":"transform",n.transformOrigin=void 0!==r.webkitTransformOrigin?"webkitTransformOrigin":"transformOrigin",n.transition=void 0!==r.webkitTransition?"webkitTransition":"transition",n.transitionend=void 0!==r.webkitTransition?"webkitTransitionEnd":"transitionend"}return l._nameMap[t]||t},l._getElementStyle=function(e,t){return e.style[l._getName(e,t)]},l._setElementStyle=function(e,t,n){e.style[l._getName(e,t)]=n},l._animate=function(e,t,r,i,o,s){var a=[].concat(o),u=function(n,u){var c=function(e){var t=0===e.propertyName.indexOf("-webkit-")?e.propertyName.substr(8):e.propertyName;t=l._getCamelCasePropName(t);var n=a.indexOf(t);n>-1&&(a.length>1?a.splice(n,1):p())},d=0,h=!1;function p(){h||(d&&(window.cancelAnimationFrame(d),d=0),e.removeEventListener(l._getName(e,"transitionend"),c),n&&n(!0),h=!0)}null==r&&(r={}),null==r.css&&(r.css={}),r.css.transition=l._createTransitionValue(e,o,i);var f=l._saveStyle(e,t,r,i,s||o);l._applyState(e,t,f>1),e.addEventListener(l._getName(e,"transitionend"),c);var m=i.duration,_=i.delay,g=i._skipPromise;function v(){d=0,l._applyState(e,r,f>1)}null==t?v():(i._noReflow||(l._x=e.offsetWidth),d=window.requestAnimationFrame(v));var y=l._getTotalTiming(m,_);g||setTimeout(p,y+100)};return i._skipPromise?(u(null),null):new Promise(u).then((function(){t&&t.addClass&&n(e).removeClass(t.addClass),r&&r.addClass&&n(e).removeClass(r.addClass),l._restoreStyle(e)}))},l._saveCssValues=function(e,t,n,r){for(var i=Object.keys(t),o=Object.prototype.hasOwnProperty,s=0;s1)t._ojEffectCount=n-1;else{var r=t._ojSavedStyle;if(r){for(var i=Object.keys(r),o=0;o=0){for(var t="",n=e.split("-"),r=0;r0;){var i=n.substr(0,r+1);t.push(i.trim()),r=(n=n.slice(r+1)).indexOf(")")}return t},l._getTransformFuncName=function(e){var t=e.indexOf("(");return t>=1?e.substr(0,t):e},l._applyTransform=function(e,t){for(var n=l._getElementStyle(e,"transform"),r=l._splitTransform(n),i=l._splitTransform(t),o=[],s=0;s-1?t:1e3*t},l._getTotalTiming=function(e,t){var n=l._getTimingValue(e);return n>0?n+(t?l._getTimingValue(t):0):0},l._calcCssTime=function(e,t,n){for(var r=e.split(","),i=t.split(","),o=n.split(","),s=r.length,a=i.length,u=o.length,c=0,d=0;d0?setTimeout(m,t+100):m()}));setTimeout((function(){O&&(window.cancelAnimationFrame(O),O=0,m())}),1e3)}))},l._mergeOptions=function(e,t){return null==l._defaultOptions&&(l._defaultOptions=i.parseJSONFromFontFamily("oj-animation-effect-default-options")),n.extend({duration:"400ms"},l._defaultOptions?l._defaultOptions[e]:null,t)},l._createTransitionValue=function(e,t,n){var r="";if(t)for(var i=0;i0?", ":"")+l._getHyphenatedPropName(o)+" "+n.duration,n.timingFunction&&(r+=" "+n.timingFunction),n.delay&&(r+=" "+n.delay)}return r},l._fade=function(e,t,n,r,i){var o=l._mergeOptions(n,t),s={css:{opacity:r}},a={css:{opacity:i}};return o&&(o.startOpacity&&(s.css.opacity=o.startOpacity),o.endOpacity&&(a.css.opacity=o.endOpacity)),l._animate(e,s,a,o,["opacity"])},l.fadeIn=function(e,t){return l._fade(e,t,"fadeIn",0,1)},l.fadeOut=function(e,t){return l._fade(e,t,"fadeOut",1,0)},l.expand=function(e,t){return l._expandCollapse(e,t,!0)},l.collapse=function(e,t){return l._expandCollapse(e,t,!1)},l._wrapRowContent=function(e,t){var n,r,i=[],o=e.children,s=[],a=[];for(e._ojSavedHeight=e.style.height,r=0;r").css({position:"absolute",overflow:"hidden"}),c=n("
"),d="static"===window.getComputedStyle(e).position?{left:e.offsetLeft,top:e.offsetTop}:{left:0,top:0};e.insertBefore(u[0],e.firstChild),u.css({left:d.left+"px",top:d.top+"px",width:s+"px",height:a+"px"}),u.prepend(c);var h=i.css,p=o.css,f="transform";return l._setRippleOptions(h,c,u,r),h[f]="scale(0) translateZ(0)",h.opacity=r.startOpacity||c.css("opacity"),p[f]="scale(1) translateZ(0)",p.opacity=r.endOpacity||0,r.persist="all",l._animate(c[0],i,o,r,[f,"opacity"]).then((function(){u.remove()}))},l._setRippleOptions=function(e,t,n,r){var i=e,o=t.width(),s=n.width(),a=n.height();if(r.diameter){var u=r.diameter,c=parseInt(u,10);isNaN(c)||(o="%"===u.charAt(u.length-1)?Math.floor(Math.min(s,a)*(c/100)):c,i.width=o+"px",i.height=o+"px")}var d,h="static"===n.css("position")?n.position():{left:0,top:0};null!=(d=l._calcRippleOffset(r.offsetX,o,s,h.left))&&(i.left=d+"px"),null!=(d=l._calcRippleOffset(r.offsetY,o,a,h.top))&&(i.top=d+"px"),r.color&&(i.backgroundColor=r.color)},l._calcRippleOffset=function(e,t,n,r){var i,o=e||"50%",s=parseInt(o,10);return isNaN(s)||(i="%"===o.charAt(o.length-1)?n*(s/100)-t/2:s-t/2,i=Math.floor(i+r)),i},l._removeRipple=function(e,t){var r=t||{},i=r.removeEffect||"fadeOut",s=n(".oj-animation-rippler",e);if(0!==s.length)return i in{fadeOut:1,collapse:1,zoomOut:1,slideOut:1}?l[i](s,r).then((function(){s.remove()})):s.remove();o.warn("No rippler so returning")},l._calcBackfaceAngle=function(e){var t,n=e.match(/^([+-]?\d*\.?\d*)(.*)$/),r=parseFloat(n[1]),i=n[2];switch(i){case"deg":t=r-180+i;break;case"grad":t=r-200+i;break;case"rad":t=r-3.1416+i;break;case"turn":t=r-.5+i;break;default:o.error("Unknown angle unit in flip animation: "+i)}return t},l._flip=function(e,t,r,i,o){if(t&&"children"===t.flipTarget){var s,a=[],u=n(e).children(),c=n.extend({},t);delete c.flipTarget;var d=n.extend({},c);d.startAngle=l._calcBackfaceAngle(t.startAngle||i),d.endAngle=l._calcBackfaceAngle(t.endAngle||o);for(var h=0;hn.toElementWaitTime?o("toElement not found in DOM after toElementWaitTime has expired"):setTimeout((function(){l._doAnimateHero(e,t,n,r+100,i,o)}),100);function v(){n.showToElement(f),l._removeHeroParent(_)}},l.animateHero=function(e,t){var n=e,r={toElementWaitTime:5e3,createClonedElement:l._defaultHeroCreateClonedElement,hideFromAndToElements:l._defaultHeroHideFromAndToElements,animateClonedElement:l._defaultHeroAnimateClonedElement,showToElement:l._defaultHeroShowToElement,delay:"0s",duration:"400ms",timingFunction:"ease"};return Object.assign(r,t),new Promise((function(e,i){n?t.toElementSelector?l._doAnimateHero(n,t.toElementSelector,r,0,e,i):i("No options.toElementSelector specified"):i("No element specified")}))};const u=l.startAnimation,c=l.fadeIn,d=l.fadeOut,h=l.expand,p=l.collapse,f=l.zoomIn,m=l.zoomOut,_=l.slideIn,g=l.slideOut,v=l.ripple,y=l.flipIn,E=l.flipOut,b=l.addTransition,S=l.animateHero;e.addTransition=b,e.animateHero=S,e.collapse=p,e.expand=h,e.fadeIn=c,e.fadeOut=d,e.flipIn=y,e.flipOut=E,e.ripple=v,e.slideIn=_,e.slideOut=g,e.startAnimation=u,e.zoomIn=f,e.zoomOut=m,Object.defineProperty(e,"__esModule",{value:!0})}.apply(t,r),void 0===i||(e.exports=i)},370:(e,t,n)=>{var r,i;r=[n(7006),n(334),n(1734),n(998),n(7399),n(9831)],void 0===(i=function(e,t,n,r,i,o){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;class s{constructor(e,t){var n;this.data=e,this.options=t,this.Item=class{constructor(e,t){this.metadata=e,this.data=t,this[s._METADATA]=e,this[s._DATA]=t}},this.ItemMetadata=class{constructor(e){this.key=e,this[s._KEY]=e}},this.FetchByKeysResults=class{constructor(e,t){this.fetchParameters=e,this.results=t,this[s._FETCHPARAMETERS]=e,this[s._RESULTS]=t}},this.ContainsKeysResults=class{constructor(e,t){this.containsParameters=e,this.results=t,this[s._CONTAINSPARAMETERS]=e,this[s._RESULTS]=t}},this.FetchByOffsetResults=class{constructor(e,t,n,r){this.fetchParameters=e,this.results=t,this.done=n,this.totalFilteredRowCount=r,this[s._FETCHPARAMETERS]=e,this[s._RESULTS]=t,this[s._DONE]=n,"enabled"===e?.includeFilteredRowCount&&(this[s._TOTALFILTEREDROWCOUNR]=r)}},this.FetchListParameters=class{constructor(e,t,n,r){this.size=e,this.sortCriteria=t,this.filterCriterion=n,this.attributes=r,this[s._SIZE]=e,this[s._SORTCRITERIA]=t,this[s._FILTERCRITERION]=n,this[s._ATTRIBUTES]=r}},this.FetchListResult=class{constructor(e,t,n){this.fetchParameters=e,this.data=t,this.metadata=n,this[s._FETCHPARAMETERS]=e,this[s._DATA]=t,this[s._METADATA]=n}},this.AsyncIterable=(n=class{constructor(e){this._asyncIterator=e,this[Symbol.asyncIterator]=()=>this._asyncIterator}},Symbol.asyncIterator,n),this.AsyncIterator=class{constructor(e,t,n,r,i){this._parent=e,this._nextFunc=t,this._params=n,this._offset=r,this._signal=i,this._clientId=n&&n.clientId||Symbol(),e._mapClientIdToIteratorInfo.set(this._clientId,{offset:r,rowKey:null,data:null,filterCriterion:n?.filterCriterion,sortCriteria:n?.sortCriteria,fetchedRowKeys:[]}),this._cacheObj={},this._cacheObj[s._MUTATIONSEQUENCENUM]=e._mutationSequenceNum}next(){const e=this._signal;if(this._signal){const e=this._signal.reason;if(this._signal.aborted)return Promise.reject(new DOMException(e,"AbortError"))}return new Promise(((t,n)=>{if(e){const t=e.reason;e.addEventListener("abort",(e=>n(new DOMException(t,"AbortError"))))}const r=this._parent._mapClientIdToIteratorInfo.get(this._clientId),i=r?r.offset:null,o=this._nextFunc(this._params,i,!1,this._cacheObj);Object.defineProperty(o.result.value,"totalFilteredRowCount",{get:()=>{if("enabled"===this._params?.includeFilteredRowCount)return(void 0===this._totalFilteredRowCount||this._parent._resetTotalFilteredRowCount)&&(this._totalFilteredRowCount=this._parent._getTotalFilteredRowCount(this._params),this._parent._resetTotalFilteredRowCount=!1),this._totalFilteredRowCount},enumerable:!0});const s=o.result.value.metadata?.length>0?o.result.value.metadata[o.result.value.metadata.length-1]?.key:null,a=o.result.value.data?.length>0?o.result.value.data[o.result.value.data.length-1]:null,l=o.result.value.metadata?.map((e=>e.key));return this._parent._mapClientIdToIteratorInfo.set(this._clientId,{offset:o.offset,rowKey:s,data:a,filterCriterion:this._params?.filterCriterion,sortCriteria:this._params?.sortCriteria,fetchedRowKeys:l?r?.fetchedRowKeys?r.fetchedRowKeys.concat(l):l:[]}),t(o.result)}))}},this.AsyncIteratorYieldResult=class{constructor(e){this.value=e,this[s._VALUE]=e,this[s._DONE]=!1}},this.AsyncIteratorReturnResult=class{constructor(e){this.value=e,this[s._VALUE]=e,this[s._DONE]=!0}},this.DataProviderMutationEventDetail=class{constructor(e,t,n,r){this._parent=e,this.add=t,this.remove=n,this.update=r,this[s._ADD]=t,this[s._REMOVE]=n,this[s._UPDATE]=r,Object.defineProperty(this,s._PARENT,{value:e,enumerable:!1})}},this.DataProviderOperationEventDetail=class{constructor(e,t,n,r,i){this._parent=e,this.keys=t,this.metadata=n,this.data=r,this.indexes=i,this[s._KEYS]=t,this[s._METADATA]=n,this[s._DATA]=r,this[s._INDEXES]=i,Object.defineProperty(this,s._PARENT,{value:e,enumerable:!1})}},this.DataProviderAddOperationEventDetail=class{constructor(e,t,n,r,i,o,a){this._parent=e,this.keys=t,this.afterKeys=n,this.addBeforeKeys=r,this.metadata=i,this.data=o,this.indexes=a,this[s._KEYS]=t,this[s._AFTERKEYS]=n,this[s._ADDBEFOREKEYS]=r,this[s._METADATA]=i,this[s._DATA]=o,this[s._INDEXES]=a,Object.defineProperty(this,s._PARENT,{value:e,enumerable:!1})}},this._sequenceNum=0,this._mutationSequenceNum=0,this._mapClientIdToIteratorInfo=new Map,this._subscribeObservableArray(e),null!=t&&null!=t[s._KEYS]&&(this._keysSpecified=!0,this._keys=t[s._KEYS])}containsKeys(e){return this.fetchByKeys(e).then((t=>{const r=new n;return e[s._KEYS].forEach((e=>{null!=t[s._RESULTS].get(e)&&r.add(e)})),Promise.resolve(new this.ContainsKeysResults(e,r))}))}fetchByKeys(n){const r=n?n.signal:void 0;if(r){const e=r.reason;if(r.aborted)return Promise.reject(new DOMException(e,"AbortError"))}return new Promise(((i,o)=>{if(r){const e=r.reason;r.addEventListener("abort",(t=>o(new DOMException(e,"AbortError"))))}this._generateKeysIfNeeded();const a=new t,l=this._getKeys(),u=null!=n?n[s._ATTRIBUTES]:null;let c,d=0;if(n){const t=this._getRowData();return n[s._KEYS].forEach((n=>{for(c=null,d=0;d=0){let e=t[c];if(u&&u.length>0){const t={};this._filterRowAttributes(u,e,t),e=t}a.set(n,new this.Item(new this.ItemMetadata(n),e))}})),i(new this.FetchByKeysResults(n,a))}return o("Keys are a required parameter")}))}fetchByOffset(e){const t=e?e.signal:void 0;if(t){const e=t.reason;if(t.aborted)return Promise.reject(new DOMException(e,"AbortError"))}return new Promise(((n,r)=>{if(t){const e=t.reason;t.addEventListener("abort",(t=>r(new DOMException(e,"AbortError"))))}const i=null!=e?e[s._SIZE]:-1,o=null!=e?e[s._SORTCRITERIA]:null,a=null!=e&&e[s._OFFSET]>0?e[s._OFFSET]:0,l=null!=e?e[s._ATTRIBUTES]:null,u=null!=e?e[s._FILTERCRITERION]:null;this._generateKeysIfNeeded();let c,d=[],h=!0;if(e){const t=new this.FetchListParameters(i,o,u,l),r=this._fetchFrom(t,a,!0).result;t[s._SORTCRITERIA]&&(e[s._SORTCRITERIA]=t[s._SORTCRITERIA]);const p=r[s._VALUE];h=r[s._DONE];const f=p[s._DATA],m=p[s._METADATA].map((e=>e[s._KEY]));return d=f.map(((e,t)=>new this.Item(new this.ItemMetadata(m[t]),e))),"enabled"===e.includeFilteredRowCount&&(c=this._getTotalFilteredRowCount(e)),n(new this.FetchByOffsetResults(e,d,h,c))}return r("Offset is a required parameter")}))}_getTotalFilteredRowCount(e){const t=this._getRowData(),n=e?e[s._FILTERCRITERION]:null;let i=-1;if(n){i=0;let e=r.FilterFactory.getFilter({filterDef:n,filterOptions:this.options});for(let n=0;n0?"no":"yes"}createOptimizedKeySet(e){return new n(e)}createOptimizedKeyMap(e){if(e){const n=new t;return e.forEach(((e,t)=>{n.set(t,e)})),n}return new t}_getRowData(){return this[s._DATA]instanceof Array?this[s._DATA]:this[s._DATA]()}_getKeys(){return null==this._keys||this._keys instanceof Array?this._keys:this._keys()}_indexOfKey(t,n){let r,i=-1;for(r=0;r{if(i.offset>0){const s=i.filterCriterion,a=i.sortCriteria,l=a?this._getSortComparator(a):null;n&&n.forEach(((t,n)=>{const r=Array.from(e.keys)[n],o=this._indexOfKey(r,i.fetchedRowKeys);o>-1&&(--i.offset,i.fetchedRowKeys.splice(o,1))})),r&&r.forEach(((e,n)=>{const r=t.data[n],o=Array.from(t.keys)[n];(!s||!s.filter||r&&s.filter(r))&&(l?r&&i.data&&l({value:i.data},{value:r})>0&&(++i.offset,this._indexOfKey(o,i.fetchedRowKeys)<0&&i.fetchedRowKeys.splice(e,0,o)):e{let r,i,s,a,l,u=[],c=[],d=[],h=[];const p=[];this._mutationSequenceNum++;let f=!0,m=!0;this._resetTotalFilteredRowCount=!0,t.forEach((e=>{"deleted"===e.status?f=!1:"added"===e.status&&(m=!1)}));const _=[],g=[];let v=null,y=null,E=null;const b=this._generateKeysIfNeeded();if(!f&&!m){for(r=0;r=0){const e=this._getKeys()[t[r].index];c.push(e),u.push(t[r].value),d.push(t[r].index)}if(c.length>0){h=c.map((e=>new this.ItemMetadata(e)));const e=new n;c.forEach((t=>{e.add(t)})),v=new this.DataProviderOperationEventDetail(this,e,h,u,d)}}if(u=[],c=[],d=[],!f){for(r=0;r0&&c.forEach((e=>{const t=this._indexOfKey(e,this._getKeys());t>=0&&this._keys.splice(t,1)})),c.length>0){h=c.map((e=>new this.ItemMetadata(e)));const e=new n;c.forEach((t=>{e.add(t)})),E=new this.DataProviderOperationEventDetail(this,e,h,u,d)}}if(u=[],c=[],d=[],!m){const e=null==this._getKeys()||!(this._getKeys().length>0);for(r=0;r0){h=c.map((e=>new this.ItemMetadata(e)));const e=new n;c.forEach((t=>{e.add(t)}));const t=new n;p.forEach((e=>{t.add(e)})),y=new this.DataProviderAddOperationEventDetail(this,e,t,p,h,u,d)}}this._fireMutationEvent(y,E,v)}),null,"arrayChange"),t.subscribe((e=>{if(this._mutationEvent){const e=this._mutationEvent.detail;this._adjustIteratorOffset(e.remove,e.add),this.dispatchEvent(this._mutationEvent)}else if(this._mutationRemoveEvent||this._mutationAddEvent||this._mutationUpdateEvent){if(this._mutationRemoveEvent){const e=this._mutationRemoveEvent.detail;this._adjustIteratorOffset(e.remove,null),this.dispatchEvent(this._mutationRemoveEvent)}if(this._mutationAddEvent){const e=this._mutationAddEvent.detail;this._adjustIteratorOffset(null,e.add),this.dispatchEvent(this._mutationAddEvent)}this._mutationUpdateEvent&&this.dispatchEvent(this._mutationUpdateEvent)}else this.dispatchEvent(new r.DataProviderRefreshEvent);this._mutationEvent=null,this._mutationRemoveEvent=null,this._mutationAddEvent=null,this._mutationUpdateEvent=null}),null,"change")}}_fireMutationEvent(e,t,n){const i=new this.DataProviderMutationEventDetail(this,e,t,n);this._mutationEvent=new r.DataProviderMutationEvent(i)}_hasSamePropValue(t,n,r){const i="_hasSamePropValue is true";try{t&&t[r]&&t[r].forEach((t=>{n&&n[r]&&n[r].forEach((n=>{if(e.Object.compareValues(t,n))throw i}))}))}catch(e){if(e===i)return!0;throw e}return!1}_isObservableArray(e){return"function"==typeof e&&e.subscribe&&!(void 0===e.destroyAll)}_generateKeysIfNeeded(){if(null==this._keys){const e=null!=this.options?this.options[s._KEYATTRIBUTES]||this.options[s._IDATTRIBUTE]:null;this._keys=[];const t=this._getRowData();let n,r=0;for(r=0;r0){const r=t.substring(0,n),i=t.substring(n+1),o=e[r];if(o)return this._getVal(o,i)}}return"function"==typeof e[t]?e[t]():e[t]}_getAllVals(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:Object.keys(e).map((t=>this._getVal(e,t)))}_fetchFrom(e,t,n,i){const o=null!=e?e[s._ATTRIBUTES]:null;this._generateKeysIfNeeded();const a=null!=e?e[s._SORTCRITERIA]:null,l=this._getCachedIndexMap(a,i),u=this._getRowData(),c=l.map((e=>u[e])),d=l.map((e=>this._getKeys()[e])),h=null!=e?e[s._SIZE]>0?e[s._SIZE]:e[s._SIZE]<0?this._getKeys().length:25:25;let p=t+h=t&&(_.push(c[i]),g.push(d[i])),v++),i++;p=i{if(o&&o.length>0){const t={};this._filterRowAttributes(o,e,t),e=t}return e}));let y=g.map((e=>new this.ItemMetadata(e))),E=new this.FetchListResult(e,m,y);return(n?p:E.data.length>0)?{result:new this.AsyncIteratorYieldResult(E),offset:v}:{result:new this.AsyncIteratorReturnResult(E),offset:v}}_getCachedIndexMap(e,t){if(t&&t.indexMap&&t[s._MUTATIONSEQUENCENUM]===this._mutationSequenceNum)return t.indexMap;const n=this._getRowData().map(((e,t)=>t)),r=this._sortData(n,e);return t&&(t.indexMap=r,t[s._MUTATIONSEQUENCENUM]=this._mutationSequenceNum),r}_sortData(e,t){const n=this._getRowData(),r=e.map((e=>({index:e,value:n[e]})));return null!=t&&r.sort(this._getSortComparator(t)),r.map((e=>e.index))}_getSortComparator(e){return(t,n)=>{const i=null!=this.options?this.options[s._SORTCOMPARATORS]:null;let o,a,l,u,c,d;for(o=0;o{e!==s._ATDEFAULT&&e.name!==s._ATDEFAULT||(i=!0)})),Object.keys(t).forEach((o=>{if(i){let i,s=!1,a=o;for(r=0;r{let r;r=e instanceof Object?e.name:e,r.startsWith("!")||r!==o||this._filterRowAttributes(e,t,n)}))}))}else if(e instanceof Object){const r=e.name,i=e.attributes;if(r&&!r.startsWith("!"))if(t[r]instanceof Object&&!Array.isArray(t[r])&&i){const e={};this._filterRowAttributes(i,t[r],e),n[r]=e}else if(Array.isArray(t[r])&&i){let e;n[r]=[],t[r].forEach(((t,o)=>{e={},this._filterRowAttributes(i,t,e),n[r][o]=e}))}else this._proxyAttribute(n,t,r)}else this._proxyAttribute(n,t,e)}_proxyAttribute(e,t,n){e&&t&&Object.defineProperty(e,n,{get:()=>t[n],set(e){t[n]=e},enumerable:!0})}}return s._KEY="key",s._KEYS="keys",s._AFTERKEYS="afterKeys",s._ADDBEFOREKEYS="addBeforeKeys",s._DIRECTION="direction",s._ATTRIBUTE="attribute",s._ATTRIBUTES="attributes",s._SORT="sort",s._SORTCRITERIA="sortCriteria",s._FILTERCRITERION="filterCriterion",s._DATA="data",s._METADATA="metadata",s._INDEXES="indexes",s._OFFSET="offset",s._SIZE="size",s._IDATTRIBUTE="idAttribute",s._IMPLICITSORT="implicitSort",s._KEYATTRIBUTES="keyAttributes",s._SORTCOMPARATORS="sortComparators",s._COMPARATORS="comparators",s._COMPARATOR="comparator",s._RESULTS="results",s._CONTAINS="contains",s._FETCHPARAMETERS="fetchParameters",s._CONTAINSPARAMETERS="containsParameters",s._VALUE="value",s._DONE="done",s._ADD="add",s._REMOVE="remove",s._UPDATE="update",s._DETAIL="detail",s._FETCHLISTRESULT="fetchListResult",s._ATDEFAULT="@default",s._MUTATIONSEQUENCENUM="mutationSequenceNum",s._PARENT="_parent",s._TOTALFILTEREDROWCOUNR="totalFilteredRowCount",i.EventTargetMixin.applyMixin(s),e._registerLegacyNamespaceProp("ArrayDataProvider",s),s}.apply(t,r))||(e.exports=i)},1597:(e,t,n)=>{var r,i;r=[n(7006),n(9755),n(370),n(7399),n(9831)],void 0===(i=function(e,t,n,r,i){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;class o{constructor(e,t,r){var i;this.treeData=e,this.options=t,this._rootDataProvider=r,this.TreeAsyncIterator=class{constructor(e,t){this._parent=e,this._baseIterable=t}next(){return this._baseIterable[Symbol.asyncIterator]().next().then((e=>{const t=e.value.metadata;for(let n=0;nthis._asyncIterator}},Symbol.asyncIterator,i),this._baseDataProvider=new n(e,t),this._mapKeyToNode=new Map,this._mapNodeToKey=new Map,this._mapArrayToSequenceNum=new Map,this._mapKoArrayToSubscriptions=new Map,this._mapKeyToParentNodePath=new Map,this._parentNodeKeys=new Set,this._childrenAttr=this.options&&this.options.childrenAttribute?this.options.childrenAttribute:"children",null==r?(this._parentNodePath=[],this._processTreeArray(e,[])):this._getTreeKeys(this.treeData)}containsKeys(e){return this.fetchByKeys(e).then((t=>{const n=new Set;return e.keys.forEach((e=>{null!=t.results.get(e)&&n.add(e)})),Promise.resolve({containsParameters:e,results:n})}))}getCapability(e){return this._baseDataProvider.getCapability(e)}getTotalSize(){return this._baseDataProvider.getTotalSize()}isEmpty(){return this._baseDataProvider.isEmpty()}createOptimizedKeySet(e){return this._baseDataProvider.createOptimizedKeySet(e)}createOptimizedKeyMap(e){return this._baseDataProvider.createOptimizedKeyMap(e)}getChildDataProvider(e,t){const n=this._getRootDataProvider(),r=this._getNodeForKey(e);if(r){const t=this._getChildren(r);if(t){const r=new o(t,this.options,n);return null!=r&&(r._parentNodePath=n._mapKeyToParentNodePath.get(JSON.stringify(e)),n.addEventListener("refresh",(e=>{r._getTreeKeys(t)})),n.addEventListener("mutate",(e=>{r._getTreeKeys(t)}))),r}}return null}fetchFirst(e){e=this._applyLeafNodeFilter(e);const t=this._baseDataProvider.fetchFirst(e);return new this.TreeAsyncIterable(this,new this.TreeAsyncIterator(this,t))}fetchByOffset(e){return e=this._applyLeafNodeFilter(e),this._baseDataProvider.fetchByOffset(e).then((t=>{const n=t.results,r=[];for(const e of n){let t=e.metadata;const n=e.data;t=this._getTreeMetadata(t,n),r.push({data:n,metadata:t})}const i={done:t.done,fetchParameters:t.fetchParameters,results:r};return"enabled"===e.includeFilteredRowCount&&(i.totalFilteredRowCount=t.totalFilteredRowCount),i}))}fetchByKeys(e){const t=new Map;return e.keys.forEach((e=>{if(0===this._parentNodePath.length||this._parentNodeKeys.has(e)){const n=this._getNodeForKey(e);n&&t.set(e,{metadata:{key:e},data:n})}})),Promise.resolve({fetchParameters:e,results:t})}_getTreeKeys(e){const t=e instanceof Array?e:e();for(const e of t){const t=this._getKeyForNode(e);this._parentNodeKeys.add(t),e[this._childrenAttr]&&this._getTreeKeys(e[this._childrenAttr])}}_getChildren(e){return this._getVal(e,this._childrenAttr,!0)}_getRootDataProvider(){return this._rootDataProvider?this._rootDataProvider:this}_subscribeObservableArray(t,n){if("function"!=typeof t||!t.subscribe||void 0===t.destroyAll)throw new Error("Invalid data type. ArrayTreeDataProvider only supports Array or observableArray.");let r=null,i=null;const o=new Array(2);o[0]=t.subscribe((o=>{let s,a,l,u=[],c=[],d=[],h=[];const p=[];let f=null,m=null,_=null;const g=new Set,v=[],y=[];for(let e=0;et&&y[e].index--;else if("added"===n)for(let e=0;et&&y[e].index++}for(s=0;s0){h=c.map((e=>({key:e})));const e=new Set;c.forEach((t=>{e.add(t)})),_={data:u,indexes:d,keys:e,metadata:h}}u=[],c=[],d=[],h=[];const E=t(),b=[],S=[],C=[],O=[];for(s=0;s0){const e=new Set;c.forEach((t=>{e.add(t)}));const t=new Set,r=[],i=[];let o;o=this.options&&this.options.keyAttributes&&"siblings"!==this.options.keyAttributesScope?n.length>0?n[n.length-1]:null:n.length>0?n:null,d.forEach((e=>{let n;n=e>=E.length-1?null:this._getKeyForNode(E[e+1]),t.add(n),r.push(n),i.push(o)})),m={afterKeys:t,addBeforeKeys:r,parentKeys:i,data:u,indexes:d,keys:e,metadata:h}}if(b.length>0){const e=new Set;b.forEach((t=>{e.add(t)})),f={data:S,indexes:C,keys:e,metadata:O}}(m||_||f)&&(r=new e.DataProviderMutationEvent({add:m,remove:_,update:f})),g.size&&(i=new e.DataProviderRefreshEvent({keys:g}))}),null,"arrayChange"),o[1]=t.subscribe((t=>{r||i?(r&&this.dispatchEvent(r),i&&this.dispatchEvent(i)):(this._flushMaps(),this._processTreeArray(this.treeData,[]),this.dispatchEvent(new e.DataProviderRefreshEvent)),r=null,i=null}),null,"change"),this._mapKoArrayToSubscriptions.set(t,o)}_flushMaps(){const e=this._getRootDataProvider();e._mapKeyToNode.clear(),e._mapNodeToKey.clear(),e._mapArrayToSequenceNum.clear(),e._mapKoArrayToSubscriptions.forEach(((e,t)=>{this._unsubscribeObservableArray(t)}))}_unsubscribeObservableArray(e){if("function"==typeof e&&e.subscribe&&void 0!==e.destroyAll){const t=this._mapKoArrayToSubscriptions.get(e);t&&(t[0].dispose(),t[1].dispose(),this._mapKoArrayToSubscriptions.delete(e))}}_processTreeArray(e,t){let n;e instanceof Array?n=e:(this._subscribeObservableArray(e,t),n=e()),n.forEach(((n,r)=>{this._processNode(n,t,e)}))}_releaseTreeArray(e){let t;e instanceof Array?t=e:(this._unsubscribeObservableArray(e),t=e()),t.forEach(((e,t)=>{this._releaseNode(e)}))}_processNode(e,t,n){const r=this._createKeyObj(e,t,n);this._setMapEntry(r.key,e),this._getRootDataProvider()._mapKeyToParentNodePath.set(JSON.stringify(r.key),r.keyPath);const i=this._getChildren(e);return i&&this._processTreeArray(i,r.keyPath),r}_releaseNode(e){const t=this._getKeyForNode(e);this._deleteMapEntry(t,e);const n=this._getChildren(e);n&&this._releaseTreeArray(n)}_createKeyObj(e,t,n){let r=this._getId(e);const i=t?t.slice():[];return null==r?(this._setUseIndexAsKey(!0),i.push(this._incrementSequenceNum(n)),r=i):(i.push(r),this.options&&"siblings"===this.options.keyAttributesScope&&(r=i)),{key:r,keyPath:i}}_getId(e){let t;const n=null!=this.options?this.options.keyAttributes:null;if(null!=n){if(Array.isArray(n)){t=[];for(let r=0;r0){const r=t.substring(0,n),i=t.substring(n+1),o=e[r];if(o)return this._getVal(o,i)}}return!0!==n&&"function"==typeof e[t]?e[t]():e[t]}_getAllVals(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:Object.keys(e).map((t=>this._getVal(e,t)))}_getNodeMetadata(e){return{key:this._getKeyForNode(e)}}_getNodeForKey(e){return this._getRootDataProvider()._mapKeyToNode.get(JSON.stringify(e))}_getKeyForNode(e){return this._getRootDataProvider()._mapNodeToKey.get(e)}_setMapEntry(e,t){const n=this._getRootDataProvider(),r=JSON.stringify(e);n._mapKeyToNode.has(r)&&i.warn(`Duplicate key ${r} found in ArrayTreeDataProvider. Keys must be unique when keyAttributes ${this.options.keyAttributes} is specified`),n._mapKeyToNode.set(r,t),n._mapNodeToKey.set(t,e)}_deleteMapEntry(e,t){const n=this._getRootDataProvider();n._mapKeyToNode.delete(JSON.stringify(e)),n._mapNodeToKey.delete(t)}_incrementSequenceNum(e){const t=this._getRootDataProvider(),n=t._mapArrayToSequenceNum.get(e)||0;return t._mapArrayToSequenceNum.set(e,n+1),n}_getUseIndexAsKey(){return this._getRootDataProvider()._useIndexAsKey}_setUseIndexAsKey(e){return this._getRootDataProvider()._useIndexAsKey=e}_getLeafNodeFilter(e){return{op:"$or",criteria:[e,{op:"$and",criteria:[{op:"$ne",attribute:this._childrenAttr,value:null},{op:"$ne",attribute:this._childrenAttr,value:void 0}]}]}}_applyLeafNodeFilter(e){if(e&&e.filterCriterion){const n=t.extend({},e);n.filterCriterion=this._getLeafNodeFilter(n.filterCriterion),n.filterCriterion.filter=e.filterCriterion.filter,e=n}return e}_getTreeMetadata(e,t){let n=!1,r=e.key;return(null==this.options||null==this.options.keyAttributes||"siblings"==this.options.keyAttributesScope||"@index"==this.options.keyAttributes||this._getUseIndexAsKey())&&(n=!0),n&&(r=this._parentNodePath?this._parentNodePath.slice():[],r.push(e.key)),this._getNodeMetadata(this._getNodeForKey(r))}_compareChildren(t,n){let r=!0;const i=t[this._childrenAttr],o=n[this._childrenAttr],s="function"==typeof i?i():i,a="function"==typeof o?o():o;if(!s&&a||s&&!a)r=!1;else if(s&&a)if(s.length!==a.length)r=!1;else for(let t=0;t{var r,i;r=[t,n(2027),n(5275),n(8819),n(9999)],i=function(e,t,n,r,i){"use strict";const o=n.OraI18nUtils,s="UTC";let a={hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"};const l=["Africa/Abidjan","Africa/Addis_Ababa","Africa/Algiers","Africa/Bangui","Africa/Blantyre","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Johannesburg","Africa/Khartoum","Africa/Tripoli","Africa/Tunis","America/Adak","America/Anchorage","America/Anguilla","America/Argentina/Buenos_Aires","America/Atikokan","America/Belem","America/Belize","America/Boa_Vista","America/Bogota","America/Caracas","America/Chicago","America/Chihuahua","America/Creston","America/Detroit","America/Ensenada","America/Fort_Wayne","America/Glace_Bay","America/Godthab","America/Guatemala","America/Guyana","America/Havana","America/Los_Angeles","America/Managua","America/Merida","America/Miquelon","America/Montevideo","America/Noronha","America/Santiago","America/Sao_Paulo","America/Scoresbysund","America/St_Johns","America/Winnipeg","Antarctica/DumontDUrville","Antarctica/McMurdo","Antarctica/Syowa","Antarctica/Vostok","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Beirut","Asia/Brunei","Asia/Calcutta","Asia/Chongqing","Asia/Colombo","Asia/Dacca","Asia/Damascus","Asia/Dubai","Asia/Gaza","Asia/Hong_Kong","Asia/Irkutsk","Asia/Istanbul","Asia/Jakarta","Asia/Jerusalem","Asia/Kabul","Asia/Karachi","Asia/Kathmandu","Asia/Krasnoyarsk","Asia/Magadan","Asia/Manila","Asia/Nicosia","Asia/Novosibirsk","Asia/Omsk","Asia/Rangoon","Asia/Seoul","Asia/Tehran","Asia/Tokyo","Asia/Vladivostok","Asia/Yakutsk","Asia/Yekaterinburg","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/South_Georgia","Atlantic/Stanley","Australia/ACT","Australia/Adelaide","Australia/Brisbane","Australia/Currie","Australia/Darwin","Australia/LHI","Australia/Perth","Chile/EasterIsland","Eire","Europe/Belfast","Europe/Kaliningrad","Europe/Moscow","Europe/Riga","Europe/Samara","Europe/Tallinn","Europe/Vilnius","HST","Pacific/Fiji","Pacific/Guam","Pacific/Marquesas","Pacific/Midway","Pacific/Norfolk","Pacific/Tongatapu","Africa/Djibouti","Africa/Harare","Africa/Lagos","Africa/Maputo","Africa/Mogadishu","Africa/Nairobi","Africa/Nouakchott","America/Buenos_Aires","America/Costa_Rica","America/Denver","America/Edmonton","America/El_Salvador","America/Guayaquil","America/Halifax","America/Indiana/Indianapolis","America/Indianapolis","America/Lima","America/Manaus","America/Mazatlan","America/Mexico_City","America/Montreal","America/New_York","America/Panama","America/Phoenix","America/Puerto_Rico","America/Regina","America/Tijuana","America/Toronto","America/Vancouver","Asia/Aden","Asia/Bahrain","Asia/Dhaka","Asia/Kamchatka","Asia/Katmandu","Asia/Kolkata","Asia/Kuala_Lumpur","Asia/Kuwait","Asia/Muscat","Asia/Qatar","Asia/Riyadh","Asia/Saigon","Asia/Shanghai","Asia/Singapore","Asia/Taipei","Asia/Tashkent","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Reykjavik","Australia/Hobart","Australia/Lord_Howe","Australia/Sydney","Europe/Amsterdam","Europe/Athens","Europe/Belgrade","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Copenhagen","Europe/Dublin","Europe/Helsinki","Europe/Istanbul","Europe/Kiev","Europe/Lisbon","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Oslo","Europe/Paris","Europe/Prague","Europe/Rome","Europe/Sofia","Europe/Stockholm","Europe/Tirane","Europe/Vienna","Europe/Warsaw","Europe/Zurich","Indian/Chagos","Indian/Cocos","Pacific/Auckland","Pacific/Easter","Pacific/Gambier","Pacific/Honolulu","Pacific/Kwajalein","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Pitcairn","US/Aleutian","US/Hawaii","UTC"];function u(e,t,n,r){const i=t.split("/"),l=i[0],u=i[1];let c,d;const h=e.split("-")[0],p=new Date,f={offsetLocName:null,locName:null},m=r[l];if("en"===h?void 0!==i[1]&&(c=" "+i[1],c=c.replace(/_/g," "),c=c.replace("Saigon","Ho Chi Minh City")):void 0!==m&&(c=m[u],void 0!==c&&(c=c.exemplarCity,void 0!==c&&(c=" "+c))),void 0===c)return null;a.timeZone=t,d=new Intl.DateTimeFormat(e,a).formatToParts(p).find((e=>"timeZoneName"===e.type)).value;let _=`(${s})`;return 0!==n&&(_=o.getTimeStringFromOffset(s,n,!0,!0),_=`(${_})`),d=" - "+d,f.offsetLocName=_+c+d,f.locName=c+d,f}class c{static getAvailableTimeZonesImpl(){const e=t.__getBundle(),n=o.getLocaleElementsMainNodeKey(e),r=c?._timeZoneDataCache[n]?.availableTimeZones;return r||c._availableTimeZonesImpl(e)}static _availableTimeZonesImpl(e){const n={sensitivity:"variant"},s=[];let a={};const d=o.getLocaleElementsMainNodeKey(e),h=o.getLocaleElementsMainNodeKey(e);(function(e,n){const s=t.__getBundle(),a=(o.getLocaleElementsMainNode(s),o.getLocaleElementsMainNodeKey(s)),c=function(e){function t(t){let n=null;const r=e.main[t];return r&&(n=r.dates),n}let n=r.getLocale(),i=t(n);if(i)return i;let o=n.split("-");for(o.pop();o.length>0;){if(n=o.join("-"),i=t(n),i)return i;o.pop()}return e.main["en-US"].dates}(s),d=c.timeZoneNames.zone,h=new Date,p={year:h.getFullYear(),month:h.getMonth()+1,date:h.getDate(),hours:h.getHours(),minutes:h.getMinutes()};for(let t=0;t{var r,i;r=[t,n(1600)],i=function(e,t){"use strict";const n=Symbol("StaticContextPropagation"),r=Symbol("ConsumedContext"),i=new Map;e.CONSUMED_CONTEXT=r,e.STATIC_PROPAGATION=n,e.getPropagationMetadataViaCache=function(e,o){let s=i.get(e);if(void 0!==s)return s;s=null;const a=o.properties??{};Object.keys(a).forEach((e=>{const t=a[e],n=t?.binding?.provide,r=t?.binding?.consume;if(n||r){if(t.properties)throw new Error("Propagating complex properties is not supported!");s=s??new Map,s.set(e,[n,r])}}));const l=o.extension?._BINDING?.provide;if(l){s=s??new Map;const e=new Map;l.forEach(((t,n)=>{e.set(n,{name:n,default:t})})),s.set(n,[e,void 0])}const u=t.getElementRegistration(e)?.cache?.contexts;return u&&s.set(r,[void 0,u]),i.set(e,s),s},Object.defineProperty(e,"__esModule",{value:!0})}.apply(t,r),void 0===i||(e.exports=i)},6325:(e,t)=>{var n;n=function(e){"use strict";var t;const n=function(){return t||(t="loading"===document.readyState?new Promise((function(e){var t=function(){document.removeEventListener("DOMContentLoaded",t),e()};document.addEventListener("DOMContentLoaded",t)})):Promise.resolve()),t};e.whenDocumentReady=n,Object.defineProperty(e,"__esModule",{value:!0})}.apply(t,[t]),void 0===n||(e.exports=n)},537:(e,t,n)=>{var r,i;r=[n(4670),n(7006),n(9755),n(3215),n(9279),n(857),n(8126),n(602),n(7509),n(2265)],void 0===(i=function(e,t,n,r,i,o,s,a,l,u){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,s=s&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s,a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var c={properties:{chroming:{type:"string",enumValues:["borderless","full","half","outlined","solid"]},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},label:{type:"string"},translations:{type:"object",value:{}}},methods:{getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAction:{}},extension:{}};c.extension._WIDGET_NAME="ojButton",c.extension._TRACK_CHILDREN="nearestCustomElement",c.extension._GLOBAL_TRANSFER_ATTRS=["href","aria-label","aria-labelledby","aria-describedby"],t.CustomElementBridge.register("oj-menu-button",{metadata:c,innerDomFunction:function(e){return e.getAttribute("href")?"a":"button"}});var d={properties:{chroming:{type:"string",enumValues:["borderless","full","half","outlined","solid"]},describedBy:{type:"string"},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},focusManagement:{type:"string",enumValues:["none","oneTabstop"],value:"oneTabstop"},labelledBy:{type:"string"},translations:{type:"object",value:{}},value:{type:"any",writeback:!0}},methods:{getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},extension:{}};d.extension._WIDGET_NAME="ojButtonset",d.extension._ALIASED_PROPS={value:"checked"},t.CustomElementBridge.register("oj-buttonset-one",{metadata:d});var h={properties:{chroming:{type:"string",enumValues:["borderless","full","half","outlined","solid"]},describedBy:{type:"string"},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},focusManagement:{type:"string",enumValues:["none","oneTabstop"],value:"oneTabstop"},labelledBy:{type:"string"},translations:{type:"object",value:{}},value:{type:"Array",writeback:!0}},methods:{getProperty:{},refresh:{},setProperties:{},setProperty:{},getNodeBySubId:{},getSubIdByNode:{}},extension:{}};if(h.extension._WIDGET_NAME="ojButtonset",h.extension._ALIASED_PROPS={value:"checked"},t.CustomElementBridge.register("oj-buttonset-many",{metadata:h}),t.ButtonLegacy){var p={properties:{chroming:{type:"string",enumValues:["borderless","callToAction","danger","full","half","outlined","solid"]},disabled:{type:"boolean",value:!1},display:{type:"string",enumValues:["all","icons","label"],value:"all"},translations:{type:"object",value:{}}},methods:{refresh:{},setProperty:{},getProperty:{},setProperties:{},getNodeBySubId:{},getSubIdByNode:{}},events:{ojAction:{}},extension:{}};p.extension._WIDGET_NAME="ojButton",p.extension._TRACK_CHILDREN="nearestCustomElement",p.extension._GLOBAL_TRANSFER_ATTRS=["href","aria-label","aria-labelledby","aria-describedby"],t.CustomElementBridge.register("oj-button",{metadata:p,innerDomFunction:function(e){return e.getAttribute("href")?"a":"button"}})}!function(){var e,u,c="oj-button oj-component oj-enabled oj-default",d="oj-button-icons-only oj-button-icon-only oj-button-text-icons oj-button-text-icon-start oj-button-text-icon-end oj-button-text-only",h="oj-button-full-chrome oj-button-half-chrome oj-button-outlined-chrome oj-button-cta-chrome oj-button-danger-chrome",p={solid:"oj-button-full-chrome",outlined:"oj-button-outlined-chrome",borderless:"oj-button-half-chrome",full:"oj-button-full-chrome",half:"oj-button-half-chrome",callToAction:"oj-button-cta-chrome",danger:"oj-button-danger-chrome oj-button-full-chrome"},f={button:["ojButtonset","ojToolbar"],buttonset:["ojToolbar"]};function m(e,t){y(e,h),e.classList.add(p[t])}function _(e,t){var r,i=e.name,o=e.form;if(i){var s=":radio[name='"+(i=i.replace(/'/g,"\\'"))+"']:oj-button";r=t?t.filter(s):o?n(o).find(s):n(s,e.ownerDocument).filter((function(){return!this.form}))}else r=(t?t.filter(e):n(e)).filter(":oj-button");return r}function g(e,t,n){var r=function(e,t,n){for(var r=0;r=0)for(;;e=e.parentNode){var s=o.__GetWidgetConstructor(e,i);if(s)return s}}return null}(t,n,f[e]);return r?r("option","chroming"):i.getCachedCSSVarValues(["--oj-private-"+e+"-global-chroming-default"])[0]}function v(e,t){var n=e.className;if(n){for(var r=n.split(" "),i=t.split(" "),o=i.length;o>=0;o--)r.indexOf(i[o])>=0&&i.splice(o,1);i.length>0&&(e.className=n+" "+i.join(" "))}else e.className=t}function y(e,t){var n=e.className;if(n){for(var r=n.split(" "),i=t.split(" "),o=!1,s=0;s=0&&(r.splice(a,1),o=!0)}o&&(e.className=r.join(" "))}}t.__registerWidget("oj.ojButton",n.oj.baseComponent,{defaultElement:"