rasa-pro 3.14.0a16__py3-none-any.whl → 3.14.0a17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of rasa-pro might be problematic. Click here for more details.
- rasa/builder/copilot/prompts/copilot_system_prompt.jinja2 +156 -105
- rasa/builder/copilot/telemetry.py +35 -19
- rasa/builder/jobs.py +15 -5
- rasa/builder/models.py +7 -7
- rasa/builder/project_generator.py +129 -22
- rasa/builder/service.py +34 -18
- rasa/cli/project_templates/basic/README.md +23 -0
- rasa/cli/project_templates/basic/actions/actions.md +10 -0
- rasa/cli/project_templates/basic/config.yml +4 -4
- rasa/cli/project_templates/basic/data/data.md +5 -6
- rasa/cli/project_templates/basic/domain/domain.md +7 -5
- rasa/cli/project_templates/basic/domain/general/show_faqs.yml +1 -1
- rasa/cli/project_templates/basic/endpoints.yml +1 -1
- rasa/cli/project_templates/finance/README.md +26 -0
- rasa/cli/project_templates/finance/actions/__init__.py +0 -46
- rasa/cli/project_templates/finance/actions/accounts/check_balance.py +18 -0
- rasa/cli/project_templates/finance/actions/actions.md +15 -0
- rasa/cli/project_templates/finance/actions/{transfers/action_process_immediate_payment.py → cards/check_that_card_exists.py} +6 -3
- rasa/cli/project_templates/finance/actions/cards/list_cards.py +22 -0
- rasa/cli/project_templates/finance/actions/contacts/__init__.py +0 -0
- rasa/cli/project_templates/finance/actions/contacts/add_contact.py +30 -0
- rasa/cli/project_templates/finance/actions/contacts/list_contacts.py +22 -0
- rasa/cli/project_templates/finance/actions/contacts/remove_contact.py +35 -0
- rasa/cli/project_templates/finance/actions/db.py +117 -0
- rasa/cli/project_templates/finance/actions/transfers/check_transfer_funds.py +27 -0
- rasa/cli/project_templates/finance/actions/transfers/check_transfer_limit.py +36 -0
- rasa/cli/project_templates/finance/actions/transfers/execute_recurrent_payment.py +20 -0
- rasa/cli/project_templates/finance/actions/transfers/execute_transfer.py +45 -0
- rasa/cli/project_templates/finance/actions/transfers/list_transactions.py +32 -0
- rasa/cli/project_templates/finance/config.yml +6 -0
- rasa/cli/project_templates/finance/credentials.yml +7 -6
- rasa/cli/project_templates/finance/data/accounts/check_balance.yml +3 -4
- rasa/cli/project_templates/finance/data/accounts/download_statements.yml +26 -0
- rasa/cli/project_templates/finance/data/bills/bill_pay_reminder.yml +25 -0
- rasa/cli/project_templates/finance/data/cards/activate_card.yml +35 -0
- rasa/cli/project_templates/finance/data/cards/block_card.yml +37 -58
- rasa/cli/project_templates/finance/data/cards/list_cards.yml +14 -0
- rasa/cli/project_templates/finance/data/cards/replace_card.yml +16 -0
- rasa/cli/project_templates/finance/data/cards/replace_eligible_card.yml +29 -0
- rasa/cli/project_templates/finance/data/contacts/add_contact.yml +33 -0
- rasa/cli/project_templates/finance/data/contacts/list_contacts.yml +14 -0
- rasa/cli/project_templates/finance/data/contacts/remove_contact.yml +31 -0
- rasa/cli/project_templates/finance/data/data.md +14 -0
- rasa/cli/project_templates/finance/data/general/agent_details.yml +6 -0
- rasa/cli/project_templates/finance/data/general/hello.yml +1 -2
- rasa/cli/project_templates/finance/data/general/help.yml +2 -2
- rasa/cli/project_templates/finance/data/general/human_handoff.yml +1 -1
- rasa/cli/project_templates/finance/data/transfers/check_transfer_limit.yml +18 -0
- rasa/cli/project_templates/finance/data/transfers/list_transactions.yml +46 -0
- rasa/cli/project_templates/finance/data/transfers/move_money_between_accounts.yml +51 -0
- rasa/cli/project_templates/finance/data/transfers/transfer_money.yml +29 -62
- rasa/cli/project_templates/finance/data/transfers/transfer_money_to_a_third_party.yml +175 -0
- rasa/cli/project_templates/finance/db/cards.json +18 -0
- rasa/cli/project_templates/finance/db/contacts.json +10 -0
- rasa/cli/project_templates/finance/db/my_account.json +6 -0
- rasa/cli/project_templates/finance/db/transactions.json +22 -0
- rasa/cli/project_templates/finance/docs/docs.md +8 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/account_features/budgeting_analytics.txt +22 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/account_features/multi_currency_accounts.txt +19 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/account_features/premium_benefits.txt +19 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/card_management/contactless_limits.txt +16 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/card_management/freeze_unfreeze_card.txt +16 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/card_management/lost_stolen_card.txt +19 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/money_transfers/instant_payments.txt +19 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/money_transfers/international_transfers.txt +19 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/security_fraud/fraud_protection.txt +22 -0
- rasa/cli/project_templates/finance/docs/fenlo_banking_faq/security_fraud/secure_payments.txt +22 -0
- rasa/cli/project_templates/finance/domain/_system/patterns/pattern_session_start.yml +11 -0
- rasa/cli/project_templates/finance/domain/accounts/check_balance.yml +9 -5
- rasa/cli/project_templates/finance/domain/accounts/download_statements.yml +40 -0
- rasa/cli/project_templates/finance/domain/bills/bill_pay_reminder.yml +49 -0
- rasa/cli/project_templates/finance/domain/cards/activate_card.yml +24 -0
- rasa/cli/project_templates/finance/domain/cards/block_card.yml +33 -90
- rasa/cli/project_templates/finance/domain/cards/list_cards.yml +16 -0
- rasa/cli/project_templates/finance/domain/cards/replace_card.yml +43 -0
- rasa/cli/project_templates/finance/domain/cards/shared.yml +15 -0
- rasa/cli/project_templates/finance/domain/contacts/add_contact.yml +37 -0
- rasa/cli/project_templates/finance/domain/contacts/list_contacts.yml +16 -0
- rasa/cli/project_templates/finance/domain/contacts/remove_contact.yml +32 -0
- rasa/cli/project_templates/finance/domain/domain.md +18 -0
- rasa/cli/project_templates/finance/domain/general/_shared.yml +53 -0
- rasa/cli/project_templates/finance/domain/general/agent_details.yml +31 -0
- rasa/cli/project_templates/finance/domain/general/cannot_handle.yml +5 -2
- rasa/cli/project_templates/finance/domain/general/feedback.yml +0 -3
- rasa/cli/project_templates/finance/domain/general/human_handoff.yml +7 -3
- rasa/cli/project_templates/finance/domain/general/welcome.yml +5 -2
- rasa/cli/project_templates/finance/domain/transfers/check_transfer_limit.yml +32 -0
- rasa/cli/project_templates/finance/domain/transfers/list_transactions.yml +44 -0
- rasa/cli/project_templates/finance/domain/transfers/shared.yml +17 -0
- rasa/cli/project_templates/finance/domain/transfers/transfer_money.yml +203 -61
- rasa/cli/project_templates/finance/endpoints.yml +4 -3
- rasa/cli/project_templates/finance/prompts/rephraser_demo_personality_prompt.jinja2 +31 -12
- rasa/cli/project_templates/telco/README.md +25 -0
- rasa/cli/project_templates/telco/actions/actions.md +12 -0
- rasa/cli/project_templates/telco/config.yml +4 -4
- rasa/cli/project_templates/telco/data/data.md +11 -0
- rasa/cli/project_templates/telco/docs/docs.md +3 -0
- rasa/cli/project_templates/telco/domain/domain.md +13 -0
- rasa/cli/project_templates/telco/endpoints.yml +1 -1
- rasa/cli/project_templates/telco/prompts/rephraser_demo_personality_prompt.jinja2 +1 -1
- rasa/core/brokers/broker.py +1 -1
- rasa/core/brokers/kafka.py +52 -8
- rasa/core/channels/inspector/dist/assets/{arc-460861ce.js → arc-35222594.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{blockDiagram-38ab4fdb-16c993e0.js → blockDiagram-38ab4fdb-a0efbfd3.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{c4Diagram-3d4e48cf-488337d7.js → c4Diagram-3d4e48cf-0584c0f2.js} +1 -1
- rasa/core/channels/inspector/dist/assets/channel-8e08bed9.js +1 -0
- rasa/core/channels/inspector/dist/assets/{classDiagram-70f12bd4-b08e53a8.js → classDiagram-70f12bd4-39f40dbe.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{classDiagram-v2-f2320105-b73f5a83.js → classDiagram-v2-f2320105-1ad755f3.js} +1 -1
- rasa/core/channels/inspector/dist/assets/clone-78c82dea.js +1 -0
- rasa/core/channels/inspector/dist/assets/{createText-2e5e7dd3-0210a219.js → createText-2e5e7dd3-b0f4f0fe.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{edges-e0da2a9e-28df7099.js → edges-e0da2a9e-9039bff9.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{erDiagram-9861fffd-9fbf4a58.js → erDiagram-9861fffd-65c9b127.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{flowDb-956e92f1-fa691f62.js → flowDb-956e92f1-4f08b38e.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{flowDiagram-66a62f08-ca907b67.js → flowDiagram-66a62f08-e95c362a.js} +1 -1
- rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-2b08f601.js +1 -0
- rasa/core/channels/inspector/dist/assets/{flowchart-elk-definition-4a651766-c10945f2.js → flowchart-elk-definition-4a651766-703c3015.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{ganttDiagram-c361ad54-9d49a75a.js → ganttDiagram-c361ad54-699328ea.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{gitGraphDiagram-72cf32ee-9aa698ac.js → gitGraphDiagram-72cf32ee-04cf4b05.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{graph-3ab38d50.js → graph-ee94449e.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{index-3862675e-6edac98f.js → index-3862675e-940162b4.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{index-61128091.js → index-c941dcb3.js} +3 -3
- rasa/core/channels/inspector/dist/assets/{infoDiagram-f8f76790-21baff85.js → infoDiagram-f8f76790-c79c2866.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{journeyDiagram-49397b02-4a6c7e98.js → journeyDiagram-49397b02-84489d30.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{layout-4beae36e.js → layout-a9aa9858.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{line-633b638e.js → line-eb73cf26.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{linear-22d77d65.js → linear-b3399f9a.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{mindmap-definition-fc14e90a-f219ef43.js → mindmap-definition-fc14e90a-b095bf1a.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{pieDiagram-8a3498a8-c7e1cafb.js → pieDiagram-8a3498a8-07644b66.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{quadrantDiagram-120e2f19-045e49b4.js → quadrantDiagram-120e2f19-573a3f9c.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{requirementDiagram-deff3bca-22485cb9.js → requirementDiagram-deff3bca-d457e1e1.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{sankeyDiagram-04a897e0-281c3da2.js → sankeyDiagram-04a897e0-9d26e1a2.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{sequenceDiagram-704730f1-a3dd10e0.js → sequenceDiagram-704730f1-3a9cde10.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{stateDiagram-587899a1-61bd6eb2.js → stateDiagram-587899a1-4f3e8cec.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{stateDiagram-v2-d93cdb3a-deead491.js → stateDiagram-v2-d93cdb3a-e617e5bf.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-6aaf32cf-1b10e104.js → styles-6aaf32cf-eab30d2f.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-9a916d00-b1e18e58.js → styles-9a916d00-09994be2.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{styles-c10674c1-956c3492.js → styles-c10674c1-b7110364.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{svgDrawCommon-08f97a94-e13f753d.js → svgDrawCommon-08f97a94-3ebc92ad.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{timeline-definition-85554ec2-e568acd2.js → timeline-definition-85554ec2-7d13d2f2.js} +1 -1
- rasa/core/channels/inspector/dist/assets/{xychartDiagram-e933f94c-8b7e27fc.js → xychartDiagram-e933f94c-488385e1.js} +1 -1
- rasa/core/channels/inspector/dist/index.html +1 -1
- rasa/core/channels/inspector/src/helpers/audio/audiostream.ts +14 -0
- rasa/core/channels/studio_chat.py +7 -0
- rasa/core/channels/voice_stream/asr/asr_event.py +1 -1
- rasa/core/channels/voice_stream/asr/azure.py +6 -3
- rasa/core/channels/voice_stream/asr/deepgram.py +1 -1
- rasa/core/channels/voice_stream/audiocodes.py +3 -0
- rasa/core/channels/voice_stream/browser_audio.py +53 -3
- rasa/core/channels/voice_stream/genesys.py +2 -1
- rasa/core/channels/voice_stream/jambonz.py +9 -1
- rasa/core/channels/voice_stream/twilio_media_streams.py +16 -0
- rasa/core/channels/voice_stream/voice_channel.py +61 -0
- rasa/core/iam_credentials_providers/aws_iam_credentials_providers.py +76 -1
- rasa/core/iam_credentials_providers/credentials_provider_protocol.py +1 -1
- rasa/core/lock_store.py +41 -7
- rasa/shared/nlu/training_data/schemas/responses.yml +3 -0
- rasa/version.py +1 -1
- {rasa_pro-3.14.0a16.dist-info → rasa_pro-3.14.0a17.dist-info}/METADATA +4 -3
- {rasa_pro-3.14.0a16.dist-info → rasa_pro-3.14.0a17.dist-info}/RECORD +162 -224
- rasa/cli/project_templates/finance/actions/accounts/action_ask_account.py +0 -47
- rasa/cli/project_templates/finance/actions/accounts/action_check_balance.py +0 -40
- rasa/cli/project_templates/finance/actions/action_session_start.py +0 -74
- rasa/cli/project_templates/finance/actions/cards/action_ask_card.py +0 -48
- rasa/cli/project_templates/finance/actions/cards/action_check_card_existence.py +0 -36
- rasa/cli/project_templates/finance/actions/cards/action_update_card_status.py +0 -54
- rasa/cli/project_templates/finance/actions/database.py +0 -277
- rasa/cli/project_templates/finance/actions/transfers/action_add_payee.py +0 -52
- rasa/cli/project_templates/finance/actions/transfers/action_ask_account_from.py +0 -51
- rasa/cli/project_templates/finance/actions/transfers/action_check_payee_existence.py +0 -40
- rasa/cli/project_templates/finance/actions/transfers/action_check_sufficient_funds.py +0 -40
- rasa/cli/project_templates/finance/actions/transfers/action_list_payees.py +0 -46
- rasa/cli/project_templates/finance/actions/transfers/action_remove_payee.py +0 -49
- rasa/cli/project_templates/finance/actions/transfers/action_schedule_payment.py +0 -19
- rasa/cli/project_templates/finance/actions/transfers/action_validate_payment_date.py +0 -36
- rasa/cli/project_templates/finance/csvs/accounts.csv +0 -8
- rasa/cli/project_templates/finance/csvs/advisors.csv +0 -7
- rasa/cli/project_templates/finance/csvs/appointments.csv +0 -211
- rasa/cli/project_templates/finance/csvs/branches.csv +0 -10
- rasa/cli/project_templates/finance/csvs/cards.csv +0 -11
- rasa/cli/project_templates/finance/csvs/payees.csv +0 -11
- rasa/cli/project_templates/finance/csvs/transactions.csv +0 -71
- rasa/cli/project_templates/finance/csvs/users.csv +0 -4
- rasa/cli/project_templates/finance/data/cards/select_card.yml +0 -12
- rasa/cli/project_templates/finance/data/general/bot_identity.yml +0 -6
- rasa/cli/project_templates/finance/data/system/patterns/pattern_chitchat.yml +0 -5
- rasa/cli/project_templates/finance/data/system/source/accounts.json +0 -51
- rasa/cli/project_templates/finance/data/system/source/advisors.json +0 -44
- rasa/cli/project_templates/finance/data/system/source/appointments.json +0 -1474
- rasa/cli/project_templates/finance/data/system/source/branches.json +0 -47
- rasa/cli/project_templates/finance/data/system/source/cards.json +0 -72
- rasa/cli/project_templates/finance/data/system/source/payees.json +0 -74
- rasa/cli/project_templates/finance/data/system/source/transactions.json +0 -492
- rasa/cli/project_templates/finance/data/system/source/users.json +0 -29
- rasa/cli/project_templates/finance/data/transfers/add_payee.yml +0 -29
- rasa/cli/project_templates/finance/data/transfers/list_payees.yml +0 -5
- rasa/cli/project_templates/finance/data/transfers/remove_payee.yml +0 -21
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/consequences_of_blocking_card.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/reasons_to_block_card.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/recovering_from_card_fraud.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/tips_for_card_security.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/block_card/what_to_do_if_card_is_lost.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/account_balance_security.txt +0 -7
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/common_balance_inquiries.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/methods_to_check_balance.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/understanding_balance_updates.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/check_balance/what_to_do_if_balance_is_incorrect.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/benefits_of_authorised_payees.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/common_issues_with_payees.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/general_payee_information.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/payee_management_tips.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/manage_payees/understanding_payee_types.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/common_transfer_errors.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/fees_for_transfers.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/general_transfer_information.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/security_tips_for_transfers.txt +0 -8
- rasa/cli/project_templates/finance/docs/bank_of_rasa_faq/transfer_money/transfer_processing_times.txt +0 -8
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part1.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part10.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part11.txt +0 -48
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part12.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part13.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part14.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part15.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part16.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part17.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part18.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part19.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part2.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part20.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part21.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part22.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part23.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part24.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part25.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part26.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part27.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part28.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part29.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part3.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part30.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part31.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part32.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part33.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part34.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part35.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part36.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part37.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part38.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part39.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part4.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part40.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part41.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part42.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part43.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part44.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part45.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part46.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part47.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part48.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part49.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part5.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part50.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part51.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part52.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part53.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part54.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part55.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part56.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part57.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part58.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part59.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part6.txt +0 -47
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part60.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part61.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part7.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part8.txt +0 -50
- rasa/cli/project_templates/finance/docs/huggingface_alpaca_dataset/questions_part9.txt +0 -47
- rasa/cli/project_templates/finance/domain/cards/select_card.yml +0 -12
- rasa/cli/project_templates/finance/domain/general/assistant_details.yml +0 -12
- rasa/cli/project_templates/finance/domain/general/bot_identity.yml +0 -5
- rasa/cli/project_templates/finance/domain/general/defaults.yml +0 -24
- rasa/cli/project_templates/finance/domain/general/goodbye.yml +0 -7
- rasa/cli/project_templates/finance/domain/general/help.yml +0 -5
- rasa/cli/project_templates/finance/domain/general/utils.yml +0 -13
- rasa/cli/project_templates/finance/domain/transfers/add_payee.yml +0 -47
- rasa/cli/project_templates/finance/domain/transfers/list_payees.yml +0 -4
- rasa/cli/project_templates/finance/domain/transfers/remove_payee.yml +0 -16
- rasa/core/channels/inspector/dist/assets/channel-b560a3d4.js +0 -1
- rasa/core/channels/inspector/dist/assets/clone-67015557.js +0 -1
- rasa/core/channels/inspector/dist/assets/flowDiagram-v2-96b9c2cf-4a070961.js +0 -1
- {rasa_pro-3.14.0a16.dist-info → rasa_pro-3.14.0a17.dist-info}/NOTICE +0 -0
- {rasa_pro-3.14.0a16.dist-info → rasa_pro-3.14.0a17.dist-info}/WHEEL +0 -0
- {rasa_pro-3.14.0a16.dist-info → rasa_pro-3.14.0a17.dist-info}/entry_points.txt +0 -0
|
@@ -687,7 +687,7 @@ new Remarkable().use(linkify)
|
|
|
687
687
|
</div>
|
|
688
688
|
`:`<div>${n}</div>`).join("").replace(V4,(n,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:UI()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},_6={getRows:wke,sanitizeText:g1,sanitizeTextOrArray:Ske,hasBreaks:kke,splitBreaks:Eke,lineBreakRegex:$1,removeScript:Aq,getUrl:Pke,evaluate:pq,getMax:Oke,getMin:Bke},aa=(e,t)=>t?Ve(e,{s:-40,l:10}):Ve(e,{s:-40,l:-10}),B7="#ffffff",L7="#f2f2f2";let Ike=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||Ve(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||Ve(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||aa(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||aa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||aa(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||aa(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||zt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||zt(this.tertiaryColor),this.lineColor=this.lineColor||zt(this.background),this.arrowheadColor=this.arrowheadColor||zt(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?mr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||mr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||zt(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||ur(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330}),this.darkMode)for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=mr(this["cScale"+h],75);else for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScale"+h]=mr(this["cScale"+h],25);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleInv"+h]=this["cScaleInv"+h]||zt(this["cScale"+h]);for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this.darkMode?this["cScalePeer"+h]=this["cScalePeer"+h]||ur(this["cScale"+h],10):this["cScalePeer"+h]=this["cScalePeer"+h]||mr(this["cScale"+h],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let h=0;h<this.THEME_COLOR_LIMIT;h++)this["cScaleLabel"+h]=this["cScaleLabel"+h]||this.scaleLabelColor;const A=this.darkMode?-4:-1;for(let h=0;h<5;h++)this["surface"+h]=this["surface"+h]||Ve(this.mainBkg,{h:180,s:-15,l:A*(5+h*3)}),this["surfacePeer"+h]=this["surfacePeer"+h]||Ve(this.mainBkg,{h:180,s:-15,l:A*(8+h*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||Ve(this.primaryColor,{h:64}),this.fillType3=this.fillType3||Ve(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||Ve(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||Ve(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||Ve(this.primaryColor,{h:128}),this.fillType7=this.fillType7||Ve(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ve(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ve(this.secondaryColor,{l:-10}),this.pie6=this.pie6||Ve(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||Ve(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ve(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ve(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ve(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||Ve(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||Ve(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Z1(this.quadrant1Fill)?ur(this.quadrant1Fill):mr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?mr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ve(this.primaryColor,{h:-30}),this.git4=this.git4||Ve(this.primaryColor,{h:-60}),this.git5=this.git5||Ve(this.primaryColor,{h:-90}),this.git6=this.git6||Ve(this.primaryColor,{h:60}),this.git7=this.git7||Ve(this.primaryColor,{h:120}),this.darkMode?(this.git0=ur(this.git0,25),this.git1=ur(this.git1,25),this.git2=ur(this.git2,25),this.git3=ur(this.git3,25),this.git4=ur(this.git4,25),this.git5=ur(this.git5,25),this.git6=ur(this.git6,25),this.git7=ur(this.git7,25)):(this.git0=mr(this.git0,25),this.git1=mr(this.git1,25),this.git2=mr(this.git2,25),this.git3=mr(this.git3,25),this.git4=mr(this.git4,25),this.git5=mr(this.git5,25),this.git6=mr(this.git6,25),this.git7=mr(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||B7,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const Nke=e=>{const t=new Ike;return t.calculate(e),t};let Rke=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=ur(this.primaryColor,16),this.tertiaryColor=Ve(this.primaryColor,{h:-160}),this.primaryBorderColor=zt(this.background),this.secondaryBorderColor=aa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=aa(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=ur(zt("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=Ay(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=mr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=mr(this.sectionBkgColor,10),this.taskBorderColor=Ay(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ay(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.secondBkg=ur(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=ur(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=ur(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330});for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||zt(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScalePeer"+A]=this["cScalePeer"+A]||ur(this["cScale"+A],10);for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Ve(this.mainBkg,{h:30,s:-30,l:-(-10+A*4)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Ve(this.mainBkg,{h:30,s:-30,l:-(-7+A*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Z1(this.quadrant1Fill)?ur(this.quadrant1Fill):mr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?mr(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=ur(this.secondaryColor,20),this.git1=ur(this.pie2||this.secondaryColor,20),this.git2=ur(this.pie3||this.tertiaryColor,20),this.git3=ur(this.pie4||Ve(this.primaryColor,{h:-30}),20),this.git4=ur(this.pie5||Ve(this.primaryColor,{h:-60}),20),this.git5=ur(this.pie6||Ve(this.primaryColor,{h:-90}),10),this.git6=ur(this.pie7||Ve(this.primaryColor,{h:60}),10),this.git7=ur(this.pie8||Ve(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ur(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur(this.background,2)}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const Fke=e=>{const t=new Rke;return t.calculate(e),t};let zke=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=Ve(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=Ve(this.primaryColor,{h:-160}),this.primaryBorderColor=aa(this.primaryColor,this.darkMode),this.secondaryBorderColor=aa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=aa(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=Ay(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||mr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||mr(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=mr(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||mr(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Ve(this["cScale"+A],{h:180});for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Ve(this.mainBkg,{h:30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Ve(this.mainBkg,{h:30,l:-(7+A*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||zt(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||zt(this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=ur(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||Ve(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||Ve(this.primaryColor,{l:-10}),this.pie5=this.pie5||Ve(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ve(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||Ve(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||Ve(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||Ve(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||Ve(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||Ve(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||Ve(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Z1(this.quadrant1Fill)?ur(this.quadrant1Fill):mr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ve(this.primaryColor,{h:-30}),this.git4=this.git4||Ve(this.primaryColor,{h:-60}),this.git5=this.git5||Ve(this.primaryColor,{h:-90}),this.git6=this.git6||Ve(this.primaryColor,{h:60}),this.git7=this.git7||Ve(this.primaryColor,{h:120}),this.darkMode?(this.git0=ur(this.git0,25),this.git1=ur(this.git1,25),this.git2=ur(this.git2,25),this.git3=ur(this.git3,25),this.git4=ur(this.git4,25),this.git5=ur(this.git5,25),this.git6=ur(this.git6,25),this.git7=ur(this.git7,25)):(this.git0=mr(this.git0,25),this.git1=mr(this.git1,25),this.git2=mr(this.git2,25),this.git3=mr(this.git3,25),this.git4=mr(this.git4,25),this.git5=mr(this.git5,25),this.git6=mr(this.git6,25),this.git7=mr(this.git7,25)),this.gitInv0=this.gitInv0||mr(zt(this.git0),25),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||B7,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const jke=e=>{const t=new zke;return t.calculate(e),t};let Hke=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=ur("#cde498",10),this.primaryBorderColor=aa(this.primaryColor,this.darkMode),this.secondaryBorderColor=aa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=aa(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.primaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.actorBorder=mr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||Ve(this.primaryColor,{h:30}),this.cScale4=this.cScale4||Ve(this.primaryColor,{h:60}),this.cScale5=this.cScale5||Ve(this.primaryColor,{h:90}),this.cScale6=this.cScale6||Ve(this.primaryColor,{h:120}),this.cScale7=this.cScale7||Ve(this.primaryColor,{h:150}),this.cScale8=this.cScale8||Ve(this.primaryColor,{h:210}),this.cScale9=this.cScale9||Ve(this.primaryColor,{h:270}),this.cScale10=this.cScale10||Ve(this.primaryColor,{h:300}),this.cScale11=this.cScale11||Ve(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||mr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||mr(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=mr(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||mr(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Ve(this["cScale"+A],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Ve(this.mainBkg,{h:30,s:-30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Ve(this.mainBkg,{h:30,s:-30,l:-(8+A*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||Ve(this.primaryColor,{l:-30}),this.pie5=this.pie5||Ve(this.secondaryColor,{l:-30}),this.pie6=this.pie6||Ve(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||Ve(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||Ve(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||Ve(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||Ve(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||Ve(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||Ve(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Z1(this.quadrant1Fill)?ur(this.quadrant1Fill):mr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||Ve(this.primaryColor,{h:-30}),this.git4=this.git4||Ve(this.primaryColor,{h:-60}),this.git5=this.git5||Ve(this.primaryColor,{h:-90}),this.git6=this.git6||Ve(this.primaryColor,{h:60}),this.git7=this.git7||Ve(this.primaryColor,{h:120}),this.darkMode?(this.git0=ur(this.git0,25),this.git1=ur(this.git1,25),this.git2=ur(this.git2,25),this.git3=ur(this.git3,25),this.git4=ur(this.git4,25),this.git5=ur(this.git5,25),this.git6=ur(this.git6,25),this.git7=ur(this.git7,25)):(this.git0=mr(this.git0,25),this.git1=mr(this.git1,25),this.git2=mr(this.git2,25),this.git3=mr(this.git3,25),this.git4=mr(this.git4,25),this.git5=mr(this.git5,25),this.git6=mr(this.git6,25),this.git7=mr(this.git7,25)),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||zt(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||zt(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||B7,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}};const _ke=e=>{const t=new Hke;return t.calculate(e),t};class Xke{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=ur(this.contrast,55),this.background="#ffffff",this.tertiaryColor=Ve(this.primaryColor,{h:-160}),this.primaryBorderColor=aa(this.primaryColor,this.darkMode),this.secondaryBorderColor=aa(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=aa(this.tertiaryColor,this.darkMode),this.primaryTextColor=zt(this.primaryColor),this.secondaryTextColor=zt(this.secondaryColor),this.tertiaryTextColor=zt(this.tertiaryColor),this.lineColor=zt(this.background),this.textColor=zt(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,n,o,i,a,s,l,u,c,f;this.secondBkg=ur(this.contrast,55),this.border2=this.contrast,this.actorBorder=ur(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||zt(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this.darkMode?this["cScalePeer"+A]=this["cScalePeer"+A]||ur(this["cScale"+A],10):this["cScalePeer"+A]=this["cScalePeer"+A]||mr(this["cScale"+A],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||Ve(this.mainBkg,{l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||Ve(this.mainBkg,{l:-(8+A*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=ur(this.contrast,30),this.sectionBkgColor2=ur(this.contrast,30),this.taskBorderColor=mr(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=ur(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=mr(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=Ve(this.primaryColor,{h:64}),this.fillType3=Ve(this.secondaryColor,{h:64}),this.fillType4=Ve(this.primaryColor,{h:-64}),this.fillType5=Ve(this.secondaryColor,{h:-64}),this.fillType6=Ve(this.primaryColor,{h:128}),this.fillType7=Ve(this.secondaryColor,{h:128});for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||Ve(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||Ve(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||Ve(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||Ve(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||Ve(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||Ve(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Z1(this.quadrant1Fill)?ur(this.quadrant1Fill):mr(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((i=this.xyChart)==null?void 0:i.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((s=this.xyChart)==null?void 0:s.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((c=this.xyChart)==null?void 0:c.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=mr(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||Ve(this.primaryColor,{h:-30}),this.git4=this.pie5||Ve(this.primaryColor,{h:-60}),this.git5=this.pie6||Ve(this.primaryColor,{h:-90}),this.git6=this.pie7||Ve(this.primaryColor,{h:60}),this.git7=this.pie8||Ve(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||zt(this.git0),this.gitInv1=this.gitInv1||zt(this.git1),this.gitInv2=this.gitInv2||zt(this.git2),this.gitInv3=this.gitInv3||zt(this.git3),this.gitInv4=this.gitInv4||zt(this.git4),this.gitInv5=this.gitInv5||zt(this.git5),this.gitInv6=this.gitInv6||zt(this.git6),this.gitInv7=this.gitInv7||zt(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||B7,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||L7}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}}const Vke=e=>{const t=new Xke;return t.calculate(e),t},Oc={base:{getThemeVariables:Nke},dark:{getThemeVariables:Fke},default:{getThemeVariables:jke},forest:{getThemeVariables:_ke},neutral:{getThemeVariables:Vke}},Ac={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},mq={...Ac,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Oc.default.getThemeVariables(),sequence:{...Ac.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Ac.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Ac.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Ac.pie,useWidth:984},xyChart:{...Ac.xyChart,useWidth:void 0},requirement:{...Ac.requirement,useWidth:void 0},gitGraph:{...Ac.gitGraph,useMaxWidth:!1},sankey:{...Ac.sankey,useMaxWidth:!1}},gq=(e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...gq(e[n],"")]:[...r,t+n],[]),qke=new Set(gq(mq,"")),Wke=mq,Nx=e=>{if(Ar.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Nx(t));return}for(const t of Object.keys(e)){if(Ar.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!qke.has(t)||e[t]==null){Ar.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){Ar.debug("sanitizing object",t),Nx(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(Ar.debug("sanitizing css option",t),e[t]=Uke(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}Ar.debug("After sanitization",e)}},Uke=e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?t++:n==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},vq=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,py=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Qke=/\s*%%.*\n/gm;class yq extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}}const kg={},M7=function(e,t){e=e.replace(vq,"").replace(py,"").replace(Qke,`
|
|
689
689
|
`);for(const[r,{detector:n}]of Object.entries(kg))if(n(e,t))return r;throw new yq(`No diagram type detected matching given configuration for text: ${e}`)},bq=(...e)=>{for(const{id:t,detector:r,loader:n}of e)wq(t,r,n)},wq=(e,t,r)=>{kg[e]?Ar.error(`Detector with key ${e} already exists`):kg[e]={detector:t,loader:r},Ar.debug(`Detector with key ${e} added${r?" with loader":""}`)},Gke=e=>kg[e].loader,q4=(e,t,{depth:r=2,clobber:n=!1}={})=>{const o={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(i=>q4(e,i,o)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(i=>{e.includes(i)||e.push(i)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(i=>{typeof t[i]=="object"&&(e[i]===void 0||typeof e[i]=="object")?(e[i]===void 0&&(e[i]=Array.isArray(t[i])?[]:{}),e[i]=q4(e[i],t[i],{depth:r-1,clobber:n})):(n||typeof e[i]!="object"&&typeof t[i]!="object")&&(e[i]=t[i])}),e)},jo=q4,Yke="",Zke={curveBasis:F3e,curveBasisClosed:z3e,curveBasisOpen:j3e,curveBumpX:N3e,curveBumpY:R3e,curveBundle:H3e,curveCardinalClosed:X3e,curveCardinalOpen:V3e,curveCardinal:_3e,curveCatmullRomClosed:W3e,curveCatmullRomOpen:U3e,curveCatmullRom:q3e,curveLinear:I3e,curveLinearClosed:Q3e,curveMonotoneX:G3e,curveMonotoneY:Y3e,curveNatural:Z3e,curveStep:J3e,curveStepAfter:$3e,curveStepBefore:K3e},Jke=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Kke=function(e,t){const r=xq(e,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const a=r.map(s=>s.args);Nx(a),n=jo(n,[...a])}else n=r.args;if(!n)return;let o=M7(e,t);const i="config";return n[i]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),n[o]=n[i],delete n[i]),n},xq=function(e,t=null){try{const r=new RegExp(`[%]{2}(?![{]${Jke.source})(?=[}][%]{2}).*
|
|
690
|
-
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),Ar.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n;const o=[];for(;(n=py.exec(e))!==null;)if(n.index===py.lastIndex&&py.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){const i=n[1]?n[1]:n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;o.push({type:i,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return Ar.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},$ke=function(e){return e.replace(py,"")},e9e=function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1};function t9e(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Zke[r]??t}function r9e(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?eV.sanitizeUrl(r):r}const n9e=(e,...t)=>{const r=e.split("."),n=r.length-1,o=r[n];let i=window;for(let a=0;a<n;a++)if(i=i[r[a]],!i){Ar.error(`Function name: ${e} not found in window`);return}i[o](...t)};function Cq(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function i9e(e){let t,r=0;e.forEach(o=>{r+=Cq(o,t),t=o});const n=r/2;return X6(e,n)}function o9e(e){return e.length===1?e[0]:i9e(e)}const GI=(e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},X6=(e,t)=>{let r,n=t;for(const o of e){if(r){const i=Cq(o,r);if(i<n)n-=i;else{const a=n/i;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:GI((1-a)*r.x+a*o.x,5),y:GI((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},a9e=(e,t,r)=>{Ar.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const o=X6(t,25),i=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*i+(t[0].x+o.x)/2,s.y=-Math.cos(a)*i+(t[0].y+o.y)/2,s};function s9e(e,t,r){const n=structuredClone(r);Ar.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const o=25+e,i=X6(n,o),a=10+e*.5,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*a+(n[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(n[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2),l}function l9e(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}let YI=0;const u9e=()=>(YI++,"id-"+Math.random().toString(36).substr(2,12)+"-"+YI);function c9e(e){let t="";const r="0123456789abcdef",n=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*n));return t}const f9e=e=>c9e(e.length),d9e=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},A9e=function(e,t){const r=t.text.replace(_6.lineBreakRegex," "),[,n]=q6(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",n),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const i=o.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(r),o},h9e=J1((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),_6.lineBreakRegex.test(e)))return e;const n=e.split(" "),o=[];let i="";return n.forEach((a,s)=>{const l=Rx(`${a} `,r),u=Rx(i,r);if(l>t){const{hyphenatedStrings:A,remainingWord:h}=p9e(a,t,"-",r);o.push(i,...A),i=h}else u+l>=t?(o.push(i),i=a):i=[i,a].filter(Boolean).join(" ");s+1===n.length&&o.push(i)}),o.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),p9e=J1((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const o=[...e],i=[];let a="";return o.forEach((s,l)=>{const u=`${a}${s}`;if(Rx(u,n)>=t){const f=l+1,A=o.length===f,h=`${u}${r}`;i.push(A?u:h),a=""}else a=u}),{hyphenatedStrings:i,remainingWord:a}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function m9e(e,t){return V6(e,t).height}function Rx(e,t){return V6(e,t).width}const V6=J1((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,i]=q6(r),a=["sans-serif",n],s=e.split(_6.lineBreakRegex),l=[],u=zs("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const A of a){let h=0;const m={width:0,height:0,lineHeight:0};for(const v of s){const b=d9e();b.text=v||Yke;const x=A9e(c,b).style("font-size",i).style("font-weight",o).style("font-family",A),C=(x._groups||x)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,C.width)),h=Math.round(C.height),m.height+=h,m.lineHeight=Math.round(Math.max(m.lineHeight,h))}l.push(m)}c.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class g9e{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let d2;const v9e=function(e){return d2=d2||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),d2.innerHTML=e,unescape(d2.textContent)};function Sq(e){return"str"in e}const y9e=(e,t,r,n)=>{var o;if(!n)return;const i=(o=e.node())==null?void 0:o.getBBox();i&&e.append("text").text(n).attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},q6=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function kq(e,t){return FSe({},e,t)}const my={assignWithDepth:jo,wrapLabel:h9e,calculateTextHeight:m9e,calculateTextWidth:Rx,calculateTextDimensions:V6,cleanAndMerge:kq,detectInit:Kke,detectDirective:xq,isSubstringInArray:e9e,interpolateToCurve:t9e,calcLabelPosition:o9e,calcCardinalityPosition:a9e,calcTerminalLabelPosition:s9e,formatUrl:r9e,getStylesFromArray:l9e,generateId:u9e,random:f9e,runFunc:n9e,entityDecode:v9e,insertTitle:y9e,parseFontSize:q6,InitIDGenerator:g9e},b9e=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),t},w9e=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},ZI="10.9.3",Eg=Object.freeze(Wke);let Oa=jo({},Eg),Eq,Tg=[],gy=jo({},Eg);const D7=(e,t)=>{let r=jo({},e),n={};for(const o of t)Oq(o),n=jo(n,o);if(r=jo(r,n),n.theme&&n.theme in Oc){const o=jo({},Eq),i=jo(o.themeVariables||{},n.themeVariables);r.theme&&r.theme in Oc&&(r.themeVariables=Oc[r.theme].getThemeVariables(i))}return gy=r,Bq(gy),gy},x9e=e=>(Oa=jo({},Eg),Oa=jo(Oa,e),e.theme&&Oc[e.theme]&&(Oa.themeVariables=Oc[e.theme].getThemeVariables(e.themeVariables)),D7(Oa,Tg),Oa),C9e=e=>{Eq=jo({},e)},S9e=e=>(Oa=jo(Oa,e),D7(Oa,Tg),Oa),Tq=()=>jo({},Oa),Pq=e=>(Bq(e),jo(gy,e),Lu()),Lu=()=>jo({},gy),Oq=e=>{e&&(["secure",...Oa.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Ar.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Oq(e[t])}))},k9e=e=>{Nx(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),Tg.push(e),D7(Oa,Tg)},Fx=(e=Oa)=>{Tg=[],D7(e,Tg)},E9e={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},JI={},T9e=e=>{JI[e]||(Ar.warn(E9e[e]),JI[e]=!0)},Bq=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&T9e("LAZY_LOAD_DEPRECATED")},Lq="c4",P9e=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),O9e=async()=>{const{diagram:e}=await si(()=>import("./c4Diagram-3d4e48cf-488337d7.js"),["./c4Diagram-3d4e48cf-488337d7.js","./svgDrawCommon-08f97a94-e13f753d.js"],import.meta.url);return{id:Lq,diagram:e}},B9e={id:Lq,detector:P9e,loader:O9e},L9e=B9e,Mq="flowchart",M9e=(e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},D9e=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-66a62f08-ca907b67.js"),["./flowDiagram-66a62f08-ca907b67.js","./flowDb-956e92f1-fa691f62.js","./graph-3ab38d50.js","./layout-4beae36e.js","./styles-c10674c1-956c3492.js","./index-3862675e-6edac98f.js","./clone-67015557.js","./edges-e0da2a9e-28df7099.js","./createText-2e5e7dd3-0210a219.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-b560a3d4.js"],import.meta.url);return{id:Mq,diagram:e}},I9e={id:Mq,detector:M9e,loader:D9e},N9e=I9e,Dq="flowchart-v2",R9e=(e,t)=>{var r,n,o;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},F9e=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-v2-96b9c2cf-4a070961.js"),["./flowDiagram-v2-96b9c2cf-4a070961.js","./flowDb-956e92f1-fa691f62.js","./styles-c10674c1-956c3492.js","./graph-3ab38d50.js","./index-3862675e-6edac98f.js","./layout-4beae36e.js","./clone-67015557.js","./edges-e0da2a9e-28df7099.js","./createText-2e5e7dd3-0210a219.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-b560a3d4.js"],import.meta.url);return{id:Dq,diagram:e}},z9e={id:Dq,detector:R9e,loader:F9e},j9e=z9e,Iq="er",H9e=e=>/^\s*erDiagram/.test(e),_9e=async()=>{const{diagram:e}=await si(()=>import("./erDiagram-9861fffd-9fbf4a58.js"),["./erDiagram-9861fffd-9fbf4a58.js","./graph-3ab38d50.js","./layout-4beae36e.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Iq,diagram:e}},X9e={id:Iq,detector:H9e,loader:_9e},V9e=X9e,Nq="gitGraph",q9e=e=>/^\s*gitGraph/.test(e),W9e=async()=>{const{diagram:e}=await si(()=>import("./gitGraphDiagram-72cf32ee-9aa698ac.js"),[],import.meta.url);return{id:Nq,diagram:e}},U9e={id:Nq,detector:q9e,loader:W9e},Q9e=U9e,Rq="gantt",G9e=e=>/^\s*gantt/.test(e),Y9e=async()=>{const{diagram:e}=await si(()=>import("./ganttDiagram-c361ad54-9d49a75a.js"),["./ganttDiagram-c361ad54-9d49a75a.js","./linear-22d77d65.js","./init-77b53fdd.js"],import.meta.url);return{id:Rq,diagram:e}},Z9e={id:Rq,detector:G9e,loader:Y9e},J9e=Z9e,Fq="info",K9e=e=>/^\s*info/.test(e),$9e=async()=>{const{diagram:e}=await si(()=>import("./infoDiagram-f8f76790-21baff85.js"),[],import.meta.url);return{id:Fq,diagram:e}},e5e={id:Fq,detector:K9e,loader:$9e},zq="pie",t5e=e=>/^\s*pie/.test(e),r5e=async()=>{const{diagram:e}=await si(()=>import("./pieDiagram-8a3498a8-c7e1cafb.js"),["./pieDiagram-8a3498a8-c7e1cafb.js","./arc-460861ce.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./array-9f3ba611.js"],import.meta.url);return{id:zq,diagram:e}},n5e={id:zq,detector:t5e,loader:r5e},jq="quadrantChart",i5e=e=>/^\s*quadrantChart/.test(e),o5e=async()=>{const{diagram:e}=await si(()=>import("./quadrantDiagram-120e2f19-045e49b4.js"),["./quadrantDiagram-120e2f19-045e49b4.js","./linear-22d77d65.js","./init-77b53fdd.js"],import.meta.url);return{id:jq,diagram:e}},a5e={id:jq,detector:i5e,loader:o5e},s5e=a5e,Hq="xychart",l5e=e=>/^\s*xychart-beta/.test(e),u5e=async()=>{const{diagram:e}=await si(()=>import("./xychartDiagram-e933f94c-8b7e27fc.js"),["./xychartDiagram-e933f94c-8b7e27fc.js","./createText-2e5e7dd3-0210a219.js","./init-77b53fdd.js","./ordinal-ba9b4969.js","./linear-22d77d65.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Hq,diagram:e}},c5e={id:Hq,detector:l5e,loader:u5e},f5e=c5e,_q="requirement",d5e=e=>/^\s*requirement(Diagram)?/.test(e),A5e=async()=>{const{diagram:e}=await si(()=>import("./requirementDiagram-deff3bca-22485cb9.js"),["./requirementDiagram-deff3bca-22485cb9.js","./graph-3ab38d50.js","./layout-4beae36e.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:_q,diagram:e}},h5e={id:_q,detector:d5e,loader:A5e},p5e=h5e,Xq="sequence",m5e=e=>/^\s*sequenceDiagram/.test(e),g5e=async()=>{const{diagram:e}=await si(()=>import("./sequenceDiagram-704730f1-a3dd10e0.js"),["./sequenceDiagram-704730f1-a3dd10e0.js","./svgDrawCommon-08f97a94-e13f753d.js"],import.meta.url);return{id:Xq,diagram:e}},v5e={id:Xq,detector:m5e,loader:g5e},y5e=v5e,Vq="class",b5e=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},w5e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-70f12bd4-b08e53a8.js"),["./classDiagram-70f12bd4-b08e53a8.js","./styles-9a916d00-b1e18e58.js","./graph-3ab38d50.js","./layout-4beae36e.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Vq,diagram:e}},x5e={id:Vq,detector:b5e,loader:w5e},C5e=x5e,qq="classDiagram",S5e=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},k5e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-v2-f2320105-b73f5a83.js"),["./classDiagram-v2-f2320105-b73f5a83.js","./styles-9a916d00-b1e18e58.js","./graph-3ab38d50.js","./index-3862675e-6edac98f.js","./layout-4beae36e.js","./clone-67015557.js","./edges-e0da2a9e-28df7099.js","./createText-2e5e7dd3-0210a219.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:qq,diagram:e}},E5e={id:qq,detector:S5e,loader:k5e},T5e=E5e,Wq="state",P5e=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},O5e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-587899a1-61bd6eb2.js"),["./stateDiagram-587899a1-61bd6eb2.js","./styles-6aaf32cf-1b10e104.js","./graph-3ab38d50.js","./layout-4beae36e.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Wq,diagram:e}},B5e={id:Wq,detector:P5e,loader:O5e},L5e=B5e,Uq="stateDiagram",M5e=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},D5e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-v2-d93cdb3a-deead491.js"),["./stateDiagram-v2-d93cdb3a-deead491.js","./styles-6aaf32cf-1b10e104.js","./graph-3ab38d50.js","./index-3862675e-6edac98f.js","./layout-4beae36e.js","./clone-67015557.js","./edges-e0da2a9e-28df7099.js","./createText-2e5e7dd3-0210a219.js","./line-633b638e.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Uq,diagram:e}},I5e={id:Uq,detector:M5e,loader:D5e},N5e=I5e,Qq="journey",R5e=e=>/^\s*journey/.test(e),F5e=async()=>{const{diagram:e}=await si(()=>import("./journeyDiagram-49397b02-4a6c7e98.js"),["./journeyDiagram-49397b02-4a6c7e98.js","./svgDrawCommon-08f97a94-e13f753d.js","./arc-460861ce.js","./path-53f90ab3.js"],import.meta.url);return{id:Qq,diagram:e}},z5e={id:Qq,detector:R5e,loader:F5e},j5e=z5e,H5e=function(e,t){for(let r of t)e.attr(r[0],r[1])},_5e=function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},Gq=function(e,t,r,n){const o=_5e(t,r,n);H5e(e,o)},X5e=function(e,t,r,n){const o=t.node().getBBox(),i=o.width,a=o.height;Ar.info(`SVG bounds: ${i}x${a}`,o);let s=0,l=0;Ar.info(`Graph bounds: ${s}x${l}`,e),s=i+r*2,l=a+r*2,Ar.info(`Calculated bounds: ${s}x${l}`),Gq(t,l,s,n);const u=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",u)},m3={},V5e=(e,t,r)=>{let n="";return e in m3&&m3[e]?n=m3[e](r):Ar.warn(`No theme found for ${e}`),` & {
|
|
690
|
+
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),Ar.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n;const o=[];for(;(n=py.exec(e))!==null;)if(n.index===py.lastIndex&&py.lastIndex++,n&&!t||t&&n[1]&&n[1].match(t)||t&&n[2]&&n[2].match(t)){const i=n[1]?n[1]:n[2],a=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;o.push({type:i,args:a})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(r){return Ar.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},$ke=function(e){return e.replace(py,"")},e9e=function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1};function t9e(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Zke[r]??t}function r9e(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?eV.sanitizeUrl(r):r}const n9e=(e,...t)=>{const r=e.split("."),n=r.length-1,o=r[n];let i=window;for(let a=0;a<n;a++)if(i=i[r[a]],!i){Ar.error(`Function name: ${e} not found in window`);return}i[o](...t)};function Cq(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function i9e(e){let t,r=0;e.forEach(o=>{r+=Cq(o,t),t=o});const n=r/2;return X6(e,n)}function o9e(e){return e.length===1?e[0]:i9e(e)}const GI=(e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},X6=(e,t)=>{let r,n=t;for(const o of e){if(r){const i=Cq(o,r);if(i<n)n-=i;else{const a=n/i;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:GI((1-a)*r.x+a*o.x,5),y:GI((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},a9e=(e,t,r)=>{Ar.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const o=X6(t,25),i=e?10:5,a=Math.atan2(t[0].y-o.y,t[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*i+(t[0].x+o.x)/2,s.y=-Math.cos(a)*i+(t[0].y+o.y)/2,s};function s9e(e,t,r){const n=structuredClone(r);Ar.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const o=25+e,i=X6(n,o),a=10+e*.5,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*a+(n[0].y+i.y)/2):t==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(n[0].y+i.y)/2-5):t==="end_left"?(l.x=Math.sin(s)*a+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*a+(n[0].x+i.x)/2,l.y=-Math.cos(s)*a+(n[0].y+i.y)/2),l}function l9e(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}let YI=0;const u9e=()=>(YI++,"id-"+Math.random().toString(36).substr(2,12)+"-"+YI);function c9e(e){let t="";const r="0123456789abcdef",n=r.length;for(let o=0;o<e;o++)t+=r.charAt(Math.floor(Math.random()*n));return t}const f9e=e=>c9e(e.length),d9e=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},A9e=function(e,t){const r=t.text.replace(_6.lineBreakRegex," "),[,n]=q6(t.fontSize),o=e.append("text");o.attr("x",t.x),o.attr("y",t.y),o.style("text-anchor",t.anchor),o.style("font-family",t.fontFamily),o.style("font-size",n),o.style("font-weight",t.fontWeight),o.attr("fill",t.fill),t.class!==void 0&&o.attr("class",t.class);const i=o.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.attr("fill",t.fill),i.text(r),o},h9e=J1((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),_6.lineBreakRegex.test(e)))return e;const n=e.split(" "),o=[];let i="";return n.forEach((a,s)=>{const l=Rx(`${a} `,r),u=Rx(i,r);if(l>t){const{hyphenatedStrings:A,remainingWord:h}=p9e(a,t,"-",r);o.push(i,...A),i=h}else u+l>=t?(o.push(i),i=a):i=[i,a].filter(Boolean).join(" ");s+1===n.length&&o.push(i)}),o.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),p9e=J1((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const o=[...e],i=[];let a="";return o.forEach((s,l)=>{const u=`${a}${s}`;if(Rx(u,n)>=t){const f=l+1,A=o.length===f,h=`${u}${r}`;i.push(A?u:h),a=""}else a=u}),{hyphenatedStrings:i,remainingWord:a}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function m9e(e,t){return V6(e,t).height}function Rx(e,t){return V6(e,t).width}const V6=J1((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:o=400}=t;if(!e)return{width:0,height:0};const[,i]=q6(r),a=["sans-serif",n],s=e.split(_6.lineBreakRegex),l=[],u=zs("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const A of a){let h=0;const m={width:0,height:0,lineHeight:0};for(const v of s){const b=d9e();b.text=v||Yke;const x=A9e(c,b).style("font-size",i).style("font-weight",o).style("font-family",A),C=(x._groups||x)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,C.width)),h=Math.round(C.height),m.height+=h,m.lineHeight=Math.round(Math.max(m.lineHeight,h))}l.push(m)}c.remove();const f=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`);class g9e{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}}let d2;const v9e=function(e){return d2=d2||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),d2.innerHTML=e,unescape(d2.textContent)};function Sq(e){return"str"in e}const y9e=(e,t,r,n)=>{var o;if(!n)return;const i=(o=e.node())==null?void 0:o.getBBox();i&&e.append("text").text(n).attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},q6=e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]};function kq(e,t){return FSe({},e,t)}const my={assignWithDepth:jo,wrapLabel:h9e,calculateTextHeight:m9e,calculateTextWidth:Rx,calculateTextDimensions:V6,cleanAndMerge:kq,detectInit:Kke,detectDirective:xq,isSubstringInArray:e9e,interpolateToCurve:t9e,calcLabelPosition:o9e,calcCardinalityPosition:a9e,calcTerminalLabelPosition:s9e,formatUrl:r9e,getStylesFromArray:l9e,generateId:u9e,random:f9e,runFunc:n9e,entityDecode:v9e,insertTitle:y9e,parseFontSize:q6,InitIDGenerator:g9e},b9e=function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),t},w9e=function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},ZI="10.9.3",Eg=Object.freeze(Wke);let Oa=jo({},Eg),Eq,Tg=[],gy=jo({},Eg);const D7=(e,t)=>{let r=jo({},e),n={};for(const o of t)Oq(o),n=jo(n,o);if(r=jo(r,n),n.theme&&n.theme in Oc){const o=jo({},Eq),i=jo(o.themeVariables||{},n.themeVariables);r.theme&&r.theme in Oc&&(r.themeVariables=Oc[r.theme].getThemeVariables(i))}return gy=r,Bq(gy),gy},x9e=e=>(Oa=jo({},Eg),Oa=jo(Oa,e),e.theme&&Oc[e.theme]&&(Oa.themeVariables=Oc[e.theme].getThemeVariables(e.themeVariables)),D7(Oa,Tg),Oa),C9e=e=>{Eq=jo({},e)},S9e=e=>(Oa=jo(Oa,e),D7(Oa,Tg),Oa),Tq=()=>jo({},Oa),Pq=e=>(Bq(e),jo(gy,e),Lu()),Lu=()=>jo({},gy),Oq=e=>{e&&(["secure",...Oa.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(Ar.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&Oq(e[t])}))},k9e=e=>{Nx(e),e.fontFamily&&(!e.themeVariables||!e.themeVariables.fontFamily)&&(e.themeVariables={fontFamily:e.fontFamily}),Tg.push(e),D7(Oa,Tg)},Fx=(e=Oa)=>{Tg=[],D7(e,Tg)},E9e={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},JI={},T9e=e=>{JI[e]||(Ar.warn(E9e[e]),JI[e]=!0)},Bq=e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&T9e("LAZY_LOAD_DEPRECATED")},Lq="c4",P9e=e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),O9e=async()=>{const{diagram:e}=await si(()=>import("./c4Diagram-3d4e48cf-0584c0f2.js"),["./c4Diagram-3d4e48cf-0584c0f2.js","./svgDrawCommon-08f97a94-3ebc92ad.js"],import.meta.url);return{id:Lq,diagram:e}},B9e={id:Lq,detector:P9e,loader:O9e},L9e=B9e,Mq="flowchart",M9e=(e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},D9e=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-66a62f08-e95c362a.js"),["./flowDiagram-66a62f08-e95c362a.js","./flowDb-956e92f1-4f08b38e.js","./graph-ee94449e.js","./layout-a9aa9858.js","./styles-c10674c1-b7110364.js","./index-3862675e-940162b4.js","./clone-78c82dea.js","./edges-e0da2a9e-9039bff9.js","./createText-2e5e7dd3-b0f4f0fe.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-8e08bed9.js"],import.meta.url);return{id:Mq,diagram:e}},I9e={id:Mq,detector:M9e,loader:D9e},N9e=I9e,Dq="flowchart-v2",R9e=(e,t)=>{var r,n,o;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)&&((o=t==null?void 0:t.flowchart)==null?void 0:o.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e)},F9e=async()=>{const{diagram:e}=await si(()=>import("./flowDiagram-v2-96b9c2cf-2b08f601.js"),["./flowDiagram-v2-96b9c2cf-2b08f601.js","./flowDb-956e92f1-4f08b38e.js","./styles-c10674c1-b7110364.js","./graph-ee94449e.js","./index-3862675e-940162b4.js","./layout-a9aa9858.js","./clone-78c82dea.js","./edges-e0da2a9e-9039bff9.js","./createText-2e5e7dd3-b0f4f0fe.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js","./channel-8e08bed9.js"],import.meta.url);return{id:Dq,diagram:e}},z9e={id:Dq,detector:R9e,loader:F9e},j9e=z9e,Iq="er",H9e=e=>/^\s*erDiagram/.test(e),_9e=async()=>{const{diagram:e}=await si(()=>import("./erDiagram-9861fffd-65c9b127.js"),["./erDiagram-9861fffd-65c9b127.js","./graph-ee94449e.js","./layout-a9aa9858.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Iq,diagram:e}},X9e={id:Iq,detector:H9e,loader:_9e},V9e=X9e,Nq="gitGraph",q9e=e=>/^\s*gitGraph/.test(e),W9e=async()=>{const{diagram:e}=await si(()=>import("./gitGraphDiagram-72cf32ee-04cf4b05.js"),[],import.meta.url);return{id:Nq,diagram:e}},U9e={id:Nq,detector:q9e,loader:W9e},Q9e=U9e,Rq="gantt",G9e=e=>/^\s*gantt/.test(e),Y9e=async()=>{const{diagram:e}=await si(()=>import("./ganttDiagram-c361ad54-699328ea.js"),["./ganttDiagram-c361ad54-699328ea.js","./linear-b3399f9a.js","./init-77b53fdd.js"],import.meta.url);return{id:Rq,diagram:e}},Z9e={id:Rq,detector:G9e,loader:Y9e},J9e=Z9e,Fq="info",K9e=e=>/^\s*info/.test(e),$9e=async()=>{const{diagram:e}=await si(()=>import("./infoDiagram-f8f76790-c79c2866.js"),[],import.meta.url);return{id:Fq,diagram:e}},e5e={id:Fq,detector:K9e,loader:$9e},zq="pie",t5e=e=>/^\s*pie/.test(e),r5e=async()=>{const{diagram:e}=await si(()=>import("./pieDiagram-8a3498a8-07644b66.js"),["./pieDiagram-8a3498a8-07644b66.js","./arc-35222594.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./array-9f3ba611.js"],import.meta.url);return{id:zq,diagram:e}},n5e={id:zq,detector:t5e,loader:r5e},jq="quadrantChart",i5e=e=>/^\s*quadrantChart/.test(e),o5e=async()=>{const{diagram:e}=await si(()=>import("./quadrantDiagram-120e2f19-573a3f9c.js"),["./quadrantDiagram-120e2f19-573a3f9c.js","./linear-b3399f9a.js","./init-77b53fdd.js"],import.meta.url);return{id:jq,diagram:e}},a5e={id:jq,detector:i5e,loader:o5e},s5e=a5e,Hq="xychart",l5e=e=>/^\s*xychart-beta/.test(e),u5e=async()=>{const{diagram:e}=await si(()=>import("./xychartDiagram-e933f94c-488385e1.js"),["./xychartDiagram-e933f94c-488385e1.js","./createText-2e5e7dd3-b0f4f0fe.js","./init-77b53fdd.js","./ordinal-ba9b4969.js","./linear-b3399f9a.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Hq,diagram:e}},c5e={id:Hq,detector:l5e,loader:u5e},f5e=c5e,_q="requirement",d5e=e=>/^\s*requirement(Diagram)?/.test(e),A5e=async()=>{const{diagram:e}=await si(()=>import("./requirementDiagram-deff3bca-d457e1e1.js"),["./requirementDiagram-deff3bca-d457e1e1.js","./graph-ee94449e.js","./layout-a9aa9858.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:_q,diagram:e}},h5e={id:_q,detector:d5e,loader:A5e},p5e=h5e,Xq="sequence",m5e=e=>/^\s*sequenceDiagram/.test(e),g5e=async()=>{const{diagram:e}=await si(()=>import("./sequenceDiagram-704730f1-3a9cde10.js"),["./sequenceDiagram-704730f1-3a9cde10.js","./svgDrawCommon-08f97a94-3ebc92ad.js"],import.meta.url);return{id:Xq,diagram:e}},v5e={id:Xq,detector:m5e,loader:g5e},y5e=v5e,Vq="class",b5e=(e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},w5e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-70f12bd4-39f40dbe.js"),["./classDiagram-70f12bd4-39f40dbe.js","./styles-9a916d00-09994be2.js","./graph-ee94449e.js","./layout-a9aa9858.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Vq,diagram:e}},x5e={id:Vq,detector:b5e,loader:w5e},C5e=x5e,qq="classDiagram",S5e=(e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},k5e=async()=>{const{diagram:e}=await si(()=>import("./classDiagram-v2-f2320105-1ad755f3.js"),["./classDiagram-v2-f2320105-1ad755f3.js","./styles-9a916d00-09994be2.js","./graph-ee94449e.js","./index-3862675e-940162b4.js","./layout-a9aa9858.js","./clone-78c82dea.js","./edges-e0da2a9e-9039bff9.js","./createText-2e5e7dd3-b0f4f0fe.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:qq,diagram:e}},E5e={id:qq,detector:S5e,loader:k5e},T5e=E5e,Wq="state",P5e=(e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},O5e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-587899a1-4f3e8cec.js"),["./stateDiagram-587899a1-4f3e8cec.js","./styles-6aaf32cf-eab30d2f.js","./graph-ee94449e.js","./layout-a9aa9858.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Wq,diagram:e}},B5e={id:Wq,detector:P5e,loader:O5e},L5e=B5e,Uq="stateDiagram",M5e=(e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},D5e=async()=>{const{diagram:e}=await si(()=>import("./stateDiagram-v2-d93cdb3a-e617e5bf.js"),["./stateDiagram-v2-d93cdb3a-e617e5bf.js","./styles-6aaf32cf-eab30d2f.js","./graph-ee94449e.js","./index-3862675e-940162b4.js","./layout-a9aa9858.js","./clone-78c82dea.js","./edges-e0da2a9e-9039bff9.js","./createText-2e5e7dd3-b0f4f0fe.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Uq,diagram:e}},I5e={id:Uq,detector:M5e,loader:D5e},N5e=I5e,Qq="journey",R5e=e=>/^\s*journey/.test(e),F5e=async()=>{const{diagram:e}=await si(()=>import("./journeyDiagram-49397b02-84489d30.js"),["./journeyDiagram-49397b02-84489d30.js","./svgDrawCommon-08f97a94-3ebc92ad.js","./arc-35222594.js","./path-53f90ab3.js"],import.meta.url);return{id:Qq,diagram:e}},z5e={id:Qq,detector:R5e,loader:F5e},j5e=z5e,H5e=function(e,t){for(let r of t)e.attr(r[0],r[1])},_5e=function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},Gq=function(e,t,r,n){const o=_5e(t,r,n);H5e(e,o)},X5e=function(e,t,r,n){const o=t.node().getBBox(),i=o.width,a=o.height;Ar.info(`SVG bounds: ${i}x${a}`,o);let s=0,l=0;Ar.info(`Graph bounds: ${s}x${l}`,e),s=i+r*2,l=a+r*2,Ar.info(`Calculated bounds: ${s}x${l}`),Gq(t,l,s,n);const u=`${o.x-r} ${o.y-r} ${o.width+2*r} ${o.height+2*r}`;t.attr("viewBox",u)},m3={},V5e=(e,t,r)=>{let n="";return e in m3&&m3[e]?n=m3[e](r):Ar.warn(`No theme found for ${e}`),` & {
|
|
691
691
|
font-family: ${r.fontFamily};
|
|
692
692
|
font-size: ${r.fontSize};
|
|
693
693
|
fill: ${r.textColor}
|
|
@@ -738,7 +738,7 @@ new Remarkable().use(linkify)
|
|
|
738
738
|
${t}
|
|
739
739
|
`},q5e=(e,t)=>{t!==void 0&&(m3[e]=t)},W5e=V5e;let W6="",U6="",Q6="";const G6=e=>g1(e,Lu()),U5e=()=>{W6="",Q6="",U6=""},Q5e=e=>{W6=G6(e).replace(/^\s+/g,"")},G5e=()=>W6,Y5e=e=>{Q6=G6(e).replace(/\n\s+/g,`
|
|
740
740
|
`)},Z5e=()=>Q6,J5e=e=>{U6=G6(e)},K5e=()=>U6,$5e=Object.freeze(Object.defineProperty({__proto__:null,clear:U5e,getAccDescription:Z5e,getAccTitle:G5e,getDiagramTitle:K5e,setAccDescription:Y5e,setAccTitle:Q5e,setDiagramTitle:J5e},Symbol.toStringTag,{value:"Module"})),e4e=Ar,t4e=H6,Y6=Lu,vOe=Pq,yOe=Eg,r4e=e=>g1(e,Y6()),n4e=X5e,i4e=()=>$5e,zx={},jx=(e,t,r)=>{var n;if(zx[e])throw new Error(`Diagram ${e} already registered.`);zx[e]=t,r&&wq(e,r),q5e(e,t.styles),(n=t.injectUtils)==null||n.call(t,e4e,t4e,Y6,r4e,n4e,i4e(),()=>{})},Z6=e=>{if(e in zx)return zx[e];throw new o4e(e)};class o4e extends Error{constructor(t){super(`Diagram ${t} not found.`)}}const a4e=e=>{var t;const{securityLevel:r}=Y6();let n=zs("body");if(r==="sandbox"){const a=((t=zs(`#i${e}`).node())==null?void 0:t.contentDocument)??document;n=zs(a.body)}return n.select(`#${e}`)},s4e=(e,t,r)=>{Ar.debug(`rendering svg for syntax error
|
|
741
|
-
`);const n=a4e(t),o=n.append("g");n.attr("viewBox","0 0 2412 512"),Gq(n,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},Yq={draw:s4e},l4e=Yq,u4e={db:{},renderer:Yq,parser:{parser:{yy:{}},parse:()=>{}}},c4e=u4e,Zq="flowchart-elk",f4e=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},d4e=async()=>{const{diagram:e}=await si(()=>import("./flowchart-elk-definition-4a651766-
|
|
741
|
+
`);const n=a4e(t),o=n.append("g");n.attr("viewBox","0 0 2412 512"),Gq(n,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},Yq={draw:s4e},l4e=Yq,u4e={db:{},renderer:Yq,parser:{parser:{yy:{}},parse:()=>{}}},c4e=u4e,Zq="flowchart-elk",f4e=(e,t)=>{var r;return!!(/^\s*flowchart-elk/.test(e)||/^\s*flowchart|graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk")},d4e=async()=>{const{diagram:e}=await si(()=>import("./flowchart-elk-definition-4a651766-703c3015.js"),["./flowchart-elk-definition-4a651766-703c3015.js","./flowDb-956e92f1-4f08b38e.js","./edges-e0da2a9e-9039bff9.js","./createText-2e5e7dd3-b0f4f0fe.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js"],import.meta.url);return{id:Zq,diagram:e}},A4e={id:Zq,detector:f4e,loader:d4e},h4e=A4e,Jq="timeline",p4e=e=>/^\s*timeline/.test(e),m4e=async()=>{const{diagram:e}=await si(()=>import("./timeline-definition-85554ec2-7d13d2f2.js"),["./timeline-definition-85554ec2-7d13d2f2.js","./arc-35222594.js","./path-53f90ab3.js"],import.meta.url);return{id:Jq,diagram:e}},g4e={id:Jq,detector:p4e,loader:m4e},v4e=g4e,Kq="mindmap",y4e=e=>/^\s*mindmap/.test(e),b4e=async()=>{const{diagram:e}=await si(()=>import("./mindmap-definition-fc14e90a-b095bf1a.js"),["./mindmap-definition-fc14e90a-b095bf1a.js","./createText-2e5e7dd3-b0f4f0fe.js"],import.meta.url);return{id:Kq,diagram:e}},w4e={id:Kq,detector:y4e,loader:b4e},x4e=w4e,$q="sankey",C4e=e=>/^\s*sankey-beta/.test(e),S4e=async()=>{const{diagram:e}=await si(()=>import("./sankeyDiagram-04a897e0-9d26e1a2.js"),["./sankeyDiagram-04a897e0-9d26e1a2.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./Tableau10-1b767f5e.js"],import.meta.url);return{id:$q,diagram:e}},k4e={id:$q,detector:C4e,loader:S4e},E4e=k4e,eW="block",T4e=e=>/^\s*block-beta/.test(e),P4e=async()=>{const{diagram:e}=await si(()=>import("./blockDiagram-38ab4fdb-a0efbfd3.js"),["./blockDiagram-38ab4fdb-a0efbfd3.js","./clone-78c82dea.js","./graph-ee94449e.js","./edges-e0da2a9e-9039bff9.js","./createText-2e5e7dd3-b0f4f0fe.js","./line-eb73cf26.js","./array-9f3ba611.js","./path-53f90ab3.js","./ordinal-ba9b4969.js","./init-77b53fdd.js","./Tableau10-1b767f5e.js","./channel-8e08bed9.js"],import.meta.url);return{id:eW,diagram:e}},O4e={id:eW,detector:T4e,loader:P4e},B4e=O4e;let KI=!1;const J6=()=>{KI||(KI=!0,jx("error",c4e,e=>e.toLowerCase().trim()==="error"),jx("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},e=>e.toLowerCase().trimStart().startsWith("---")),bq(L9e,T5e,C5e,V9e,J9e,e5e,n5e,p5e,y5e,h4e,j9e,N9e,x4e,v4e,Q9e,N5e,L5e,j5e,s5e,E4e,f5e,B4e))};class tW{constructor(t,r={}){this.text=t,this.metadata=r,this.type="graph",this.text=b9e(t),this.text+=`
|
|
742
742
|
`;const n=Lu();try{this.type=M7(t,n)}catch(i){this.type="error",this.detectError=i}const o=Z6(this.type);Ar.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var t,r,n,o,i;if(this.detectError)throw this.detectError;(r=(t=this.db).clear)==null||r.call(t);const a=Lu();(n=this.init)==null||n.call(this,a),this.metadata.title&&((i=(o=this.db).setDiagramTitle)==null||i.call(o,this.metadata.title)),this.parser.parse(this.text)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}}const L4e=async(e,t={})=>{const r=M7(e,Lu());try{Z6(r)}catch{const o=Gke(r);if(!o)throw new yq(`Diagram ${r} not found.`);const{id:i,diagram:a}=await o();jx(i,a)}return new tW(e,t)};let $I=[];const M4e=()=>{$I.forEach(e=>{e()}),$I=[]},D4e="graphics-document document";function I4e(e,t){e.attr("role",D4e),t!==""&&e.attr("aria-roledescription",t)}function N4e(e,t,r,n){if(e.insert!==void 0){if(r){const o=`chart-desc-${n}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(r)}if(t){const o=`chart-title-${n}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(t)}}}const R4e=e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function rW(e){return typeof e>"u"||e===null}function F4e(e){return typeof e=="object"&&e!==null}function z4e(e){return Array.isArray(e)?e:rW(e)?[]:[e]}function j4e(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}function H4e(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function _4e(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var X4e=rW,V4e=F4e,q4e=z4e,W4e=H4e,U4e=_4e,Q4e=j4e,ia={isNothing:X4e,isObject:V4e,toArray:q4e,repeat:W4e,isNegativeZero:U4e,extend:Q4e};function nW(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
743
743
|
|
|
744
744
|
`+e.mark.snippet),n+" "+r):n}function v1(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=nW(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}v1.prototype=Object.create(Error.prototype);v1.prototype.constructor=v1;v1.prototype.toString=function(t){return this.name+": "+nW(this,t)};var bc=v1;function c9(e,t,r,n,o){var i="",a="",s=Math.floor(o/2)-1;return n-t>s&&(i=" ... ",t=n-s+i.length),r-n>s&&(a=" ...",r=n+s-a.length),{str:i+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+i.length}}function f9(e,t){return ia.repeat(" ",t-e.length)+e}function G4e(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],o=[],i,a=-1;i=r.exec(e.buffer);)o.push(i.index),n.push(i.index+i[0].length),e.position<=i.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",l,u,c=Math.min(e.line+t.linesAfter,o.length).toString().length,f=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)u=c9(e.buffer,n[a-l],o[a-l],e.position-(n[a]-n[a-l]),f),s=ia.repeat(" ",t.indent)+f9((e.line-l+1).toString(),c)+" | "+u.str+`
|
|
@@ -803,7 +803,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
803
803
|
https://github.com/highlightjs/highlight.js/issues/2277`),ve=G,Le=le);const Oe={code:Le,language:ve};V("before:highlight",Oe);const je=Oe.result?Oe.result:A(Oe.language,Oe.code,be,ue);return je.code=Oe.code,V("after:highlight",je),je}function A(G,le,be,ue){function Le(it,lt){const kt=xt.case_insensitive?lt[0].toLowerCase():lt[0];return Object.prototype.hasOwnProperty.call(it.keywords,kt)&&it.keywords[kt]}function ve(){if(!st.keywords){ht.addText(St);return}let it=0;st.keywordPatternRe.lastIndex=0;let lt=st.keywordPatternRe.exec(St),kt="";for(;lt;){kt+=St.substring(it,lt.index);const yt=Le(st,lt);if(yt){const[ot,gt]=yt;if(ht.addText(kt),kt="",Re+=gt,ot.startsWith("_"))kt+=lt[0];else{const Pt=xt.classNameAliases[ot]||ot;ht.addKeyword(lt[0],Pt)}}else kt+=lt[0];it=st.keywordPatternRe.lastIndex,lt=st.keywordPatternRe.exec(St)}kt+=St.substr(it),ht.addText(kt)}function Oe(){if(St==="")return;let it=null;if(typeof st.subLanguage=="string"){if(!t[st.subLanguage]){ht.addText(St);return}it=A(st.subLanguage,St,!0,dt[st.subLanguage]),dt[st.subLanguage]=it.top}else it=m(St,st.subLanguage.length?st.subLanguage:null);st.relevance>0&&(Re+=it.relevance),ht.addSublanguage(it.emitter,it.language)}function je(){st.subLanguage!=null?Oe():ve(),St=""}function rt(it){return it.className&&ht.openNode(xt.classNameAliases[it.className]||it.className),st=Object.create(it,{parent:{value:st}}),st}function _e(it,lt,kt){let yt=uPe(it.endRe,kt);if(yt){if(it["on:end"]){const ot=new AN(it);it["on:end"](lt,ot),ot.isMatchIgnored&&(yt=!1)}if(yt){for(;it.endsParent&&it.parent;)it=it.parent;return it}}if(it.endsWithParent)return _e(it.parent,lt,kt)}function oe(it){return st.matcher.regexIndex===0?(St+=it[0],1):(Ct=!0,0)}function ft(it){const lt=it[0],kt=it.rule,yt=new AN(kt),ot=[kt.__beforeBegin,kt["on:begin"]];for(const gt of ot)if(gt&&(gt(it,yt),yt.isMatchIgnored))return oe(lt);return kt&&kt.endSameAsBegin&&(kt.endRe=oPe(lt)),kt.skip?St+=lt:(kt.excludeBegin&&(St+=lt),je(),!kt.returnBegin&&!kt.excludeBegin&&(St=lt)),rt(kt),kt.returnBegin?0:lt.length}function nt(it){const lt=it[0],kt=le.substr(it.index),yt=_e(st,it,kt);if(!yt)return yN;const ot=st;ot.skip?St+=lt:(ot.returnEnd||ot.excludeEnd||(St+=lt),je(),ot.excludeEnd&&(St=lt));do st.className&&ht.closeNode(),!st.skip&&!st.subLanguage&&(Re+=st.relevance),st=st.parent;while(st!==yt.parent);return yt.starts&&(yt.endSameAsBegin&&(yt.starts.endRe=yt.endRe),rt(yt.starts)),ot.returnEnd?0:lt.length}function qe(){const it=[];for(let lt=st;lt!==xt;lt=lt.parent)lt.className&&it.unshift(lt.className);it.forEach(lt=>ht.openNode(lt))}let pe={};function Mt(it,lt){const kt=lt&<[0];if(St+=it,kt==null)return je(),0;if(pe.type==="begin"&<.type==="end"&&pe.index===lt.index&&kt===""){if(St+=le.slice(lt.index,lt.index+1),!o){const yt=new Error("0 width match regex");throw yt.languageName=G,yt.badRule=pe.rule,yt}return 1}if(pe=lt,lt.type==="begin")return ft(lt);if(lt.type==="illegal"&&!be){const yt=new Error('Illegal lexeme "'+kt+'" for mode "'+(st.className||"<unnamed>")+'"');throw yt.mode=st,yt}else if(lt.type==="end"){const yt=nt(lt);if(yt!==yN)return yt}if(lt.type==="illegal"&&kt==="")return 1;if(Ue>1e5&&Ue>lt.index*3)throw new Error("potential infinite loop, way more iterations than matches");return St+=kt,kt.length}const xt=K(G);if(!xt)throw m9(a.replace("{}",G)),new Error('Unknown language: "'+G+'"');const It=zPe(xt,{plugins:n});let Vt="",st=ue||It;const dt={},ht=new l.__emitter(l);qe();let St="",Re=0,Ge=0,Ue=0,Ct=!1;try{for(st.matcher.considerAll();;){Ue++,Ct?Ct=!1:st.matcher.considerAll(),st.matcher.lastIndex=Ge;const it=st.matcher.exec(le);if(!it)break;const lt=le.substring(Ge,it.index),kt=Mt(lt,it);Ge=it.index+kt}return Mt(le.substr(Ge)),ht.closeAllNodes(),ht.finalize(),Vt=ht.toHTML(),{relevance:Math.floor(Re),value:Vt,language:G,illegal:!1,emitter:ht,top:st}}catch(it){if(it.message&&it.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:it.message,context:le.slice(Ge-100,Ge+100),mode:it.mode},sofar:Vt,relevance:0,value:g9(le),emitter:ht};if(o)return{illegal:!1,relevance:0,value:g9(le),emitter:ht,language:G,top:st,errorRaised:it};throw it}}function h(G){const le={relevance:0,emitter:new l.__emitter(l),value:g9(G),illegal:!1,top:s};return le.emitter.addText(G),le}function m(G,le){le=le||l.languages||Object.keys(t);const be=h(G),ue=le.filter(K).filter(j).map(rt=>A(rt,G,!1));ue.unshift(be);const Le=ue.sort((rt,_e)=>{if(rt.relevance!==_e.relevance)return _e.relevance-rt.relevance;if(rt.language&&_e.language){if(K(rt.language).supersetOf===_e.language)return 1;if(K(_e.language).supersetOf===rt.language)return-1}return 0}),[ve,Oe]=Le,je=ve;return je.second_best=Oe,je}function v(G){return l.tabReplace||l.useBR?G.replace(i,le=>le===`
|
|
804
804
|
`?l.useBR?"<br>":le:l.tabReplace?le.replace(/\t/g,l.tabReplace):le):G}function b(G,le,be){const ue=le?r[le]:be;G.classList.add("hljs"),ue&&G.classList.add(ue)}const x={"before:highlightElement":({el:G})=>{l.useBR&&(G.innerHTML=G.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
|
|
805
805
|
`))},"after:highlightElement":({result:G})=>{l.useBR&&(G.value=G.value.replace(/\n/g,"<br>"))}},C=/^(<[^>]+>|\t)+/gm,k={"after:highlightElement":({result:G})=>{l.tabReplace&&(G.value=G.value.replace(C,le=>le.replace(/\t/g,l.tabReplace)))}};function P(G){let le=null;const be=c(G);if(u(be))return;V("before:highlightElement",{el:G,language:be}),le=G;const ue=le.textContent,Le=be?f(ue,{language:be,ignoreIllegals:!0}):m(ue);V("after:highlightElement",{el:G,result:Le,text:ue}),G.innerHTML=Le.value,b(G,be,Le.language),G.result={language:Le.language,re:Le.relevance,relavance:Le.relevance},Le.second_best&&(G.second_best={language:Le.second_best.language,re:Le.second_best.relevance,relavance:Le.second_best.relevance})}function O(G){G.useBR&&(Rs("10.3.0","'useBR' will be removed entirely in v11.0"),Rs("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),l=vN(l,G)}const L=()=>{if(L.called)return;L.called=!0,Rs("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(P)};function B(){Rs("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),M=!0}let M=!1;function F(){if(document.readyState==="loading"){M=!0;return}document.querySelectorAll("pre code").forEach(P)}function N(){M&&F()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",N,!1);function z(G,le){let be=null;try{be=le(e)}catch(ue){if(m9("Language definition for '{}' could not be registered.".replace("{}",G)),o)m9(ue);else throw ue;be=s}be.name||(be.name=G),t[G]=be,be.rawDefinition=le.bind(null,e),be.aliases&&Y(be.aliases,{languageName:G})}function R(G){delete t[G];for(const le of Object.keys(r))r[le]===G&&delete r[le]}function U(){return Object.keys(t)}function W(G){Rs("10.4.0","requireLanguage will be removed entirely in v11."),Rs("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const le=K(G);if(le)return le;throw new Error("The '{}' language is required, but not loaded.".replace("{}",G))}function K(G){return G=(G||"").toLowerCase(),t[G]||t[r[G]]}function Y(G,{languageName:le}){typeof G=="string"&&(G=[G]),G.forEach(be=>{r[be.toLowerCase()]=le})}function j(G){const le=K(G);return le&&!le.disableAutodetect}function H(G){G["before:highlightBlock"]&&!G["before:highlightElement"]&&(G["before:highlightElement"]=le=>{G["before:highlightBlock"](Object.assign({block:le.el},le))}),G["after:highlightBlock"]&&!G["after:highlightElement"]&&(G["after:highlightElement"]=le=>{G["after:highlightBlock"](Object.assign({block:le.el},le))})}function $(G){H(G),n.push(G)}function V(G,le){const be=G;n.forEach(function(ue){ue[be]&&ue[be](le)})}function J(G){return Rs("10.2.0","fixMarkup will be removed entirely in v11.0"),Rs("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),v(G)}function se(G){return Rs("10.7.0","highlightBlock will be removed entirely in v12.0"),Rs("10.7.0","Please use highlightElement now."),P(G)}Object.assign(e,{highlight:f,highlightAuto:m,highlightAll:F,fixMarkup:J,highlightElement:P,highlightBlock:se,configure:O,initHighlighting:L,initHighlightingOnLoad:B,registerLanguage:z,unregisterLanguage:R,listLanguages:U,getLanguage:K,registerAliases:Y,requireLanguage:W,autoDetection:j,inherit:vN,addPlugin:$,vuePlugin:XPe(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=HPe;for(const G in A2)typeof A2[G]=="object"&&PW(A2[G]);return Object.assign(e,A2),e.addPlugin(x),e.addPlugin(VPe),e.addPlugin(k),e};var UPe=WPe({}),QPe=UPe,NW={exports:{}};(function(e){(function(){var t;t=e.exports=o,t.format=o,t.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(t.printf=r);function r(){console.log(o.apply(null,arguments))}function n(i,a){return o.apply(null,[i].concat(a))}function o(i){for(var a=1,s=[].slice.call(arguments),l=0,u=i.length,c="",f,A=!1,h,m,v=!1,b,x=function(){return s[a++]},C=function(){for(var k="";/\d/.test(i[l]);)k+=i[l++],f=i[l];return k.length>0?parseInt(k):null};l<u;++l)if(f=i[l],A)switch(A=!1,f=="."?(v=!1,f=i[++l]):f=="0"&&i[l+1]=="."?(v=!0,l+=2,f=i[l]):v=!0,b=C(),f){case"b":c+=parseInt(x(),10).toString(2);break;case"c":h=x(),typeof h=="string"||h instanceof String?c+=h:c+=String.fromCharCode(parseInt(h,10));break;case"d":c+=parseInt(x(),10);break;case"f":m=String(parseFloat(x()).toFixed(b||6)),c+=v?m:m.replace(/^0/,"");break;case"j":c+=JSON.stringify(x());break;case"o":c+="0"+parseInt(x(),10).toString(8);break;case"s":c+=x();break;case"x":c+="0x"+parseInt(x(),10).toString(16);break;case"X":c+="0x"+parseInt(x(),10).toString(16).toUpperCase();break;default:c+=f;break}else f==="%"?A=!0:c+=f;return c}})()})(NW);var GPe=NW.exports,YPe=GPe,Sd=kd(Error),ZPe=Sd;Sd.eval=kd(EvalError);Sd.range=kd(RangeError);Sd.reference=kd(ReferenceError);Sd.syntax=kd(SyntaxError);Sd.type=kd(TypeError);Sd.uri=kd(URIError);Sd.create=kd;function kd(e){return t.displayName=e.displayName||e.name,t;function t(r){return r&&(r=YPe.apply(null,arguments)),new e(r)}}var gu=QPe,v3=ZPe;Rh.highlight=RW;Rh.highlightAuto=KPe;Rh.registerLanguage=$Pe;Rh.listLanguages=e8e;Rh.registerAlias=t8e;Xc.prototype.addText=i8e;Xc.prototype.addKeyword=r8e;Xc.prototype.addSublanguage=n8e;Xc.prototype.openNode=o8e;Xc.prototype.closeNode=a8e;Xc.prototype.closeAllNodes=FW;Xc.prototype.finalize=FW;Xc.prototype.toHTML=s8e;var JPe="hljs-";function RW(e,t,r){var n=gu.configure({}),o=r||{},i=o.prefix,a;if(typeof e!="string")throw v3("Expected `string` for name, got `%s`",e);if(!gu.getLanguage(e))throw v3("Unknown language: `%s` is not registered",e);if(typeof t!="string")throw v3("Expected `string` for value, got `%s`",t);if(i==null&&(i=JPe),gu.configure({__emitter:Xc,classPrefix:i}),a=gu.highlight(t,{language:e,ignoreIllegals:!0}),gu.configure(n||{}),a.errorRaised)throw a.errorRaised;return{relevance:a.relevance,language:a.language,value:a.emitter.rootNode.children}}function KPe(e,t){var r=t||{},n=r.subset||gu.listLanguages();r.prefix;var o=n.length,i=-1,a,s,l,u;if(typeof e!="string")throw v3("Expected `string` for value, got `%s`",e);for(s={relevance:0,language:null,value:[]},a={relevance:0,language:null,value:[]};++i<o;)u=n[i],gu.getLanguage(u)&&(l=RW(u,e,t),l.language=u,l.relevance>s.relevance&&(s=l),l.relevance>a.relevance&&(s=a,a=l));return s.language&&(a.secondBest=s),a}function $Pe(e,t){gu.registerLanguage(e,t)}function e8e(){return gu.listLanguages()}function t8e(e,t){var r=e,n;t&&(r={},r[e]=t);for(n in r)gu.registerAliases(r[n],{languageName:n})}function Xc(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function r8e(e,t){this.openNode(t),this.addText(e),this.closeNode()}function n8e(e,t){var r=this.stack,n=r[r.length-1],o=e.rootNode.children,i=t?{type:"element",tagName:"span",properties:{className:[t]},children:o}:o;n.children=n.children.concat(i)}function i8e(e){var t=this.stack,r,n;e!==""&&(r=t[t.length-1],n=r.children[r.children.length-1],n&&n.type==="text"?n.value+=e:r.children.push({type:"text",value:e}))}function o8e(e){var t=this.stack,r=this.options.classPrefix+e,n=t[t.length-1],o={type:"element",tagName:"span",properties:{className:[r]},children:[]};n.children.push(o),t.push(o)}function a8e(){this.stack.pop()}function s8e(){return""}function FW(){}var zW=ePe(Rh,{});zW.registerLanguage=Rh.registerLanguage;const q0=zW;var l8e=globalThis&&globalThis.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(c){try{u(n.next(c))}catch(f){a(f)}}function l(c){try{u(n.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};function u8e(){const[e,t]=ce.useState(null);return[e,n=>l8e(this,void 0,void 0,function*(){if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return yield navigator.clipboard.writeText(n),t(n),!0}catch(o){return console.warn("Copy failed",o),t(null),!1}})]}globalThis&&globalThis.__awaiter;const c8e=e=>Ae.jsx(Ri,{as:"svg",xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0 448 512",fill:Ho("rasaPurple.500","rasaPurple.500"),...e,children:Ae.jsx("path",{d:"M32 32C14.3 32 0 46.3 0 64v96c0 17.7 14.3 32 32 32s32-14.3 32-32V96h64c17.7 0 32-14.3 32-32s-14.3-32-32-32H32zm32 320c0-17.7-14.3-32-32-32S0 334.3 0 352v96c0 17.7 14.3 32 32 32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H64v-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32h64v64c0 17.7 14.3 32 32 32s32-14.3 32-32V64c0-17.7-14.3-32-32-32h-96zm128 320c0-17.7-14.3-32-32-32s-32 14.3-32 32v64h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32h96c17.7 0 32-14.3 32-32v-96z"})}),v9=({title:e,children:t,...r})=>{const{isOpen:n,onOpen:o,onClose:i}=jde();return Ae.jsxs(Ae.Fragment,{children:[Ae.jsx(yg,{label:"See in full screen",hasArrow:!0,children:Ae.jsx(MT,{size:"sm",variant:"outline",icon:Ae.jsx(c8e,{}),...r,"aria-label":"Full screen",onClick:o})}),Ae.jsxs(h_,{isOpen:n,onClose:i,size:"xl",children:[Ae.jsx(C_,{}),Ae.jsxs(w_,{children:[Ae.jsx(x_,{children:e}),Ae.jsx(k_,{}),Ae.jsx(S_,{children:t})]})]})]})};function f8e(e){return e!==null&&typeof e=="object"&&typeof e.command_processor=="number"&&typeof e.prediction_loop=="number"}function d8e(e){return e!==null&&typeof e=="object"&&typeof e.rasa_processing_latency_ms=="number"&&typeof e.asr_latency_ms=="number"&&typeof e.tts_first_byte_latency_ms=="number"&&typeof e.tts_complete_latency_ms=="number"}const A8e=({latency:e,sx:t,...r})=>{const n={...t,display:"flex",alignItems:"center"},o=s=>s<1500?"green.500":s<2500?"orange.500":"red.500",i=Math.round((e.command_processor||0)+(e.prediction_loop||0)),a=o(i);return Ae.jsx(xo,{sx:n,...r,children:Ae.jsxs(wi,{fontSize:"md",color:Ho("gray.700","gray.300"),children:["Response latency:",Ae.jsxs(wi,{as:"span",ml:2,fontWeight:"bold",color:a,children:[i,"ms"]})]})})},h8e=({latency:e,sx:t,...r})=>{const{rasaSpace:n}=Ks(),o={...t,flexDirection:"column",gap:n[1]},i={fontSize:"sm",fontWeight:"bold",color:Ho("gray.700","gray.300")},a={height:"24px",borderRadius:"4px",overflow:"hidden",border:"1px solid",borderColor:Ho("gray.200","gray.600")},s={size:"sm",mt:n[.5]},l=m=>({asr:"blue.500",rasa:"purple.500",tts_first:"orange.500",tts_complete:"green.500"})[m]||"gray.500",u=m=>({asr:"Time from the first Partial Transcript event to the Final Transcript event from Speech Recognition. It also includes the time taken by the user to speak.",rasa:"Time taken by Rasa to process the text from the Final Transcript event from Speech Recognition until a text response is generated.",tts_first:"Time between the request sent to Text-to-Speech processing and the first byte of audio received by Rasa.",tts_complete:"Time taken by Text-to-Speech to complete audio generation. It depends on the length of the text and could overlap with the Bot speaking time."})[m]||"",c=[e.asr_latency_ms&&{type:"asr",label:"ASR",value:e.asr_latency_ms},e.rasa_processing_latency_ms&&{type:"rasa",label:"Rasa",value:e.rasa_processing_latency_ms},e.tts_complete_latency_ms&&{type:"tts_complete",label:"TTS",value:e.tts_complete_latency_ms}].filter(Boolean),f=[e.asr_latency_ms&&{type:"asr",label:"ASR",value:e.asr_latency_ms},e.rasa_processing_latency_ms&&{type:"rasa",label:"Rasa",value:e.rasa_processing_latency_ms},e.tts_first_byte_latency_ms&&{type:"tts_first",label:"TTS First Byte",value:e.tts_first_byte_latency_ms},e.tts_complete_latency_ms&&{type:"tts_complete",label:"TTS Complete",value:e.tts_complete_latency_ms}].filter(Boolean),A=c.reduce((m,v)=>m+v.value,0),h=(e.rasa_processing_latency_ms||0)+(e.tts_first_byte_latency_ms||0);return Ae.jsxs(xo,{sx:o,...r,children:[Ae.jsxs(wi,{sx:i,children:["Response latency: ~",Math.round(h),"ms"]}),Ae.jsxs(Ri,{children:[Ae.jsx(xo,{sx:a,children:c.map(m=>{const v=A>0?m.value/A*100:0;return Ae.jsx(yg,{label:Ae.jsxs(Ri,{children:[Ae.jsxs(wi,{fontWeight:"bold",children:[m.label,": ",Math.round(m.value),"ms"]}),Ae.jsx(wi,{fontSize:"xs",mt:1,children:u(m.type)})]}),hasArrow:!0,placement:"top",children:Ae.jsx(Ri,{bg:l(m.type),width:`${v}%`,height:"100%",minWidth:"40px",cursor:"pointer",_hover:{opacity:.8}})},m.type)})}),Ae.jsx(zC,{sx:s,children:Ae.jsx(JT,{children:Array.from({length:Math.ceil(f.length/2)},(m,v)=>Ae.jsxs($y,{children:[f.slice(v*2,v*2+2).map(b=>Ae.jsx(vg,{p:n[.25],border:"none",children:Ae.jsxs(xo,{align:"center",gap:n[.25],children:[Ae.jsx(Ri,{width:"8px",height:"8px",bg:l(b.type),borderRadius:"2px",flexShrink:0}),Ae.jsxs(wi,{fontSize:"xs",color:Ho("gray.600","gray.400"),noOfLines:1,children:[b.label,": ",Math.round(b.value),"ms"]})]})},b.type)),f.length%2!==0&&v===Math.ceil(f.length/2)-1&&Ae.jsx(vg,{p:n[.25],border:"none"})]},v))})})]})]})},p8e=({sx:e,voiceLatency:t,rasaLatency:r,...n})=>d8e(t)?Ae.jsx(h8e,{latency:t,sx:e,...n}):f8e(r)?Ae.jsx(A8e,{latency:r,sx:e,...n}):r?(console.warn(`Latency data has unexpected format. Raw data of rasaLatency: ${r},
|
|
806
|
-
raw data of voice latency: ${t}`),Ae.jsx(wi,{children:"Latency data is not available yet"})):Ae.jsx(wi,{children:"Rasa latency data is not available yet"});function R7(e){return Array.isArray(e)}function F7(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function m8e(e,t){return JSON.stringify(e)===JSON.stringify(t)}function jW(e){return e.slice(0,e.length-1)}function g8e(e){return e[e.length-1]}function HW(e){return typeof e=="object"&&e!==null}function aP(e){if(R7(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(r=>{t[r]=e[r]}),t}else if(F7(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(r=>{t[r]=e[r]}),t}else return e}function sP(e,t,r){if(e[t]===r)return e;{const n=aP(e);return n[t]=r,n}}function Og(e,t){let r=e,n=0;for(;n<t.length;)F7(r)?r=r[t[n]]:R7(r)?r=r[parseInt(t[n])]:r=void 0,n++;return r}function eb(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return r;const o=t[0],i=eb(e?e[o]:void 0,t.slice(1),r,n);if(F7(e)||R7(e))return sP(e,o,i);if(n){const a=v8e.test(o)?[]:{};return a[o]=i,a}else throw new Error("Path does not exist")}const v8e=/^\d+$/;function _W(e,t,r){if(t.length===0)return r(e);if(!HW(e))throw new Error("Path doesn't exist");const n=t[0],o=_W(e[n],t.slice(1),r);return sP(e,n,o)}function lP(e,t){if(t.length===0)return e;if(!HW(e))throw new Error("Path does not exist");if(t.length===1){const o=t[0];if(o in e){const i=aP(e);return R7(i)&&i.splice(parseInt(o),1),F7(i)&&delete i[o],i}else return e}const r=t[0],n=lP(e[r],t.slice(1));return sP(e,r,n)}function uP(e,t,r){const n=t.slice(0,t.length-1),o=t[t.length-1];return _W(e,n,i=>{if(!Array.isArray(i))throw new TypeError("Array expected at path "+JSON.stringify(n));const a=aP(i);return a.splice(parseInt(o),0,r),a})}function XW(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:XW(e[t[0]],t.slice(1))}function VW(e){const t=e.split("/");return t.shift(),t.map(r=>r.replace(/~1/g,"/").replace(/~0/g,"~"))}function y9(e){return e.map(y8e).join("")}function y8e(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function qW(e,t,r){let n=e;for(let o=0;o<t.length;o++){T8e(t[o]);let i=t[o];if(r&&r.before){const l=r.before(n,i);if(l!==void 0){if(l.document!==void 0&&(n=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(i=l.operation)}}const a=n,s=P8e(n,i.path);if(i.op==="add")n=x8e(n,s,i.value);else if(i.op==="remove")n=w8e(n,s);else if(i.op==="replace")n=b8e(n,s,i.value);else if(i.op==="copy")n=C8e(n,s,bN(i.from));else if(i.op==="move")n=S8e(n,s,bN(i.from));else if(i.op==="test")k8e(n,s,i.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));if(r&&r.after){const l=r.after(n,i,a);l!==void 0&&(n=l)}}return n}function b8e(e,t,r){return eb(e,t,r)}function w8e(e,t){return lP(e,t)}function x8e(e,t,r){return cP(e,t)?uP(e,t,r):eb(e,t,r)}function C8e(e,t,r){const n=Og(e,r);if(cP(e,t))return uP(e,t,n);{const o=Og(e,r);return eb(e,t,o)}}function S8e(e,t,r){const n=Og(e,r),o=lP(e,r);return cP(o,t)?uP(o,t,n):eb(o,t,n)}function k8e(e,t,r){if(r===void 0)throw new Error(`Test failed: no value provided (path: "${y9(t)}")`);if(!XW(e,t))throw new Error(`Test failed: path not found (path: "${y9(t)}")`);const n=Og(e,t);if(!m8e(n,r))throw new Error(`Test failed, value differs (path: "${y9(t)}")`)}function cP(e,t){if(t.length===0)return!1;const r=Og(e,jW(t));return Array.isArray(r)}function E8e(e,t){if(g8e(t)!=="-")return t;const r=jW(t),n=Og(e,r);return r.concat(n.length)}function T8e(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function P8e(e,t){return E8e(e,VW(t))}function bN(e){return VW(e)}const WW=e=>{if(!e)return!1;const t=e.length;return t>10&&t<89},O8e=(e,t)=>{let r=e.map(i=>({...i,ended:!1})),n=[],o=[];for(const i of t)if(i.event==="restart")n=[],r=[];else if(i.event==="stack"){let a=JSON.parse(i.update||"");n=qW(n,a);for(const s of n){if(!s.flow_id||r.find(u=>u.frame_id===s.frame_id))continue;const l=o.find(u=>u.frame_id===s.frame_id);if(l){l.step_id=s.step_id;continue}o.push({...s,ended:!0})}}return o=o.filter(i=>i.flow_id!=="pattern_collect_information"),[...o,...r]},Y4=e=>{let t=[],r={};for(const n of e)if(n.event==="restart")t=[],r={};else if(n.event==="stack"){let o=JSON.parse(n.update||"");if(t=qW(t,o),t.length>0){let i=t[t.length-1];if(!i.flow_id)continue;(!r[i.flow_id]||i.step_id==="START")&&(r[i.flow_id]=[]),r[i.flow_id].includes(i.step_id)||r[i.flow_id].push(i.step_id)}}return r},B8e=(e,t,r)=>{e!=null&&e.isUserSelected||(e=void 0);const n=t.find(o=>o.frame_id===(e==null?void 0:e.stack.frame_id));if(!n||n.ended){if(!t)return;const o=t.slice().reverse().find(i=>{var a;return!((a=i.flow_id)!=null&&a.startsWith("pattern_"))&&!i.ended})||t.slice().reverse().find(i=>!i.ended)||t[t.length-1];return o!==void 0?{stack:o,isUserSelected:!1,activatedSteps:Y4(r)[o.flow_id]||[]}:void 0}else return e&&(e.activatedSteps=Y4(r)[e.stack.flow_id]||[],e.stack=n),e},UW=({slots:e})=>{const{rasaFontSizes:t}=Ks(),r={background:Ho("neutral.50","neutral.50"),fontSize:t.sm,letterSpacing:"0"};return Ae.jsxs(zC,{width:"100%",layout:"fixed",children:[Ae.jsx(E_,{children:Ae.jsxs($y,{children:[Ae.jsx(ux,{w:"50%",children:"Name"}),Ae.jsx(ux,{children:"Value"})]})}),Ae.jsx(JT,{children:e.map(n=>Ae.jsxs($y,{children:[Ae.jsx(vg,{children:WW(n.name)?Ae.jsx(yg,{label:n.name,hasArrow:!0,children:Ae.jsx(wi,{noOfLines:1,children:n.name})}):Ae.jsx(wi,{noOfLines:1,children:n.name})}),Ae.jsx(vg,{children:Ae.jsx(q0,{customStyle:r,children:JSON.stringify(n.value,null,2)})})]},n.name))})]})},L8e=({sx:e,slots:t,...r})=>{const{rasaSpace:n}=Ks(),o={...e,pr:0,pb:0,position:"relative",flexDirection:"column"},i={height:"100%",overflow:"auto",pr:n[1],pb:n[.5]},a=t.length?t:[{name:"-",value:"-"}];return Ae.jsx(xo,{sx:o,...r,children:Ae.jsx(Ri,{sx:i,children:Ae.jsx(UW,{slots:a})})})},M8e=({sx:e,rasaChatSessionId:t="-",events:r,story:n,slots:o,latency:i,...a})=>{var O,L;const s=fH(),{rasaSpace:l,rasaFontSizes:u}=Ks(),[c,f]=u8e(),A={...e,p:0,flexDirection:"column"},h={height:"100%",display:"flex",flexDirection:"column"},m={px:l[1],py:l[.5],borderBottom:"1px solid",borderColor:Ho("neutral.400","neutral.400")},v={height:"100%",overflow:"hidden",padding:l[.5],position:"relative"},b={height:"100%",overflow:"auto",padding:l[.5]},x={background:Ho("neutral.50","neutral.50"),fontSize:u.sm,letterSpacing:"0"},C={position:"absolute",bg:Ho("neutral.50","neutral.50"),right:l[1],bottom:l[1]};ce.useEffect(()=>{s.isActive("copy-to-clipboard")||!c||s({id:"copy-to-clipboard",title:"Text copied to clipboard",status:"success",duration:2e3,isClosable:!0})},[c,s]);const k=T6e(r,t),P=(L=(O=D8e(r))==null?void 0:O.metadata)==null?void 0:L.execution_times;return Ae.jsx(xo,{sx:A,...a,children:Ae.jsxs(O_,{sx:h,size:"sm",variant:"solid-rounded",colorScheme:"rasaPurple",children:[Ae.jsxs(B_,{sx:m,children:[Ae.jsx(h2,{children:"Slots"}),Ae.jsx(h2,{children:"End-2-end test"}),Ae.jsx(h2,{children:"Tracker state"}),Ae.jsx(h2,{children:"Latency"})]}),Ae.jsxs(L_,{height:"100%",overflow:"hidden",children:[Ae.jsxs(N0,{sx:v,children:[Ae.jsx(Ri,{sx:b,children:Ae.jsx(L8e,{slots:o})}),Ae.jsx(X2,{spacing:l[.5],sx:C,children:Ae.jsx(v9,{title:"Slots",children:Ae.jsx(UW,{slots:o})})})]}),Ae.jsxs(N0,{sx:v,children:[Ae.jsx(Ri,{sx:b,children:Ae.jsx(q0,{customStyle:x,children:k})}),Ae.jsxs(X2,{spacing:l[.5],sx:C,children:[Ae.jsx(dd,{size:"sm",variant:"outline",onClick:()=>f(k),children:"Copy"}),Ae.jsx(v9,{title:"End-2-end test",children:Ae.jsx(q0,{customStyle:x,children:k})})]})]}),Ae.jsxs(N0,{sx:v,children:[Ae.jsx(Ri,{sx:b,children:Ae.jsx(q0,{customStyle:x,children:n})}),Ae.jsxs(X2,{spacing:l[.5],sx:C,children:[Ae.jsx(dd,{size:"sm",variant:"outline",onClick:()=>f(n),children:"Copy"}),Ae.jsx(v9,{title:"Tracker state",children:Ae.jsx(q0,{customStyle:x,children:n})})]})]}),Ae.jsx(N0,{sx:v,children:Ae.jsx(Ri,{sx:b,children:Ae.jsx(p8e,{voiceLatency:i,rasaLatency:P})})})]})]})})},h2=e=>{const{rasaRadii:t}=Ks(),r=ype(e),n=!!r["aria-selected"],o=n?"solidRasa":"ghost",i=Ho("neutral.50","neutral.50"),a=Ho("neutral.900","neutral.900"),s={borderRadius:t.full,color:n?i:a};return Ae.jsx(dd,{sx:s,variant:o,...r,size:"sm",children:r.children})},D8e=e=>[...e].reverse().find(t=>t.name==="action_listen");function wN({stack:e,highlighted:t,selectable:r,onItemClick:n}){const o={_hover:{cursor:"pointer"}},i={td:{bg:Ho("warning.50","warning.50")},_last:{td:{border:"none"}}};return Ae.jsxs($y,{sx:t?i:r?o:void 0,onClick:()=>n==null?void 0:n(e),children:[Ae.jsx(vg,{children:Ae.jsx(yg,{label:`${e.flow_id} (${e.frame_id})`,hasArrow:!0,children:Ae.jsx(wi,{noOfLines:1,children:e.flow_id})})}),Ae.jsx(vg,{children:WW(e.step_id)?Ae.jsx(yg,{label:e.step_id,hasArrow:!0,children:Ae.jsx(wi,{noOfLines:1,children:e.step_id})}):Ae.jsx(wi,{noOfLines:1,children:e.step_id})})]})}const I8e=({sx:e,stack:t,active:r,onItemClick:n,...o})=>{const{rasaSpace:i}=Ks(),a={...e,pr:0,pb:0,flexDirection:"column"},s={height:"100%",overflow:"auto",pr:i[1],pb:i[.5]};return Ae.jsxs(xo,{sx:a,...o,children:[Ae.jsxs(xo,{children:[Ae.jsx(N1,{size:"lg",mb:i[.5],children:"History"}),Ae.jsxs(wi,{ml:i[.25],children:["(",t.length," flows)"]})]}),Ae.jsx(Ri,{sx:s,children:Ae.jsxs(zC,{width:"100%",layout:"fixed",children:[Ae.jsx(E_,{children:Ae.jsxs($y,{children:[Ae.jsx(ux,{children:"Flow"}),Ae.jsx(ux,{width:"40%",children:"Step ID"})]})}),Ae.jsxs(JT,{children:[t.length>0&&[...t].reverse().map(l=>Ae.jsx(wN,{stack:l,highlighted:l.frame_id==(r==null?void 0:r.frame_id),onItemClick:n,selectable:!0})),t.length===0&&Ae.jsx(wN,{stack:{frame_id:"-",flow_id:"-",step_id:"-",ended:!1}})]})]})})]})},x0=128,QW=8e3,N8e={audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}},R8e=e=>{let t="";const r=new Uint8Array(e),n=r.byteLength;for(let o=0;o<n;o++)t+=String.fromCharCode(r[o]);return window.btoa(t)},F8e=e=>{const t=window.atob(e),r=t.length,n=new Uint8Array(r);for(let o=0;o<r;o++)n[o]=t.charCodeAt(o);return n.buffer},z8e=e=>Int32Array.from(e,t=>t*2147483647),j8e=e=>Float32Array.from(e,t=>t/2147483647),H8e=e=>({buffer:new Float32Array(0),marks:new Array,socket:e,write:function(t){const r=this.buffer.length,n=new Float32Array(r+t.length);n.set(this.buffer,0),n.set(t,r),this.buffer=n},read:function(t){const r=this.buffer.subarray(0,t);return this.buffer=this.buffer.subarray(t,this.buffer.length),this.reduceMarkers(r.length),this.popMarkers(),r},length:function(){return this.buffer.length},addMarker:function(t){this.marks.push({id:t,bytesToGo:this.length()})},reduceMarkers:function(t){this.marks=this.marks.map(r=>({id:r.id,bytesToGo:r.bytesToGo-t}))},popMarkers:function(){let t=0;for(;t<this.marks.length&&this.marks[t].bytesToGo<=0;)t+=1;const r=this.marks.slice(0,t);this.marks=this.marks.slice(t,this.marks.length),r.forEach(n=>{this.socket.readyState===WebSocket.OPEN&&this.socket.send(JSON.stringify({marker:n.id}))})}}),_8e=async e=>{const t=new AudioContext({sampleRate:QW});try{const r=await navigator.mediaDevices.getUserMedia(N8e);await t.audioWorklet.addModule(new URL("data:application/javascript;base64,Y2xhc3MgTWljcm9waG9uZVByb2Nlc3NvciBleHRlbmRzIEF1ZGlvV29ya2xldFByb2Nlc3NvciB7CiAgcHJvY2VzcyhpbnB1dHMpIHsKICAgIGNvbnN0IGlucHV0ID0gaW5wdXRzWzBdCiAgICBpZiAoaW5wdXQubGVuZ3RoID4gMCkgewogICAgICBjb25zdCBjaGFubmVsRGF0YSA9IGlucHV0WzBdCiAgICAgIHRoaXMucG9ydC5wb3N0TWVzc2FnZShjaGFubmVsRGF0YSkKICAgIH0KICAgIHJldHVybiB0cnVlCiAgfQp9CgpyZWdpc3RlclByb2Nlc3NvcignbWljcm9waG9uZS1wcm9jZXNzb3InLCBNaWNyb3Bob25lUHJvY2Vzc29yKQo=",self.location).href);const n=new AudioWorkletNode(t,"microphone-processor");n.port.onmessage=i=>{const a=i.data,s=JSON.stringify({audio:R8e(z8e(a).buffer)});e.readyState===WebSocket.OPEN&&e.send(s)},t.createMediaStreamSource(r).connect(n).connect(t.destination)}catch(r){console.error(r)}},X8e=async e=>{const t=H8e(e),r=new AudioContext({sampleRate:QW});r.state==="suspended"&&await r.resume(),await r.audioWorklet.addModule(new URL("data:application/javascript;base64,Y2xhc3MgUGxheWJhY2tQcm9jZXNzb3IgZXh0ZW5kcyBBdWRpb1dvcmtsZXRQcm9jZXNzb3IgewogIGNvbnN0cnVjdG9yKCkgewogICAgc3VwZXIoKQogICAgdGhpcy5hdWRpb0J1ZmZlciA9IG5ldyBGbG9hdDMyQXJyYXkoMCkKCiAgICAvLyBTZXQgdXAgbWVzc2FnZSBoYW5kbGluZyBmcm9tIHRoZSBtYWluIHRocmVhZAogICAgdGhpcy5wb3J0Lm9ubWVzc2FnZSA9IChldmVudCkgPT4gewogICAgICB0aGlzLmF1ZGlvQnVmZmVyID0gZXZlbnQuZGF0YQogICAgfQoKICAgIC8vIFJlcXVlc3QgaW5pdGlhbCBhdWRpbyBkYXRhCiAgICB0aGlzLnBvcnQucG9zdE1lc3NhZ2UoJ25lZWQtbW9yZS1kYXRhJykKICB9CgogIHByb2Nlc3MoXywgb3V0cHV0cykgewogICAgY29uc3Qgb3V0cHV0ID0gb3V0cHV0c1swXQogICAgY29uc3QgY2hhbm5lbERhdGEgPSBvdXRwdXRbMF0KCiAgICBjb25zdCBhdmFpbGFibGVTYW1wbGVzID0gdGhpcy5hdWRpb0J1ZmZlci5sZW5ndGgKICAgIGNvbnN0IHJlcXVlc3RlZFNhbXBsZXMgPSBjaGFubmVsRGF0YS5sZW5ndGgKICAgIGNvbnN0IHNhbXBsZXNUb0NvcHkgPSBNYXRoLm1pbihhdmFpbGFibGVTYW1wbGVzLCByZXF1ZXN0ZWRTYW1wbGVzKQoKICAgIGlmIChzYW1wbGVzVG9Db3B5ID4gMCkgewogICAgICBjaGFubmVsRGF0YS5zZXQodGhpcy5hdWRpb0J1ZmZlci5zdWJhcnJheSgwLCBzYW1wbGVzVG9Db3B5KSkKICAgICAgdGhpcy5hdWRpb0J1ZmZlciA9IHRoaXMuYXVkaW9CdWZmZXIuc3ViYXJyYXkoc2FtcGxlc1RvQ29weSkKICAgIH0gZWxzZSB7CiAgICAgIGNoYW5uZWxEYXRhLmZpbGwoMCkKICAgIH0KCiAgICB0aGlzLnBvcnQucG9zdE1lc3NhZ2UoJ25lZWQtbW9yZS1kYXRhJykKCiAgICByZXR1cm4gdHJ1ZQogIH0KfQoKcmVnaXN0ZXJQcm9jZXNzb3IoJ3BsYXliYWNrLXByb2Nlc3NvcicsIFBsYXliYWNrUHJvY2Vzc29yKQo=",self.location).href);const n=new AudioWorkletNode(r,"playback-processor");return n.port.onmessage=o=>{if(o.data==="need-more-data"){const i=t.length()?t.read(x0):new Float32Array(x0);if(!(i instanceof Float32Array))console.error("audioData is invalid, sending silence."),n.port.postMessage(new Float32Array(x0));else if(i.length!==x0){console.warn(`audioData is too short (${i.length} samples), padding with silence`);const a=new Float32Array(x0);a.set(i),n.port.postMessage(a)}else n.port.postMessage(i)}},n.connect(r.destination),t},V8e=(e,t)=>r=>{try{const n=JSON.parse(r.data.toString());if(n.error&&console.error("Error from server:",n.error),n.audio){const o=F8e(n.audio),i=new Int32Array(o),a=j8e(i);e.write(a)}else n.marker&&(n.latency&&t&&t(n.latency),console.log("Voice Latency Metrics:",n.latency),e.addMarker(n.marker))}catch(n){console.error("Error processing server incoming audio data:",n)}};function q8e(e){const t=new URL(e);return`${t.protocol==="https:"?"wss:":"ws:"}//${t.host}/webhooks/browser_audio/websocket`}async function W8e(e,t){const r=q8e(e),n=new WebSocket(r);n.onopen=async()=>{await _8e(n)};const o=await X8e(n);n.onmessage=V8e(o,t)}const U8e=({onLatencyUpdate:e})=>{const{rasaSpace:t}=Ks(),r=window.location.href.includes("browser_audio"),n=r?"Start a new conversation":"Waiting for a new conversation";return Ae.jsxs(VT,{height:"100vh",flexDirection:"column",children:[Ae.jsx(IC,{speed:"1s",emptyColor:Ho("neutral.500","neutral.500"),color:Ho("rasaPurple.800","rasaPurple.800"),size:"lg",mb:t[1]}),Ae.jsx(wi,{fontSize:"lg",children:n}),r?Ae.jsx(dd,{onClick:async()=>await W8e(window.location.href,e),children:"Go"}):null]})},Q8e=Nce({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),G8e=({onClose:e})=>{const{rasaRadii:t}=Ks(),r="white",n="white",o={borderRadius:t.normal,padding:"1rem",bgGradient:"linear(to-b, #4E61E1, #7622D2)",color:r};return Ae.jsxs(Ri,{sx:o,children:[Ae.jsxs(xo,{justify:"space-between",align:"center",children:[Ae.jsx(xo,{align:"center",children:Ae.jsx(N1,{as:"h3",size:"lg",fontWeight:"bold",color:r,children:"Help us Improve Rasa Pro!"})}),Ae.jsx(MT,{"aria-label":"Close",icon:Ae.jsx(Q8e,{color:n}),size:"sm",onClick:e,bg:"transparent",_hover:{bg:"rgba(255, 255, 255, 0.2)"}})]}),Ae.jsxs(xo,{align:"center",mt:"0.5rem",justify:"space-between",children:[Ae.jsx(wi,{fontSize:"sm",color:r,children:"We're looking for users to share their feedback."}),Ae.jsx(dd,{as:"a",href:"https://feedback.rasa.com",target:"_blank",rel:"noopener noreferrer",color:"#7622D2",bg:"white",fontWeight:"bold",ml:"1rem",size:"sm",_hover:{bg:"whiteAlpha.800"},children:"Sign up"})]})]})},Y8e=e=>Ae.jsxs(Ri,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[Ae.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),Ae.jsx("path",{fill:"#fff",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),Ae.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),Z8e=e=>Ae.jsxs(Ri,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[Ae.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),Ae.jsx("path",{fill:"#7622D2",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),Ae.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),J8e=({sx:e,isRecruitmentVisible:t,...r})=>{const{rasaSpace:n}=Ks(),o={...e,color:t?"black":"neutral.50",bg:t?"white":void 0,bgGradient:t?void 0:"linear(to-b, #4E61E1, #7622D2)"},i={flexGrow:0,color:t?"#0000EE":"neutral.50",textDecoration:"underline",_hover:{color:t?"link.visited":"neutral.400"}};return Ae.jsxs(xo,{sx:o,...r,children:[Ae.jsxs(Ri,{children:[Ae.jsx(N1,{as:"h1",size:"xl",mb:n[1],children:"Rasa Inspector"}),Ae.jsx(wi,{as:"span",children:"New to the Inspector?"}),Ae.jsx(ZH,{sx:i,href:"https://rasa.com/docs/rasa-pro/production/inspect-assistant/",target:"_blank",ml:n[.25],children:"Browse the docs"})]}),t?Ae.jsx(Z8e,{sx:{flexShrink:0,marginLeft:"auto"}}):Ae.jsx(Y8e,{sx:{flexShrink:0,marginLeft:"auto"}})]})};function K8e(){const e=fH(),{rasaSpace:t,rasaRadii:r}=Ks(),[n,o]=ce.useState(""),[i,a]=ce.useState([]),[s,l]=ce.useState([]),[u,c]=ce.useState([]),[f,A]=ce.useState(""),[h,m]=ce.useState([]),[v,b]=ce.useState(void 0),[x,C]=ce.useState(null),[k,P]=ce.useState(!0),O=!window.location.href.includes("socketio"),L=window.location.href.replace("inspect.html","tracker_stream").replace("http","ws"),{sendJsonMessage:B,lastJsonMessage:M,readyState:F}=lve(L,{share:!1,shouldReconnect:()=>!0}),N=new URLSearchParams(window.location.search).get("token");ce.useEffect(()=>{F===s6.ReadyState.OPEN&&n&&B({action:"retrieve",sender_id:n})},[F,B,n]),ce.useEffect(()=>{if(!O)return;const J=yge.parse(window.location.search).sender;if(J&&J!==n)o(J);else if(!J&&n){const se=new URL(window.location.href);se.searchParams.set("sender",n),window.history.pushState(null,"",se.toString())}},[n,O]),ce.useEffect(()=>{WM.get("/flows",{params:{token:N}}).then(V=>a(V.data)).catch(V=>{e.isActive("flows")||e({id:"flows",title:"Flows could not be retrieved",description:(V==null?void 0:V.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})},[e]);function z(){WM.get(`/conversations/${n}/story`,{params:{token:N}}).then(V=>A(V.data)).catch(V=>{e.isActive("story-error")||e({id:"story-error",title:"Stories could not be retrieved",description:(V==null?void 0:V.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})}ce.useEffect(()=>{if(M)if(!n||(M==null?void 0:M.sender_id)===n){l(E6e(M.slots)),c(M.events);const V=O8e(M.stack,M.events);m(V),b(B8e(v,V,M.events)),o(M.sender_id),z()}else n&&M.sender_id},[M,n]);const R={borderRadius:r.normal},W={gridTemplateColumns:Qde({base:"21rem minmax(20rem, auto) 21rem","2xl":"25rem auto 25rem"}),gridTemplateRows:"1fr",gridColumnGap:t[1],height:"100vh",padding:t[2]},K={...R,padding:t[1],bg:Ho("neutral.50","neutral.50"),overflow:"hidden"},Y={height:"100%",overflow:"hidden",gridTemplateColumns:"1fr",gridTemplateRows:k?"max-content max-content minmax(10rem, auto)":"max-content minmax(10rem, 17.5rem) minmax(10rem, auto)",gridRowGap:t[1]},j=V=>{b({stack:V,activatedSteps:Y4(u)[V.flow_id],isUserSelected:!0})},H=()=>{P(!1)},$=ce.useCallback(V=>{C(J=>({...J,...V}))},[]);return ce.useEffect(()=>(window.location.href.includes("browser_audio")&&(window.updateLatency=$),()=>{delete window.updateLatency}),[$]),!n&&!window.location.href.includes("socketio")?Ae.jsx(U8e,{onLatencyUpdate:$}):Ae.jsxs(Q5,{sx:W,children:[Ae.jsx(V2,{overflow:"hidden",children:Ae.jsxs(Q5,{sx:Y,children:[Ae.jsx(J8e,{sx:K,isRecruitmentVisible:k}),k&&Ae.jsx(G8e,{onClose:H}),Ae.jsx(I8e,{sx:K,stack:h,active:v==null?void 0:v.stack,onItemClick:j}),Ae.jsx(M8e,{sx:K,rasaChatSessionId:n,slots:s,events:u,story:f,latency:x})]})}),Ae.jsx(V2,{sx:K,children:Ae.jsx(D6e,{stackFrame:v==null?void 0:v.stack,stepTrail:(v==null?void 0:v.activatedSteps)||[],flows:i,slots:s})}),O&&Ae.jsx(V2,{children:Ae.jsx(hbe,{events:u||[]})})]})}w9.createRoot(document.getElementById("root")).render(Ae.jsx(na.StrictMode,{children:Ae.jsx($ce,{theme:k6e,children:Ae.jsx(K8e,{})})}));/*! For license information please see widget.js.LICENSE.txt */(()=>{var e={67640:(n,o,i)=>{i.d(o,{Ni:()=>v,F4:()=>k,Xn:()=>b});var a=i(64343),s=function(){function L(M){this.isSpeedy=M.speedy===void 0||M.speedy,this.tags=[],this.ctr=0,this.nonce=M.nonce,this.key=M.key,this.container=M.container,this.before=null}var B=L.prototype;return B.insert=function(M){if(this.ctr%(this.isSpeedy?65e3:1)==0){var F,N=function(W){var K=document.createElement("style");return K.setAttribute("data-emotion",W.key),W.nonce!==void 0&&K.setAttribute("nonce",W.nonce),K.appendChild(document.createTextNode("")),K}(this);F=this.tags.length===0?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(N,F),this.tags.push(N)}var z=this.tags[this.tags.length-1];if(this.isSpeedy){var R=function(W){if(W.sheet)return W.sheet;for(var K=0;K<document.styleSheets.length;K++)if(document.styleSheets[K].ownerNode===W)return document.styleSheets[K]}(z);try{var U=M.charCodeAt(1)===105&&M.charCodeAt(0)===64;R.insertRule(M,U?0:R.cssRules.length)}catch{}}else z.appendChild(document.createTextNode(M));this.ctr++},B.flush=function(){this.tags.forEach(function(M){return M.parentNode.removeChild(M)}),this.tags=[],this.ctr=0},L}();const l=function(L){function B(st,dt,ht,St,Re){for(var Ge,Ue,Ct,it,lt,kt=0,yt=0,ot=0,gt=0,Pt=0,Jt=0,qt=Ct=Ge=0,tr=0,Rr=0,hr=0,Gr=0,Ln=ht.length,$r=Ln-1,Ut="",Xr="",Qn="",Pn="";tr<Ln;){if(Ue=ht.charCodeAt(tr),tr===$r&&yt+gt+ot+kt!==0&&(yt!==0&&(Ue=yt===47?10:47),gt=ot=kt=0,Ln++,$r++),yt+gt+ot+kt===0){if(tr===$r&&(0<Rr&&(Ut=Ut.replace(j,"")),0<Ut.trim().length)){switch(Ue){case 32:case 9:case 59:case 13:case 10:break;default:Ut+=ht.charAt(tr)}Ue=59}switch(Ue){case 123:for(Ge=(Ut=Ut.trim()).charCodeAt(0),Ct=1,Gr=++tr;tr<Ln;){switch(Ue=ht.charCodeAt(tr)){case 123:Ct++;break;case 125:Ct--;break;case 47:switch(Ue=ht.charCodeAt(tr+1)){case 42:case 47:e:{for(qt=tr+1;qt<$r;++qt)switch(ht.charCodeAt(qt)){case 47:if(Ue===42&&ht.charCodeAt(qt-1)===42&&tr+2!==qt){tr=qt+1;break e}break;case 10:if(Ue===47){tr=qt+1;break e}}tr=qt}}break;case 91:Ue++;case 40:Ue++;case 34:case 39:for(;tr++<$r&&ht.charCodeAt(tr)!==Ue;);}if(Ct===0)break;tr++}switch(Ct=ht.substring(Gr,tr),Ge===0&&(Ge=(Ut=Ut.replace(Y,"").trim()).charCodeAt(0)),Ge){case 64:switch(0<Rr&&(Ut=Ut.replace(j,"")),Ue=Ut.charCodeAt(1)){case 100:case 109:case 115:case 45:Rr=dt;break;default:Rr=pe}if(Gr=(Ct=B(dt,Rr,Ct,Ue,Re+1)).length,0<xt&&(lt=U(3,Ct,Rr=M(pe,Ut,hr),dt,ft,oe,Gr,Ue,Re,St),Ut=Rr.join(""),lt!==void 0&&(Gr=(Ct=lt.trim()).length)===0&&(Ue=0,Ct="")),0<Gr)switch(Ue){case 115:Ut=Ut.replace(Le,R);case 100:case 109:case 45:Ct=Ut+"{"+Ct+"}";break;case 107:Ct=(Ut=Ut.replace(G,"$1 $2"))+"{"+Ct+"}",Ct=qe===1||qe===2&&z("@"+Ct,3)?"@-webkit-"+Ct+"@"+Ct:"@"+Ct;break;default:Ct=Ut+Ct,St===112&&(Xr+=Ct,Ct="")}else Ct="";break;default:Ct=B(dt,M(dt,Ut,hr),Ct,St,Re+1)}Qn+=Ct,Ct=hr=Rr=qt=Ge=0,Ut="",Ue=ht.charCodeAt(++tr);break;case 125:case 59:if(1<(Gr=(Ut=(0<Rr?Ut.replace(j,""):Ut).trim()).length))switch(qt===0&&(Ge=Ut.charCodeAt(0),Ge===45||96<Ge&&123>Ge)&&(Gr=(Ut=Ut.replace(" ",":")).length),0<xt&&(lt=U(1,Ut,dt,st,ft,oe,Xr.length,St,Re,St))!==void 0&&(Gr=(Ut=lt.trim()).length)===0&&(Ut="\0\0"),Ge=Ut.charCodeAt(0),Ue=Ut.charCodeAt(1),Ge){case 0:break;case 64:if(Ue===105||Ue===99){Pn+=Ut+ht.charAt(tr);break}default:Ut.charCodeAt(Gr-1)!==58&&(Xr+=N(Ut,Ge,Ue,Ut.charCodeAt(2)))}hr=Rr=qt=Ge=0,Ut="",Ue=ht.charCodeAt(++tr)}}switch(Ue){case 13:case 10:yt===47?yt=0:1+Ge===0&&St!==107&&0<Ut.length&&(Rr=1,Ut+="\0"),0<xt*Vt&&U(0,Ut,dt,st,ft,oe,Xr.length,St,Re,St),oe=1,ft++;break;case 59:case 125:if(yt+gt+ot+kt===0){oe++;break}default:switch(oe++,it=ht.charAt(tr),Ue){case 9:case 32:if(gt+kt+yt===0)switch(Pt){case 44:case 58:case 9:case 32:it="";break;default:Ue!==32&&(it=" ")}break;case 0:it="\\0";break;case 12:it="\\f";break;case 11:it="\\v";break;case 38:gt+yt+kt===0&&(Rr=hr=1,it="\f"+it);break;case 108:if(gt+yt+kt+nt===0&&0<qt)switch(tr-qt){case 2:Pt===112&&ht.charCodeAt(tr-3)===58&&(nt=Pt);case 8:Jt===111&&(nt=Jt)}break;case 58:gt+yt+kt===0&&(qt=tr);break;case 44:yt+ot+gt+kt===0&&(Rr=1,it+="\r");break;case 34:case 39:yt===0&&(gt=gt===Ue?0:gt===0?Ue:gt);break;case 91:gt+yt+ot===0&&kt++;break;case 93:gt+yt+ot===0&&kt--;break;case 41:gt+yt+kt===0&&ot--;break;case 40:if(gt+yt+kt===0){if(Ge===0)switch(2*Pt+3*Jt){case 533:break;default:Ge=1}ot++}break;case 64:yt+ot+gt+kt+qt+Ct===0&&(Ct=1);break;case 42:case 47:if(!(0<gt+kt+ot))switch(yt){case 0:switch(2*Ue+3*ht.charCodeAt(tr+1)){case 235:yt=47;break;case 220:Gr=tr,yt=42}break;case 42:Ue===47&&Pt===42&&Gr+2!==tr&&(ht.charCodeAt(Gr+2)===33&&(Xr+=ht.substring(Gr,tr+1)),it="",yt=0)}}yt===0&&(Ut+=it)}Jt=Pt,Pt=Ue,tr++}if(0<(Gr=Xr.length)){if(Rr=dt,0<xt&&(lt=U(2,Xr,Rr,st,ft,oe,Gr,St,Re,St))!==void 0&&(Xr=lt).length===0)return Pn+Xr+Qn;if(Xr=Rr.join(",")+"{"+Xr+"}",qe*nt!=0){switch(qe!==2||z(Xr,2)||(nt=0),nt){case 111:Xr=Xr.replace(be,":-moz-$1")+Xr;break;case 112:Xr=Xr.replace(le,"::-webkit-input-$1")+Xr.replace(le,"::-moz-$1")+Xr.replace(le,":-ms-input-$1")+Xr}nt=0}}return Pn+Xr+Qn}function M(st,dt,ht){var St=dt.trim().split(J);dt=St;var Re=St.length,Ge=st.length;switch(Ge){case 0:case 1:var Ue=0;for(st=Ge===0?"":st[0]+" ";Ue<Re;++Ue)dt[Ue]=F(st,dt[Ue],ht).trim();break;default:var Ct=Ue=0;for(dt=[];Ue<Re;++Ue)for(var it=0;it<Ge;++it)dt[Ct++]=F(st[it]+" ",St[Ue],ht).trim()}return dt}function F(st,dt,ht){var St=dt.charCodeAt(0);switch(33>St&&(St=(dt=dt.trim()).charCodeAt(0)),St){case 38:return dt.replace(se,"$1"+st.trim());case 58:return st.trim()+dt.replace(se,"$1"+st.trim());default:if(0<1*ht&&0<dt.indexOf("\f"))return dt.replace(se,(st.charCodeAt(0)===58?"":"$1")+st.trim())}return st+dt}function N(st,dt,ht,St){var Re=st+";",Ge=2*dt+3*ht+4*St;if(Ge===944){st=Re.indexOf(":",9)+1;var Ue=Re.substring(st,Re.length-1).trim();return Ue=Re.substring(0,st).trim()+Ue+";",qe===1||qe===2&&z(Ue,1)?"-webkit-"+Ue+Ue:Ue}if(qe===0||qe===2&&!z(Re,1))return Re;switch(Ge){case 1015:return Re.charCodeAt(10)===97?"-webkit-"+Re+Re:Re;case 951:return Re.charCodeAt(3)===116?"-webkit-"+Re+Re:Re;case 963:return Re.charCodeAt(5)===110?"-webkit-"+Re+Re:Re;case 1009:if(Re.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+Re+Re;case 978:return"-webkit-"+Re+"-moz-"+Re+Re;case 1019:case 983:return"-webkit-"+Re+"-moz-"+Re+"-ms-"+Re+Re;case 883:if(Re.charCodeAt(8)===45)return"-webkit-"+Re+Re;if(0<Re.indexOf("image-set(",11))return Re.replace(_e,"$1-webkit-$2")+Re;break;case 932:if(Re.charCodeAt(4)===45)switch(Re.charCodeAt(5)){case 103:return"-webkit-box-"+Re.replace("-grow","")+"-webkit-"+Re+"-ms-"+Re.replace("grow","positive")+Re;case 115:return"-webkit-"+Re+"-ms-"+Re.replace("shrink","negative")+Re;case 98:return"-webkit-"+Re+"-ms-"+Re.replace("basis","preferred-size")+Re}return"-webkit-"+Re+"-ms-"+Re+Re;case 964:return"-webkit-"+Re+"-ms-flex-"+Re+Re;case 1023:if(Re.charCodeAt(8)!==99)break;return"-webkit-box-pack"+(Ue=Re.substring(Re.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+Re+"-ms-flex-pack"+Ue+Re;case 1005:return $.test(Re)?Re.replace(H,":-webkit-")+Re.replace(H,":-moz-")+Re:Re;case 1e3:switch(dt=(Ue=Re.substring(13).trim()).indexOf("-")+1,Ue.charCodeAt(0)+Ue.charCodeAt(dt)){case 226:Ue=Re.replace(ue,"tb");break;case 232:Ue=Re.replace(ue,"tb-rl");break;case 220:Ue=Re.replace(ue,"lr");break;default:return Re}return"-webkit-"+Re+"-ms-"+Ue+Re;case 1017:if(Re.indexOf("sticky",9)===-1)break;case 975:switch(dt=(Re=st).length-10,Ge=(Ue=(Re.charCodeAt(dt)===33?Re.substring(0,dt):Re).substring(st.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|Ue.charCodeAt(7))){case 203:if(111>Ue.charCodeAt(8))break;case 115:Re=Re.replace(Ue,"-webkit-"+Ue)+";"+Re;break;case 207:case 102:Re=Re.replace(Ue,"-webkit-"+(102<Ge?"inline-":"")+"box")+";"+Re.replace(Ue,"-webkit-"+Ue)+";"+Re.replace(Ue,"-ms-"+Ue+"box")+";"+Re}return Re+";";case 938:if(Re.charCodeAt(5)===45)switch(Re.charCodeAt(6)){case 105:return Ue=Re.replace("-items",""),"-webkit-"+Re+"-webkit-box-"+Ue+"-ms-flex-"+Ue+Re;case 115:return"-webkit-"+Re+"-ms-flex-item-"+Re.replace(Oe,"")+Re;default:return"-webkit-"+Re+"-ms-flex-line-pack"+Re.replace("align-content","").replace(Oe,"")+Re}break;case 973:case 989:if(Re.charCodeAt(3)!==45||Re.charCodeAt(4)===122)break;case 931:case 953:if(rt.test(st)===!0)return(Ue=st.substring(st.indexOf(":")+1)).charCodeAt(0)===115?N(st.replace("stretch","fill-available"),dt,ht,St).replace(":fill-available",":stretch"):Re.replace(Ue,"-webkit-"+Ue)+Re.replace(Ue,"-moz-"+Ue.replace("fill-",""))+Re;break;case 962:if(Re="-webkit-"+Re+(Re.charCodeAt(5)===102?"-ms-"+Re:"")+Re,ht+St===211&&Re.charCodeAt(13)===105&&0<Re.indexOf("transform",10))return Re.substring(0,Re.indexOf(";",27)+1).replace(V,"$1-webkit-$2")+Re}return Re}function z(st,dt){var ht=st.indexOf(dt===1?":":"{"),St=st.substring(0,dt!==3?ht:10);return ht=st.substring(ht+1,st.length-1),It(dt!==2?St:St.replace(je,"$1"),ht,dt)}function R(st,dt){var ht=N(dt,dt.charCodeAt(0),dt.charCodeAt(1),dt.charCodeAt(2));return ht!==dt+";"?ht.replace(ve," or ($1)").substring(4):"("+dt+")"}function U(st,dt,ht,St,Re,Ge,Ue,Ct,it,lt){for(var kt,yt=0,ot=dt;yt<xt;++yt)switch(kt=Mt[yt].call(K,st,ot,ht,St,Re,Ge,Ue,Ct,it,lt)){case void 0:case!1:case!0:case null:break;default:ot=kt}if(ot!==dt)return ot}function W(st){return(st=st.prefix)!==void 0&&(It=null,st?typeof st!="function"?qe=1:(qe=2,It=st):qe=0),W}function K(st,dt){var ht=st;if(33>ht.charCodeAt(0)&&(ht=ht.trim()),ht=[ht],0<xt){var St=U(-1,dt,ht,ht,ft,oe,0,0,0,0);St!==void 0&&typeof St=="string"&&(dt=St)}var Re=B(pe,ht,dt,0,0);return 0<xt&&(St=U(-2,Re,ht,ht,ft,oe,Re.length,0,0,0))!==void 0&&(Re=St),nt=0,oe=ft=1,Re}var Y=/^\0+/g,j=/[\0\r\f]/g,H=/: */g,$=/zoo|gra/,V=/([,: ])(transform)/g,J=/,\r+?/g,se=/([\t\r\n ])*\f?&/g,G=/@(k\w+)\s*(\S*)\s*/,le=/::(place)/g,be=/:(read-only)/g,ue=/[svh]\w+-[tblr]{2}/,Le=/\(\s*(.*)\s*\)/g,ve=/([\s\S]*?);/g,Oe=/-self|flex-/g,je=/[^]*?(:[rp][el]a[\w-]+)[^]*/,rt=/stretch|:\s*\w+\-(?:conte|avail)/,_e=/([^-])(image-set\()/,oe=1,ft=1,nt=0,qe=1,pe=[],Mt=[],xt=0,It=null,Vt=0;return K.use=function st(dt){switch(dt){case void 0:case null:xt=Mt.length=0;break;default:if(typeof dt=="function")Mt[xt++]=dt;else if(typeof dt=="object")for(var ht=0,St=dt.length;ht<St;++ht)st(dt[ht]);else Vt=0|!!dt}return st},K.set=W,L!==void 0&&W(L),K};var u="/*|*/";function c(L){L&&f.current.insert(L+"}")}var f={current:null},A=function(L,B,M,F,N,z,R,U,W,K){switch(L){case 1:switch(B.charCodeAt(0)){case 64:return f.current.insert(B+";"),"";case 108:if(B.charCodeAt(2)===98)return""}break;case 2:if(U===0)return B+u;break;case 3:switch(U){case 102:case 112:return f.current.insert(M[0]+B),"";default:return B+(K===0?u:"")}case-2:B.split("/*|*/}").forEach(c)}};i(43988);var h=i(5601),m=(0,a.createContext)(typeof HTMLElement<"u"?function(L){L===void 0&&(L={});var B,M=L.key||"css";L.prefix!==void 0&&(B={prefix:L.prefix});var F,N=new l(B),z={};F=L.container||document.head;var R,U=document.querySelectorAll("style[data-emotion-"+M+"]");Array.prototype.forEach.call(U,function(K){K.getAttribute("data-emotion-"+M).split(" ").forEach(function(Y){z[Y]=!0}),K.parentNode!==F&&F.appendChild(K)}),N.use(L.stylisPlugins)(A),R=function(K,Y,j,H){var $=Y.name;f.current=j,N(K,Y.styles),H&&(W.inserted[$]=!0)};var W={key:M,sheet:new s({key:M,container:F,nonce:L.nonce,speedy:L.speedy}),nonce:L.nonce,inserted:z,registered:{},insert:R};return W}():null),v=(0,a.createContext)({}),b=(m.Provider,function(L){var B=function(M,F){return(0,a.createElement)(m.Consumer,null,function(N){return L(M,N,F)})};return(0,a.forwardRef)(B)}),x=i(46546);const C=function(){for(var L=arguments.length,B=new Array(L),M=0;M<L;M++)B[M]=arguments[M];return(0,h.O)(B)};a.Component;var k=function(){var L=C.apply(void 0,arguments),B="animation-"+L.name;return{name:B,styles:"@keyframes "+B+"{"+L.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},P=function L(B){for(var M=B.length,F=0,N="";F<M;F++){var z=B[F];if(z!=null){var R=void 0;switch(typeof z){case"boolean":break;case"object":if(Array.isArray(z))R=L(z);else for(var U in R="",z)z[U]&&U&&(R&&(R+=" "),R+=U);break;default:R=z}R&&(N&&(N+=" "),N+=R)}}return N};function O(L,B,M){var F=[],N=(0,x.f)(L,F,M);return F.length<2?M:N+B(F)}b(function(L,B){return(0,a.createElement)(v.Consumer,null,function(M){var F=function(){for(var z=arguments.length,R=new Array(z),U=0;U<z;U++)R[U]=arguments[U];var W=(0,h.O)(R,B.registered);return(0,x.M)(B,W,!1),B.key+"-"+W.name},N={css:F,cx:function(){for(var z=arguments.length,R=new Array(z),U=0;U<z;U++)R[U]=arguments[U];return O(B.registered,F,P(R))},theme:M};return L.children(N)})})},55287:(n,o,i)=>{i.r(o),i.d(o,{default:()=>k});var a=i(1258),s=i.n(a),l=i(64343),u=i(90240),c=i(67640),f=i(46546),A=i(5601),h=u.Z,m=function(P){return P!=="theme"&&P!=="innerRef"},v=function(P){return typeof P=="string"&&P.charCodeAt(0)>96?h:m};function b(P,O){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(P);O&&(B=B.filter(function(M){return Object.getOwnPropertyDescriptor(P,M).enumerable})),L.push.apply(L,B)}return L}function x(P){for(var O=1;O<arguments.length;O++){var L=arguments[O]!=null?arguments[O]:{};O%2?b(L,!0).forEach(function(B){s()(P,B,L[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):b(L).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(L,B))})}return P}var C=(function P(O,L){var B,M,F;L!==void 0&&(B=L.label,F=L.target,M=O.__emotion_forwardProp&&L.shouldForwardProp?function(W){return O.__emotion_forwardProp(W)&&L.shouldForwardProp(W)}:L.shouldForwardProp);var N=O.__emotion_real===O,z=N&&O.__emotion_base||O;typeof M!="function"&&N&&(M=O.__emotion_forwardProp);var R=M||v(z),U=!R("as");return function(){var W=arguments,K=N&&O.__emotion_styles!==void 0?O.__emotion_styles.slice(0):[];if(B!==void 0&&K.push("label:"+B+";"),W[0]==null||W[0].raw===void 0)K.push.apply(K,W);else{K.push(W[0][0]);for(var Y=W.length,j=1;j<Y;j++)K.push(W[j],W[0][j])}var H=(0,c.Xn)(function($,V,J){return(0,l.createElement)(c.Ni.Consumer,null,function(se){var G=U&&$.as||z,le="",be=[],ue=$;if($.theme==null){for(var Le in ue={},$)ue[Le]=$[Le];ue.theme=se}typeof $.className=="string"?le=(0,f.f)(V.registered,be,$.className):$.className!=null&&(le=$.className+" ");var ve=(0,A.O)(K.concat(be),V.registered,ue);(0,f.M)(V,ve,typeof G=="string"),le+=V.key+"-"+ve.name,F!==void 0&&(le+=" "+F);var Oe=U&&M===void 0?v(G):R,je={};for(var rt in $)U&&rt==="as"||Oe(rt)&&(je[rt]=$[rt]);return je.className=le,je.ref=J||$.innerRef,(0,l.createElement)(G,je)})});return H.displayName=B!==void 0?B:"Styled("+(typeof z=="string"?z:z.displayName||z.name||"Component")+")",H.defaultProps=O.defaultProps,H.__emotion_real=H,H.__emotion_base=z,H.__emotion_styles=K,H.__emotion_forwardProp=M,Object.defineProperty(H,"toString",{value:function(){return"."+F}}),H.withComponent=function($,V){return P($,V!==void 0?x({},L||{},{},V):L).apply(void 0,K)},H}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(P){C[P]=C(P)});const k=C},9106:(n,o,i)=>{o.formatArgs=function(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;s.splice(1,0,l,"color: inherit");let u=0,c=0;s[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(c=u))}),s.splice(c,0,l)},o.save=function(s){try{s?o.storage.setItem("debug",s):o.storage.removeItem("debug")}catch{}},o.load=function(){let s;try{s=o.storage.getItem("debug")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s={}.DEBUG),s},o.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},o.storage=function(){try{return localStorage}catch{}}(),o.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),o.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],o.log=console.debug||console.log||(()=>{}),n.exports=i(42415)(o);const{formatters:a}=n.exports;a.j=function(s){try{return JSON.stringify(s)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}},42415:(n,o,i)=>{n.exports=function(a){function s(c){let f,A,h,m=null;function v(...b){if(!v.enabled)return;const x=v,C=Number(new Date),k=C-(f||C);x.diff=k,x.prev=f,x.curr=C,f=C,b[0]=s.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let P=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(O,L)=>{if(O==="%%")return"%";P++;const B=s.formatters[L];if(typeof B=="function"){const M=b[P];O=B.call(x,M),b.splice(P,1),P--}return O}),s.formatArgs.call(x,b),(x.log||s.log).apply(x,b)}return v.namespace=c,v.useColors=s.useColors(),v.color=s.selectColor(c),v.extend=l,v.destroy=s.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(A!==s.namespaces&&(A=s.namespaces,h=s.enabled(c)),h),set:b=>{m=b}}),typeof s.init=="function"&&s.init(v),v}function l(c,f){const A=s(this.namespace+(f===void 0?":":f)+c);return A.log=this.log,A}function u(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(c){return c instanceof Error?c.stack||c.message:c},s.disable=function(){const c=[...s.names.map(u),...s.skips.map(u).map(f=>"-"+f)].join(",");return s.enable(""),c},s.enable=function(c){let f;s.save(c),s.namespaces=c,s.names=[],s.skips=[];const A=(typeof c=="string"?c:"").split(/[\s,]+/),h=A.length;for(f=0;f<h;f++)A[f]&&((c=A[f].replace(/\*/g,".*?"))[0]==="-"?s.skips.push(new RegExp("^"+c.substr(1)+"$")):s.names.push(new RegExp("^"+c+"$")))},s.enabled=function(c){if(c[c.length-1]==="*")return!0;let f,A;for(f=0,A=s.skips.length;f<A;f++)if(s.skips[f].test(c))return!1;for(f=0,A=s.names.length;f<A;f++)if(s.names[f].test(c))return!0;return!1},s.humanize=i(199),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{s[c]=a[c]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(c){let f=0;for(let A=0;A<c.length;A++)f=(f<<5)-f+c.charCodeAt(A),f|=0;return s.colors[Math.abs(f)%s.colors.length]},s.enable(s.load()),s}},48076:(n,o,i)=>{var a=i(64343),s=i(90518),l=i(2778);function u(p){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+p,E=1;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E]);return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!a)throw Error(u(227));var c=new Set,f={};function A(p,y){h(p,y),h(p+"Capture",y)}function h(p,y){for(f[p]=y,p=0;p<y.length;p++)c.add(y[p])}var m=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b=Object.prototype.hasOwnProperty,x={},C={};function k(p,y,E,D,X,ee,ne){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=D,this.attributeNamespace=X,this.mustUseProperty=E,this.propertyName=p,this.type=y,this.sanitizeURL=ee,this.removeEmptyString=ne}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){P[p]=new k(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var y=p[0];P[y]=new k(y,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){P[p]=new k(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){P[p]=new k(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){P[p]=new k(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){P[p]=new k(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){P[p]=new k(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){P[p]=new k(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){P[p]=new k(p,5,!1,p.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function L(p){return p[1].toUpperCase()}function B(p,y,E,D){var X=P.hasOwnProperty(y)?P[y]:null;(X!==null?X.type===0:!D&&2<y.length&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))||(function(ee,ne,ge,Ee){if(ne==null||function(Ie,pt,_t,wt){if(_t!==null&&_t.type===0)return!1;switch(typeof pt){case"function":case"symbol":return!0;case"boolean":return!wt&&(_t!==null?!_t.acceptsBooleans:(Ie=Ie.toLowerCase().slice(0,5))!=="data-"&&Ie!=="aria-");default:return!1}}(ee,ne,ge,Ee))return!0;if(Ee)return!1;if(ge!==null)switch(ge.type){case 3:return!ne;case 4:return ne===!1;case 5:return isNaN(ne);case 6:return isNaN(ne)||1>ne}return!1}(y,E,X,D)&&(E=null),D||X===null?function(ee){return!!b.call(C,ee)||!b.call(x,ee)&&(v.test(ee)?C[ee]=!0:(x[ee]=!0,!1))}(y)&&(E===null?p.removeAttribute(y):p.setAttribute(y,""+E)):X.mustUseProperty?p[X.propertyName]=E===null?X.type!==3&&"":E:(y=X.attributeName,D=X.attributeNamespace,E===null?p.removeAttribute(y):(E=(X=X.type)===3||X===4&&E===!0?"":""+E,D?p.setAttributeNS(D,y,E):p.setAttribute(y,E))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!1,!1)}),P.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!0,!0)});var M=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=60103,N=60106,z=60107,R=60108,U=60114,W=60109,K=60110,Y=60112,j=60113,H=60120,$=60115,V=60116,J=60121,se=60128,G=60129,le=60130,be=60131;if(typeof Symbol=="function"&&Symbol.for){var ue=Symbol.for;F=ue("react.element"),N=ue("react.portal"),z=ue("react.fragment"),R=ue("react.strict_mode"),U=ue("react.profiler"),W=ue("react.provider"),K=ue("react.context"),Y=ue("react.forward_ref"),j=ue("react.suspense"),H=ue("react.suspense_list"),$=ue("react.memo"),V=ue("react.lazy"),J=ue("react.block"),ue("react.scope"),se=ue("react.opaque.id"),G=ue("react.debug_trace_mode"),le=ue("react.offscreen"),be=ue("react.legacy_hidden")}var Le,ve=typeof Symbol=="function"&&Symbol.iterator;function Oe(p){return p===null||typeof p!="object"?null:typeof(p=ve&&p[ve]||p["@@iterator"])=="function"?p:null}function je(p){if(Le===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);Le=y&&y[1]||""}return`
|
|
806
|
+
raw data of voice latency: ${t}`),Ae.jsx(wi,{children:"Latency data is not available yet"})):Ae.jsx(wi,{children:"Rasa latency data is not available yet"});function R7(e){return Array.isArray(e)}function F7(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function m8e(e,t){return JSON.stringify(e)===JSON.stringify(t)}function jW(e){return e.slice(0,e.length-1)}function g8e(e){return e[e.length-1]}function HW(e){return typeof e=="object"&&e!==null}function aP(e){if(R7(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(r=>{t[r]=e[r]}),t}else if(F7(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(r=>{t[r]=e[r]}),t}else return e}function sP(e,t,r){if(e[t]===r)return e;{const n=aP(e);return n[t]=r,n}}function Og(e,t){let r=e,n=0;for(;n<t.length;)F7(r)?r=r[t[n]]:R7(r)?r=r[parseInt(t[n])]:r=void 0,n++;return r}function eb(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return r;const o=t[0],i=eb(e?e[o]:void 0,t.slice(1),r,n);if(F7(e)||R7(e))return sP(e,o,i);if(n){const a=v8e.test(o)?[]:{};return a[o]=i,a}else throw new Error("Path does not exist")}const v8e=/^\d+$/;function _W(e,t,r){if(t.length===0)return r(e);if(!HW(e))throw new Error("Path doesn't exist");const n=t[0],o=_W(e[n],t.slice(1),r);return sP(e,n,o)}function lP(e,t){if(t.length===0)return e;if(!HW(e))throw new Error("Path does not exist");if(t.length===1){const o=t[0];if(o in e){const i=aP(e);return R7(i)&&i.splice(parseInt(o),1),F7(i)&&delete i[o],i}else return e}const r=t[0],n=lP(e[r],t.slice(1));return sP(e,r,n)}function uP(e,t,r){const n=t.slice(0,t.length-1),o=t[t.length-1];return _W(e,n,i=>{if(!Array.isArray(i))throw new TypeError("Array expected at path "+JSON.stringify(n));const a=aP(i);return a.splice(parseInt(o),0,r),a})}function XW(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:XW(e[t[0]],t.slice(1))}function VW(e){const t=e.split("/");return t.shift(),t.map(r=>r.replace(/~1/g,"/").replace(/~0/g,"~"))}function y9(e){return e.map(y8e).join("")}function y8e(e){return"/"+String(e).replace(/~/g,"~0").replace(/\//g,"~1")}function qW(e,t,r){let n=e;for(let o=0;o<t.length;o++){T8e(t[o]);let i=t[o];if(r&&r.before){const l=r.before(n,i);if(l!==void 0){if(l.document!==void 0&&(n=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(i=l.operation)}}const a=n,s=P8e(n,i.path);if(i.op==="add")n=x8e(n,s,i.value);else if(i.op==="remove")n=w8e(n,s);else if(i.op==="replace")n=b8e(n,s,i.value);else if(i.op==="copy")n=C8e(n,s,bN(i.from));else if(i.op==="move")n=S8e(n,s,bN(i.from));else if(i.op==="test")k8e(n,s,i.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(i));if(r&&r.after){const l=r.after(n,i,a);l!==void 0&&(n=l)}}return n}function b8e(e,t,r){return eb(e,t,r)}function w8e(e,t){return lP(e,t)}function x8e(e,t,r){return cP(e,t)?uP(e,t,r):eb(e,t,r)}function C8e(e,t,r){const n=Og(e,r);if(cP(e,t))return uP(e,t,n);{const o=Og(e,r);return eb(e,t,o)}}function S8e(e,t,r){const n=Og(e,r),o=lP(e,r);return cP(o,t)?uP(o,t,n):eb(o,t,n)}function k8e(e,t,r){if(r===void 0)throw new Error(`Test failed: no value provided (path: "${y9(t)}")`);if(!XW(e,t))throw new Error(`Test failed: path not found (path: "${y9(t)}")`);const n=Og(e,t);if(!m8e(n,r))throw new Error(`Test failed, value differs (path: "${y9(t)}")`)}function cP(e,t){if(t.length===0)return!1;const r=Og(e,jW(t));return Array.isArray(r)}function E8e(e,t){if(g8e(t)!=="-")return t;const r=jW(t),n=Og(e,r);return r.concat(n.length)}function T8e(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(e.op));if(typeof e.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(e));if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(e))}function P8e(e,t){return E8e(e,VW(t))}function bN(e){return VW(e)}const WW=e=>{if(!e)return!1;const t=e.length;return t>10&&t<89},O8e=(e,t)=>{let r=e.map(i=>({...i,ended:!1})),n=[],o=[];for(const i of t)if(i.event==="restart")n=[],r=[];else if(i.event==="stack"){let a=JSON.parse(i.update||"");n=qW(n,a);for(const s of n){if(!s.flow_id||r.find(u=>u.frame_id===s.frame_id))continue;const l=o.find(u=>u.frame_id===s.frame_id);if(l){l.step_id=s.step_id;continue}o.push({...s,ended:!0})}}return o=o.filter(i=>i.flow_id!=="pattern_collect_information"),[...o,...r]},Y4=e=>{let t=[],r={};for(const n of e)if(n.event==="restart")t=[],r={};else if(n.event==="stack"){let o=JSON.parse(n.update||"");if(t=qW(t,o),t.length>0){let i=t[t.length-1];if(!i.flow_id)continue;(!r[i.flow_id]||i.step_id==="START")&&(r[i.flow_id]=[]),r[i.flow_id].includes(i.step_id)||r[i.flow_id].push(i.step_id)}}return r},B8e=(e,t,r)=>{e!=null&&e.isUserSelected||(e=void 0);const n=t.find(o=>o.frame_id===(e==null?void 0:e.stack.frame_id));if(!n||n.ended){if(!t)return;const o=t.slice().reverse().find(i=>{var a;return!((a=i.flow_id)!=null&&a.startsWith("pattern_"))&&!i.ended})||t.slice().reverse().find(i=>!i.ended)||t[t.length-1];return o!==void 0?{stack:o,isUserSelected:!1,activatedSteps:Y4(r)[o.flow_id]||[]}:void 0}else return e&&(e.activatedSteps=Y4(r)[e.stack.flow_id]||[],e.stack=n),e},UW=({slots:e})=>{const{rasaFontSizes:t}=Ks(),r={background:Ho("neutral.50","neutral.50"),fontSize:t.sm,letterSpacing:"0"};return Ae.jsxs(zC,{width:"100%",layout:"fixed",children:[Ae.jsx(E_,{children:Ae.jsxs($y,{children:[Ae.jsx(ux,{w:"50%",children:"Name"}),Ae.jsx(ux,{children:"Value"})]})}),Ae.jsx(JT,{children:e.map(n=>Ae.jsxs($y,{children:[Ae.jsx(vg,{children:WW(n.name)?Ae.jsx(yg,{label:n.name,hasArrow:!0,children:Ae.jsx(wi,{noOfLines:1,children:n.name})}):Ae.jsx(wi,{noOfLines:1,children:n.name})}),Ae.jsx(vg,{children:Ae.jsx(q0,{customStyle:r,children:JSON.stringify(n.value,null,2)})})]},n.name))})]})},L8e=({sx:e,slots:t,...r})=>{const{rasaSpace:n}=Ks(),o={...e,pr:0,pb:0,position:"relative",flexDirection:"column"},i={height:"100%",overflow:"auto",pr:n[1],pb:n[.5]},a=t.length?t:[{name:"-",value:"-"}];return Ae.jsx(xo,{sx:o,...r,children:Ae.jsx(Ri,{sx:i,children:Ae.jsx(UW,{slots:a})})})},M8e=({sx:e,rasaChatSessionId:t="-",events:r,story:n,slots:o,latency:i,...a})=>{var O,L;const s=fH(),{rasaSpace:l,rasaFontSizes:u}=Ks(),[c,f]=u8e(),A={...e,p:0,flexDirection:"column"},h={height:"100%",display:"flex",flexDirection:"column"},m={px:l[1],py:l[.5],borderBottom:"1px solid",borderColor:Ho("neutral.400","neutral.400")},v={height:"100%",overflow:"hidden",padding:l[.5],position:"relative"},b={height:"100%",overflow:"auto",padding:l[.5]},x={background:Ho("neutral.50","neutral.50"),fontSize:u.sm,letterSpacing:"0"},C={position:"absolute",bg:Ho("neutral.50","neutral.50"),right:l[1],bottom:l[1]};ce.useEffect(()=>{s.isActive("copy-to-clipboard")||!c||s({id:"copy-to-clipboard",title:"Text copied to clipboard",status:"success",duration:2e3,isClosable:!0})},[c,s]);const k=T6e(r,t),P=(L=(O=D8e(r))==null?void 0:O.metadata)==null?void 0:L.execution_times;return Ae.jsx(xo,{sx:A,...a,children:Ae.jsxs(O_,{sx:h,size:"sm",variant:"solid-rounded",colorScheme:"rasaPurple",children:[Ae.jsxs(B_,{sx:m,children:[Ae.jsx(h2,{children:"Slots"}),Ae.jsx(h2,{children:"End-2-end test"}),Ae.jsx(h2,{children:"Tracker state"}),Ae.jsx(h2,{children:"Latency"})]}),Ae.jsxs(L_,{height:"100%",overflow:"hidden",children:[Ae.jsxs(N0,{sx:v,children:[Ae.jsx(Ri,{sx:b,children:Ae.jsx(L8e,{slots:o})}),Ae.jsx(X2,{spacing:l[.5],sx:C,children:Ae.jsx(v9,{title:"Slots",children:Ae.jsx(UW,{slots:o})})})]}),Ae.jsxs(N0,{sx:v,children:[Ae.jsx(Ri,{sx:b,children:Ae.jsx(q0,{customStyle:x,children:k})}),Ae.jsxs(X2,{spacing:l[.5],sx:C,children:[Ae.jsx(dd,{size:"sm",variant:"outline",onClick:()=>f(k),children:"Copy"}),Ae.jsx(v9,{title:"End-2-end test",children:Ae.jsx(q0,{customStyle:x,children:k})})]})]}),Ae.jsxs(N0,{sx:v,children:[Ae.jsx(Ri,{sx:b,children:Ae.jsx(q0,{customStyle:x,children:n})}),Ae.jsxs(X2,{spacing:l[.5],sx:C,children:[Ae.jsx(dd,{size:"sm",variant:"outline",onClick:()=>f(n),children:"Copy"}),Ae.jsx(v9,{title:"Tracker state",children:Ae.jsx(q0,{customStyle:x,children:n})})]})]}),Ae.jsx(N0,{sx:v,children:Ae.jsx(Ri,{sx:b,children:Ae.jsx(p8e,{voiceLatency:i,rasaLatency:P})})})]})]})})},h2=e=>{const{rasaRadii:t}=Ks(),r=ype(e),n=!!r["aria-selected"],o=n?"solidRasa":"ghost",i=Ho("neutral.50","neutral.50"),a=Ho("neutral.900","neutral.900"),s={borderRadius:t.full,color:n?i:a};return Ae.jsx(dd,{sx:s,variant:o,...r,size:"sm",children:r.children})},D8e=e=>[...e].reverse().find(t=>t.name==="action_listen");function wN({stack:e,highlighted:t,selectable:r,onItemClick:n}){const o={_hover:{cursor:"pointer"}},i={td:{bg:Ho("warning.50","warning.50")},_last:{td:{border:"none"}}};return Ae.jsxs($y,{sx:t?i:r?o:void 0,onClick:()=>n==null?void 0:n(e),children:[Ae.jsx(vg,{children:Ae.jsx(yg,{label:`${e.flow_id} (${e.frame_id})`,hasArrow:!0,children:Ae.jsx(wi,{noOfLines:1,children:e.flow_id})})}),Ae.jsx(vg,{children:WW(e.step_id)?Ae.jsx(yg,{label:e.step_id,hasArrow:!0,children:Ae.jsx(wi,{noOfLines:1,children:e.step_id})}):Ae.jsx(wi,{noOfLines:1,children:e.step_id})})]})}const I8e=({sx:e,stack:t,active:r,onItemClick:n,...o})=>{const{rasaSpace:i}=Ks(),a={...e,pr:0,pb:0,flexDirection:"column"},s={height:"100%",overflow:"auto",pr:i[1],pb:i[.5]};return Ae.jsxs(xo,{sx:a,...o,children:[Ae.jsxs(xo,{children:[Ae.jsx(N1,{size:"lg",mb:i[.5],children:"History"}),Ae.jsxs(wi,{ml:i[.25],children:["(",t.length," flows)"]})]}),Ae.jsx(Ri,{sx:s,children:Ae.jsxs(zC,{width:"100%",layout:"fixed",children:[Ae.jsx(E_,{children:Ae.jsxs($y,{children:[Ae.jsx(ux,{children:"Flow"}),Ae.jsx(ux,{width:"40%",children:"Step ID"})]})}),Ae.jsxs(JT,{children:[t.length>0&&[...t].reverse().map(l=>Ae.jsx(wN,{stack:l,highlighted:l.frame_id==(r==null?void 0:r.frame_id),onItemClick:n,selectable:!0})),t.length===0&&Ae.jsx(wN,{stack:{frame_id:"-",flow_id:"-",step_id:"-",ended:!1}})]})]})})]})},x0=128,QW=8e3,N8e={audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0}},R8e=e=>{let t="";const r=new Uint8Array(e),n=r.byteLength;for(let o=0;o<n;o++)t+=String.fromCharCode(r[o]);return window.btoa(t)},F8e=e=>{const t=window.atob(e),r=t.length,n=new Uint8Array(r);for(let o=0;o<r;o++)n[o]=t.charCodeAt(o);return n.buffer},z8e=e=>Int32Array.from(e,t=>t*2147483647),j8e=e=>Float32Array.from(e,t=>t/2147483647),H8e=e=>({buffer:new Float32Array(0),marks:new Array,socket:e,write:function(t){const r=this.buffer.length,n=new Float32Array(r+t.length);n.set(this.buffer,0),n.set(t,r),this.buffer=n},read:function(t){const r=this.buffer.subarray(0,t);return this.buffer=this.buffer.subarray(t,this.buffer.length),this.reduceMarkers(r.length),this.popMarkers(),r},length:function(){return this.buffer.length},addMarker:function(t){this.marks.push({id:t,bytesToGo:this.length()})},reduceMarkers:function(t){this.marks=this.marks.map(r=>({id:r.id,bytesToGo:r.bytesToGo-t}))},popMarkers:function(){let t=0;for(;t<this.marks.length&&this.marks[t].bytesToGo<=0;)t+=1;const r=this.marks.slice(0,t);this.marks=this.marks.slice(t,this.marks.length),r.forEach(n=>{this.socket.readyState===WebSocket.OPEN&&this.socket.send(JSON.stringify({marker:n.id}))})},clear:function(){this.buffer=new Float32Array(0),this.marks=[]}}),_8e=async e=>{const t=new AudioContext({sampleRate:QW});try{const r=await navigator.mediaDevices.getUserMedia(N8e);await t.audioWorklet.addModule(new URL("data:application/javascript;base64,Y2xhc3MgTWljcm9waG9uZVByb2Nlc3NvciBleHRlbmRzIEF1ZGlvV29ya2xldFByb2Nlc3NvciB7CiAgcHJvY2VzcyhpbnB1dHMpIHsKICAgIGNvbnN0IGlucHV0ID0gaW5wdXRzWzBdCiAgICBpZiAoaW5wdXQubGVuZ3RoID4gMCkgewogICAgICBjb25zdCBjaGFubmVsRGF0YSA9IGlucHV0WzBdCiAgICAgIHRoaXMucG9ydC5wb3N0TWVzc2FnZShjaGFubmVsRGF0YSkKICAgIH0KICAgIHJldHVybiB0cnVlCiAgfQp9CgpyZWdpc3RlclByb2Nlc3NvcignbWljcm9waG9uZS1wcm9jZXNzb3InLCBNaWNyb3Bob25lUHJvY2Vzc29yKQo=",self.location).href);const n=new AudioWorkletNode(t,"microphone-processor");n.port.onmessage=i=>{const a=i.data,s=JSON.stringify({audio:R8e(z8e(a).buffer)});e.readyState===WebSocket.OPEN&&e.send(s)},t.createMediaStreamSource(r).connect(n).connect(t.destination)}catch(r){console.error(r)}},X8e=async e=>{const t=H8e(e),r=new AudioContext({sampleRate:QW});r.state==="suspended"&&await r.resume(),await r.audioWorklet.addModule(new URL("data:application/javascript;base64,Y2xhc3MgUGxheWJhY2tQcm9jZXNzb3IgZXh0ZW5kcyBBdWRpb1dvcmtsZXRQcm9jZXNzb3IgewogIGNvbnN0cnVjdG9yKCkgewogICAgc3VwZXIoKQogICAgdGhpcy5hdWRpb0J1ZmZlciA9IG5ldyBGbG9hdDMyQXJyYXkoMCkKCiAgICAvLyBTZXQgdXAgbWVzc2FnZSBoYW5kbGluZyBmcm9tIHRoZSBtYWluIHRocmVhZAogICAgdGhpcy5wb3J0Lm9ubWVzc2FnZSA9IChldmVudCkgPT4gewogICAgICB0aGlzLmF1ZGlvQnVmZmVyID0gZXZlbnQuZGF0YQogICAgfQoKICAgIC8vIFJlcXVlc3QgaW5pdGlhbCBhdWRpbyBkYXRhCiAgICB0aGlzLnBvcnQucG9zdE1lc3NhZ2UoJ25lZWQtbW9yZS1kYXRhJykKICB9CgogIHByb2Nlc3MoXywgb3V0cHV0cykgewogICAgY29uc3Qgb3V0cHV0ID0gb3V0cHV0c1swXQogICAgY29uc3QgY2hhbm5lbERhdGEgPSBvdXRwdXRbMF0KCiAgICBjb25zdCBhdmFpbGFibGVTYW1wbGVzID0gdGhpcy5hdWRpb0J1ZmZlci5sZW5ndGgKICAgIGNvbnN0IHJlcXVlc3RlZFNhbXBsZXMgPSBjaGFubmVsRGF0YS5sZW5ndGgKICAgIGNvbnN0IHNhbXBsZXNUb0NvcHkgPSBNYXRoLm1pbihhdmFpbGFibGVTYW1wbGVzLCByZXF1ZXN0ZWRTYW1wbGVzKQoKICAgIGlmIChzYW1wbGVzVG9Db3B5ID4gMCkgewogICAgICBjaGFubmVsRGF0YS5zZXQodGhpcy5hdWRpb0J1ZmZlci5zdWJhcnJheSgwLCBzYW1wbGVzVG9Db3B5KSkKICAgICAgdGhpcy5hdWRpb0J1ZmZlciA9IHRoaXMuYXVkaW9CdWZmZXIuc3ViYXJyYXkoc2FtcGxlc1RvQ29weSkKICAgIH0gZWxzZSB7CiAgICAgIGNoYW5uZWxEYXRhLmZpbGwoMCkKICAgIH0KCiAgICB0aGlzLnBvcnQucG9zdE1lc3NhZ2UoJ25lZWQtbW9yZS1kYXRhJykKCiAgICByZXR1cm4gdHJ1ZQogIH0KfQoKcmVnaXN0ZXJQcm9jZXNzb3IoJ3BsYXliYWNrLXByb2Nlc3NvcicsIFBsYXliYWNrUHJvY2Vzc29yKQo=",self.location).href);const n=new AudioWorkletNode(r,"playback-processor");return n.port.onmessage=o=>{if(o.data==="need-more-data"){const i=t.length()?t.read(x0):new Float32Array(x0);if(!(i instanceof Float32Array))console.error("audioData is invalid, sending silence."),n.port.postMessage(new Float32Array(x0));else if(i.length!==x0){console.warn(`audioData is too short (${i.length} samples), padding with silence`);const a=new Float32Array(x0);a.set(i),n.port.postMessage(a)}else n.port.postMessage(i)}},n.connect(r.destination),t},V8e=(e,t)=>r=>{try{const n=JSON.parse(r.data.toString());if(n.error&&console.error("Error from server:",n.error),n.audio){const o=F8e(n.audio),i=new Int32Array(o),a=j8e(i);e.write(a)}else n.marker?(n.latency&&t&&t(n.latency),console.log("Voice Latency Metrics:",n.latency),e.addMarker(n.marker)):n.interruptPlayback&&(e.clear(),console.log("Audio queue cleared due to user interruption."))}catch(n){console.error("Error processing server incoming audio data:",n)}};function q8e(e){const t=new URL(e);return`${t.protocol==="https:"?"wss:":"ws:"}//${t.host}/webhooks/browser_audio/websocket`}async function W8e(e,t){const r=q8e(e),n=new WebSocket(r);n.onopen=async()=>{await _8e(n)};const o=await X8e(n);n.onmessage=V8e(o,t)}const U8e=({onLatencyUpdate:e})=>{const{rasaSpace:t}=Ks(),r=window.location.href.includes("browser_audio"),n=r?"Start a new conversation":"Waiting for a new conversation";return Ae.jsxs(VT,{height:"100vh",flexDirection:"column",children:[Ae.jsx(IC,{speed:"1s",emptyColor:Ho("neutral.500","neutral.500"),color:Ho("rasaPurple.800","rasaPurple.800"),size:"lg",mb:t[1]}),Ae.jsx(wi,{fontSize:"lg",children:n}),r?Ae.jsx(dd,{onClick:async()=>await W8e(window.location.href,e),children:"Go"}):null]})},Q8e=Nce({displayName:"CloseIcon",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}),G8e=({onClose:e})=>{const{rasaRadii:t}=Ks(),r="white",n="white",o={borderRadius:t.normal,padding:"1rem",bgGradient:"linear(to-b, #4E61E1, #7622D2)",color:r};return Ae.jsxs(Ri,{sx:o,children:[Ae.jsxs(xo,{justify:"space-between",align:"center",children:[Ae.jsx(xo,{align:"center",children:Ae.jsx(N1,{as:"h3",size:"lg",fontWeight:"bold",color:r,children:"Help us Improve Rasa Pro!"})}),Ae.jsx(MT,{"aria-label":"Close",icon:Ae.jsx(Q8e,{color:n}),size:"sm",onClick:e,bg:"transparent",_hover:{bg:"rgba(255, 255, 255, 0.2)"}})]}),Ae.jsxs(xo,{align:"center",mt:"0.5rem",justify:"space-between",children:[Ae.jsx(wi,{fontSize:"sm",color:r,children:"We're looking for users to share their feedback."}),Ae.jsx(dd,{as:"a",href:"https://feedback.rasa.com",target:"_blank",rel:"noopener noreferrer",color:"#7622D2",bg:"white",fontWeight:"bold",ml:"1rem",size:"sm",_hover:{bg:"whiteAlpha.800"},children:"Sign up"})]})]})},Y8e=e=>Ae.jsxs(Ri,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[Ae.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),Ae.jsx("path",{fill:"#fff",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),Ae.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),Z8e=e=>Ae.jsxs(Ri,{as:"svg",...e,xmlns:"http://www.w3.org/2000/svg",width:"41",height:"51",fill:"none",viewBox:"0 0 41 51",children:[Ae.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M34.041 10.59V7.508H21.385v12.847h3.037v-3.867h6.582v3.854h3.037v-9.763.013zm-3.037 2.827h-6.582V10.59h6.582v2.826zM19.36 29.74V35.52H6.956v-3.083h9.366V30.64H6.956v-7.965H19.36v3.083H9.994v1.798h9.366v2.184zM34.041 25.75v-3.084H21.385v12.847h3.037v-3.867h6.582V35.5h3.037v-9.764.013zm-3.037 2.826h-6.582v-2.827h6.582v2.827z",clipRule:"evenodd"}),Ae.jsx("path",{fill:"#7622D2",d:"M36.826 4.689v33.578h-5.248v5.724l-9.487-5.318-.744-.417H4.179V4.69h32.654-.007zm3.298-3.34H.881v40.258h19.618l14.368 8.054v-8.054h5.25V1.349h.007z"}),Ae.jsx("path",{fill:"#7622D2",fillRule:"evenodd",d:"M15.287 15.464l3.888-1.436.185-.074V7.515H6.956v.257l-.028 12.59h3.038V17.43l2.278-.838 3.417 3.77h3.752l-4.126-4.897zM9.97 14.15v-3.55h6.351V11.8l-6.351 2.348z",clipRule:"evenodd"})]}),J8e=({sx:e,isRecruitmentVisible:t,...r})=>{const{rasaSpace:n}=Ks(),o={...e,color:t?"black":"neutral.50",bg:t?"white":void 0,bgGradient:t?void 0:"linear(to-b, #4E61E1, #7622D2)"},i={flexGrow:0,color:t?"#0000EE":"neutral.50",textDecoration:"underline",_hover:{color:t?"link.visited":"neutral.400"}};return Ae.jsxs(xo,{sx:o,...r,children:[Ae.jsxs(Ri,{children:[Ae.jsx(N1,{as:"h1",size:"xl",mb:n[1],children:"Rasa Inspector"}),Ae.jsx(wi,{as:"span",children:"New to the Inspector?"}),Ae.jsx(ZH,{sx:i,href:"https://rasa.com/docs/rasa-pro/production/inspect-assistant/",target:"_blank",ml:n[.25],children:"Browse the docs"})]}),t?Ae.jsx(Z8e,{sx:{flexShrink:0,marginLeft:"auto"}}):Ae.jsx(Y8e,{sx:{flexShrink:0,marginLeft:"auto"}})]})};function K8e(){const e=fH(),{rasaSpace:t,rasaRadii:r}=Ks(),[n,o]=ce.useState(""),[i,a]=ce.useState([]),[s,l]=ce.useState([]),[u,c]=ce.useState([]),[f,A]=ce.useState(""),[h,m]=ce.useState([]),[v,b]=ce.useState(void 0),[x,C]=ce.useState(null),[k,P]=ce.useState(!0),O=!window.location.href.includes("socketio"),L=window.location.href.replace("inspect.html","tracker_stream").replace("http","ws"),{sendJsonMessage:B,lastJsonMessage:M,readyState:F}=lve(L,{share:!1,shouldReconnect:()=>!0}),N=new URLSearchParams(window.location.search).get("token");ce.useEffect(()=>{F===s6.ReadyState.OPEN&&n&&B({action:"retrieve",sender_id:n})},[F,B,n]),ce.useEffect(()=>{if(!O)return;const J=yge.parse(window.location.search).sender;if(J&&J!==n)o(J);else if(!J&&n){const se=new URL(window.location.href);se.searchParams.set("sender",n),window.history.pushState(null,"",se.toString())}},[n,O]),ce.useEffect(()=>{WM.get("/flows",{params:{token:N}}).then(V=>a(V.data)).catch(V=>{e.isActive("flows")||e({id:"flows",title:"Flows could not be retrieved",description:(V==null?void 0:V.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})},[e]);function z(){WM.get(`/conversations/${n}/story`,{params:{token:N}}).then(V=>A(V.data)).catch(V=>{e.isActive("story-error")||e({id:"story-error",title:"Stories could not be retrieved",description:(V==null?void 0:V.message)||"An unknown error happened.",status:"error",duration:4e3,isClosable:!0})})}ce.useEffect(()=>{if(M)if(!n||(M==null?void 0:M.sender_id)===n){l(E6e(M.slots)),c(M.events);const V=O8e(M.stack,M.events);m(V),b(B8e(v,V,M.events)),o(M.sender_id),z()}else n&&M.sender_id},[M,n]);const R={borderRadius:r.normal},W={gridTemplateColumns:Qde({base:"21rem minmax(20rem, auto) 21rem","2xl":"25rem auto 25rem"}),gridTemplateRows:"1fr",gridColumnGap:t[1],height:"100vh",padding:t[2]},K={...R,padding:t[1],bg:Ho("neutral.50","neutral.50"),overflow:"hidden"},Y={height:"100%",overflow:"hidden",gridTemplateColumns:"1fr",gridTemplateRows:k?"max-content max-content minmax(10rem, auto)":"max-content minmax(10rem, 17.5rem) minmax(10rem, auto)",gridRowGap:t[1]},j=V=>{b({stack:V,activatedSteps:Y4(u)[V.flow_id],isUserSelected:!0})},H=()=>{P(!1)},$=ce.useCallback(V=>{C(J=>({...J,...V}))},[]);return ce.useEffect(()=>(window.location.href.includes("browser_audio")&&(window.updateLatency=$),()=>{delete window.updateLatency}),[$]),!n&&!window.location.href.includes("socketio")?Ae.jsx(U8e,{onLatencyUpdate:$}):Ae.jsxs(Q5,{sx:W,children:[Ae.jsx(V2,{overflow:"hidden",children:Ae.jsxs(Q5,{sx:Y,children:[Ae.jsx(J8e,{sx:K,isRecruitmentVisible:k}),k&&Ae.jsx(G8e,{onClose:H}),Ae.jsx(I8e,{sx:K,stack:h,active:v==null?void 0:v.stack,onItemClick:j}),Ae.jsx(M8e,{sx:K,rasaChatSessionId:n,slots:s,events:u,story:f,latency:x})]})}),Ae.jsx(V2,{sx:K,children:Ae.jsx(D6e,{stackFrame:v==null?void 0:v.stack,stepTrail:(v==null?void 0:v.activatedSteps)||[],flows:i,slots:s})}),O&&Ae.jsx(V2,{children:Ae.jsx(hbe,{events:u||[]})})]})}w9.createRoot(document.getElementById("root")).render(Ae.jsx(na.StrictMode,{children:Ae.jsx($ce,{theme:k6e,children:Ae.jsx(K8e,{})})}));/*! For license information please see widget.js.LICENSE.txt */(()=>{var e={67640:(n,o,i)=>{i.d(o,{Ni:()=>v,F4:()=>k,Xn:()=>b});var a=i(64343),s=function(){function L(M){this.isSpeedy=M.speedy===void 0||M.speedy,this.tags=[],this.ctr=0,this.nonce=M.nonce,this.key=M.key,this.container=M.container,this.before=null}var B=L.prototype;return B.insert=function(M){if(this.ctr%(this.isSpeedy?65e3:1)==0){var F,N=function(W){var K=document.createElement("style");return K.setAttribute("data-emotion",W.key),W.nonce!==void 0&&K.setAttribute("nonce",W.nonce),K.appendChild(document.createTextNode("")),K}(this);F=this.tags.length===0?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(N,F),this.tags.push(N)}var z=this.tags[this.tags.length-1];if(this.isSpeedy){var R=function(W){if(W.sheet)return W.sheet;for(var K=0;K<document.styleSheets.length;K++)if(document.styleSheets[K].ownerNode===W)return document.styleSheets[K]}(z);try{var U=M.charCodeAt(1)===105&&M.charCodeAt(0)===64;R.insertRule(M,U?0:R.cssRules.length)}catch{}}else z.appendChild(document.createTextNode(M));this.ctr++},B.flush=function(){this.tags.forEach(function(M){return M.parentNode.removeChild(M)}),this.tags=[],this.ctr=0},L}();const l=function(L){function B(st,dt,ht,St,Re){for(var Ge,Ue,Ct,it,lt,kt=0,yt=0,ot=0,gt=0,Pt=0,Jt=0,qt=Ct=Ge=0,tr=0,Rr=0,hr=0,Gr=0,Ln=ht.length,$r=Ln-1,Ut="",Xr="",Qn="",Pn="";tr<Ln;){if(Ue=ht.charCodeAt(tr),tr===$r&&yt+gt+ot+kt!==0&&(yt!==0&&(Ue=yt===47?10:47),gt=ot=kt=0,Ln++,$r++),yt+gt+ot+kt===0){if(tr===$r&&(0<Rr&&(Ut=Ut.replace(j,"")),0<Ut.trim().length)){switch(Ue){case 32:case 9:case 59:case 13:case 10:break;default:Ut+=ht.charAt(tr)}Ue=59}switch(Ue){case 123:for(Ge=(Ut=Ut.trim()).charCodeAt(0),Ct=1,Gr=++tr;tr<Ln;){switch(Ue=ht.charCodeAt(tr)){case 123:Ct++;break;case 125:Ct--;break;case 47:switch(Ue=ht.charCodeAt(tr+1)){case 42:case 47:e:{for(qt=tr+1;qt<$r;++qt)switch(ht.charCodeAt(qt)){case 47:if(Ue===42&&ht.charCodeAt(qt-1)===42&&tr+2!==qt){tr=qt+1;break e}break;case 10:if(Ue===47){tr=qt+1;break e}}tr=qt}}break;case 91:Ue++;case 40:Ue++;case 34:case 39:for(;tr++<$r&&ht.charCodeAt(tr)!==Ue;);}if(Ct===0)break;tr++}switch(Ct=ht.substring(Gr,tr),Ge===0&&(Ge=(Ut=Ut.replace(Y,"").trim()).charCodeAt(0)),Ge){case 64:switch(0<Rr&&(Ut=Ut.replace(j,"")),Ue=Ut.charCodeAt(1)){case 100:case 109:case 115:case 45:Rr=dt;break;default:Rr=pe}if(Gr=(Ct=B(dt,Rr,Ct,Ue,Re+1)).length,0<xt&&(lt=U(3,Ct,Rr=M(pe,Ut,hr),dt,ft,oe,Gr,Ue,Re,St),Ut=Rr.join(""),lt!==void 0&&(Gr=(Ct=lt.trim()).length)===0&&(Ue=0,Ct="")),0<Gr)switch(Ue){case 115:Ut=Ut.replace(Le,R);case 100:case 109:case 45:Ct=Ut+"{"+Ct+"}";break;case 107:Ct=(Ut=Ut.replace(G,"$1 $2"))+"{"+Ct+"}",Ct=qe===1||qe===2&&z("@"+Ct,3)?"@-webkit-"+Ct+"@"+Ct:"@"+Ct;break;default:Ct=Ut+Ct,St===112&&(Xr+=Ct,Ct="")}else Ct="";break;default:Ct=B(dt,M(dt,Ut,hr),Ct,St,Re+1)}Qn+=Ct,Ct=hr=Rr=qt=Ge=0,Ut="",Ue=ht.charCodeAt(++tr);break;case 125:case 59:if(1<(Gr=(Ut=(0<Rr?Ut.replace(j,""):Ut).trim()).length))switch(qt===0&&(Ge=Ut.charCodeAt(0),Ge===45||96<Ge&&123>Ge)&&(Gr=(Ut=Ut.replace(" ",":")).length),0<xt&&(lt=U(1,Ut,dt,st,ft,oe,Xr.length,St,Re,St))!==void 0&&(Gr=(Ut=lt.trim()).length)===0&&(Ut="\0\0"),Ge=Ut.charCodeAt(0),Ue=Ut.charCodeAt(1),Ge){case 0:break;case 64:if(Ue===105||Ue===99){Pn+=Ut+ht.charAt(tr);break}default:Ut.charCodeAt(Gr-1)!==58&&(Xr+=N(Ut,Ge,Ue,Ut.charCodeAt(2)))}hr=Rr=qt=Ge=0,Ut="",Ue=ht.charCodeAt(++tr)}}switch(Ue){case 13:case 10:yt===47?yt=0:1+Ge===0&&St!==107&&0<Ut.length&&(Rr=1,Ut+="\0"),0<xt*Vt&&U(0,Ut,dt,st,ft,oe,Xr.length,St,Re,St),oe=1,ft++;break;case 59:case 125:if(yt+gt+ot+kt===0){oe++;break}default:switch(oe++,it=ht.charAt(tr),Ue){case 9:case 32:if(gt+kt+yt===0)switch(Pt){case 44:case 58:case 9:case 32:it="";break;default:Ue!==32&&(it=" ")}break;case 0:it="\\0";break;case 12:it="\\f";break;case 11:it="\\v";break;case 38:gt+yt+kt===0&&(Rr=hr=1,it="\f"+it);break;case 108:if(gt+yt+kt+nt===0&&0<qt)switch(tr-qt){case 2:Pt===112&&ht.charCodeAt(tr-3)===58&&(nt=Pt);case 8:Jt===111&&(nt=Jt)}break;case 58:gt+yt+kt===0&&(qt=tr);break;case 44:yt+ot+gt+kt===0&&(Rr=1,it+="\r");break;case 34:case 39:yt===0&&(gt=gt===Ue?0:gt===0?Ue:gt);break;case 91:gt+yt+ot===0&&kt++;break;case 93:gt+yt+ot===0&&kt--;break;case 41:gt+yt+kt===0&&ot--;break;case 40:if(gt+yt+kt===0){if(Ge===0)switch(2*Pt+3*Jt){case 533:break;default:Ge=1}ot++}break;case 64:yt+ot+gt+kt+qt+Ct===0&&(Ct=1);break;case 42:case 47:if(!(0<gt+kt+ot))switch(yt){case 0:switch(2*Ue+3*ht.charCodeAt(tr+1)){case 235:yt=47;break;case 220:Gr=tr,yt=42}break;case 42:Ue===47&&Pt===42&&Gr+2!==tr&&(ht.charCodeAt(Gr+2)===33&&(Xr+=ht.substring(Gr,tr+1)),it="",yt=0)}}yt===0&&(Ut+=it)}Jt=Pt,Pt=Ue,tr++}if(0<(Gr=Xr.length)){if(Rr=dt,0<xt&&(lt=U(2,Xr,Rr,st,ft,oe,Gr,St,Re,St))!==void 0&&(Xr=lt).length===0)return Pn+Xr+Qn;if(Xr=Rr.join(",")+"{"+Xr+"}",qe*nt!=0){switch(qe!==2||z(Xr,2)||(nt=0),nt){case 111:Xr=Xr.replace(be,":-moz-$1")+Xr;break;case 112:Xr=Xr.replace(le,"::-webkit-input-$1")+Xr.replace(le,"::-moz-$1")+Xr.replace(le,":-ms-input-$1")+Xr}nt=0}}return Pn+Xr+Qn}function M(st,dt,ht){var St=dt.trim().split(J);dt=St;var Re=St.length,Ge=st.length;switch(Ge){case 0:case 1:var Ue=0;for(st=Ge===0?"":st[0]+" ";Ue<Re;++Ue)dt[Ue]=F(st,dt[Ue],ht).trim();break;default:var Ct=Ue=0;for(dt=[];Ue<Re;++Ue)for(var it=0;it<Ge;++it)dt[Ct++]=F(st[it]+" ",St[Ue],ht).trim()}return dt}function F(st,dt,ht){var St=dt.charCodeAt(0);switch(33>St&&(St=(dt=dt.trim()).charCodeAt(0)),St){case 38:return dt.replace(se,"$1"+st.trim());case 58:return st.trim()+dt.replace(se,"$1"+st.trim());default:if(0<1*ht&&0<dt.indexOf("\f"))return dt.replace(se,(st.charCodeAt(0)===58?"":"$1")+st.trim())}return st+dt}function N(st,dt,ht,St){var Re=st+";",Ge=2*dt+3*ht+4*St;if(Ge===944){st=Re.indexOf(":",9)+1;var Ue=Re.substring(st,Re.length-1).trim();return Ue=Re.substring(0,st).trim()+Ue+";",qe===1||qe===2&&z(Ue,1)?"-webkit-"+Ue+Ue:Ue}if(qe===0||qe===2&&!z(Re,1))return Re;switch(Ge){case 1015:return Re.charCodeAt(10)===97?"-webkit-"+Re+Re:Re;case 951:return Re.charCodeAt(3)===116?"-webkit-"+Re+Re:Re;case 963:return Re.charCodeAt(5)===110?"-webkit-"+Re+Re:Re;case 1009:if(Re.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+Re+Re;case 978:return"-webkit-"+Re+"-moz-"+Re+Re;case 1019:case 983:return"-webkit-"+Re+"-moz-"+Re+"-ms-"+Re+Re;case 883:if(Re.charCodeAt(8)===45)return"-webkit-"+Re+Re;if(0<Re.indexOf("image-set(",11))return Re.replace(_e,"$1-webkit-$2")+Re;break;case 932:if(Re.charCodeAt(4)===45)switch(Re.charCodeAt(5)){case 103:return"-webkit-box-"+Re.replace("-grow","")+"-webkit-"+Re+"-ms-"+Re.replace("grow","positive")+Re;case 115:return"-webkit-"+Re+"-ms-"+Re.replace("shrink","negative")+Re;case 98:return"-webkit-"+Re+"-ms-"+Re.replace("basis","preferred-size")+Re}return"-webkit-"+Re+"-ms-"+Re+Re;case 964:return"-webkit-"+Re+"-ms-flex-"+Re+Re;case 1023:if(Re.charCodeAt(8)!==99)break;return"-webkit-box-pack"+(Ue=Re.substring(Re.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+Re+"-ms-flex-pack"+Ue+Re;case 1005:return $.test(Re)?Re.replace(H,":-webkit-")+Re.replace(H,":-moz-")+Re:Re;case 1e3:switch(dt=(Ue=Re.substring(13).trim()).indexOf("-")+1,Ue.charCodeAt(0)+Ue.charCodeAt(dt)){case 226:Ue=Re.replace(ue,"tb");break;case 232:Ue=Re.replace(ue,"tb-rl");break;case 220:Ue=Re.replace(ue,"lr");break;default:return Re}return"-webkit-"+Re+"-ms-"+Ue+Re;case 1017:if(Re.indexOf("sticky",9)===-1)break;case 975:switch(dt=(Re=st).length-10,Ge=(Ue=(Re.charCodeAt(dt)===33?Re.substring(0,dt):Re).substring(st.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|Ue.charCodeAt(7))){case 203:if(111>Ue.charCodeAt(8))break;case 115:Re=Re.replace(Ue,"-webkit-"+Ue)+";"+Re;break;case 207:case 102:Re=Re.replace(Ue,"-webkit-"+(102<Ge?"inline-":"")+"box")+";"+Re.replace(Ue,"-webkit-"+Ue)+";"+Re.replace(Ue,"-ms-"+Ue+"box")+";"+Re}return Re+";";case 938:if(Re.charCodeAt(5)===45)switch(Re.charCodeAt(6)){case 105:return Ue=Re.replace("-items",""),"-webkit-"+Re+"-webkit-box-"+Ue+"-ms-flex-"+Ue+Re;case 115:return"-webkit-"+Re+"-ms-flex-item-"+Re.replace(Oe,"")+Re;default:return"-webkit-"+Re+"-ms-flex-line-pack"+Re.replace("align-content","").replace(Oe,"")+Re}break;case 973:case 989:if(Re.charCodeAt(3)!==45||Re.charCodeAt(4)===122)break;case 931:case 953:if(rt.test(st)===!0)return(Ue=st.substring(st.indexOf(":")+1)).charCodeAt(0)===115?N(st.replace("stretch","fill-available"),dt,ht,St).replace(":fill-available",":stretch"):Re.replace(Ue,"-webkit-"+Ue)+Re.replace(Ue,"-moz-"+Ue.replace("fill-",""))+Re;break;case 962:if(Re="-webkit-"+Re+(Re.charCodeAt(5)===102?"-ms-"+Re:"")+Re,ht+St===211&&Re.charCodeAt(13)===105&&0<Re.indexOf("transform",10))return Re.substring(0,Re.indexOf(";",27)+1).replace(V,"$1-webkit-$2")+Re}return Re}function z(st,dt){var ht=st.indexOf(dt===1?":":"{"),St=st.substring(0,dt!==3?ht:10);return ht=st.substring(ht+1,st.length-1),It(dt!==2?St:St.replace(je,"$1"),ht,dt)}function R(st,dt){var ht=N(dt,dt.charCodeAt(0),dt.charCodeAt(1),dt.charCodeAt(2));return ht!==dt+";"?ht.replace(ve," or ($1)").substring(4):"("+dt+")"}function U(st,dt,ht,St,Re,Ge,Ue,Ct,it,lt){for(var kt,yt=0,ot=dt;yt<xt;++yt)switch(kt=Mt[yt].call(K,st,ot,ht,St,Re,Ge,Ue,Ct,it,lt)){case void 0:case!1:case!0:case null:break;default:ot=kt}if(ot!==dt)return ot}function W(st){return(st=st.prefix)!==void 0&&(It=null,st?typeof st!="function"?qe=1:(qe=2,It=st):qe=0),W}function K(st,dt){var ht=st;if(33>ht.charCodeAt(0)&&(ht=ht.trim()),ht=[ht],0<xt){var St=U(-1,dt,ht,ht,ft,oe,0,0,0,0);St!==void 0&&typeof St=="string"&&(dt=St)}var Re=B(pe,ht,dt,0,0);return 0<xt&&(St=U(-2,Re,ht,ht,ft,oe,Re.length,0,0,0))!==void 0&&(Re=St),nt=0,oe=ft=1,Re}var Y=/^\0+/g,j=/[\0\r\f]/g,H=/: */g,$=/zoo|gra/,V=/([,: ])(transform)/g,J=/,\r+?/g,se=/([\t\r\n ])*\f?&/g,G=/@(k\w+)\s*(\S*)\s*/,le=/::(place)/g,be=/:(read-only)/g,ue=/[svh]\w+-[tblr]{2}/,Le=/\(\s*(.*)\s*\)/g,ve=/([\s\S]*?);/g,Oe=/-self|flex-/g,je=/[^]*?(:[rp][el]a[\w-]+)[^]*/,rt=/stretch|:\s*\w+\-(?:conte|avail)/,_e=/([^-])(image-set\()/,oe=1,ft=1,nt=0,qe=1,pe=[],Mt=[],xt=0,It=null,Vt=0;return K.use=function st(dt){switch(dt){case void 0:case null:xt=Mt.length=0;break;default:if(typeof dt=="function")Mt[xt++]=dt;else if(typeof dt=="object")for(var ht=0,St=dt.length;ht<St;++ht)st(dt[ht]);else Vt=0|!!dt}return st},K.set=W,L!==void 0&&W(L),K};var u="/*|*/";function c(L){L&&f.current.insert(L+"}")}var f={current:null},A=function(L,B,M,F,N,z,R,U,W,K){switch(L){case 1:switch(B.charCodeAt(0)){case 64:return f.current.insert(B+";"),"";case 108:if(B.charCodeAt(2)===98)return""}break;case 2:if(U===0)return B+u;break;case 3:switch(U){case 102:case 112:return f.current.insert(M[0]+B),"";default:return B+(K===0?u:"")}case-2:B.split("/*|*/}").forEach(c)}};i(43988);var h=i(5601),m=(0,a.createContext)(typeof HTMLElement<"u"?function(L){L===void 0&&(L={});var B,M=L.key||"css";L.prefix!==void 0&&(B={prefix:L.prefix});var F,N=new l(B),z={};F=L.container||document.head;var R,U=document.querySelectorAll("style[data-emotion-"+M+"]");Array.prototype.forEach.call(U,function(K){K.getAttribute("data-emotion-"+M).split(" ").forEach(function(Y){z[Y]=!0}),K.parentNode!==F&&F.appendChild(K)}),N.use(L.stylisPlugins)(A),R=function(K,Y,j,H){var $=Y.name;f.current=j,N(K,Y.styles),H&&(W.inserted[$]=!0)};var W={key:M,sheet:new s({key:M,container:F,nonce:L.nonce,speedy:L.speedy}),nonce:L.nonce,inserted:z,registered:{},insert:R};return W}():null),v=(0,a.createContext)({}),b=(m.Provider,function(L){var B=function(M,F){return(0,a.createElement)(m.Consumer,null,function(N){return L(M,N,F)})};return(0,a.forwardRef)(B)}),x=i(46546);const C=function(){for(var L=arguments.length,B=new Array(L),M=0;M<L;M++)B[M]=arguments[M];return(0,h.O)(B)};a.Component;var k=function(){var L=C.apply(void 0,arguments),B="animation-"+L.name;return{name:B,styles:"@keyframes "+B+"{"+L.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},P=function L(B){for(var M=B.length,F=0,N="";F<M;F++){var z=B[F];if(z!=null){var R=void 0;switch(typeof z){case"boolean":break;case"object":if(Array.isArray(z))R=L(z);else for(var U in R="",z)z[U]&&U&&(R&&(R+=" "),R+=U);break;default:R=z}R&&(N&&(N+=" "),N+=R)}}return N};function O(L,B,M){var F=[],N=(0,x.f)(L,F,M);return F.length<2?M:N+B(F)}b(function(L,B){return(0,a.createElement)(v.Consumer,null,function(M){var F=function(){for(var z=arguments.length,R=new Array(z),U=0;U<z;U++)R[U]=arguments[U];var W=(0,h.O)(R,B.registered);return(0,x.M)(B,W,!1),B.key+"-"+W.name},N={css:F,cx:function(){for(var z=arguments.length,R=new Array(z),U=0;U<z;U++)R[U]=arguments[U];return O(B.registered,F,P(R))},theme:M};return L.children(N)})})},55287:(n,o,i)=>{i.r(o),i.d(o,{default:()=>k});var a=i(1258),s=i.n(a),l=i(64343),u=i(90240),c=i(67640),f=i(46546),A=i(5601),h=u.Z,m=function(P){return P!=="theme"&&P!=="innerRef"},v=function(P){return typeof P=="string"&&P.charCodeAt(0)>96?h:m};function b(P,O){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(P);O&&(B=B.filter(function(M){return Object.getOwnPropertyDescriptor(P,M).enumerable})),L.push.apply(L,B)}return L}function x(P){for(var O=1;O<arguments.length;O++){var L=arguments[O]!=null?arguments[O]:{};O%2?b(L,!0).forEach(function(B){s()(P,B,L[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):b(L).forEach(function(B){Object.defineProperty(P,B,Object.getOwnPropertyDescriptor(L,B))})}return P}var C=(function P(O,L){var B,M,F;L!==void 0&&(B=L.label,F=L.target,M=O.__emotion_forwardProp&&L.shouldForwardProp?function(W){return O.__emotion_forwardProp(W)&&L.shouldForwardProp(W)}:L.shouldForwardProp);var N=O.__emotion_real===O,z=N&&O.__emotion_base||O;typeof M!="function"&&N&&(M=O.__emotion_forwardProp);var R=M||v(z),U=!R("as");return function(){var W=arguments,K=N&&O.__emotion_styles!==void 0?O.__emotion_styles.slice(0):[];if(B!==void 0&&K.push("label:"+B+";"),W[0]==null||W[0].raw===void 0)K.push.apply(K,W);else{K.push(W[0][0]);for(var Y=W.length,j=1;j<Y;j++)K.push(W[j],W[0][j])}var H=(0,c.Xn)(function($,V,J){return(0,l.createElement)(c.Ni.Consumer,null,function(se){var G=U&&$.as||z,le="",be=[],ue=$;if($.theme==null){for(var Le in ue={},$)ue[Le]=$[Le];ue.theme=se}typeof $.className=="string"?le=(0,f.f)(V.registered,be,$.className):$.className!=null&&(le=$.className+" ");var ve=(0,A.O)(K.concat(be),V.registered,ue);(0,f.M)(V,ve,typeof G=="string"),le+=V.key+"-"+ve.name,F!==void 0&&(le+=" "+F);var Oe=U&&M===void 0?v(G):R,je={};for(var rt in $)U&&rt==="as"||Oe(rt)&&(je[rt]=$[rt]);return je.className=le,je.ref=J||$.innerRef,(0,l.createElement)(G,je)})});return H.displayName=B!==void 0?B:"Styled("+(typeof z=="string"?z:z.displayName||z.name||"Component")+")",H.defaultProps=O.defaultProps,H.__emotion_real=H,H.__emotion_base=z,H.__emotion_styles=K,H.__emotion_forwardProp=M,Object.defineProperty(H,"toString",{value:function(){return"."+F}}),H.withComponent=function($,V){return P($,V!==void 0?x({},L||{},{},V):L).apply(void 0,K)},H}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(P){C[P]=C(P)});const k=C},9106:(n,o,i)=>{o.formatArgs=function(s){if(s[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+s[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;s.splice(1,0,l,"color: inherit");let u=0,c=0;s[0].replace(/%[a-zA-Z%]/g,f=>{f!=="%%"&&(u++,f==="%c"&&(c=u))}),s.splice(c,0,l)},o.save=function(s){try{s?o.storage.setItem("debug",s):o.storage.removeItem("debug")}catch{}},o.load=function(){let s;try{s=o.storage.getItem("debug")}catch{}return!s&&typeof process<"u"&&"env"in process&&(s={}.DEBUG),s},o.useColors=function(){return!(typeof window>"u"||!window.process||window.process.type!=="renderer"&&!window.process.__nwjs)||(typeof navigator>"u"||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&(typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},o.storage=function(){try{return localStorage}catch{}}(),o.destroy=(()=>{let s=!1;return()=>{s||(s=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),o.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],o.log=console.debug||console.log||(()=>{}),n.exports=i(42415)(o);const{formatters:a}=n.exports;a.j=function(s){try{return JSON.stringify(s)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}},42415:(n,o,i)=>{n.exports=function(a){function s(c){let f,A,h,m=null;function v(...b){if(!v.enabled)return;const x=v,C=Number(new Date),k=C-(f||C);x.diff=k,x.prev=f,x.curr=C,f=C,b[0]=s.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");let P=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(O,L)=>{if(O==="%%")return"%";P++;const B=s.formatters[L];if(typeof B=="function"){const M=b[P];O=B.call(x,M),b.splice(P,1),P--}return O}),s.formatArgs.call(x,b),(x.log||s.log).apply(x,b)}return v.namespace=c,v.useColors=s.useColors(),v.color=s.selectColor(c),v.extend=l,v.destroy=s.destroy,Object.defineProperty(v,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(A!==s.namespaces&&(A=s.namespaces,h=s.enabled(c)),h),set:b=>{m=b}}),typeof s.init=="function"&&s.init(v),v}function l(c,f){const A=s(this.namespace+(f===void 0?":":f)+c);return A.log=this.log,A}function u(c){return c.toString().substring(2,c.toString().length-2).replace(/\.\*\?$/,"*")}return s.debug=s,s.default=s,s.coerce=function(c){return c instanceof Error?c.stack||c.message:c},s.disable=function(){const c=[...s.names.map(u),...s.skips.map(u).map(f=>"-"+f)].join(",");return s.enable(""),c},s.enable=function(c){let f;s.save(c),s.namespaces=c,s.names=[],s.skips=[];const A=(typeof c=="string"?c:"").split(/[\s,]+/),h=A.length;for(f=0;f<h;f++)A[f]&&((c=A[f].replace(/\*/g,".*?"))[0]==="-"?s.skips.push(new RegExp("^"+c.substr(1)+"$")):s.names.push(new RegExp("^"+c+"$")))},s.enabled=function(c){if(c[c.length-1]==="*")return!0;let f,A;for(f=0,A=s.skips.length;f<A;f++)if(s.skips[f].test(c))return!1;for(f=0,A=s.names.length;f<A;f++)if(s.names[f].test(c))return!0;return!1},s.humanize=i(199),s.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(a).forEach(c=>{s[c]=a[c]}),s.names=[],s.skips=[],s.formatters={},s.selectColor=function(c){let f=0;for(let A=0;A<c.length;A++)f=(f<<5)-f+c.charCodeAt(A),f|=0;return s.colors[Math.abs(f)%s.colors.length]},s.enable(s.load()),s}},48076:(n,o,i)=>{var a=i(64343),s=i(90518),l=i(2778);function u(p){for(var y="https://reactjs.org/docs/error-decoder.html?invariant="+p,E=1;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E]);return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!a)throw Error(u(227));var c=new Set,f={};function A(p,y){h(p,y),h(p+"Capture",y)}function h(p,y){for(f[p]=y,p=0;p<y.length;p++)c.add(y[p])}var m=!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0),v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b=Object.prototype.hasOwnProperty,x={},C={};function k(p,y,E,D,X,ee,ne){this.acceptsBooleans=y===2||y===3||y===4,this.attributeName=D,this.attributeNamespace=X,this.mustUseProperty=E,this.propertyName=p,this.type=y,this.sanitizeURL=ee,this.removeEmptyString=ne}var P={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){P[p]=new k(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var y=p[0];P[y]=new k(y,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){P[p]=new k(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){P[p]=new k(p,2,!1,p,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(p){P[p]=new k(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){P[p]=new k(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){P[p]=new k(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){P[p]=new k(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){P[p]=new k(p,5,!1,p.toLowerCase(),null,!1,!1)});var O=/[\-:]([a-z])/g;function L(p){return p[1].toUpperCase()}function B(p,y,E,D){var X=P.hasOwnProperty(y)?P[y]:null;(X!==null?X.type===0:!D&&2<y.length&&(y[0]==="o"||y[0]==="O")&&(y[1]==="n"||y[1]==="N"))||(function(ee,ne,ge,Ee){if(ne==null||function(Ie,pt,_t,wt){if(_t!==null&&_t.type===0)return!1;switch(typeof pt){case"function":case"symbol":return!0;case"boolean":return!wt&&(_t!==null?!_t.acceptsBooleans:(Ie=Ie.toLowerCase().slice(0,5))!=="data-"&&Ie!=="aria-");default:return!1}}(ee,ne,ge,Ee))return!0;if(Ee)return!1;if(ge!==null)switch(ge.type){case 3:return!ne;case 4:return ne===!1;case 5:return isNaN(ne);case 6:return isNaN(ne)||1>ne}return!1}(y,E,X,D)&&(E=null),D||X===null?function(ee){return!!b.call(C,ee)||!b.call(x,ee)&&(v.test(ee)?C[ee]=!0:(x[ee]=!0,!1))}(y)&&(E===null?p.removeAttribute(y):p.setAttribute(y,""+E)):X.mustUseProperty?p[X.propertyName]=E===null?X.type!==3&&"":E:(y=X.attributeName,D=X.attributeNamespace,E===null?p.removeAttribute(y):(E=(X=X.type)===3||X===4&&E===!0?"":""+E,D?p.setAttributeNS(D,y,E):p.setAttribute(y,E))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var y=p.replace(O,L);P[y]=new k(y,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!1,!1)}),P.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){P[p]=new k(p,1,!1,p.toLowerCase(),null,!0,!0)});var M=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=60103,N=60106,z=60107,R=60108,U=60114,W=60109,K=60110,Y=60112,j=60113,H=60120,$=60115,V=60116,J=60121,se=60128,G=60129,le=60130,be=60131;if(typeof Symbol=="function"&&Symbol.for){var ue=Symbol.for;F=ue("react.element"),N=ue("react.portal"),z=ue("react.fragment"),R=ue("react.strict_mode"),U=ue("react.profiler"),W=ue("react.provider"),K=ue("react.context"),Y=ue("react.forward_ref"),j=ue("react.suspense"),H=ue("react.suspense_list"),$=ue("react.memo"),V=ue("react.lazy"),J=ue("react.block"),ue("react.scope"),se=ue("react.opaque.id"),G=ue("react.debug_trace_mode"),le=ue("react.offscreen"),be=ue("react.legacy_hidden")}var Le,ve=typeof Symbol=="function"&&Symbol.iterator;function Oe(p){return p===null||typeof p!="object"?null:typeof(p=ve&&p[ve]||p["@@iterator"])=="function"?p:null}function je(p){if(Le===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);Le=y&&y[1]||""}return`
|
|
807
807
|
`+Le+p}var rt=!1;function _e(p,y){if(!p||rt)return"";rt=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(y)if(y=function(){throw Error()},Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(Ee){var D=Ee}Reflect.construct(p,[],y)}else{try{y.call()}catch(Ee){D=Ee}p.call(y.prototype)}else{try{throw Error()}catch(Ee){D=Ee}p()}}catch(Ee){if(Ee&&D&&typeof Ee.stack=="string"){for(var X=Ee.stack.split(`
|
|
808
808
|
`),ee=D.stack.split(`
|
|
809
809
|
`),ne=X.length-1,ge=ee.length-1;1<=ne&&0<=ge&&X[ne]!==ee[ge];)ge--;for(;1<=ne&&0<=ge;ne--,ge--)if(X[ne]!==ee[ge]){if(ne!==1||ge!==1)do if(ne--,0>--ge||X[ne]!==ee[ge])return`
|